standardize_segs: Takes and returns segs data frame standardized to a single...

Description Usage Arguments Value

View source: R/gUtils.R

Description

Takes and returns segs data frame standardized to a single format (i.e. $chr, $pos1, $pos2)

If chr = TRUE will ensure "chr" prefix is added to chromossome(if does not exist)

"segs" data.frame can obey any number of conventions to specify chrom, start, and end of ranges (e.g. $pos1, $pos2, $Start_position, $End_position)

Conventions:

Usage

1
standardize_segs(seg, chr = FALSE)

Arguments

seg

data.frame or data.table or GRanges of segments with fields denoting chromosome, start, end, and other metadata.

chr

boolean Flag to force add chromosomes (default = FALSE)

Value

data.frame or data.table with standardized segments


mskilab/gUtils documentation built on Sept. 1, 2018, 8:21 p.m.