R/nucleotide.matching.positions.R

Defines functions nucleotide.matching.positions

Documented in nucleotide.matching.positions

nucleotide.matching.positions <-
function(matchNuc, nuclength){
	positionNuc <- list()
	p <- 1
	for(i in 1:nrow(matchNuc)){
		for(n in 1:nuclength){
			if(is.na(matchNuc[i,n+2]) == FALSE){
				positionNuc[[p]] <- c(matchNuc[i,1], matchNuc[i, 2], n)
				p = p + 1
			}
		}
	}
	return(positionNuc)
}

Try the VLF package in your browser

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

VLF documentation built on Aug. 18, 2022, 5:06 p.m.