Skip to content

Commit

Permalink
add commands.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Nov 16, 2021
1 parent 701bc49 commit c9a8ca4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions data/qiime2-artifacts-for-qiita/commands.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
trim_lengths="90 100 150"

for tl in `echo $trim_lengths`; do
for s in `grep -v '>' ../newbloom.all.fna | cut -c 1-${tl} | sort | uniq`; do
echo -e ">$s\n$s" >> blooms-${tl}.fna
done ;
done

for fna in `ls *.fna`; do
qiime tools import \
--input-path ${fna} \
--output-path ${fna/fna/qza} \
--type FeatureData[Sequence]
done

0 comments on commit c9a8ca4

Please sign in to comment.