convertphyloCompDataToList: Convert a 'phyloCompData' object to a list

View source: R/AllClasses.R

convertphyloCompDataToListR Documentation

Convert a phyloCompData object to a list

Description

Given a phyloCompData object, convert it to a list.

Usage

convertphyloCompDataToList(cpd)

Arguments

cpd

A phyloCompData object

Author(s)

Charlotte Soneson, Paul Bastide

Examples

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);"
  )
id.species <- factor(c("A", "A", "A", "B", "C", "C", "D", "D"))
names(id.species) <- tree$tip.label
mydata.obj <- generateSyntheticData(dataset = "mydata", n.vars = 1000, 
                                    samples.per.cond = 4, n.diffexp = 100,
                                    tree = tree,
                                    id.species = id.species)
mydata.list <- convertcompDataToList(mydata.obj)


csoneson/compcodeR documentation built on Nov. 3, 2024, 6:05 a.m.