Description Usage Arguments Value
View source: R/smoking_analysis.R
Performs cell-type-specific analysis of blood methylation data in the context of smoking. Provides p-values estimated by CellDMC and TCA while correcting for known covariates as well unknown technical variation using PCs calculated from control probes. Combines cell types into myeloid and lymphoid compartments for analysis.
1 | run_smoking_analysis(X, smk, C1, C2, W, smoking_cpgs, dataset.name)
|
X |
Methylation values in matrix with sites as rows and samples as columns |
smk |
Smoking status encoded as 0 (non-smoker), 1 (ex-smoker), or 2 (smoker) in
a matrix with rownames as samples and 1 column entitled |
C1 |
Covariates in matrix format; for covariates that may affect methylation at the cell-type level. Rownames are samples and column names are covariate names |
C2 |
Covariates in matrix format; for covariates that may affect the methylation mixtures. Rownames are samples and column names are covariate names |
W |
Cell fractions in a matrix with cell types as column names and samples as row names. Expects cell types: "Neutro","Eosino","Mono","CD4T","CD8T","B","NK" |
smoking_cpgs |
List of CpG names to analyze for associations |
dataset.name |
Name of dataset for naming output variables. |
A list of results. Each slot contains p-values output by each method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.