hi all

I'm changing part of the header in a number of bam files.
however, after I do that, the resulting bam file is truncated....

I used the following code:

samtools view -H file.bam | grep  'SN:X\|^@RG\|^@PG\|^@HD' | samtools
reheader - file.bam > bam_final/new_name.bam

and
samtools view -h bam_final/new_name.bam
gives me

[main_samview] truncated file.

right after the new header....


any idea how to fix this?

thanks
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Samtools-help mailing list
Samtools-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/samtools-help

Reply via email to