Signac (version 0.2.4)

MatchRegionStats: Match DNA sequence characteristics

Description

Return a vector if genomic regions that match the distribution of a set of query regions for any given set of characteristics, specified in the input meta.feature dataframe.

Usage

MatchRegionStats(
  meta.feature,
  regions,
  features.match = c("GC.percent"),
  n = 10000,
  verbose = TRUE,
  ...
)

Arguments

meta.feature

A dataframe containing DNA sequence information

regions

Set of query regions. Must be present in rownames.

features.match

Which features of the query to match when selecting a set of regions. A vector of column names present in the feature metadata can be supplied to match multiple characteristics at once. Default is GC content.

n

Number of regions to select, with characteristics matching the query

verbose

Display messages

...

Arguments passed to other functions

Value

Returns a character vector

Examples

Run this code
# NOT RUN {
metafeatures <- Seurat::GetAssayData(object = atac_small[['peaks']], slot = 'meta.features')
MatchRegionStats(
  meta.feature = metafeatures,
  regions = head(rownames(metafeatures), 10),
  features.match = "percentile",
  n = 10
)
# }

Run the code above in your browser using DataCamp Workspace