View source: R/util_AddMetaData.R
AddMetaData | R Documentation |
Add metadata information to GRanges object.
AddMetaData( target_gr, annot_gr = NULL, annotType_char = c("geneSymbol", "region"), annotLabel_char = "symbol", genome = c("hg38", "hg19") )
target_gr |
A GRanges object that will be annotated with metadata |
annot_gr |
A GRanges object that includes the metadata
information. When |
annotType_char |
Type of the metadata column, defaults to
|
annotLabel_char |
Name of the metadata column, defaults to
|
genome |
Use |
A GRanges object with seqnames, ranges, region
, and supplied
metadata information.
data(rnaedit_df) input_gr <- TransformToGR( genes_char = "PHACTR4", type = "symbol", genome = "hg19" ) # identifies co-edited region within input_gr coedited_gr <- AllCoeditedRegions( regions_gr = input_gr, rnaEditMatrix = rnaedit_df, output = "GRanges", method = "spearman" ) # identify input regions for co-edited regions AddMetaData( target_gr = coedited_gr, annot_gr = input_gr, annotType_char = "region", annotLabel_char = "inputRegion", genome = "hg19" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.