我安装了BSgenome似乎工作但我无法加载库。以下代码来自Biostrings包
> require(BSgenome)
> require(Biostrings)
> library(BSgenome.Dmelanogaster.UCSC.dm3)
Error in library(BSgenome.Dmelanogaster.UCSC.dm3) :
there is no package called 'BSgenome.Dmelanogaster.UCSC.dm3'
> subject <- Dmelanogaster$chr3R
Error: object 'Dmelanogaster' not found
> Lpattern <- "AGCTCCGAG"
> Rpattern <- "TTGTTCACA"
> matchLRPatterns(Lpattern, Rpattern, 500, subject) # 1 match
Error in function (classes, fdef, mtable) :
unable to find an inherited method for function "matchLRPatterns", for signature "standardGeneric"
感谢您的帮助。你可以试试电脑,看看这对你有用吗?什么可能是潜在的问题。
答案 0 :(得分:1)
感谢Roman Lustrik,以下代码有效:
source("bioconductor.org/biocLite.R";)
biocLite("BSgenome.Dmelanogaster.UCSC.dm3")
library(BSgenome.Dmelanogaster.UCSC.dm3)
subject <- Dmelanogaster$chr3R
Lpattern <- "AGCTCCGAG"
Rpattern <- "TTGTTCACA"
matchLRPatterns(Lpattern,
Rpattern, 500, subject) # 1 match