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

Add support for unique R1 and R2 prefixes in split2 #512

Open
jdidion opened this issue Feb 12, 2025 · 2 comments
Open

Add support for unique R1 and R2 prefixes in split2 #512

jdidion opened this issue Feb 12, 2025 · 2 comments

Comments

@jdidion
Copy link

jdidion commented Feb 12, 2025

I'd like to be able to do the following:

seqkit split2 -1 my_r1.fq.gz -2 my_r2.fq.gz --by-parts 10 --by-parts-prefix "my_r{read}_"

And get out:

my_r1_001.fq.gz
my_r2_001.fq.gz
my_r1_002.fq.gz
my_r2_002.fq.gz
...

Thanks!

@shenwei356
Copy link
Owner

Oh, It looks like a bug!

@shenwei356
Copy link
Owner

fixed:

$ seqkit split2 -1 my_r1.fq.gz -2 my_r2.fq.gz --by-part 10 --by-part-prefix "my_r{read}_" -O out
[INFO] flag -1/--read1 and -2/--read2 given, ignore: -
[INFO] split seqs from my_r1.fq.gz and my_r2.fq.gz
[INFO] split into 10 parts
[INFO] write 1 sequences to file: out/my_r2_001.fq.gz
[INFO] write 1 sequences to file: out/my_r1_001.fq.gz
[INFO] write 1 sequences to file: out/my_r2_002.fq.gz
[INFO] write 1 sequences to file: out/my_r1_002.fq.gz
...

seqkit_darwin_arm64.tar.gz
seqkit_linux_amd64.tar.gz
seqkit_linux_arm64.tar.gz
seqkit_windows_amd64.exe.tar.gz

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