Hello Shawn,
I have the exact same problem with "Error in path.expand(path) : invalid 'path' argument" and wonder if you can help me. The code I have the as following:
install.packages("Matrix")
install.packages("SPAtest")
install.packages("SKAT")
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("snpStats")
library(Matrix)
library(SPAtest)
library(SKAT)
library(snpStats)
rp <- read.plink("BED.bed", "BED.bim", "BED.fam", na.strings = c("0", "-9"), sep = "." , select.subjects = NULL, select.snps = NULL)
bed=as.data.frame(rp$genotypes)
fam=as.data.frame(rp$fam)
bim=as.data.frame(rp$map)
File.SetID<-read.table("File.SetID ")
Generate_SSD_SetID(File.Bed = bed, File.Bim = bim, File.Fam = fam, File.SetID = File.SetID,File.SSD = "SSD",File.Info = "info", Is.FlipGenotype=TRUE)
Thank you very much for your attention!
Yiming Luo