Hi,
I have been using the novoalign to align short reads. So far I have been using the native output of the novoalign
for all of my work. But now I need to do something for which there are better and elegant tools available from the community. I would like to harness this collective intelligence in my work. But my bottle-neck is in converting the native novoalign
output to SAM/BAM. Is there a simple way to do this?
It seems that
novoalign
comes with a helper script callednovo2sam.pl
. This pretty much does the trick.As a note for future reference,
novo2sam.pl
does not produce a header in the SAM file, which might be annoying forsamtools
. See the last post by colin here for a workaround to add the header afterwards.I have some novoalign files I need to convert to sam and, although the novo2sam.pl script works, the link above is dead. No headers = no samtools = no luck!
Since the link above is dead, I have produced a modified version of novo2sam.pl that allows a header to be added to the files, using the option -h <header.txt>. Please note that header.txt is written verbatim to the beginning of the novo2sam.pl output and it is up to the user to ensure that it is complete and matches the input. The modified script is available at https://github.com/adadiehl/novo2sam