Description Usage Arguments Value Author(s) Examples
View source: R/compareTaxaGroups.R
Given the phylogenetic profiles that contains up to 2 additional variables besides the presence/absence information of the orthologous proteins. This function will compare the median scores of those variables between 2 different taxon groups (e.g. parasitic species vs non-parasitic species), which are defined as in-group and out-group. In-group is identified by the user. Out-group contains all taxa in the input phylogenetic profiles that are not part of the in-group.
1 | compareMedianTaxonGroups(data, inGroup, useCommonAncestor, variable)
|
data |
input phylogenetic profile in long format (see ?mainLongRaw and ?createLongMatrix) |
inGroup |
ID list of in-group taxa (e.g. "ncbi1234") |
useCommonAncestor |
TRUE/FALSE if using all taxa that share the same common ancestor with the pre-selected in-group as the in-group taxa. Default = TRUE. |
variable |
name of the variable that need to be compared |
List of genes that have a difference in the variable's median scores between the in-group and out-group taxa and their corresponding delta-median.
Vinh Tran (tran@bio.uni-frankfurt.de)
1 2 3 4 5 | data("mainLongRaw", package="PhyloProfile")
data <- mainLongRaw
inGroup <- c("ncbi9606", "ncbi10116")
variable <- colnames(data)[4]
compareMedianTaxonGroups(data, inGroup, TRUE, variable)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.