Bowtie2 exact match with one ambiguous character
1
0
Entering edit mode
7.4 years ago

Hi everyone, I am trying to align a short sequence (23nt) using Bowtie2. My goal is to find an exact match except for one ambiguous character (N) in the sequence, for example CCNGTGGGTTAGA. I used --score-min 'C,0,-1' but I think this causes a problem with accepting the N (since the ambiguous character is not a "match"). Any ideas? Thanks!

alignment bowtie2 • 1.9k views
ADD COMMENT
0
Entering edit mode
7.4 years ago

You can do this with BBMap:

bbmap.sh in=query.fa ref=ref.fa out=mapped.sam strictmaxindel=0 subfilter=0 k=11

This requires all bases to match except the ambiguous one. Depending on the kind of output you need you can also do similar things with BBDuk.

ADD COMMENT
0
Entering edit mode

Thanks Brian! I will look into BBMap. Nurit.

ADD REPLY

Login before adding your answer.

Traffic: 2193 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6