Kraken abundances do not add up
1
0
Entering edit mode
3.1 years ago
jsgounot ▴ 170

When I sum all abundance values from one rank (for example S), it did not match with the root abundance. Why's that ? In some cases, differences can be huge. This can be observed even for high-level rank such as division. I feel like I'm missing something obvious.

Here is the command line I'm using to observe that :

cat report.txt | awk '{ if ( $4 == "D1" ) { sum+=$1 }} END { print sum }'

Thanks !

kraken2 • 656 views
ADD COMMENT
0
Entering edit mode
3.1 years ago
jsgounot ▴ 170

Ok I got an answer for this. The missing piece was that kmers found in more than one child of a specific node in the taxonomic tree are automatically assigned to the node (last common ancestor). Therefore, you can have more reads mapped in the parent node than the sum of the mapped reads of children, leading to abundance difference. This can be important when, like me, you produce a custom database with closely related sequences.

ADD COMMENT

Login before adding your answer.

Traffic: 1881 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6