![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bowtie Illumina paired end reads alignment | empyrean | Bioinformatics | 3 | 09-20-2011 09:51 AM |
Tophat paired end alignment. | adeslat | SOLiD | 5 | 08-07-2011 03:05 AM |
Bowtie output from paired end reads | godzilla07 | Bioinformatics | 0 | 01-06-2011 11:36 AM |
Bowtie output format | kevlim83 | Bioinformatics | 5 | 01-26-2010 01:28 PM |
how paired end alignment works? | totalnew | Bioinformatics | 8 | 04-27-2009 12:46 PM |
![]() |
|
Thread Tools |
![]() |
#1 |
Junior Member
Location: United Kingdom Join Date: Jan 2012
Posts: 2
|
![]()
Hi all,
I successfully used bowtie to perform some single end alignments. Now, I would like to perform some paired-end alignments using bowtie 2, and I am just wondering if I am oblige to use the SAM output format option. How will be the output if I don't specified this option? The manual only clearly mention the SAM output format. What is the best of the two possibilities. Many thanks |
![]() |
![]() |
![]() |
#2 |
David Eccles (gringer)
Location: Wellington, New Zealand Join Date: May 2011
Posts: 843
|
![]()
I think bowtie2 only outputs in SAM format. If you would prefer a sorted BAM (because of smaller file size and better searching), you can pipe through samtools:
Code:
bowtie2 -t -p 30 bowtie2_database -U reads_SE.fastq \ | awk '{if($12 != "XM:i:0"){print $0}}' | samtools view -S -b - | samtools sort -m 10000000000 - reads_SE_vs_database_bowtie2_default |
![]() |
![]() |
![]() |
#3 | |
Member
Location: Denver, CO Join Date: Mar 2011
Posts: 37
|
![]() Quote:
samtools view -SbF 4 - |
|
![]() |
![]() |
![]() |
#4 |
Senior Member
Location: San Diego Join Date: May 2008
Posts: 912
|
![]()
I think by default, bowtie won't return unampped reads anyway. But I think using samtools to filter is way easier than piping through awk. It's also a little faster if you add the -u to the samtools view command. It will make an uncompressed .bam. But since you are going to sort anyway, that'll get you to the sorted file a little faster, and once you have the sorted file, you won't need the unsorted one. sort will complain that the .bam doesn't look like it has the right EOF character, but it still works.
|
![]() |
![]() |
![]() |
#5 |
David Eccles (gringer)
Location: Wellington, New Zealand Join Date: May 2011
Posts: 843
|
![]() |
![]() |
![]() |
![]() |
Tags |
bowtie, bowtie 2, output, paired end, samtools |
Thread Tools | |
|
|