setChromatinStates | R Documentation |
setChromatinStates
sets chromatin state affinity values to a GRanges object.
setChromatinStates(population,chromatinStates)
population |
Population list containing all individuals and associated parameter. Must
contain chromatin state affinity values. See |
chromatinStates |
GRanges object containing chromatin state locations. |
Chromatin states can be loaded into R as a GRanges object. Each range represents the extent of a certain chromatin state and the chromatin state type should be assigned to a meta data column called "name". The affinity values names should be set accordingly.
Returns a GRange object with affinity scores for each chromatin state range. Affinity scores are placed in the DNAAffinity meta data column.
Patrick C.N. Martin
library(ChIPanalyser) # Input data data(ChIPanalyserData) pop <- 10 params <- c("N","lambda","PWMThreshold", paste0("CS",seq(1:11))) start_pop <- generateStartingPopulation(pop, params) cs <- setChromatinStates(start_pop,cs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.