removeRegion: Remove overlapping region in coordinate 'data.table'.

View source: R/removeRegion.R

removeRegionR Documentation

Remove overlapping region in coordinate data.table.

Description

Any "coor" that overlap within the "region" will be removed e.g. region = 10-20 and coor = 1-30 The results will be: coor = 1-10, 20-30 The coor still overlap one base at the terminal. This is done to produce exact result as the previous MPhil research.

Usage

removeRegion(coor, region)

Arguments

coor

Coordinate data.table.

region

A data.table of region coordinate to be removed.

Value

New coordinate data.table with the regions removed.


kmeRtone documentation built on Sept. 11, 2024, 9:12 p.m.