Mercurial > repos > bcclaywell > microbiome_pplacer_suite
comparison preprocessing-wrapper.sh @ 0:d4690e65afcd draft
Uploaded
author | bcclaywell |
---|---|
date | Thu, 26 Feb 2015 18:16:36 -0500 |
parents | |
children | 221a97bf686d |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d4690e65afcd |
---|---|
1 #!/bin/bash | |
2 | |
3 source $1 | |
4 | |
5 deduplicate_sequences.py \ | |
6 --split-map ${SPLIT_MAP} \ | |
7 --deduplicated-sequences-file ${DEDUP_INFO} \ | |
8 ${INPUT_SEQS} \ | |
9 ${DEDUP_SEQS} | |
10 | |
11 # adapted from yapp/bin/refpkg_align | |
12 ref_sto=$(taxit rp ${REFPKG} aln_sto) | |
13 profile=$(taxit rp ${REFPKG} profile) | |
14 | |
15 sto=$(mktemp -u).sto | |
16 | |
17 cmalign --cpu ${GALAXY_SLOTS:-4} -o "$sto" --sfile "${ALIGNED_SCORES}" --noprob --dnaout "$profile" "${DEDUP_SEQS}" | grep -E '^#' | |
18 | |
19 esl-alimerge --dna --outformat afa "$ref_sto" "$sto" | \ | |
20 seqmagick convert --output-format fasta --dash-gap - "${ALIGNED_SEQS}" |