BAM files just say "sample_ID"
0
0
Entering edit mode
4.7 years ago

None of my BAM files have a correct sample ID in their header, they all literally say "sample_ID"

I didn't catch this until after SNP calling. How can I get the BAM headers to have the name of the sample that they are? I have over 2,000 BAM files.

bam snp samtools • 578 views
ADD COMMENT
1
Entering edit mode

See as inspiration:

Bam Header Edit

Bam header editing

Some script including GNU parallel will probably help.

ADD REPLY
0
Entering edit mode

Yikes ...............

Did the original file names have this information? You could perhaps samtools reheader the files in that case.

ADD REPLY

Login before adding your answer.

Traffic: 2004 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