Program to calculate and add the NM tag to a bam file
1
0
Entering edit mode
6.7 years ago
abascalfederico ★ 1.2k

Does anybody know of a program to add the NM tag (number of mismatches) to a BAM file?

Usually aligned BAM files come with that tag, but I've found one without it and need that information.

Thanks!

bam NM • 5.3k views
ADD COMMENT
0
Entering edit mode

Hello

I've created an alignment (SAM and subsequently BAM file) using samtools. However, when I'm trying to create an index out of the BAM file I get the following message:

[E::hts_idx_push] Region 536876664..536876746 cannot be stored in a bai index. Try using a csi index with min_shift = 14, n_lvls >= 6

I have no clue what that means so any help would be much appreciated

Thanks

ADD REPLY
3
Entering edit mode
6.7 years ago
trausch ★ 1.9k

samtools calmd <aln.bam> <ref.fasta>

ADD COMMENT
0
Entering edit mode

That's exactly what I needed, thanks!

ADD REPLY

Login before adding your answer.

Traffic: 2891 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6