Skip to content

HMDB XML data loading #3

@gmhhope

Description

@gmhhope

Hi Johannes,

You see I am your fans now. I am testing your docker container for doing MS/MS search. However, I encountered issues with loading the hmdb spectra XML data.

In brief, I have downloaded the All Spectra Files (XML) from https://hmdb.ca/downloads. And then I put into a local folder and then I run your docker container by:

docker run -e PASSWORD=bioc -p 8787:8787 -v /Users/gongm/Documents/projects/test/SpectraTutorials/SpectraTutorials/data/:/home/rstudio/external jorainer/spectra_tutorials:latest

So that I can also access the spectra data in ../external/hmdb_all_spectra/. However, when I run the below r script, the fls did not load correctly. And thus it gives me character(0).

library(MsBackendHmdb)

#' Get all MS2 spectra xml files and import data
fls <- dir("../external/hmdb_all_spectra/", full.names = TRUE, pattern = "ms_ms")
hmdb <- Spectra(fls, source = MsBackendHmdbXml(), nonStop = TRUE)
fls
character(0)

Do you know what is going wrong? And the loading did take at least 6 minutes before it ends.

Thanks very much always for your continuos help!

Thanks,
Minghao Gong

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions