Mercurial > repos > bcclaywell > microbiome_pplacer_suite
view filter-wrapper.sh @ 3:221a97bf686d draft
Uploaded
| author | bcclaywell |
|---|---|
| date | Wed, 25 Mar 2015 16:39:10 -0400 |
| parents | ce6db18f5fd3 |
| children | 2d023c621bd0 |
line wrap: on
line source
#!/bin/bash source $(dirname $0)/util.sh source $1 INPUT_QUAL=$(extify qual ${INPUT_QUAL}) BARCODES=$(extify csv ${BARCODES}) RAW_SEQS=$(extify fasta ${RAW_SEQS}) seqmagick quality-filter \ --input-qual ${INPUT_QUAL} \ --barcode-file ${BARCODES} \ --primer "${PRIMER}" \ --report-out ${FILTER_REPORT} \ --details-out ${FILTER_DETAILS} \ --map-out ${SPLIT_MAP} \ --barcode-header \ --min-length ${MIN_LENGTH} \ --min-mean-quality ${MIN_QUALITY} \ --quality-window 30 \ --quality-window-prop 0.9 \ --quality-window-mean-qual 15 \ ${RAW_SEQS} \ filtered.fasta if [[ ${REVERSE_COMPLEMENT} == "TRUE" ]]; then seqmagick mogrify \ --reverse-complement \ filtered.fasta fi mv filtered.fasta ${FILTERED_SEQS}
