Skip to contents

This is a basic function for searching for CpGs within a given coordinate range

Usage

findCpGsRange(range, cpgs)

Arguments

range

A vector with start and end position of the range.

cpgs

A table with all CpGs in a given chromosome, with the columns named: "id", "coord".

Value

A data.frame with CpGs with columns named: "id", "coord".

Details

Given a position range and chromosome number, along with a table of positions of CpGs in this chromosome, the function will return a data.frame with the chosen CpGs.