jsilve24 / philr

Phylogenetic Isometric Log Ratio
http://bioconductor.org/packages/philr/
19 stars 6 forks source link

can philr be used for relative abundance data? #11

Closed Jigyasa3 closed 3 years ago

Jigyasa3 commented 4 years ago

Hey all

I was wondering if its possible to use philr on proportions data, not represented by composition? For example, I have shotgun metagenome data of relative abundance of bacterial functions across host tree.

table is arranged as following-

Bacteria1 proportion(KEGG_function1) Bacteria2 proportion(KEGG_function1) Bacterial3 proportion(KEGG_function1)

The proportions are phylogenetically related but do not correspond to actual bacterial composition.

jsilve24 commented 4 years ago

So the proportions sum to a constant value (e.g., proportions sum to 1 across the different bacteria)?

If so, yes absolutely this is a good use of philr.

Justin

On Oct 7, 2019, at 2:24 AM, Jigyasa3 notifications@github.com wrote:

Hey all

I was wondering if its possible to use philr on proportions data, not represented by composition? For example, I have shotgun metagenome data of relative abundance of bacterial functions across host tree.

table is arranged as following-

Bacteria1 proportion(KEGG_function1) Bacteria2 proportion(KEGG_function1) Bacterial3 proportion(KEGG_function1)

The proportions are phylogenetically related but do not correspond to actual bacterial composition.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jsilve24/philr/issues/11?email_source=notifications&email_token=AADOORQMLSJT4DERLCODE73QNLI2RA5CNFSM4I6AGXWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HP7CHZQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AADOORTTPOHFJTIRL4OLCF3QNLI2RANCNFSM4I6AGXWA.

Jigyasa3 commented 4 years ago

@jsilve24 , thanks for replying. My data does sum up to a constant. I wanted to ask another conceptual question regarding the use of the software.

  1. According to the paper, philr package transforms the data using the bacterial phylogenetic tree. Is it conceptually feasible to transform the data based on the host phylogenetic tree? My aim is to analyze if the relative abundance of microbial functions (regardless of microbial taxonomy) is dependent on host phylogeny.

Is it feasible to analyze such data using philr package? I didn't see any mention of host tree in the paper, just host samples which are used for grouping...

jsilve24 commented 4 years ago

Just to confirm you are saying that the relationship between your samples has some phylogenic structure. Correct?

If that is the case then I don't think PhILR is the appropriate software package for you. PhILR is for when there is phylogenetic structure within the categories / parts / taxa measured in each sample. If you have structure across the samples then you would likely want to look at other methods such as Linear mixed models (of which phylogenic models are a special case). I have a different software package called "stray" github.com/jsilve24/stray which can do these types of things. Look at either the function pibble or the function maltipoo. That said, stray is a little more complicated to use than PhILR as it incorporates aspects of compositional data analysis and bayesian statistics. I would be happy to discuss more in that Repo if you are interested.

Justin

On Oct 25, 2019, at 1:00 AM, Jigyasa3 notifications@github.com wrote:

@jsilve24 https://github.com/jsilve24 , thanks for replying. My data does sum up to a constant. I wanted to ask another conceptual question regarding the use of the software.

According to the paper, philr package transforms the data using the bacterial phylogenetic tree. Is it conceptually feasible to transform the data based on the host phylogenetic tree? My aim is to analyze if the relative abundance of microbial functions (regardless of microbial taxonomy) is dependent on host phylogeny. Is it feasible to analyze such data using philr package? I didn't see any mention of host tree in the paper, just host samples which are used for grouping...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jsilve24/philr/issues/11?email_source=notifications&email_token=AADOORSHUQIQFNP7N3UVPJTQQJ4PJA5CNFSM4I6AGXWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECHF7BA#issuecomment-546201476, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADOORWKQJNAOSXWLKK2I3TQQJ4PJANCNFSM4I6AGXWA.

Jigyasa3 commented 4 years ago

Thank you so much for your advice! I will try the "stray" package and will ask if I have doubts!

manuelzc commented 3 years ago

Hi,

My congratulations and thanks for developing PHILR. I have a question that I think is related to this issue. I am using zcompositions to replace zeros in a microbiome dataset using the cmultRepl function of that package. This operation replaces the raw read counts by relative abundance data. My question is if it is appropriate to use this output as input for philr. I understand that philr will convert the data to relative abundance so I do not know if only raw read counts should be used.

Manolo

jsilve24 commented 3 years ago

No problem here. It is appropriate to do as you are suggesting.

Best, Justin

On Dec 14, 2020, at 12:28 PM, manuelzc notifications@github.com wrote:

Hi,

My congratulations and thanks for developing PHILR. I have a question that I think is related to this issue. I am using zcompositions to replace zeros in a microbiome dataset using the cmultRepl function of that package. This operation replaces the raw read counts by relative abundance data. My question is if it is appropriate to use this output as input for philr. I understand that philr will convert the data to relative abundance so I do not know if only raw read counts should be used.

Manolo

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jsilve24/philr/issues/11#issuecomment-744591871, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADOORXTE7J3VRDPC75SX43SUZDL3ANCNFSM4I6AGXWA.

manuelzc commented 3 years ago

Thank you very much for clarifying this point to me!

Manolo