Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Downloading Results Files #12

Open
ptth222 opened this issue Feb 12, 2025 · 1 comment
Open

Add Downloading Results Files #12

ptth222 opened this issue Feb 12, 2025 · 1 comment

Comments

@ptth222
Copy link
Collaborator

ptth222 commented Feb 12, 2025

There are around 1000 analysis files out of 4000 that don't have METABOLITES and DATA sections. They instead have a RESULTS_FILE. It needs to be downloaded separately from the MWTAB file. In the MWTAB specification the file is supposed to be a tab-delimited .txt file with the sample information. There is nothing about metabolite information being in this file in the specification, and the few that I have looked at do not contain any metabolite information, even though those sections are missing from the MWTAB file.

The download URL looks similar to downloading MWTAB files though, so at least that part should not be too difficult:
https://www.metabolomicsworkbench.org/studydownload/ST000071_AN000111_Results.txt

The specification does not specify that the files must be named like "ST000071_AN000111_Results.txt", so relying on that to create the URL is probably not a good idea. I think we are going to have to download the analysis file and parse it to get the results file out of it.

I am wondering if we should modify the MWTAB file and just put the results file info in there where it should be.

@hunter-moseley
Copy link
Member

hunter-moseley commented Feb 12, 2025 via email

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

No branches or pull requests

2 participants