R/myReadVCF.R

Defines functions myReadVCF

myReadVCF <- function(vcffile){

vcf       <- .Call("myReadVCFC",vcffile)
matrix    <- vcf[[1]]
positions <- vcf[[2]]
rownames(matrix) <- vcf[[3]]

rm(vcf)
gc()

o_b_j_sub    <- list(matrix=matrix,reference=NaN,positions=positions)

return(o_b_j_sub)
}

Try the PopGenome package in your browser

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

PopGenome documentation built on Feb. 1, 2020, 1:07 a.m.