-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor the BIA retrieval tool #11
Comments
I'm looking into this task. Tool source: tools/image_processing/bia-ftplinks Is it helpful to add this tool to the IUC tool repository, so we also make use of their tests and best practices? |
Started tracking the progress in this draft PR: bgruening/galaxytools#1541
but I have found info about it in the following places:
And some context:
|
Thanks @B0r1sD!
Right now "storage mode" is a text field, but according to the help text of the field, only two values are accepted (either
To me and @beatrizserrano it wasn't immediately clear how to determine the correct value for this input. I see from your explanations what either of the two is, but still, how is the user supposed to determine the correct value for input here? Can we add a help text here to provide some guidance? |
#!/bin/bash
# Run this file in bash with this command: ./filename
HOST=ftp.ebi.ac.uk
USER=anonymous
ftp -pinv $HOST <<EOF
user $USER
cd biostudies/fire/S-BIAD/458/S-BIAD1458/Files
binary
mget "Red blood cell differential image data/data/0-0.3/0(11).jpg"
mget "Red blood cell differential image data/data/0-0.3/0(2).jpg"
disconnect
bye
EOF |
Cool can we use the curl command in the tool wrapper to determine the correct mode automatically? |
Yeah that would be ideal. |
Let me know if you need any help! |
@B0r1sD What's your current state? We need to report our state tomorrow. It would be ideal if you could tick the boxes! 🥳 |
Current state: we're in talks with folks from BIA to add a button on their website to seamlessly integrate a data retrieval method similar to some 'Get Data' tools (UCSC, EBI SRA,...). In the meanwhile, I got an answer about the FIRE/NFs:
So we decided to keep the dropdown but let the FIRE option be default and thoroughly explain why there are two options (and when to choose what). curl "https://www.ebi.ac.uk/biostudies/api/v1/studies/S-BIAD570/info" -s | jq '.. | .ftpLink? // empty' But makes use of their API that is in alpha. Via the ftp link, the nfs/fire information is not directly included (could get found later if we change the wrapper). curl "https://ftp.ebi.ac.uk/biostudies/fire/S-BIAD/570/S-BIAD570/" -s |
Information communicated to the BIA: Technical detailsGeneral flow
Depending on how the data is fetched at your end, the depositing of data should be either implemented synchronously (docs) or asynchronously (docs). The synchronous implementation is less complex but depending on your backend, this could simply not be an option. @wm75 is an expert in this implementation so can provide technical support where needed. Code implementation example(s)The following Github repo contains the example scripts for the implementation on 3 different Python web framework (Cherrypy, Django, Flask): https://github.com/hexylena/galaxy-data_source-examples ExamplesBelow is an example how this feature was implemented by the UCSC for their Tablebrowser, from both perspectives. Data(base) sideBelow, two examples of active implementations are shown, which is the relevant perspective for your team. -UCSC Tableviewer-
-EBI SRA- A video (from 2015) showing the workflow and how EBI implemented this on their side for the European Short Read Archive: https://usegalaxy.eu/tool_runner/data_source_redirect?tool_id=ebi_sra_main Galaxy sideThis is how the Galaxy tool (or 'wrapper') would look like on Galaxy's side: XML file example for the UCSC Tablebrowser: https://github.com/galaxyproject/galaxy/blob/dev/tools/data_source/ucsc_tablebrowser.xml. More technical information on this tool of the 'data source' type can be found here: https://docs.galaxyproject.org/en/latest/dev/data_source.html. This is something we would develop and provide. |
The retrieval tool also only works for studies that are part of BioImages - Core collection (with an accession that looks like |
Having some issues serving the tool locally, the last change is a more verbose help section which I will add later:
|
There is a tool for downloading images from the Bioimage Archive:
https://imaging.usegalaxy.eu/root?tool_id=toolshed.g2.bx.psu.edu/repos/bgruening/bia_download/bia_download/0.1.0+galaxy0
The UI of this tool needs some love:
nfs
orfire
, this should thus be a dropdown field.Optional:
The text was updated successfully, but these errors were encountered: