Learn R Programming

reb (version 1.50.0)

isAbnormal: Is a band 'abnormal'?

Description

Returns 1 or -1 indicating a chromosomal change based upon an input percentage.

Usage

isAbnormal(x, percent = 0.5)

Arguments

x
genomic data, can contain NA's
percent
numeric argument - a fraction or percentage

Details

This simple function is used by cset2band.

See Also

cset2band

Examples

Run this code
		#Not abnormal
	isAbnormal(c(1,NA))
		#Abnormal; +
	isAbnormal(c(1,NA,1))
		#Abnormal; -
	isAbnormal(c(1,NA,-1,-1,-1))
	

Run the code above in your browser using DataLab