| FeatureTable | R Documentation |
A template for building documented, tested R6 classes
new()Creates a new instance of this [R6][R6::R6Class] class.
FeatureTable$new(target.gene, reference.genome)
target.genecharacter, a recognized gene symbol
reference.genomecharacter, a recognized genome shorthand code, e.g., "hg38"
a new instance o FeatureTable
getTable()accessor for the table
FeatureTable$getTable()
the data.table
setFundamentalRegions()establish the basic genomic regions, typically transcription factor binding sites
FeatureTable$setFundamentalRegions(tbl.regions)
tbl.regionsa data.frame with at least chrom, start end columns
addRegionFeature()annotate each of the intersecting fundamental regions with the value of this feature
FeatureTable$addRegionFeature( tbl.feature, feature.genome, feature.guide, default.values )
tbl.featurea data.frame with chrom, start and end columns, and values of interest described in the annotation guidel
feature.genomecharacter, a recognized genome shorthand code, e.g., "hg38"
feature.guidea neme list identifying columns of interest in tbl.bed, and the column names to use for them in the feature table
default.valueslist matches feature.guide structure
addGeneFeature()annotate each of TFs, via their associated motif mapped to the genome, with the value of the feature described in the feature guide
FeatureTable$addGeneFeature(tbl.feature, feature.name, default.value)
tbl.featurea data.frame with gene and value columns, values of interest described in the featureguide
feature.namecharacter use this string to name the new column
default.valueany the value to assign unmatched genes
addDistanceToTSS()annotate each region with a new column, the distance to TSS upstream region starts will be negative, downstream will be positive
FeatureTable$addDistanceToTSS(tss.loc)
tss.locinteger
clone()The objects of this class are cloneable with this method.
FeatureTable$clone(deep = FALSE)
deepWhether to make a deep clone.
rt <- FeatureTable()
import R6
import data.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.