Install the minorseq suite using bioconda, more info here.
One of the binaries is called fuse
.
Fuse operates on aligned records in the BAM format.
BAM files have to PacBio-compliant, meaning, cigar M
is forbidden.
Current scope of Fuse is creation of a high-quality consensus sequence. Fuse includes in-frame insertions with a certain distance to each other. Major deletions are being removed.
Fuse provides a FASTA file per input. Output file is provided by the second argument.
Simple example:
fuse m530526.align.bam m530526.fasta
Output: m530526.fasta