Skip to content
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

Error in dimnames<-.data.frame when using "flag_remove" function #102

Open
hannierpulido opened this issue Oct 4, 2023 · 0 comments
Open

Comments

@hannierpulido
Copy link

Hello,

Description:
I encountered the following error while executing the "flag_remove" function:

xcmsObj2 <- flag_remove(xcmsObj, ref.class = "meoh") 
# or
xcmsObj2 <- flag_remove(xcmsObj)

Error Message:

Error in `dimnames<-.data.frame`(`*tmp*`, value = list(n)) : 
  invalid 'dimnames' given for data frame

Context:

  • The "xcmsObj@phenoData@data" object is a dataframe with a "class" column containing levels: c("blank", "meoh", "sample").
  • The "xcmsObj@phenoData@varMetadata" object is also a dataframe:
> xcmsObj@phenoData@varMetadata
  labelDescription
1   sampleMetadata
2            class
3   injectionOrder
4             mode
  • The xcmsObj is of class "XCMSnExp"

R and msPurity Versions:

  • R version 4.2.2 (2022-10-31 ucrt)
  • msPurity version 1.24.0

Any insights or suggestions to resolve this issue would be greatly appreciated.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant