Hi there,
I am currently trying to use different aligners for metagenomic short/medium sequences and SAM seems to be a good intermediate format for my analyses. For sensitivity reasons my current reference is based on Blast but I cannot convert any blast result file into SAM format.
The perl script contained in the samtools release 0.1.17 called blast2sam.pl does not really work and isn't very informative. Anybody has experience with Blast and samtools? I tried different blast output formats but found none of them working.
-------------------------------------------------------------------------
> blast2sam.pl test.blastn
Use of uninitialized value $qend in subtraction (-) at /local/programs/samtools/blast2sam.pl line 58, <> line 1823.
Use of uninitialized value $qlen in subtraction (-) at /local/programs/samtools/blast2sam.pl line 58, <> line 1823.
Use of uninitialized value in substr at /local/programs/samtools/blast2sam.pl line 63, <> line 1823.
Use of uninitialized value in concatenation (.) or string at /local/programs/samtools/blast2sam.pl line 63, <> line 1823.
Use of uninitialized value in bitwise and (&) at /local/programs/samtools/blast2sam.pl line 65, <> line 1823.
Use of uninitialized value $sam in join or string at /local/programs/samtools/blast2sam.pl line 72, <> line 1823.
Use of uninitialized value $sam in join or string at /local/programs/samtools/blast2sam.pl line 72, <> line 1823.
Use of uninitialized value $sam in join or string at /local/programs/samtools/blast2sam.pl line 72, <> line 1823.
255 M * 0 0 * *
I am currently trying to use different aligners for metagenomic short/medium sequences and SAM seems to be a good intermediate format for my analyses. For sensitivity reasons my current reference is based on Blast but I cannot convert any blast result file into SAM format.
The perl script contained in the samtools release 0.1.17 called blast2sam.pl does not really work and isn't very informative. Anybody has experience with Blast and samtools? I tried different blast output formats but found none of them working.
-------------------------------------------------------------------------
> blast2sam.pl test.blastn
Use of uninitialized value $qend in subtraction (-) at /local/programs/samtools/blast2sam.pl line 58, <> line 1823.
Use of uninitialized value $qlen in subtraction (-) at /local/programs/samtools/blast2sam.pl line 58, <> line 1823.
Use of uninitialized value in substr at /local/programs/samtools/blast2sam.pl line 63, <> line 1823.
Use of uninitialized value in concatenation (.) or string at /local/programs/samtools/blast2sam.pl line 63, <> line 1823.
Use of uninitialized value in bitwise and (&) at /local/programs/samtools/blast2sam.pl line 65, <> line 1823.
Use of uninitialized value $sam in join or string at /local/programs/samtools/blast2sam.pl line 72, <> line 1823.
Use of uninitialized value $sam in join or string at /local/programs/samtools/blast2sam.pl line 72, <> line 1823.
Use of uninitialized value $sam in join or string at /local/programs/samtools/blast2sam.pl line 72, <> line 1823.
255 M * 0 0 * *
Comment