R/CombineReadsAcrossRuns.R

Defines functions CombineReadsAcrossRuns

Documented in CombineReadsAcrossRuns

CombineReadsAcrossRuns <-
function(seqs) {
	## seqs should be a LIST of seq objects with the same format
	## Each element of each seq should be a vector
	## Return: combSeq, a list of the same format as each seqs
	nSeq = length(seqs)
	nVar = length(names(seqs[[1]]))
	combSeq = vector("list", nVar)
	names(combSeq) = names(seqs[[1]])
	for(i in 1:nVar) {
		for(j in 1:nSeq) {
			combSeq[[i]] = c(combSeq[[i]], as.numeric(seqs[[j]][[i]]))
		}
	}
	return(combSeq)
}

Try the seqCBS package in your browser

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

seqCBS documentation built on May 2, 2019, 9:15 a.m.