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 split writes an extra empty file when using --two-pass #244

Closed
apcamargo opened this issue Sep 10, 2021 · 2 comments
Closed

seqkit split writes an extra empty file when using --two-pass #244

apcamargo opened this issue Sep 10, 2021 · 2 comments
Labels

Comments

@apcamargo
Copy link

I got an FASTA file with 847 sequences and I tried to split it into individual files with:

seqkit split -w 0 -2 -p 847 foo.fasta

848 files were created, the last one of which is empty. Omitting -2 solves the issue.

@shenwei356
Copy link
Owner

I see, I can reproduce this.

seqkit split2 is recommended, which doe not have this issue.

seqkit split2 -w 0 -s 1 foo.fasta

BTW, use -s 1 where you do not have to know the number of sequences before using -p 847, for splitting into individual files.

@apcamargo
Copy link
Author

Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants