R/SegSeqResProcess.R

Defines functions SegSeqResProcess

Documented in SegSeqResProcess

SegSeqResProcess <-
function(filename) {
	segseqRaw = read.delim(filename)
	chrs = sort(unique(segseqRaw[,1]))
	segseqRes = vector("list", length(chrs))
	for(j in 1:length(chrs)) {
		segseqRes[[j]] = as.matrix(segseqRaw[segseqRaw[,1]==chrs[j],-1])
	}
	names(segseqRes) = as.character(chrs)
	nChrs = length(segseqRes)
	tauHat = vector("list", nChrs)
	for(j in 1:nChrs) {
		tauHat[[j]] = unique(c(segseqRes[[j]][1,1],segseqRes[[j]][,2]))
	}
	names(tauHat) = names(segseqRes)
	return(tauHat)
}

Try the SeqCNVCBS package in your browser

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

SeqCNVCBS documentation built on May 2, 2019, 6:51 p.m.