![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extract reference and aligned sequences from BAM file basing on VCF file | floem7 | Bioinformatics | 3 | 01-19-2015 04:08 AM |
RG tags in merged BAM files, muliple lanes one sample | cow_girl | Bioinformatics | 17 | 08-28-2013 12:28 AM |
Extract aligned reads from a BAM file above a certain threshold | The Snow | Bioinformatics | 4 | 07-29-2013 03:02 AM |
FastQ to aligned BAM file Question - Galaxy | Zapages | Bioinformatics | 4 | 05-27-2013 11:09 AM |
Extract aligned sequence coordinates from SAM or BAM file | pirates.genome | Bioinformatics | 5 | 08-20-2012 09:06 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: New York NY Join Date: May 2015
Posts: 24
|
![]()
Hi all,
I aligned paired end exome seq R1 and R2 fastq files separately as single end reads. Then I combined two resultant bam files using samtools cat and then sorted them by sequence. However, this would obviously not enable pairing / not change the flags for paired reads. Any suggestions how to enable pairing of the reads in the file ? |
![]() |
![]() |
![]() |
#2 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,080
|
![]()
Aligning sequences in pairs provides spatial context to aligners (not sure which one you used). Just do the alignment again this time using both reads. You can then merge the resulting bam files if the same sample ran in more than one lane.
|
![]() |
![]() |
![]() |
#3 |
Member
Location: New York NY Join Date: May 2015
Posts: 24
|
![]()
I used bowtie2
I have two separate bam files. If i understand your suggestion correctly, i align those files (converting them to fastq) and run the paired reads alignment. right ? |
![]() |
![]() |
![]() |
#4 |
Super Moderator
Location: Walnut Creek, CA Join Date: Jan 2014
Posts: 2,707
|
![]()
Ignore your aligned bam files, and start over with the original fastq files. Align them together at the same time, telling the aligner to use them as R1 and R2 of pairs. That will generate a single paired sam/bam output file that you should subsequently use.
|
![]() |
![]() |
![]() |
#5 |
Member
Location: New York NY Join Date: May 2015
Posts: 24
|
![]()
That is for sure a normal practice. I am wondering why sometimes single read alignment yields better alignment rate compared to paired end alignment ?
|
![]() |
![]() |
![]() |
#6 |
Super Moderator
Location: Walnut Creek, CA Join Date: Jan 2014
Posts: 2,707
|
![]()
I've never seen that happen, and there is no reason it should happen. If it does, it probably indicates a problem with the alignment program.
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|