Sha256: f639faf8c97290e699d715d5c3850c0961276b9372dfdd049ee7e770e123a062

Contents?: true

Size: 1.88 KB

Versions: 37

Compression:

Stored size: 1.88 KB

Contents

#!/bash

# An example OTU clustering pipeline
# Austin G. Davis-Richardson
# <harekrishna at gmail dot com>
# http://github.com/audy/lederhosen

set -e

raw_reads='spec/data/*.txt'
out_dir='pipeline'
taxcollector='taxcollector.fa'
min_reads=50
min_samples=10

# trim reads
lederhosen trim \
               --reads-dir=$raw_reads \
               --out-dir=$out_dir/trimmed

# join reads
lederhosen join \
               --trimmed=$out_dir/trimmed/*.fasta \
               --output=$out_dir/joined.fasta

# filter reads
lederhosen k_filter \
               --input=$out_dir/joined.fasta \
               --output=$out_dir/filtered.fasta \
               -k=10 \
               --cutoff=50

# sort
lederhosen sort \
               --input=$out_dir/filtered.fasta \
               --output=$out_dir/sorted.fasta

for i in 0.80 0.90 0.95
do
    # cluster
    lederhosen cluster \
                   --input=$out_dir/sorted.fasta \
                   --output=$out_dir/clusters_"$i".uc \
                   --identity=$i

    # filter uc file
    lederhosen uc_filter \
                   --input=$out_dir/clusters_"$i".uc \
                   --output=$out_dir/clusters_"$i".uc.filtered \
                   --reads=$min_reads \
                   --samples=$min_samples \

    # generate otu table
    lederhosen otu_table \
                   --clusters=$out_dir/clusters_"$i".uc.filtered \
                   --output=$out_dir/otus_"$i"

    # get representative reads
    lederhosen rep_reads \
                   --clusters=$out_dir/clusters_"$i".uc.filtered \
                   --joined=$out_dir/sorted.fasta \
                   --output=$out_dir/representatives_"$i".fasta

    # blast representative reads
    lederhosen name \
                   --reps=$out_dir/representatives_"$i".fasta \
                   --output=$out_dir/taxonomies_"$i".txt \
                   --database=$taxcollector
done

echo "complete!"

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
lederhosen-0.2.13 examples/pipeline.sh
lederhosen-0.2.12 examples/pipeline.sh
lederhosen-0.2.11 examples/pipeline.sh
lederhosen-0.2.10 examples/pipeline.sh
lederhosen-0.2.9 examples/pipeline.sh
lederhosen-0.2.8 pipelines/pipeline.sh
lederhosen-0.2.7 examples/pipeline.sh
lederhosen-0.2.6 examples/pipeline.sh
lederhosen-0.2.5 examples/pipeline.sh
lederhosen-0.2.4 examples/pipeline.sh
lederhosen-0.2.3 examples/pipeline.sh
lederhosen-0.2.2 examples/pipeline.sh
lederhosen-0.2.1 examples/pipeline.sh
lederhosen-0.2.0 examples/pipeline.sh
lederhosen-0.1.9 examples/pipeline.sh
lederhosen-0.1.8 examples/pipeline.sh
lederhosen-0.1.7 examples/pipeline.sh