Comments (3)
This would be useful! I have two specific questions related to covariates for DivNet and betta. It's probably easiest to explain it in the context of my research questions.
I'm testing two similar hypotheses:
- The first betta model tests the effect of maternal depression during pregnancy on (human) infant GM diversity, adjusting for a measure of socioeconomic status.
- The second betta model tests the effect of maternal perceived stress during pregnancy on infant GM diversity, also adjusting for socioeconomic status.
First question: Do the covariates in DivNet and the betta model need to be the same? I'm excluding infants who received antibiotics, were birthed via C-section, or reported recent illness, so those variables aren't of concern. However, infant feeding status (breastfeeding vs formula) is a strong predictor of infant GM diversity. Since infant feeding doesn't confound (it may rather partially mediate...) the relationship between depression/stress during pregnancy and infant GM diversity, I don't think it's necessary to adjust for it in the betta hypothesis testing model. But, it's a strong predictor of GM diversity, so should I include it in the DivNet models to estimate Shannon diversity? Perhaps it would increase precision?
Second question: Should I run two separate DivNet models for each hypothesis to be tested using betta? (The first DivNet model with depression and the second with perceived stress instead, with SES (and possibly infant feeding) as a covariate in both)
from divnet.
Hi @ejwatson – I think it would be helpful to have a little more information here. Do you have technical replicate observations? If not, the simplest approach may be to use breakaway to estimate diversity in each sample and then use breakaway::betta
to run your regression. If you do have technical replicates, I'd recommend using DivNet with a design matrix that groups technical replicates from the same specimen together (but doesn't include any other covariates). There's an example of how to do this in the DivNet beta diversity vignette.
from divnet.
Feel free to reopen @ejwatson, but closing since we haven't heard from you in a while 🙂
from divnet.
Related Issues (20)
- use speedyseq instead of phyloseq HOT 1
- Can phylodivnet be added to betaDiversity vignette? HOT 5
- Problem with simplifyBeta() HOT 6
- Estimating Shannon Evenness with uncertainty and other parameters associated with diversity values HOT 1
- Cannot allocate vector of size with suspiciously large phyloseq object HOT 6
- simplifyBeta() missing functionality for aitchison distance HOT 3
- Error in default_network(sigma) HOT 5
- testBetaDiversity pseudo F-statistic calculation HOT 2
- Choice of base ASV and influence on reproducibility HOT 7
- rename master to main HOT 1
- code coverage audit HOT 2
- Diversity estimates not plausible HOT 16
- DivNet on rRNA gene counts derived from metagenomes? HOT 7
- R "killed" or cores not returning data HOT 4
- X covariate table and the intercept HOT 2
- DivNet on Transcripts per Million (TPM) values derived from metagenomic data HOT 4
- Is there a minimum number of samples required for testBetaDiversity?
- unit tests HOT 2
- problems with beta_diversity.Rmd HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from divnet.