novo2sam-pl
Quick Start
- Command:
novo2sam.pl [-p] alignments.novo > alignments.sam - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/novo2sam.pl - Reference: See references/help.md
When To Use This Tool
- Convert legacy Novoalign output into SAM.
- Interpret mate relationships with
-pwhen the Novoalign output contains paired reads. - Preserve read sequence and quality while translating older Novoalign text into a SAM-compatible form.
- Handle gapped Novoalign variation strings without rewriting the entire conversion logic yourself.
Common Patterns
# 1) Convert single-end Novoalign output
novo2sam.pl \
alignments.novo > alignments.sam
# 2) Convert paired-end Novoalign output
novo2sam.pl \
-p \
paired_alignments.novo > paired.sam
# 3) Stream a filtered Novoalign file through the converter
grep -v '^#' alignments.novo | novo2sam.pl > alignments.sam
Recommended Workflow
- Confirm the input is Novoalign's legacy text alignment format rather than already-formed SAM/BAM.
- Enable
-ponly when the file contains paired reads in the expected alternating layout. - Convert to SAM, then inspect a few records for pairing flags, CIGAR strings, and sequence orientation.
- If you need non-unique or QC-failed rows preserved, verify the converter's filtering behavior before trusting the output.
Guardrails
- The script silently skips lines it considers QC/NM summary output and ignores alignments whose status field is not
U(unique), so it is not a lossless converter for all Novoalign record types. -pchanges mate interpretation only; it does not repair arbitrarily shuffled paired-end records.- Help comes from Perl
Getopt::Std, so--helpworks generically but-helpis the wrong pattern for this script family. - Output is plain SAM records without a SAM header.