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

Doesn't work with more recent versions of biodb #68

Open
elliotfontaine opened this issue Jul 17, 2024 · 7 comments
Open

Doesn't work with more recent versions of biodb #68

elliotfontaine opened this issue Jul 17, 2024 · 7 comments
Assignees
Labels

Comments

@elliotfontaine
Copy link

Hi.

Versions in README.md should be more strict: the script fails with versions of biodb that don't expose the biodb::BiodbLogger class anymore. For exemple it fails with biodb 1.10.0

R packages:

getopt >= 1.20.0.
biodb >= 1.2.0rc2. # this should be more strict
@elliotfontaine
Copy link
Author

It doesn't even work with biodb 1.2.0. Which version do you use on W4M ?

@pkrog
Copy link
Member

pkrog commented Jul 18, 2024

Hi @elliotfontaine ,

If I understand well you are trying to run the script as a standalone script, not inside a Galaxy instance, right ?
As you see, the instructions are rather old, since it makes reference to R version 3.5. Are you using this version of R ?

@elliotfontaine
Copy link
Author

elliotfontaine commented Jul 18, 2024

Hi @pkrog ,
Yes I'm trying to use the script on its own. I was using R 4.3.3 when I tried it.
I believe the main issue is that the script uses a old interface of biodb, which exposed biodb::BiodbLogger et biodb::Biodb. It was only the case in 1.2.0rc, which sadly isn't on bioconductor/bioconda because it's a release candidate.

@elliotfontaine
Copy link
Author

I'm gonna try again with versions described in lcmsmatching.xml.

<requirements>
		<requirement type="package" version="1.2.2">r-biodb</requirement>
		<requirement type="package" version="1.20.0">r-getopt</requirement>
		<requirement type="package" version="0.2_15">r-codetools</requirement> <!-- R_VERSION="0.2-15" IMPORTANT Do not remove, used by travis_install_deps.sh script. --> <!-- codetools package is needed because of the following error when running Galaxy on Travis-CI in planemo tests: "code for methods in class “HtmlWriter” was not checked for suspicious field assignments (recommended package ‘codetools’ not available?)". -->
		
</requirements>

@pkrog
Copy link
Member

pkrog commented Jul 18, 2024

Je regarde de mon côté si je peux mettre à jour pour la dernière version de biodb sur Bioconductor.

@pkrog pkrog self-assigned this Jul 18, 2024
@pkrog pkrog added the bug label Jul 18, 2024
@pkrog
Copy link
Member

pkrog commented Jul 18, 2024

It fails with biodb 1.2.2 and R 4.4.1. Because of old code that passed with older versions of R:

DEBUG[2024-07-18 12:49:12.8530194759369][BiodbFactory::getFactory()] : Creating new connector mass.csv.file for database class mass.csv.file, with base URL "./res/filedb/filedb-rtsec.tsv".   
Error in !is.null(colname) && !is.na(colname) :                                                                                                                                                
  'length = 4' in coercion to 'logical(1)'                                                                                                                                                     
Calls: get.db.conn -> <Anonymous>                                                                                                                                                              
Execution halted                                                                                                                                                                               

I tried to upgrade lcmsmatching to latest version of biodb in Bioconductor. But it is too much work.
If you have some notions of R language, I would suggest to use the latest biodb package directly by installing it from Bioconductor. See https://www.bioconductor.org/packages/release/bioc/html/biodb.html.
Included vignettes will show you how to use it.

@elliotfontaine
Copy link
Author

Thanks !

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

No branches or pull requests

2 participants