Created
July 15, 2021 14:29
-
-
Save kevin3/471c96400ceffbe3c63d728cbaaf131b to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
samtools view -b -f 4 $1 > $1.unmapped.bam | |
samtools index $1.unmapped.bam | |
java -Xmx8g -jar /opt/picard/picard-tools-current/picard.jar SamToFastq I=$1.unmapped.bam F=$1.unmapped.bam.fastq | |
/home/ionadmin/bin/bbmap/reformat.sh in=$1.unmapped.bam.fastq out=$1.unmapped.bam.fastq.fasta | |
gzip $1.unmapped.bam.fastq.fasta |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment