Description Usage Arguments Details Value Functions Author(s)
View source: R/HLP_geneRanges.R
Keep all meta data when overlapping gene ranges or converting to dataframe.
1 2 3 4 5 6 7 8 | subsetByOverlaps.keepAllMeta(
gr1,
gr2,
write.ranges.tofile = NULL,
addStart = 0
)
granges2df(gr1, addStart = 0)
|
gr1, gr2 |
GRanges object |
write.ranges.tofile |
character with file path. If given, a data.frame is generated from the returned GRanges object and written to this destination. Omitted if NULL. |
addStart |
numeric with mumber of bases to be added to the start coordinate when converting a GRanges object to a dataframe. E.g. necessary for switching between 0-based and 1-based genome coordinate systems. |
By default, meta data is lost when GRanges are merged or overlapped.
subsetByOverlaps.keepAllMeta
returns overlap of two GRanges objects with
merged meta data from both. Meta data stored in CompressedCharacterList
is collapsed to a single column.
granges2df
generates a data.frame from an GRanges containing the meta data.
Meta data stored in CompressedCharacterList
is collapsed to a single column.
subsetByOverlaps.keepAllMeta
returnes GRanges object containing
overlap and meta data from input ranges.
granges2df
returns a data.frame with genomic coordinates and meta data
from input object.
subsetByOverlaps.keepAllMeta
: subsetByOverlaps which keeps meta data from both objects
granges2df
: Convert GRanges object to dataframe
Frank Ruehle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.