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)
}
pievos101/PopGenome documentation built on Feb. 24, 2023, 7:11 a.m.