Entering edit mode
I want to get SNPs information with snpsByOverlaps() and snpsBySeqname() function, but it relied as below:
#my code
library(SNPlocs.Hsapiens.dbSNP144.GRCh38)
library(BSgenome.Hsapiens.NCBI.GRCh38)
snps <- SNPlocs.Hsapiens.dbSNP144.GRCh38
snpsBySeqname(snps,c('1','MT'))
#results
#Error in extract_rowids(x_rowids_env, rowidx) :
# is.integer(idx) is not TRUE
snpsByOverlaps(snps, "X:3e6-8e6", genome="GRCh38")
#snpsByOverlaps(snps, "X:3e6-8e6", genome="GRCh38")
#Error in extract_rowids(x_rowids_env, rowidx) :
# is.integer(idx) is not TRUE
My computer is Mac with m2 silicon and snpsById()
function worked without problem.
I have no error running your code what is your
sessionInfo()
?My
sessionInfo()
is as below: