Question: BAM files just say "sample_ID"
0
gravatar for marcus.hooker
9 months ago by
marcus.hooker0 wrote:

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.

snp samtools bam • 204 views
ADD COMMENTlink written 9 months ago by marcus.hooker0
1

See as inspiration:

Bam Header Edit

Bam header editing

Some script including GNU parallel will probably help.

ADD REPLYlink modified 9 months ago • written 9 months ago by ATpoint34k

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

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

ADD REPLYlink modified 9 months ago • written 9 months ago by genomax83k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1777 users visited in the last hour