Hello everyone! I successfully downloaded the Bioconductor packages sangerseqR and sangeranalyseR, however when I try to use this function: sangerseq(), I get the following error:
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘sangerseq’ for signature ‘"list"’
I'm stuck.
My R version is 4.1.3 (2022-03-10)
This is the code:
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("sangerseqR")
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("sangeranalyseR")
#Load library
library(Biostrings)
library(BiocGenerics)
library(sangerseqR)
library(sangeranalyseR)
#Import data
LF1 <- read.abif(file.choose("~/Work space/chlamydia"))
LF2 <- read.abif(file.choose("~/Work space/chlamydia"))
str(LF1)
str(LF2)
LF1seq<-sangerseq(LF1)
LF2seq<-sangerseq(LF2)