Description Usage Arguments Value Author(s) References Examples
This function performs differential analysis using a distance-based kernel score test. It obtains set(s) of differentially abundant features between a specified pair of conditions/groups. The sets are obtained by grouping based on correlation of abundance among features. The strength of the relationship that must exist for features/variables to belong to the same set can be specified. A similar approach applies to environmental variables which can also be grouped into sets depending on a desired level of correlation amongst member variables.
1 2 3 |
physeq |
(Required). A phyloseq object containing merged information of abundance, taxonomic assignment, sample data including the measured variables and categorical information of the samples, and / or phylogenetic tree if available. |
grouping_column |
(Required). Character string specifying name of a categorical variable that is preffered for grouping the. information, this should be one of the components of grouping vector. |
analyse |
(optional). A character string specifying whether to analyse taxa abundance ("abundance") or sample data ("meta"). Default is set to analyse taxa abundance. |
method |
(optional). A character string specifying the kernel based method to be used for differential analysis, two options are available for this; "dscore" and "sscore". See dscore and sscore for details. |
p.adjust.method |
(optional). method to adjust raw pvalues obtained by the distance based score tests. |
corr |
(optional). Threshold correlation on which grouping of features/ variables is based. |
adjusted.p.value.threshold |
Cut off p-value for significance of differentially abundant/correlated taxa/environmental variables, default is 0.05. |
Returns a list of two items:
kscore_table: A data.frame
of taxa/ environmental variable with kernel based score stats, raw and adjusted pvalues.
plotdata: A data.frame
similar to kcore_table but organised in a way compatible to ggplot.
Alfred Ssekagiri assekagiri@gmail.com, Umer Zeeshan Ijaz Umer.Ijaz@glasgow.ac.uk
http://userweb.eng.gla.ac.uk/umer.ijaz/, Umer Ijaz, 2015
1 2 3 4 5 | data(pitlatrine)
physeq<-data(pitlatrine)
physeq<- taxa_level(physeq, "Phylum")
kda_sig <- KDA(physeq,grouping_column = "Country")
plot_kda(kda_sig$plotdata)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.