R/convert.snp.illumina.R

"convert.snp.illumina" <- function(infile,outfile,strand="+",bcast=10000000) {

	alcodes <- alleleID.codes()

	poss <- c("u","+","-","file")
	intstrand <- which(poss == strand)-1
	if (length(intstrand) != 1) {cat("strand argument must be one of",poss,"\n");stop();}

# strand == 0 -> unknown ('u')
# strand == 1 -> plus ('+')
# strand == 2 -> minus ('-')
# strand == 3 -> four columns (name,chr,pos,strand) expected at the beginning

	.C("convert_snp_illumina",as.character(infile),as.character(outfile),as.integer(intstrand),as.integer(bcast),as.character(alcodes),as.integer(length(alcodes)),PACKAGE="GenABEL")
    	return(invisible(0))
}

Try the GenABEL package in your browser

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

GenABEL documentation built on May 30, 2017, 3:36 a.m.