# Output as counts not proportions

**URL:** <https://forum.biobakery.org/t/output-as-counts-not-proportions/727>\
**Category:** MetaPhlAn\
**Created:** [July 15, 2020, 5:30pm UTC](https://forum.biobakery.org/t/output-as-counts-not-proportions/727 "2020-07-15T17:30:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aimirza](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/aimirza/32/499_2.png) [@aimirza](https://forum.biobakery.org/u/aimirza)\
**Post date:** [July 15, 2020, 5:30pm UTC](https://forum.biobakery.org/t/output-as-counts-not-proportions/727/1 "2020-07-15T17:30:54Z")

</div>

Which parameter should I specify if I would like to have the output up until normalization for library size? I would like to get these counts and not relative abundances but including all of the necessary normalization (e.g., normalizes the total number of reads in each clade by the nucleotide length of its markers). I plan to use compositional data analysis and perform log-ratio transformation on the output. My method requires counts and not proportions.

---

<div class="post-metadata">

**Author:** ![aimirza](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/aimirza/32/499_2.png) [@aimirza](https://forum.biobakery.org/u/aimirza)\
**Post date:** [July 16, 2020, 6:45pm UTC](https://forum.biobakery.org/t/output-as-counts-not-proportions/727/2 "2020-07-16T18:45:55Z")

</div>

Would that be the column “coverage” from the output with `-t rel_ab_w_read_stats` ?

---

<div class="post-metadata">

**Author:** ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)\
**Post date:** [July 20, 2020, 8:35am UTC](https://forum.biobakery.org/t/output-as-counts-not-proportions/727/3 "2020-07-20T08:35:44Z")

</div>

MetaPhlAn can provide normalized RPK with `-t marker_counts --nreads <<metagenome size>>` but this does not include the normalization per genome size since the output are markers and not species (processed after the marker presence).

Column ‘coverage’ from `rel_ab_w_read_stats` is the estimated coverage of the species present in the metagenome

---

<div class="post-metadata">

**Author:** ![aimirza](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/aimirza/32/499_2.png) [@aimirza](https://forum.biobakery.org/u/aimirza)\
**Post date:** [July 20, 2020, 11:38pm UTC](https://forum.biobakery.org/t/output-as-counts-not-proportions/727/4 "2020-07-20T23:38:47Z")

</div>

How can I get an output as species count and not proportion? I think that is the sum of local abundance _before_ divided by the sum of all the local abundances.

---

<div class="post-metadata">

**Author:** ![fbeghini](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/fbeghini/32/81_2.png) [@fbeghini](https://forum.biobakery.org/u/fbeghini)\
**Post date:** [July 22, 2020, 7:51am UTC](https://forum.biobakery.org/t/output-as-counts-not-proportions/727/5 "2020-07-22T07:51:27Z")

</div>

You can not. From how the program is now written, you can get the count per each marker or use the estimated reads counts from the `estimated_number_of_reads_from_the_clade` column from `rel_ab_w_read_stats`
