Debian Codegraph @

pipelines/cutRna.sh

raw symbols SCIP
1 #!/bin/bash
2 set -e
3
4 #Written by Brian Bushnell
5 #Last updated August 8, 2019
6
7 #This script is designed to cut out the ribosomal and tRNAs from annotated genomes,
8 #which have paired fna.gz and gff.gz files. The output is then used to create
9 #sets of kmers such that every sequence will contain at least one of the kmers in the set.
10 #In other words, a sequence not sharing a kmer with the set is probably not
11 #a sequence of that type. These are used by CallGenes, but Silva is used for the
12 #ssu and lsu (16S and 23S).
13
14
15 cutgff.sh fastawrap=10k types=rRNA out=23S.fa attributes=23S */*.fna.gz
16 cutgff.sh fastawrap=10k types=rRNA out=16S.fa attributes=16S */*.fna.gz
17 cutgff.sh fastawrap=10k types=rRNA out=5S.fa attributes=5S */*.fna.gz
18 cutgff.sh fastawrap=10k types=tRNA out=tRNA.fa */*.fna.gz
19
20 kmerfilterset.sh in=23S.fa k=15 out=23S_15mers.fa ow minkpp=1 maxkpp=1 rcomp=f
21 kmerfilterset.sh in=16S.fa k=15 out=16S_15mers.fa ow minkpp=1 maxkpp=1 rcomp=f
22 kmerfilterset.sh in=5S.fa k=9 out=5S_9mers.fa ow minkpp=1 maxkpp=1 rcomp=f
23 kmerfilterset.sh in=tRNA.fa k=9 out=tRNA_9mers.fa ow minkpp=1 maxkpp=1 rcomp=f