Entering edit mode
10.0 years ago
caelyn5201314
▴
10
Hi All! I was use NGS QC Toolkit IlluQC.pl),and it keep throw the error:
Use of uninitialized value $avgQRangeF2 in split at /leofs/zhangz_group/xial/NGSQCToolkit_v2.3.3/QC/lib/html.pl line 25.
Use of uninitialized value $seqFormatName in concatenation (.) or string at /leofs/zhangz_group/xial/NGSQCToolkit_v2.3.3/QC/lib/html.pl line 142.
Please someone help me! Thank you
Please give us the exact command you used.
Is that a command you ran on the command line? Or is it a line from a perl script?
I have quite a few questions, but let's address the easy ones first. What is the motive behind comparing a scalar and an array in the for loop? I'm referring to the part which goes
$i<@Filename2
oh, I have a lot files, like:
and "next unless" is just want to test if one file works out
Yes, but that doesn't validate comparing a scalar (one value) to an array (a set of values).
@filename2 is the length of the array
No, it's not.
scalar(@filename2)
will give the length of the filtered array andscalar(@filename)
will give you length of the unfiltered array.I
print scalar(@Filename2)
andprint @filename
,it's the same!True, Perl adapts to scalar and list contexts, but it is always better to be explicit IMO.
ok...thank you !!!:)
Q2: Could you maybe just print the command (like so:
print "<command>"
instead ofsystem "<command>"
) and we could verify it is indeed generating the command you want to use?thank you RamRS and Geek_y !!!!! It worked !!! thanks a lot !!!!