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

BUG: -p (palindromic matches) and -e (edit distance) features have strange relationship. #5

Open
alexlenail opened this issue Jan 11, 2020 · 2 comments

Comments

@alexlenail
Copy link

alexlenail commented Jan 11, 2020

It seems the -p (palindromic matches) and -e (edit distance) features are incompatible.

$ vmatch -l 15 -d index     ## length 15, direct matches
--> 5 matches
$ vmatch -l 15 -d -e 5 index    ## length 15, matches up to edit distance of 5
--> 661435 matches

$ vmatch -l 15 -p index     ## length 15, palindromic (i.e. reverse complement) matches
--> 3 matches
$ vmatch -l 15 -p -e 5 index    ## length 15, palindromic matches up to edit distance of 5
--> 0 matches

Am I making a mistake with the syntax?

@alexlenail alexlenail changed the title BUG: -p (palindromic matches) and -e (edit distance) features are incompatible. BUG: -p (palindromic matches) and -e (edit distance) features have strange relationship. Jan 11, 2020
@alexlenail
Copy link
Author

alexlenail commented Jan 11, 2020

I've narrowed in on this rather peculiar issue:

vmatch -l 15 -p -e 2 index
--> 765 matches

vmatch -l 15 -p -e 3 index
--> 0 matches
vmatch -l 10 -p -e 1 index
--> 765 matches

vmatch -l 10 -p -e 2 index
--> 0 matches
vmatch -l 20 -p -e 3 index
--> 62 matches

vmatch -l 20 -p -e 4 index
--> 0 matches

There is some relationship between -l and -p -- only some ranges are searchable.

@alexlenail
Copy link
Author

There seems to be a relationship between whether this search is allowed, and the prefixlength (-pl) set during mkvtree: decreasing the prefixlength from 5 to 3 allowed me to get results for the query:

vmatch -l 18 -p -e 5 index

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

1 participant