phyloCompData | R Documentation |
phyloCompData
objectThe phyloCompData
class extends the compData
class
with sequence length and phylogeny related information.
phyloCompData(
count.matrix,
sample.annotations,
info.parameters,
variable.annotations = data.frame(),
filtering = "no info",
analysis.date = "",
package.version = "",
method.names = list(),
code = "",
result.table = data.frame(),
tree = list(),
length.matrix = matrix(NA_integer_, 0, 0)
)
count.matrix |
A count matrix, with genes as rows and observations as columns. |
sample.annotations |
A data frame, containing at least one column named 'condition', encoding the grouping of the observations into two groups, and one column named |
info.parameters |
A list containing information regarding simulation parameters etc. The only mandatory entries are
|
variable.annotations |
A data frame with variable annotations (with number of rows equal to the number of rows in
|
filtering |
A character string containing information about the filtering that has been applied to the data set. |
analysis.date |
If a differential expression analysis has been performed, a character string detailing when it was performed. |
package.version |
If a differential expression analysis has been performed, a character string giving the version of the differential expression packages that were applied. |
method.names |
If a differential expression analysis has been performed, a list with entries |
code |
If a differential expression analysis has been performed, a character string containing the code that was run to perform the analysis. The code should be in R markdown format, and can be written to an HTML file using the |
result.table |
If a differential expression analysis has been performed, a data frame containing the results of the analysis. The number of rows should be equal to the number of rows in
|
tree |
The phylogenetic tree describing the relationships between samples. The taxa names of the |
length.matrix |
The length matrix, with genes as rows and samples as columns. The column names of the |
A phyloCompData
object.
Charlotte Soneson, Paul Bastide
tree <- ape::read.tree(
text = "(((A1:0,A2:0,A3:0):1,B1:1):1,((C1:0,C2:0):1.5,(D1:0,D2:0):1.5):0.5);"
)
count.matrix <- round(matrix(1000*runif(8000), 1000))
sample.annotations <- data.frame(condition = c(1, 1, 1, 1, 2, 2, 2, 2),
id.species = c("A", "A", "A", "B", "C", "C", "D", "D"))
info.parameters <- list(dataset = "mydata", uID = "123456")
length.matrix <- round(matrix(1000*runif(8000), 1000))
colnames(count.matrix) <- colnames(length.matrix) <- rownames(sample.annotations) <- tree$tip.label
cpd <- phyloCompData(count.matrix, sample.annotations, info.parameters,
tree = tree, length.matrix = length.matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.