-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflicting feature variable names when using combineFeatures twice with CV #303
Comments
For me, putting |
As noted on the support site, it should be >
> library("MSnbase")
> library("rpx")
> px1 <- PXDataset("PXD000001")
> mztab <- pxget(px1, "PXD000001_mztab.txt")
Downloading 1 file
/home/lg390/tmp/PXD000001_mztab.txt already present.
> spec <- readMzTabData(mztab, what = "PEP", version = "0.9")
Warning message:
Version 0.9 is deprecated. Please see '?readMzTabData' and '?MzTab' for details.
> pep <- combineFeatures(spec, groupBy = fData(spec)$sequence, fun = sum)
> ## expecting error
> prot <- combineFeatures(pep, groupBy = fData(pep)$accession, fun = sum)
Error in value[[3L]](cond) : duplicate 'row.names' are not allowed
AnnotatedDataFrame 'initialize' could not update varMetadata:
perhaps pData and varMetadata are inconsistent?
In addition: Warning message:
non-unique values when setting 'row.names': ‘CV.sub[1]’, ‘CV.sub[2]’, ‘CV.sub[3]’, ‘CV.sub[4]’, ‘CV.sub[5]’, ‘CV.sub[6]’
> ## now works
> prot <- combineFeatures(pep, groupBy = fData(pep)$accession, fun = sum, cv = FALSE) I'll still see to make some changes in the package to avoid this, or at least make it explicit why the error happens. |
This is now properly addressed. If there is already a set of CV feature variables, the new set will be suffixed with a |
See this question for details:
combineFeatures
(withCV = TRUE
) to combine spectra to peptides generates fvarLabelsCV.TMT6.126
...combineFeatures
(withCV = TRUE
) to combine peptides to proteins tries to generate fvarLabelsCV.TMT6.126
... and fails with errorTODO
CV
fvarLabels are already present, add a suffix.The text was updated successfully, but these errors were encountered: