![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
sam to bam conversion error, no @SQ lines in the header, missing header? | efoss | Bioinformatics | 17 | 12-03-2015 05:28 AM |
Find unmapped read from sam/bam file | genelab | Bioinformatics | 9 | 03-18-2014 02:35 PM |
the header of SAM and BAM missing | dongshenglulv | Bioinformatics | 5 | 10-24-2011 12:44 AM |
.SAM to .BAM with SAM file header @PG | emilyjia2000 | Bioinformatics | 13 | 06-14-2011 01:21 PM |
Important fields of SAM file to be considered while compression | nadir | Bioinformatics | 0 | 03-29-2011 10:58 PM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: Germany Join Date: Dec 2009
Posts: 11
|
![]()
Dear all,
I have found the modification of SAM/BAM file headers quite cumbersome and time-consuming, so I wonder if it is planned to include an option into BWA to specify header fields before starting the alignment, or if there is a supereasy, superfast way of adding header lines to a SAM or BAM file without overwriting the beginning of the alignment? Currently I am splitting the output SAM file into header and alignment, modifying the header, and concatenating them back together. This needs about 15 minutes for a 40 million reads SAM-file, which seems a bit much knowing that I only want to add a couple of alignment info lines. Many thanks! |
![]() |
![]() |
![]() |
#2 |
Senior Member
Location: 41°17'49"N / 2°4'42"E Join Date: Oct 2008
Posts: 323
|
![]()
I don't think there are plans to incorporate that feature anytime soon. Feel free to email the mailing list.
Dump your alignments in BAM format and process the header with picard. You should reduce the processing time.
__________________
-drd |
![]() |
![]() |
![]() |
#3 |
Member
Location: Germany Join Date: Dec 2009
Posts: 11
|
![]()
Thanks for your advice!
|
![]() |
![]() |
![]() |
#4 |
Member
Location: Toulouse Join Date: Nov 2008
Posts: 21
|
![]()
Hello
did you try "samtools reheader"? Never used, but seems to do what you want Gerald |
![]() |
![]() |
![]() |
Thread Tools | |
|
|