Created
January 16, 2014 14:10
-
-
Save inodb/8455590 to your computer and use it in GitHub Desktop.
Run sickle on paired end fastq files in parallel. The paired fastq files should be ending on _1.fastq.gz and _2.fastq.gz. The resulting files will be in the current directory with name $base.sickle.{pe1,pe2,se}.fastq. The filenames/directory structure is based on reads delivered by the sequencing facility at SciLifeLab, Sweden to the UPPMAX clus…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
parallel lib1={}';' \ | |
lib2='$('echo {} '|' sed s/_1.fastq.gz/_2.fastq.gz/');' \ | |
base='$('basename {} _1.fastq.gz');' \ | |
sickle pe -f '$lib1' -r '$lib2' -t sanger \ | |
-o '$base'.sickle.pe1.fastq \ | |
-p '$base'.sickle.pe2.fastq \ | |
-s '$base'.sickle.se.fastq \ | |
::: /proj/b2010008/INBOX/A.Andersson_13_06/*/*/*_1.fastq.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment