The example that I am trying to follow is this PGA tutorial. I want to use the information in the analysis of the mzML raw files from the proteomics data analysis. When I try to load the fasta file, I get the following error:
> msfile=openMSfile("/scratch/oknjav001/transcriptomics/proteogenomics/ms_rnaseqdata/msData/LTB/t16BCG.180731_C0_CH_T016BCG.mzML")
> msfile
Mass Spectrometry file handle.
Filename: 1807_C0_CH_T016BCG.mzML
Number of scans: 52332
> idfile <- runTandem(
+ spectra = msfile, fasta = dbfile, outdir = "./", cpu = 6,
+ enzyme = "[KR]|[X]", varmod = "15.994915@M", itol = 0.05,
+ fixmod = "57.021464@C", tol = 10, tolu = "ppm",
+ itolu = "Daltons", miss = 2, maxCharge = 8, ti = FALSE
+ )
Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) :
cannot coerce class '"SeqFastaAA"' to a data.frame
How can I go about fixing this error?
The example that I am trying to follow this PGA tutorial. I want to use this information in the analysis if the mzML raw files from the proteomics data analysis. When I try to load the fasta file I then get the above error.
msfile <- system.file("extdata/input", "pga.mgf",package="PGA")
idfile <- runTandem(spectra = msfile, fasta = dbfile, outdir = "./", cpu = 6,enzyme = "[KR]|[X]", varmod = "15.994915@M",itol = 0.05,fixmod = "57.021464@C", tol = 10, tolu = "ppm",itolu = "Daltons", miss = 2, maxCharge = 8, ti = FALSE)
spectra
orfasta
is expected to be adata.frame
object, but is actually aSeqFastaAA
object. The internal code is trying to convert is, but the class definition ofSeqFastaAA
has no method to be recast as adata.frame
. What is thedbfile
you're using? Is is from the PGA tutorial you linked? And does yourmsfile
coming from the mzML file need to be converted to a different object, like adata.frame
before being used as an input forrunTandem
? $\endgroup$