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 replace: conflict with -m flag #474

Open
kabilov opened this issue Jun 28, 2024 · 2 comments
Open

seqkit replace: conflict with -m flag #474

kabilov opened this issue Jun 28, 2024 · 2 comments

Comments

@kabilov
Copy link

kabilov commented Jun 28, 2024

Hi Wei,

I found one inconsistency in seqkit replace.
The flag -m is assigned to several different functions. I marked them in red in the picture.

And accordingly, the question arises about the possibility of using the --max-mismatch flag.

Best wishes,
Marsel

m

@shenwei356
Copy link
Owner

Dear Marsel,

Thanks for pointing this out. The help message was copied from another command :(

Yes, we can allow mismatch of sequences. But is it necessary, what's the use case?

@kabilov
Copy link
Author

kabilov commented Jun 28, 2024

Dear Wei,

The task is somewhat specific. It is necessary to replace the pattern in many sequences. A pattern is a degenerate sequence, for example GARTCN, which must be replaced by GAATCC. But in addition, you also need to take into account possible mismatches. And if the first can be implemented through regular expressions - GA[GA]TC[GATC], then the second with mismatches is more difficult.

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