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.gene
character, a recognized gene symbol
reference.genome
character, 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.regions
a 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.feature
a data.frame with chrom, start and end columns, and values of interest described in the annotation guidel
feature.genome
character, a recognized genome shorthand code, e.g., "hg38"
feature.guide
a neme list identifying columns of interest in tbl.bed, and the column names to use for them in the feature table
default.values
list 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.feature
a data.frame with gene and value columns, values of interest described in the featureguide
feature.name
character use this string to name the new column
default.value
any 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.loc
integer
clone()
The objects of this class are cloneable with this method.
FeatureTable$clone(deep = FALSE)
deep
Whether 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.