-
Notifications
You must be signed in to change notification settings - Fork 159
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
Q: --replace on a subset of fasta records #348
Labels
Comments
I get it. It may be useful for others too.
Yes, it could be achieved by:
|
Added. Please have some tests (I've done some).
|
@shenwei356 - some quick tests showed that it works fine. Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
seqkit version
Great piece of software.. it's my personal swiss army knife for sequencing data ;-)
Is it possible to use
replace
on a given subset (fasta IDs) of a larger file?E.g. I have a fasta file with 1000 contigs: I want to mask the first five bases of just ten (known by ID) contigs and leave the other contigs untouched.
.. acts on all contigs in
input.fa
. So what I am actually missing is a kind of filter option like--file <str>
which provides fasta record IDs on which thereplace
command should work. All other contigs should be printed unaltered.I could achieve that with separate
seqkit
commands. But not in a (simple) pipe AFAICS .. and not with a singleseqkit
command.Did I miss something? Any idea how to achieve this with
seqkit
only in a simple way?The text was updated successfully, but these errors were encountered: