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

Exclude certain FASTA sequences in pairwise assessment #46

Open
matt-sd-watson opened this issue Sep 5, 2021 · 1 comment
Open

Exclude certain FASTA sequences in pairwise assessment #46

matt-sd-watson opened this issue Sep 5, 2021 · 1 comment
Assignees

Comments

@matt-sd-watson
Copy link

For multi-FASTA files it may be useful to be able to exclude certain sequences by FASTA header ID when performing the pairwise SNP comparison. For example, excluding the reference sequence when processing COVID-19 sequences and comparisons to the reference are not needed. The input argument could accept either a .txt file of line-separated IDs or a bash array.

@tseemann
Copy link
Owner

tseemann commented Sep 5, 2021

Until this feature exists, this could work:

seqkit grep -v -f ids_to_ignore.txt < input.afa | snp-dists /dev/stdin > out.tsv

@tseemann tseemann self-assigned this Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants