R/segmentWrapper.R

Defines functions segmentWrapper

segmentWrapper <-
function(CNAvec,chrom,maploc,ranseed,dtype,...){
	if(all(CNAvec==chrom)|all(CNAvec==maploc))return(NULL)
	if(!is.null(ranseed))set.seed(ranseed)
	CNAobj<-CNA(genomdat=CNAvec,chrom=chrom,maploc=maploc,data.type=dtype)
	seg<-segment(CNAobj,...)
	return(data.frame(seg$output,seg$segRows))
}

Try the ParDNAcopy package in your browser

Any scripts or data that you put into this service are public.

ParDNAcopy documentation built on May 2, 2019, 2:12 p.m.