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

fxtract hits headers that are the exact reverse of query #8

Closed
geronimp opened this issue Aug 6, 2015 · 3 comments
Closed

fxtract hits headers that are the exact reverse of query #8

geronimp opened this issue Aug 6, 2015 · 3 comments

Comments

@geronimp
Copy link

geronimp commented Aug 6, 2015

Hey,

I ran into the following issue, simplified here:

$ fxtract -c -H -X 1660334 reads.fa
2

where reads.fa contains:

>1660334
CTAGTGATTAGAGTTTGATCCTGGCTCAGGATGAACGCTGGCGGCGTGCTTAACACATGCAAGTCGAACGGAAAGGCCCAAGCTTGCTTGGGTACTCGAGTGGCGAACG
>4330661
GTCACTGCTATTGGGATTCGACTAAGCCATGCGAGTCGAGAGGGTTCGGCCCTCGGCTGACGGCCCAGTAACACGTGGATAATCTACCCTAAGGCGGAGGATAATCTCG

I only want the seq with the header 1660334. Notice the second hit, 4330661, is the exact inverse of 1660334.

Am I missing a flag that stops this from occuring?

Thanks

@ctSkennerton
Copy link
Owner

Ah, this is left over from an old "feature" of fxtract where searching for a sequence would also search for its reverse complement. I didn't think that it still did this. Obviously a bug, I'll fix it soon as there is no work around currently

ctSkennerton added a commit that referenced this issue Aug 6, 2015
The patterns were getting reversed (and complemented) even when
the -r flag was not set
@ctSkennerton
Copy link
Owner

Should be fixed with new version 2.1

@geronimp
Copy link
Author

geronimp commented Aug 7, 2015

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