cluster_sites_to_region: cluster sites to region

Description Usage Arguments Value Author(s) See Also Examples

View source: R/cluster_sites_to_region.R

Description

cluster sites which meet the required suitations to region according to the annotation file

Usage

1
2
3
4
5
6
7
8
9
cluster_sites_to_region(
  methylation,
  annotation,
  min_sites_number = 10,
  max_distance_between_sites = 200,
  ignore_strand = TRUE,
  is_parallel = TRUE,
  no_cores = NULL
)

Arguments

methylation

GRanges object created by read_methylation_report.

annotation

GRanges object created by read_annotation.

min_sites_number

the minmal number of C sites in a region. the default is 10

max_distance_between_sites

the maxmal distance between C sites within a region. the unit of distance is unit and the default is 200

ignore_strand

Logical, whether or not to ignore strand information.

is_parallel

Logical, indicating if code should be run in parallel.

no_cores

if you have specify the is_parallel is ture ,you can specify the number of parallel cores

Value

A GRanges object.

Author(s)

Hongen Kang geneprophet@163.com

See Also

read_methylation_report, read_annotation

Examples

1
2
3
4
5
## Not run: 
human_region <- cluster_sites_to_region(methylation = human_met,
                                        annotation = human_anno,is_parallel = TRUE)

## End(Not run)

geneprophet/BSDMR documentation built on March 3, 2021, 5:50 a.m.