Description Usage Arguments Details Value Author(s) Examples
.doData
creates a count table for all nodes of a tree under two
different groups such that the tree would have different abundance patterns
in the different conditions.
1 2 3 4 5 |
tree |
A phylo object |
data |
A matrix, representing a count table from real data. It has the entities corresponding to tree leaves in the row and samples in the column. |
scenario |
“S1”, “S2”, or “S3” (see Details). Default is “S1”. |
from.A, from.B |
The branch node labels of branches A and B for which the
signal is swapped. Default, both are NULL. In simulation, we select two
branches (A & B) to have differential abundance under different conditions.
One could specify these two branches or let |
minTip.A |
The minimum number of leaves in branch A |
maxTip.A |
The maximum number of leaves in branch A |
minTip.B |
The minimum number of leaves in branch B |
maxTip.B |
The maximum number of leaves in branch B |
minPr.A |
A numeric value selected from 0 to 1. The minimum abundance proportion of leaves in branch A |
maxPr.A |
A numeric value selected from 0 to 1.The maximum abundance proportion of leaves in branch A |
ratio |
The proportion ratio of branch B to branch A. This value is used
to select branches(see Details). If there are no branches having
exactly this ratio, the pair with the value closest to |
adjB |
a numeric value selected from 0 and 1 (only for |
pct |
a numeric value selected from 0 and 1. The percentage of leaves in branch B that have differential abundance under different conditions (only for scenario “S3”) |
nSam |
A numeric vector of length 2, containing the sample size for two different conditions |
mu, size |
The parameters of the Negative Binomial distribution. (see mu
and size in |
n |
A numeric value to specify how many count tables would be generated
with the same settings. Default is one and one count table would be
obtained at the end. If above one, the output of |
fun |
A function to derive the count at each internal node based on its descendant leaves, e.g. sum, mean. The argument of the function is a numeric vector with the counts of an internal node's descendant leaves. |
.doData
simulates a count table for entities which are
corresponding to the nodes of a tree. The entities are in rows and the
samples from different groups or conditions are in columns. The library
size of each sample is sampled from a Negative Binomial distribution with
mean and size specified by the arguments mu
and size
. The
counts of entities, which are located on the tree leaves, in the same
sample are assumed to follow a Dirichlet-Multinomial distribution. The
parameters for the Dirichlet-Multinomial distribution are estimated from a
real data set specified by the argument data
via the function
dirmult
(see dirmult
). To generate different
abundance patterns under different conditions, we provide three different
scenarios, “S1”, “S2”, and “S3” (specified via
scenario
).
S1: two branches are selected to swap their proportions, and leaves on the same branch have the same fold change.
S2: two branches are selected to swap their proportions. Leaves in the same branch have different fold changes but same direction (either increase or decrease).
S3: two branches are selected. One branch has its proportion swapped with the proportion of some leaves from the other branch.
a list of objects
FC |
the fold change of entities correspondint to the tree leaves. |
Count |
a list of count table or a count table. Entities on the row and samples in the column. Each count table includes entities corresponding to all nodes on the tree structure. |
Branch |
the information about two selected branches. |
the branch node label of branch A
the branch node label of branch B
the count proportion ratio of branch B to branch A
the number of leaves on branch A
the number of leaves on branch B
the count proportion of branch A (not above 1)
the count proportion of branch B (not above 1)
Ruizhu Huang
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.