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

how can I get an interleaved fastq file from two pair-end seq files? #226

Open
tinyfallen opened this issue Jul 7, 2021 · 4 comments
Open

Comments

@tinyfallen
Copy link

Thanks a lot for your excellent tool !

@shenwei356
Copy link
Owner

seqtk mergepe : https://github.com/lh3/seqtk

mergepe   interleave two PE FASTA/Q files

@tinyfallen
Copy link
Author

seqtk mergepe : https://github.com/lh3/seqtk

mergepe   interleave two PE FASTA/Q files

thanks for your timely reply!
best wishes ~

@mbhall88
Copy link

mbhall88 commented Jun 26, 2024

I know this functionality is handled by seqtk, but it would be awesome to have it included in seqkit so I don't have to install other tools - seqkit is the swiss army knife

Also, some functionality I am struggling to find elsewhere is the ability to interleave reads and add /1 and /2 suffixes

Here's my current solution...which is fine. But just wanted to say that I think this would be a nice addition to seqkit

tmp1=$(mktemp)
tmp2=$(mktemp)
# add /1 and /2 to read names
seqkit seq -i r1.fq | seqkit replace -p $ -r /1 > $tmp1
seqkit seq -i r2.fq | seqkit replace -p $ -r /2 > $tmp2
# interleave reads
seqtk mergepe $tmp1 $tmp2 > interleaved.fq

@tinyfallen
Copy link
Author

tinyfallen commented Jun 26, 2024 via email

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

3 participants