-
Notifications
You must be signed in to change notification settings - Fork 4
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
Remove metadata option #54
Comments
Hi @g1o thanks for reporting this. It is actually fixed in the latest version, but not in CRAN. I should push it as soon as possible. devtools::install_github("iferres/pagoo") Then you can use the |
See #44 |
Hi again @g1o , yesterday I was just leaving so I read the issue very quickly and I didn't consider the possibility of removing metadata. It's true a method to remove metadata should exist. Now it's only possible to modify columns: library(pagoo)
toy_rds <- system.file('extdata', 'campylobacter.RDS', package = 'pagoo')
a <- load_pangenomeRDS(toy_rds)
df <- a$organisms
df$country <- "Brazil"
a$add_metadata(map = "org", as.data.frame(df))
a$organisms # Now all organisms are from Brazil (country column)
.. but a method to remove columns is needed. |
If there is a duplicated metadata or an extra column in it there is no way to remove or modify the elements. This means that if you save an object with wrong metadata, you have to redo every step to generate another without the wrong metadata or extra column.
The text was updated successfully, but these errors were encountered: