Skip to content

Instantly share code, notes, and snippets.

@allenday
Created February 5, 2017 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allenday/4e9c43b025b7059271382d4701535fe1 to your computer and use it in GitHub Desktop.
Save allenday/4e9c43b025b7059271382d4701535fe1 to your computer and use it in GitHub Desktop.
for B in $(find * -size 0); do
C=${B/.bam/};
echo $C;
java -jar ~/bin/picard.jar FastqToSam F1=$(ls -1 ${C}_*R1*.fastq.gz) O=$C.bam SAMPLE_NAME=$C;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment