R/revComp.R

Defines functions revComp

# Revserse complement a vector of character strings (ATCG)
# Author : Sylvain Mareschal <maressyl@gmail.com>
revComp <- function(seq) {
	out <- character(length(seq))
	seq <- strsplit(seq, split="")
	dic <- c("A"="T", "C"="G", "G"="C", "T"="A")
	for(i in 1:length(seq)) out[i] <- paste(dic[ rev(seq[[i]]) ], collapse="")
	return(out)
}

Try the MLPA package in your browser

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

MLPA documentation built on May 2, 2020, 1:06 a.m.