Skip to content

Commit

Permalink
modifying kraken output to include dna seq
Browse files Browse the repository at this point in the history
  • Loading branch information
agarg2008 committed Nov 6, 2015
1 parent 93f2cd7 commit 060af46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/build_kraken_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ else
# Estimate hash size as 1.15 * chars in library FASTA files
if [ -z "$KRAKEN_HASH_SIZE" ]
then
KRAKEN_HASH_SIZE=$(find library/ '(' -name '*.fna' -o -name '*.fa' -o -name '*.ffn' ')' -printf '%s\n' | perl -nle '$sum += $_; END {print int(1.15 * $sum)}')
KRAKEN_HASH_SIZE=$(gfind library/ '(' -name '*.fna' -o -name '*.fa' -o -name '*.ffn' ')' -printf '%s\n' | perl -nle '$sum += $_; END {print int(1.15 * $sum)}')
echo "Hash size not specified, using '$KRAKEN_HASH_SIZE'"
fi

Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CXX = g++
CXX = g++-5
CXXFLAGS = -Wall -fopenmp -O3
PROGS = db_sort set_lcas classify make_seqid_to_taxid_map db_shrink

Expand Down
2 changes: 1 addition & 1 deletion src/classify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ void classify_sequence(DNASequence &dna, ostringstream &koss,
return;
koss << "U\t";
}
koss << dna.id << "\t" << call << "\t" << dna.seq.size() << "\t";
koss << dna.id << "\t" << call << "\t" << dna.seq.size() << "\t" << dna.seq << "\t";

if (Quick_mode) {
koss << "Q:" << hits;
Expand Down

0 comments on commit 060af46

Please sign in to comment.