![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
bowtie error: extra parameters specified | BioSlayer | Bioinformatics | 1 | 10-07-2011 11:38 AM |
Wrong of Tophat's bowtie parameters, a bug | chenyao | Bioinformatics | 3 | 08-23-2011 06:06 AM |
Tophat's bowtie parameters | deepsea | Bioinformatics | 11 | 07-14-2011 06:14 PM |
BWA, BOWTIE: what parameters for different analysis (ChIP, RNA, miRNA etc) | dukevn | Bioinformatics | 2 | 08-12-2010 10:57 AM |
Recommended Bowtie Parameters | agc | SOLiD | 0 | 05-10-2010 04:44 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: Oslo Join Date: Dec 2010
Posts: 15
|
![]()
I'm new in next generation sequencing, and I use Bowtie for the first time. Is there someone that know how to get only the sequences that only have one match? I tried this command.
bowtie hg19 -q input.fastq -m 1 --best --strata --all -S bowtie_out. I also tried without the --all command but both gave equal numbers of hits. Thanks ![]() |
![]() |
![]() |
![]() |
#2 | |
Member
Location: Beijing Join Date: Jul 2010
Posts: 33
|
![]() Quote:
Last edited by xinwu; 12-16-2010 at 01:33 AM. |
|
![]() |
![]() |
![]() |
#3 |
Member
Location: Oslo Join Date: Dec 2010
Posts: 15
|
![]()
So it will work without the m 1 command?
|
![]() |
![]() |
![]() |
#4 |
Senior Member
Location: Cambridge, UK Join Date: Sep 2009
Posts: 625
|
![]()
Indeed, -m 1 will remove all alignments with more than 1 valid alignment meaning --best --strata --all won't have any effect on the alignment results.
|
![]() |
![]() |
![]() |
#5 |
Member
Location: Beijing Join Date: Jul 2010
Posts: 33
|
![]()
fkrueger is right. Other options make no sense since you set m option with 1.
|
![]() |
![]() |
![]() |
#6 |
Member
Location: Beijing Join Date: Jul 2010
Posts: 33
|
![]() |
![]() |
![]() |
![]() |
#7 |
Member
Location: Oslo Join Date: Dec 2010
Posts: 15
|
![]()
So the conclusion is to use this parameters:
bowtie hg19 -q input.fastq -m 1 -S bowtie_out but isn't this the same as bowtie hg19 -q input.fastq -m 1 --best --strata --all -S bowtie_out if the m 1 would overwrite the other parameters? |
![]() |
![]() |
![]() |
#8 |
Senior Member
Location: Cambridge, UK Join Date: Sep 2009
Posts: 625
|
![]()
They should do exactly the same thing, yes (as you mentioned yourself omitting --all does not change anything). If you want only absolutely unique sequences, -m 1 is the way to go.
However as you do not specify any other options, bowtie will by default use a seed length of 28 bp and allow 2 mismatches in the seed, plus allow more mismatches after that. Depending on your read length you might want to chose somewhat more stringent mapping parameters so that -m 1 does not remove too many reads (such as -m 1 -l 36 -n 1 or similar). Best wishes |
![]() |
![]() |
![]() |
#9 |
Member
Location: Oslo Join Date: Dec 2010
Posts: 15
|
![]()
Thanks
I think it's strange ; it doesn't seem like it is unique sequences. The read length is 50 bp. Do you think I should have changed the other parameters then? I should use the parameters best and strata? |
![]() |
![]() |
![]() |
#10 |
Senior Member
Location: Cambridge, UK Join Date: Sep 2009
Posts: 625
|
![]()
This depends a bit on your application. If you just want to look at mapped positions for peak calling or something similar it is probably not necessary to remove everthing that has another match somewhere else in the genome, albeit with one or a few mismatches. for example you might encounter the case that you get a perfect 50bp match for your sequence of interest, and another match somewhere else which has say 3 mismatches. Using --best you could report the best alignment, however -m 1 would remove the sequence completely as it has more than one valid alignment (even though one has no mismatches and the other one has got 3 mismatches). Reporting the best sequence or a few of them (with the -k <int> option) will probably require some extra filtering afterwards, whereas -m 1 is a quick and safe option for absolutely unique matches.
Just try a few parameters and look at the alignment stats, sequences removed due to -m and so on until you are happy with the outcome. |
![]() |
![]() |
![]() |
#11 |
Senior Member
Location: Cambridge, UK Join Date: May 2010
Posts: 311
|
![]()
Consider also that if have a read that has 1 match with 0 errors plus, say, 3 additional matches with 1 error than:
"-m 1 --best --strata" will report the match with 0 errors (because the match is unique in the best error stratum) While: "-m 1" or "-m 1 --best" will suppress all the alignments and report the read as unmapped. So "-m 1" without "--best --strata" gives the strongest guarantee that a match is unique, although in my opinion it is too conservative. Please correct me if I'm wrong... Dario |
![]() |
![]() |
![]() |
#12 | |
Member
Location: Beijing Join Date: Jul 2010
Posts: 33
|
![]() Quote:
I dislike the concept of "strata", it is not flexible at all comparing to map/alignment quality. I wonder why bowtie can not output something like "map quality". One more thing is "unique" read depends on your criteria, the number of mismatch you set also takes an effect on that. In your case, if you set number of mismatch to 0 and m to 1, the latter two alignments are not valid at all, bowtie will report it as a "unique" read; if you set it to 1 and m to 1, without "best and strata" option, bowtie will not report it at all, of course will not think it as a "unique" read also. Last edited by xinwu; 12-16-2010 at 10:27 PM. |
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|