Question: PhyloToAST API script biom_calc to transform OTU reads from a biom OTU table
gravatar for olli.laroche
3.5 years ago by
olli.laroche20 wrote:

Hi dear Biostars community,

I am trying to find a quick and easy way to square root transform my the read counts of my biom OTU table using the PhyloToAST program. After installing the program and all dependencies, I run the following command in my terminal: phylotoast.biom_calc.transform_raw_abundance(otu_table.biom, fn=math.log10, sampleIDs=True, sample_abd=True) and get the following error -bash: syntax error near unexpected token `otu_table.biom,'

Surely I'm doing something wrong and probably very obvious but unfortunately I can't find the solution as there is little information on how to use the script (

Help on this issue would be greatly appreciated. Thanks!

phylotoast • 942 views
ADD COMMENTlink modified 3.0 years ago • written 3.5 years ago by olli.laroche20
gravatar for Shareef Dabdoub
3.1 years ago by
Ohio State University. Columbus, OH, USA
Shareef Dabdoub10 wrote:

Hi Ollie,

The command you mention is part of the PhyloToAST API, so it's not a command that can be run at the bash prompt. It's meant to be used within a python program.

However, the most recent update to PhyloToAST includes a new command-line script: that provides a way to do exactly what you were asking your question about. PyPI hasn't been updated with a new version of PhyloToAST yet, but you can install the latest version directly from GitHub. The README file on GitHub contains instructions on how to do that: The main site ( also has a link to the GitHub page.

Shareef Dabdoub

ADD COMMENTlink written 3.1 years ago by Shareef Dabdoub10
gravatar for olli.laroche
3.0 years ago by
olli.laroche20 wrote:

Thank you Shareef, it works great!

ADD COMMENTlink written 3.0 years ago by olli.laroche20

This is a little out of context to the question, I was curious to know why do you want to transform the read counts of the OTU table.

ADD REPLYlink written 3.0 years ago by sridhar56100

Generally transformations are used as a means of normalizing the data to account for differences in (for example) sequencing effort or to normalize the data for use with certain statistical tests.

For more detail, check out Multivariate analyses in microbial ecology (section on Data Transforms).

ADD REPLYlink written 3.0 years ago by Shareef Dabdoub10
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1123 users visited in the last hour