create_region_object: Create genomic region data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/create_region_object.R

Description

create_region_object creates genomic regions (e.g. forms methylation regions data) using as input methylation and annotation data with genomic regions of interest.

Usage

1
2
3
4
5
6
7
8
create_region_object(
  met_dt,
  anno_dt,
  cov = 5,
  ignore_strand = TRUE,
  is_parallel = TRUE,
  no_cores = NULL
)

Arguments

met_dt

A GRanges object with methylation data, whose format should be similar to read_methylation_report.

anno_dt

A GRanges object with annotation data, whose format should be similar to read_annotation.

cov

Integer defining the minimum coverage of CpGs that each region must contain.

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 list object containing the two elements:

Note: The lengths of met and anno should match.

Author(s)

Hongen Kang geneprophet@163.com

See Also

read_methylation_report, read_annotation

Examples

1
2
3
4
5
6
7
## Not run: 
# Download the files and change the working directory to that location
human_met <- read_methylation_report("name_of_met_file")
human_anno <- read_annotation("name_of_anno_file")
human_obj <- create_region_object(human_met, human_anno)

## End(Not run)

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