![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
SOLiD paired-end read analysis with BFAST 0.7.0a | idonaldson | Bioinformatics | 4 | 03-20-2012 09:31 PM |
Using Bfast to align paired end Illumina reads | gavin.oliver | Bioinformatics | 14 | 01-14-2012 07:51 AM |
BFAST mapping paired end reads. | tanghz | Bioinformatics | 10 | 04-29-2011 07:29 AM |
How to map SOLiD paired end reads by Bfast | beliefbio | Bioinformatics | 1 | 12-29-2010 01:55 AM |
BFAST indexing for 50+36 SOLiD paired end? | krobison | Bioinformatics | 6 | 11-02-2010 06:25 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Senior Member
Location: Germany Join Date: May 2010
Posts: 101
|
![]()
I'm using BFAST with BWA (version 0.6.4e) on SOLiD paired end reads (read1: 50 bp, read2: 35 bp). So far, these steps work nicely (thanks to help from the BFAST team) and quite fast:
find CALs separately for the 50 bp ends: bfast match -n 4 -t -f $REF -A 1 -z -T $TEMPDIR -r reads_r1.fastq > reads_r1.bmf and for the 35 bp ends: bfast bwaaln -c $REF reads_r2.fastq > reads_r2.bmf bring them together: bfast localalign -f $REF -1 reads_r1.bmf -2 reads_r2.bmf -A 1 -t -U -n 8 > reads.baf But the postprocess step, which was done in a few minutes for single end, can take > 100 hours on 16 CPUs for 50 Mio read pairs: bfast postprocess -f $REF -i reads.baf -a 3 -A 1 -R -z -t -n 16 > reads.sam Also, the reported values seem quite strange to me. Often there are negative means and large standard deviations, e.g. ********************************************************* Estimating paired end distance... Used 7438 paired end distances to infer the insert size distribution. The paired end distance range was from -10240 to 2847. The paired end distance mean and standard deviation was -5413.80 and 4928.88. The inversion ratio was 0.999866 (7437 / 7438). Reads processed: 2700000 ********************************************************* Estimating paired end distance... Used 9477 paired end distances to infer the insert size distribution. The paired end distance range was from -4985 to 1899. The paired end distance mean and standard deviation was -1038.24 and 2097.46. The inversion ratio was 0.999894 (9476 / 9477). Reads processed: 2750000 ********************************************************* ********************************************************* Estimating paired end distance... Used 9925 paired end distances to infer the insert size distribution. The paired end distance range was from -17 to 7508. The paired end distance mean and standard deviation was 110.48 and 79.03. The inversion ratio was 1.000000 (9925 / 9925). Reads processed: 2800000 ********************************************************* If I use -g for gapped rescue it's even slower. (By the way, where to find the documentation how gapped rescue works?) For the whole set, ABI BioScope could map 34% as proper pairs, 42% of the reads were unmapped, and it reported Insert range 94-206. I split the data set for BFAST and from the 2 parts that finished, least 60% mapped but <20% in proper pairs. Am I doing something wrong? Or might it be because of bad read quality? Any help will be very much appreciated. Barbara |
![]() |
![]() |
![]() |
#2 |
Nils Homer
Location: Boston, MA, USA Join Date: Nov 2008
Posts: 1,285
|
![]()
Deep breath, you're doing nothing wrong.
I am not sure (yet) how much read-rescue helps on this type of data. I released this feature early, even though it might not add value and considerably slow down the process. You can turn it off if it is not working. |
![]() |
![]() |
![]() |
#3 |
Senior Member
Location: Germany Join Date: May 2010
Posts: 101
|
![]()
Thanks Nils.
Now I found the bfast git version with additional parameters and run bfast postprocess -f $REF -i reads.baf -a 3 -A 1 -R -z -v 160 -s 20 -S 4.0 > reads.sam This results in a tremendous speedup compared to version 0.6.4e with options -a 3 -A 1 -R -z (more than 20 times faster) and even finds more pairs - definitively an improvement! However, I'm confused that the reported insert sizes are all negative. Example: 2221_1132_511 99 chrX 141904000 255 50M = 141904140 -106 ATTTATCATGATTAACACCATTGTCTTCATTGTATATTTTCTAAGCTGCT ````````````````````````````````````````````````^; PG:Z:bfast AS:i:2500 MQ:i:255 NM:i:0 NH:i:1 IH:i:1 HI:i:1 MD:Z:50 CS:Z:T33003321312303011101301122021301133330002230232132 CQ:Z:BBBBBB@A?B5BBABA@@@BA@A>BBB?;BB=B=BAB=??@?B9@@A?:; CM:i:0 XA:i:3 XE:Z:-------------------------------------------------- 2221_1132_511 147 chrX 141904140 255 35M = 141904000 -106 ACCAGAAGCGTCTCTGATTCTGGGTGAGCAGTGAC 9W0")""^]`)"XX_()`_``^UZ`53```````` PG:Z:bfast AS:i:1000 MQ:i:255 NM:i:0 NH:i:0 IH:i:1 HI:i:1 MD:Z:35 CS:Z:T11211213211100122031122211332121301 CQ:Z:BB?A?BBB@.B?2:;B9=@8?7879A7=8>1)&59 CM:i:6 XA:i:3 XE:Z:--31-1----1----1---------1--------- Result from version 0.6.4e: 2221_1132_511 99 chrX 141904000 255 50M = 141904140 140 ATTTATCATGATTAACACCATTGTCTTCATTGTATATTTTCTAAGCTGCT ````````````````````````````````````````````````^; PG:Z:bfast AS:i:2500 MQ:i:255 NM:i:0 NH:i:1 IH:i:1 HI:i:1 MD:Z:50 CS:Z:T33003321312303011101301122021301133330002230232132 CQ:Z:BBBBBB@A?B5BBABA@@@BA@A>BBB?;BB=B=BAB=??@?B9@@A?:; CM:i:0 XA:i:3 XE:Z:--------------------------------------------------""" """2221_1132_511 147 chrX 141904140 255 35M = 141904000 -140 ACCAGAAGCGTCTCTGATTCTGGGTGAGCAGTGAC 9W0")""^]`)"XX_()`_``^UZ`53```````` PG:Z:bfast AS:i:1000 MQ:i:255 NM:i:0 NH:i:0 IH:i:1 HI:i:1 MD:Z:35 CS:Z:T11211213211100122031122211332121301 CQ:Z:BB?A?BBB@.B?2:;B9=@8?7879A7=8>1)&59 CM:i:6 XA:i:3 XE:Z:--31-1----1----1---------1--------- Obviously postprocess now calculates the isize differently than before, but for consistency it should still be positive for one read of the pair. samtools flagstat does not complain, other tools might. Edit: I just noticed that some reads labeled as "proper pairs" (flag 67) have insert sizes up to 200 Mio bp. How comes?! Looking forward to bfast 0.6.4f (or will there be bfast v1.0 ?) Barbara Last edited by epigen; 10-07-2010 at 09:58 AM. Reason: detected weird proper pairs |
![]() |
![]() |
![]() |
#4 |
Nils Homer
Location: Boston, MA, USA Join Date: Nov 2008
Posts: 1,285
|
![]()
Thank-you for reporting it, I will take a look since it is probably a bug. I am on vacation for a few days for [Canadian] Thanksgiving!
As for the 1.0 release, it's like google software (for the most part): always in beta. |
![]() |
![]() |
![]() |
#5 |
Senior Member
Location: Germany Join Date: May 2010
Posts: 101
|
![]()
Sorry to ask again, but have you found the bug(s)? Especially the one causing "properly paired" reads with insert sizes of several 100 Mio bp is weird considering the lengths of the human chromosomes ...
|
![]() |
![]() |
![]() |
#6 | |
Nils Homer
Location: Boston, MA, USA Join Date: Nov 2008
Posts: 1,285
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#7 | |
Junior Member
Location: Vancouver Join Date: Dec 2010
Posts: 5
|
![]()
I have the same problem . Below is the alignment result:
20000000 in total 0 QC failure 0 duplicates 8331480 mapped (41.66%) 20000000 paired in sequencing 10000000 read1 10000000 read2 3581888 properly paired (17.91%) 3833680 with itself and mate mapped 4497800 singletons (22.49%) 241894 with mate mapped to a different chr 221791 with mate mapped to a different chr (mapQ>=5) Because I'm new to NGS, I'm wondering if the above results reasonable.Thank you. Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Senior Member
Location: 41°17'49"N / 2°4'42"E Join Date: Oct 2008
Posts: 323
|
![]()
@jerry-cs Is this data from a 50+25 PE run? These are only 5 millions reads do you see those number across the whole run? bfast does not do very well with 25bp reads. That's what the bfast+bwa branch(git) is for.
__________________
-drd |
![]() |
![]() |
![]() |
#9 |
Junior Member
Location: Vancouver Join Date: Dec 2010
Posts: 5
|
![]()
Hi Drio, thank you. The reads are from a 50+35 PE run (The F3 reads have 50 bases, while the F5-P2 reads are 30 bases long). In addition, the localalign step also takes much time.
|
![]() |
![]() |
![]() |
#10 |
Member
Location: Spain Join Date: Jul 2010
Posts: 68
|
![]()
Dear all using bfast bwaaln,
I have a related question; in fact I am running an experiment similar to the one that epigen described, that is paired end SOLiD reads of 50+25 lenght. For bfast match, I split the 50-reads in several files containing each 10 Mio reads, as recommended. However, I am not sure, whether I can do the same with the 25-reads for bfast bwaaln, run bfast bwaaln separately for each reads fragment and put them all together again in the locaalign step? When using one single fastq file containing all the reads (105 Mio) this step seems to take a long time (2 days and still running). Any comments will be appreciated. Thanks, Sophia |
![]() |
![]() |
![]() |
#11 | |
Senior Member
Location: Germany Join Date: May 2010
Posts: 101
|
![]() Quote:
bfast localalign -f $REF -1 longreads.1.bmf -2 shortreads.1.bmf -A 1 -t -U -n 8 > local.1.baf Then I run postprocess, convert the sam into a sorted bam, and at the end merge all bam files. I also see that localalign is the most time-consuming step, it takes up to 4 days on 8 CPUs for 50 Mio read pairs. (I have >500 read pairs for each slide.) Next I'll try using -M 200 to see if that results in a speedup. |
|
![]() |
![]() |
![]() |
#12 | |
Member
Location: Spain Join Date: Jul 2010
Posts: 68
|
![]() Quote:
cheers, Sophia |
|
![]() |
![]() |
![]() |
#13 |
Member
Location: USA Join Date: Apr 2011
Posts: 21
|
![]()
I'm having the same problem of having very slow speed in the postprocess step (mated-pair end Solid sequences of 50bp each). My testing data set is only 5000 pairs of sequences. but it took a long time to run the postporcess step. Is there a bug for the mated-pair end?
Also, in #3 posts, it uses -v option, but those options are not mentioned in the manual. Can anyone let me know what it means? Thanks! |
![]() |
![]() |
![]() |
#14 |
Nils Homer
Location: Boston, MA, USA Join Date: Nov 2008
Posts: 1,285
|
![]()
What options are you using and what version of BFAST?
|
![]() |
![]() |
![]() |
#15 |
Member
Location: USA Join Date: Apr 2011
Posts: 21
|
![]()
Thanks for replying.
I'm using "Version: 0.6.5a git:Revision: undefined$" Here is the command line I used for postprocess: bfast postprocess -f reference.fa -A 1 -O 1 -i bfast.aligned_subset.baf >bfast_subset.sam It took about 1 hour to finish this (using 1 CPU), with 5000 pairs. Memory usage is <2G while the system has 48G memory. Some output from the BFAST: ************************************************************ Postprocessing... ************************************************************ Estimating paired end distance... Used 2478 paired end distances to infer the insert size distribution. The paired end distance range was from -12772 to 8032. The paired end distance mean and standard deviation were -2466.06 and 3543.15. The inversion ratio was 0.004036 (10 / 2478). Reads processed: 5000 ************************************************************ Reads processed: 5000 Alignment complete. ************************************************************ Found 178 reads with no ends mapped. Found 491 reads with 1 end mapped. Found 4331 reads with 2 ends mapped. Found 4822 reads with at least one end mapping. ************************************************************ Terminating successfully! ************************************************************ Last edited by NanYu; 05-07-2011 at 05:20 AM. |
![]() |
![]() |
![]() |
#16 |
Nils Homer
Location: Boston, MA, USA Join Date: Nov 2008
Posts: 1,285
|
![]()
Try using the "-U" option.
|
![]() |
![]() |
![]() |
#17 |
Member
Location: USA Join Date: Apr 2011
Posts: 21
|
![]()
with the -U option added, it finished within 1 min!
but it means BFAST will not consider the results for "mated-pair". How much it will affect the final result (compared with not using -U option)? If I use the -U option, may I use the SAMTools or other software to further filter the result before SNP discovery? Thanks! |
![]() |
![]() |
![]() |
#18 | ||
Nils Homer
Location: Boston, MA, USA Join Date: Nov 2008
Posts: 1,285
|
![]() Quote:
Quote:
I am not sure why you are concerned. Did you look at the data and see something odd? |
||
![]() |
![]() |
![]() |
#19 |
Senior Member
Location: Sweden Join Date: Mar 2008
Posts: 324
|
![]()
The problem seems to be the estmation of distances and standar deviations. If you set these parameters it will be much faster.
|
![]() |
![]() |
![]() |
#20 | |
Member
Location: USA Join Date: Apr 2011
Posts: 21
|
![]() Quote:
I'm wondering in the postprocess step, if BFAST will do something like: choose the best for F and second best for R within a pair because that is within the expected distance, yet the best for R is in another chromsome. I know it is a rare scenario and maybe I should not worry about it. ![]() |
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|