Skip to content

Commit

Permalink
Kraken1 unit test (#21)
Browse files Browse the repository at this point in the history
* with fixed taxonomy, unit test kraken1

* shortened the minimizer length to 9

* kraken1 query

* m

* adding a query is $query statement

Co-authored-by: Lee Katz - Aspen <[email protected]>
  • Loading branch information
lskatz and lskatz authored Jul 29, 2021
1 parent 33a41aa commit fa462f7
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,24 @@ jobs:
cp -vf jellyfish1 $a_bin/jellyfish
which kraken-build
mkdir -pv kraken
cp -rv Kalamari/src/taxonomy_v3.9 kraken/taxonomy
cp -rv Kalamari/src/taxonomy kraken/taxonomy
find ${{ env.OUTDIR }} -name '*.fasta' -exec kraken-build --db kraken --add-to-library {} \;
tree kraken
# Some super debugging here with -x
sed -i.bak 's/set -e/set -e; set -x/' $a_bin/build_kraken_db.sh
grep -v '^#' -m 20 -C 2 $a_bin/build_kraken_db.sh
echo ".....Building the database....."
kraken-build --rebuild --db kraken --threads 2 --work-on-disk
kraken-build --minimizer-len 9 --rebuild --db kraken --threads 2 --work-on-disk
- name: Kraken1 query
run: |
QUERY=$(find ${{ env.OUTDIR }} -name '*.fasta' | head -n 1)
echo "Query is $QUERY"
kraken --db kraken -output kraken.raw --fasta-input $QUERY
- name: Kraken1 view results
run: |
tree kraken
ls -lhSR kraken
echo
head kraken.raw

0 comments on commit fa462f7

Please sign in to comment.