Yes, this would be a good fail-safe check too.
• 0 views
•
link
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
Can you run the program externally?
Just run the following command and see if you get all the options
perl /leofs/zhangz_group/xial/NGSQCToolkit_v2.3.3/QC/IlluQC.pl -h
First make sure the program is running properly. Then you can think of integrating it in to perl. Read the manual and make sure you have installed all the dependencies required. Update the modules if necessary.
If the program runs correctly, then as RamRS said, keep print statements and see what command will run.
Yes, this would be a good fail-safe check too.
Log in to answer this question.
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<@Filename2oh, 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 !!!!