-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
finding all alignments within the string #202
Comments
All suboptimal alignments are reported up to the specified distance
criteria in the arguments described in the help section. Note that if a
query is very long, shorter alignments that have a high probability of
occurring randomly will not be reported.
Regards,
Ed
Ed Wachtel
(917) 573-7591
…On Fri, Mar 18, 2022 at 10:19 PM Mehdi Borji ***@***.***> wrote:
Is there a way to report all alignments up to the distance requested? For
example if I have an alignment with distance of 1 in the beginning of a
query I prefer than to an alignment with distance of 0 somewhere else. The
solution I can think of is have moving window across the query however I
believe these suboptimal alignments are already found but just not
reported. Something like would be very useful for trimming trailing or
leading strings from a longer one.
—
Reply to this email directly, view it on GitHub
<#202>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGITCHBCJTEEDSJSOSQI7ELVAU2SLANCNFSM5RDKXKLQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thank you @ewachtel for your response. Is this feature also part of the python wrapper?
|
I was thinking of a different project. Actually, I am not the right person
to discuss edlib (I did not author it)
Ed Wachtel
(917) 573-7591
…On Sun, Mar 20, 2022 at 2:16 PM Mehdi Borji ***@***.***> wrote:
Thank you @ewachtel <https://github.com/ewachtel> for your response. Is
this feature also part of the python wrapper?
Here's an example where I introduce one mismatch in my query and edlib
fails to report it because a perfect alignment exists elsewhere:
C='GTGTGCTCTTCCGATCT'
V='TCTTCAGCGTTCCCGAGA'
my_string=2*C+V+C+'A'+V[1:]+C
edlib.align(V, my_string,'HW','locations',1)
{'editDistance': 0,
'alphabetLength': 4,
'locations': [(34, 51)],
'cigar': None}
—
Reply to this email directly, view it on GitHub
<#202 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGITCHAO5MDA3WVVJGLJ5QLVA5TRBANCNFSM5RDKXKLQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Did you find anyway to solve this problem? @mehdiborji |
Hey @cherryamme @mehdiborji ! |
Is there a way to report all alignments up to the distance requested? For example if I have an alignment with distance of 1 in the beginning of a query I might prefer that to an alignment with distance of 0 somewhere else.
The solution I can think of is to have a moving window across the query; however, I believe these suboptimal alignments are already found but just not reported. Something like this would be very useful for trimming trailing or leading strings from a longer one.
The text was updated successfully, but these errors were encountered: