![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert BAM file to FASTQ | malachig | Bioinformatics | 28 | 02-02-2016 04:04 AM |
How to put header back to .bam file? | eilosei | Bioinformatics | 6 | 02-06-2014 06:22 PM |
Are there any good ways to use SAMtools java API to convert .bam file into .txt file? | alextree | Bioinformatics | 8 | 01-24-2012 10:20 AM |
Picard's SortSam error with a merged bam file | tomato2 | Bioinformatics | 1 | 11-01-2011 10:18 PM |
How to convert Eland file to BAM or SAM? | fanshu | Bioinformatics | 0 | 10-31-2010 12:46 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: UK Join Date: Feb 2009
Posts: 33
|
![]()
I have got some illumina data in a a merged BAM file for a particular sample and I would like to convert it back to per lane data files (BAM or fastq) so it would be compatible with the analysis pipeline. Any ideas on the best way to do this?
|
![]() |
![]() |
![]() |
#2 |
David Eccles (gringer)
Location: Wellington, New Zealand Join Date: May 2011
Posts: 838
|
![]()
When I did this a few days ago (with only knowledge of command-line stuff and samtools), here's a rough guide to what I did:
There's probably some better way, but it would have taken longer for me to find than for me to just do it and deal with the additional overhead of storing temporary SAM files per lane. |
![]() |
![]() |
![]() |
#3 |
Senior Member
Location: Sweden Join Date: Mar 2008
Posts: 324
|
![]()
If the lane info is stored in RG tags you can use this: http://genome.sph.umich.edu/wiki/SplitBam
|
![]() |
![]() |
![]() |
#4 |
Member
Location: UK Join Date: Feb 2009
Posts: 33
|
![]()
SplitBam looks ideal, but I can't find a download link for it. Any ideas?
And thanks for the other suggestion too, that makes a lot of sense. --EDIT-- Actually it looks like there are no @RG in the headers ... Oh Dear. Last edited by danielsbrewer; 09-29-2011 at 02:03 AM. |
![]() |
![]() |
![]() |
#5 |
Junior Member
Location: California Join Date: Feb 2010
Posts: 3
|
![]()
I am trying to do the exact same thing and I do have @RG tags, but I can not find a download link for SplitBam. Does anyone know how to download this program?
Jason |
![]() |
![]() |
![]() |
#6 | ||
Senior Member
Location: USA, Midwest Join Date: May 2008
Posts: 1,178
|
![]() Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#7 | |
Junior Member
Location: Greece Join Date: Oct 2012
Posts: 2
|
![]() Quote:
splitBam is part of the bamUtil package, which i found it here https://github.com/Homebrew/homebrew-science and it was very easy to download it. |
|
![]() |
![]() |
![]() |
Tags |
bam, convert, lane |
Thread Tools | |
|
|