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

Read interleaved reads [feature request] #48

Open
sjackman opened this issue Sep 1, 2017 · 3 comments
Open

Read interleaved reads [feature request] #48

sjackman opened this issue Sep 1, 2017 · 3 comments
Assignees

Comments

@sjackman
Copy link

sjackman commented Sep 1, 2017

I'd like to be able to read interleaved reads with NxTrim. Even better if it implements a smart pairing feature similar to bwa mem -p that allows for occasional unpaired reads (but not strictly necessary). Also awesome if it can read from standard input: e.g.

fastq-dump -Z --split-spot SRR3663860 \
  | nxtrim --stdout --justmp --joinreads --rf --preserve-mp /dev/stdin \
  | bwa mem -p ref.fa /dev/stdin \
  | samtools sort -o foo.bam /dev/stdin
@sjackman
Copy link
Author

sjackman commented Sep 1, 2017

If the interleaved file is on disk, this work around works. It doesn't work though when streaming, as above.

nxtrim --stdout --justmp --rf \
    -1 <(seqtk seq -1 dmelanogaster.mp.fq.gz) \
    -2 <(seqtk seq -2 dmelanogaster.mp.fq.gz) \

@jaredo jaredo self-assigned this Sep 1, 2017
@jaredo
Copy link
Contributor

jaredo commented Sep 1, 2017

I was just going to suggest seqtk as a workaround. I will try to make some time for this (although probably not the smart pairing).

FYI I have never seen much improvement with --joinreads and tend to leave it off for simplicity's sake.

@sjackman
Copy link
Author

sjackman commented Sep 1, 2017

Thanks!

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