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

error running seqtk with parallel #177

Open
EduanWilkinson opened this issue Jul 2, 2021 · 1 comment
Open

error running seqtk with parallel #177

EduanWilkinson opened this issue Jul 2, 2021 · 1 comment

Comments

@EduanWilkinson
Copy link

Hi,

Im trying to run seqtk with parallel. My command looks as follows:

parallel '/Applications/biotools/seqtk/seqtk seq -aQ64 -q20 {}.fastq > {}.fasta' ::: $(ls *_L001_R.fastq | rev | cut -c 14- | rev | uniq)

Which produces the following error:

[E::stk_seq] failed to open the input file/stream.
[E::stk_seq] failed to open the input file/stream.
[E::stk_seq] failed to open the input file/stream.

When I try running it one by one it works. e.g. /Applications/biotools/seqtk/seqtk seq -aQ64 -q20 313507859_S20_L001_R.fastq > 313507859_S20_L001_R.fasta

Any idea what the problem may be? Much appreciated

@yzhernand
Copy link

With parallel it might help to run it using the option --dry-run to see what commands it was trying to run. Eg,

parallel --dry-run '/Applications/biotools/seqtk/seqtk seq -aQ64 -q20 {}.fastq > {}.fasta' ::: $(ls *_L001_R.fastq | rev | cut -c 14- | rev | uniq)

Maybe even add | head at the end there if you have many files to run.

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