R/align_features.R

align_features <-
function(cvp) {
		allfeats <- sapply(cvp, get_pam_features)
		allprobes <- sort(unique(unlist(sapply(allfeats, function(x) x[-1]))))
		mat <- matrix("", nrow=length(allprobes)+1, ncol=length(allfeats), dimnames=list(c("00_minerr_percent",allprobes), names(allfeats)))
		for(i in 1:length(allfeats)) {
			ind <- match(allfeats[[i]][-1], allprobes)+1
			mat[ind, i] <- allfeats[[i]][-1]
			mat[1, i] <- allfeats[[i]][1]
		}
		mat
	}

Try the bootfs package in your browser

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

bootfs documentation built on May 2, 2019, 5:50 p.m.