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

seqkit grep output unexpected results #511

Open
ZedekiahZhou opened this issue Feb 12, 2025 · 3 comments
Open

seqkit grep output unexpected results #511

ZedekiahZhou opened this issue Feb 12, 2025 · 3 comments

Comments

@ZedekiahZhou
Copy link

ZedekiahZhou commented Feb 12, 2025

The command 'echo -e ">seq\nACGTTGCA" | seqkit grep -s -i -p AA' should not output any sequence.

However, this command output these sequence in my computer.

$ echo -e ">seq\nACGTTGCA"  | seqkit grep -s -i -p AA
>seq
ACGTTGCA

$ echo -e ">seq\nTTTTTT"  | seqkit grep -s -i -p AA
>seq
TTTTTT

$ seqkit version
seqkit v2.9.0

Could someone help me explain the results?

@shenwei356
Copy link
Owner

Please add -P.

  2. When searching by sequences, it's partly matching, and both positive
     and negative strands are searched.
     Please switch on "-P/--only-positive-strand" if you would like to
     search only on the positive strand.

@ZedekiahZhou
Copy link
Author

Thanks! It worked.

This command:

echo -e ">seq\nACGTTGCA" | seqkit grep -s -i -p AA

is an example in the manual, in the part "10. Circular genome".

Maybe the -P should be also added to the examples in the manual.

@shenwei356
Copy link
Owner

Ah, thanks!

shenwei356 added a commit that referenced this issue Feb 12, 2025
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