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

Downloading a file from a shared data library #468

Open
Patinetilla opened this issue Apr 20, 2023 · 3 comments
Open

Downloading a file from a shared data library #468

Patinetilla opened this issue Apr 20, 2023 · 3 comments

Comments

@Patinetilla
Copy link

Hi there,
Is there any way of downloading a file from a shared data library? Similar to datasets.download_datasets but for files in libraries.
Thank you very much in advance.

@nsoranzo
Copy link
Member

Hi @Patinetilla , thanks for opening this issue. You are correct that this is not yet available in "normal" BioBlend, but it is when using BioBlend.objects: https://bioblend.readthedocs.io/en/latest/api_docs/galaxy/all.html#bioblend.galaxy.objects.wrappers.Dataset.download (Dataset is an ancestor class of LibraryDataset).
I am working on adding a download_dataset() method to LibraryClient for "normal" BioBlend, but it may take a bit of time since I'd like to refactor some code in common with the history dataset download.

@Patinetilla
Copy link
Author

Thank you very much for your answer, @nsoranzo! I will try it.

@Patinetilla
Copy link
Author

Hi again @nsoranzo! I have tried to implement your solution but I am bit lost with the input arguments of that class. Could you please provide me an example snippet? I would really appreciate it.

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

No branches or pull requests

2 participants