![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
samtools merge | frymor | Bioinformatics | 4 | 10-26-2011 05:12 AM |
samtools merge | nans_bn | Bioinformatics | 2 | 07-22-2011 04:45 AM |
Samtools Merge and rmdup | AvinashP | Bioinformatics | 2 | 06-28-2010 02:16 AM |
Samtools merge | wangzkai | Bioinformatics | 1 | 05-01-2010 01:35 PM |
samtools merge | bair | Bioinformatics | 4 | 03-05-2010 01:23 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: London Join Date: Jan 2010
Posts: 65
|
![]()
I'm going to merge > 50 alignment bam files (is it possible to merge this number of bam files?), it's too big,
thus I want to merge by chromosome. 1. samtools view -u file1.bam chr1 > chr1.file1.bam 2. samtools view -u file2.bam chr1 > chr1.file2.bam no problem to create the above two files. 3. samtools merge chr1.bam chr1.file1.bam chr1.bam [bam_header_read] EOF marker is absent. Since the merged file looks ok, What does this information mean? thanks |
![]() |
![]() |
![]() |
#2 |
Senior Member
Location: Boston Join Date: Feb 2008
Posts: 693
|
![]()
It means either a) you BAM is generated by an old version of samtools; or b) your BAM is truncated.
|
![]() |
![]() |
![]() |
#3 |
Member
Location: London Join Date: Jan 2010
Posts: 65
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Location: Pittsburgh, PA Join Date: May 2010
Posts: 22
|
![]()
Hi,
I am having the same problem as blair had when used samtools merge: [bam_header_read] EOF marker is absent. The input is probably truncated. I also followed the same steps 1. Files: bam1_sorted_indexed.bam, bam2_sorted_indexed.bam 2. Merge: samtools merge -u output.bam bam1_sorted.bam bam2_sorted.bam Merge files with no problem, but further running samtools on merged bam file such as samtools sort or samtools depth gives the above "EOF marker absent" warning, though it does produce the output. When using Picard I did not have such problem, but Picard seems to be not able to handle large eg. if bam1 >= 8G or bam2 >= 8G, where it breaks and gives runtime error. In those cases one might have to rely on samtools merge. Should I be concerned about the above warning samtools gives? |
![]() |
![]() |
![]() |
#5 |
Member
Location: Pittsburgh, PA Join Date: May 2010
Posts: 22
|
![]()
to add to the above
a) my bam files are generated by the same samtools version as the merged file and also for the sort and depth activities (0.1.18) b) my bam files are also not truncated since Picard can run fine |
![]() |
![]() |
![]() |
#6 | |
Senior Member
Location: San Diego Join Date: May 2008
Posts: 912
|
![]()
It might be the -u in your command line.
If you do something like this: Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|