Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Differential taxonomic analysis using longitudinal model and siamcat #45

Open
alienzj opened this issue Mar 7, 2024 · 2 comments
Labels
question Further information is requested

Comments

@alienzj
Copy link

alienzj commented Mar 7, 2024

Dear Siamcat team,

may I know how to do differential taxonomic analysis using longitudinal model and siamcat?

For example, data show below:

id group time point
a normal T1
a normal T2
b disease T1
b disease T2

How to compare the difference of taxonomic composition of normal and disease group across T1 and T2 ?
And we know for subject a or b, they may have different taxonomic composition at T1 and T2 regards of normal and disease condition.

@alienzj alienzj changed the title Question: Differential taxonomic analysis using longitudinal model Question: Differential taxonomic analysis using longitudinal model and siamcat Mar 7, 2024
@jakob-wirbel
Copy link
Collaborator

Hi @alienzj
Thank you for using SIAMCAT!
I think there are several things that you could do:

  • you could look at the differences between T1 and T2. For each species and patient, you could calculate the change that happened between time points and then use this table of differences as input for SIAMCAT and then calculate associations between groups
  • alternatively, you could use a random effects model within SIAMACT. For example, you could use id as a random effect like this: check.associations(sc.obj, formula='feat~label+(1|id)'). This will fit a random effect model to each feature and output the significance for the difference in label (group in your example), with a random effect for the patient ID

Let me know if that works! :)

@jakob-wirbel jakob-wirbel added the question Further information is requested label Mar 7, 2024
@alienzj
Copy link
Author

alienzj commented Mar 8, 2024

Dear @jakob-wirbel ,

Thank you so much for your suggestions.
Let me try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants