Hi,
I have run across a problem when I tried to filtered the out.snp file by using SNPfilter of Maq
So I test the Maq Demo, the same error happened again. Below is how I processed the analysis.
I used the command "perl maq.pl SNPfilter out.snp >out.filtered.snp", then error was reported:
"Use of uninitialized value in string ne at maq.pl line 286, <> line 59.
Use of uninitialized value in addition (+) at maq.pl line 286, <> line 59.
Use of uninitialized value in string ne at maq.pl line 286, <> line 60.
Use of uninitialized value in addition (+) at maq.pl line 286, <> line 60.
Use of uninitialized value in string ne at maq.pl line 286, <> line 62.
Use of uninitialized value in addition (+) at maq.pl line 286, <> line 62.
Use of uninitialized value in string ne at maq.pl line 286, <> line 101.
Use of uninitialized value in addition (+) at maq.pl line 286, <> line 101.
Use of uninitialized value in string ne at maq.pl line 286, <> line 102.
Use of uninitialized value in addition (+) at maq.pl line 286, <> line 102.
..............................
................................................."
So I tracked original code of maq.pl, and found that at line 286 was like this:
"$is_good = 0 unless ($t[4] >= $opts{q} || ($t[2] ne $t[9] && $t[4]+$t[10] >= $opts{q})); # consensus quality filter"
but for my input file, out.snp, it did not contain $t[9] and $t[10], it only had 9 columns. That's why the error happened.
Could anyone let me know how to solve this problem or what I did is wrong? Thanks.
I have run across a problem when I tried to filtered the out.snp file by using SNPfilter of Maq
So I test the Maq Demo, the same error happened again. Below is how I processed the analysis.
I used the command "perl maq.pl SNPfilter out.snp >out.filtered.snp", then error was reported:
"Use of uninitialized value in string ne at maq.pl line 286, <> line 59.
Use of uninitialized value in addition (+) at maq.pl line 286, <> line 59.
Use of uninitialized value in string ne at maq.pl line 286, <> line 60.
Use of uninitialized value in addition (+) at maq.pl line 286, <> line 60.
Use of uninitialized value in string ne at maq.pl line 286, <> line 62.
Use of uninitialized value in addition (+) at maq.pl line 286, <> line 62.
Use of uninitialized value in string ne at maq.pl line 286, <> line 101.
Use of uninitialized value in addition (+) at maq.pl line 286, <> line 101.
Use of uninitialized value in string ne at maq.pl line 286, <> line 102.
Use of uninitialized value in addition (+) at maq.pl line 286, <> line 102.
..............................
................................................."
So I tracked original code of maq.pl, and found that at line 286 was like this:
"$is_good = 0 unless ($t[4] >= $opts{q} || ($t[2] ne $t[9] && $t[4]+$t[10] >= $opts{q})); # consensus quality filter"
but for my input file, out.snp, it did not contain $t[9] and $t[10], it only had 9 columns. That's why the error happened.
Could anyone let me know how to solve this problem or what I did is wrong? Thanks.
Comment