Skip to content

Commit

Permalink
remove taxonomy stuff from downloadKalamari.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lskatz committed May 17, 2024
1 parent dcf0a2a commit d1edbcb
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions bin/downloadKalamari.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,39 +41,8 @@ if [[ ${KALAMARI_DEBUG:-} ]]; then
grep -m 5 Legionella $TSV.tmp >> $TSV
fi

function build_kraken1(){
in_dir=$1
DB=$2

rm -rvf $DB
mkdir -v $DB
cp -rv $tempdir/taxonomy $DB/
find $in_dir -name '*.fasta' -exec kraken-build -db $DB \
--add-to-library {} \;
kraken-build --db $DB --build --threads 1
kraken-build --db $DB --clean
du -shc $DB

echo "DONE. Set KRAKEN_DEFAULT_DB=$(realpath $DB)"
}

function build_kraken2(){
in_dir=$1
DB=$2

rm -rvf $DB
mkdir -v $DB
cp -rv $tempdir/taxonomy $DB/
find $in_dir -name '*.fasta' -exec kraken2-build -db $DB \
--add-to-library {} \;
kraken2-build --db $DB --build --threads 1
kraken2-build --db $DB --clean
du -shc $DB
echo "DONE. Set KRAKEN2_DEFAULT_DB=$(realpath $DB)"
}

perl $thisdir/downloadKalamari.pl $TSV \
--outdir $tempdir/kalamari
--outdir $tempdir/kalamari --buffersize 100

rm -rf $outdir_prefix
mkdir -v $outdir_prefix
Expand Down

0 comments on commit d1edbcb

Please sign in to comment.