maq2sam-long
Quick Start
- Command:
maq2sam-long reads.map [readGroup] > reads.sam - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/maq2sam-long - Reference: See references/help.md
When To Use This Tool
- Convert legacy MAQ
.mapalignment output into SAM. - Preserve an older MAQ-based alignment result while moving it into current SAM/BAM tooling.
- Attach a simple trailing read-group label when you need to distinguish converted cohorts.
- Use this specific binary for the MAQ long-map flavor rather than the short-map variant.
Common Patterns
# 1) Convert a MAQ long-map file to SAM
maq2sam-long \
reads.map > reads.sam
# 2) Add a read-group label during conversion
maq2sam-long \
reads.map RG1 > reads.rg.sam
# 3) Convert then hand off to samtools
maq2sam-long \
reads.map > reads.sam
samtools view -bS reads.sam > reads.bam
Recommended Workflow
- Confirm the input really is the MAQ long-map flavor before choosing this binary.
- Decide whether you want to attach the optional trailing read-group label during conversion.
- Convert to SAM, then inspect a few records before turning the file into BAM or mixing it with other alignments.
- Keep the original
.mapfile because these legacy converters expose almost no self-describing metadata.
Guardrails
maq2sam-longdoes not implement real--helpor--version; those strings are treated like filenames and trigger usage text only after a file-open failure.- The optional second positional argument is just a trailing read-group label, not a full SAM
@RGheader definition. - Use the long-map converter only for the matching MAQ map flavor; the usage text does not autodetect the correct variant for you.
- Output is plain SAM records and should be inspected before downstream compression or merging.