Skip to content
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

fastaRegexFinder #3

Open
bioinfo4321 opened this issue Jul 15, 2019 · 2 comments
Open

fastaRegexFinder #3

bioinfo4321 opened this issue Jul 15, 2019 · 2 comments

Comments

@bioinfo4321
Copy link

Hi, Perhaps it's not an issue but my lack of understanding of the syntax, but I am not able to perform fuzzy regex seatch with your script. The syntax I am using is
-r "(ATGC){e<=1}"

It is not reporting any hits, whereas both exact and fuzzy matches exist in my input. Exact match without {e<=1} works just fine. Thank you.

@dariober
Copy link
Owner

Hi- fastaRegexFinder uses the standard re package for parsing regular expressions and I don't think it supports fuzzy matches. However, I may have a look at replacing the re package with regex`. Can you post some examples of what you are trying to do? (It may be that regexes are not the best solution...)

@bioinfo4321
Copy link
Author

I want find patterns such as "ATGCGCAGAGCA" in whole genome fasta, get results by chromosome, start end. Your script pretty much does the job, except I want to allow mismatches (insetion, deletion or substitution) in the regex. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants