nih-sparc / sparc.client

Python client for NIH SPARC
https://docs.sparc.science/docs/sparc-python-client
Apache License 2.0
0 stars 8 forks source link

Request for DOI-Based File Search and Download Feature #23

Open Kayvv opened 11 months ago

Kayvv commented 11 months ago

I have encountered a challenge while attempting to download dataset files via DOI links on Pennsieve. When the provided DOI corresponds to an older version of the dataset, the required file may not be available in the latest version.

For example, this DOI link corresponds to version 4 of dataset 100, and the file I need is not available in the most recent version of dataset 100. I am unsure of how to access and download this file from Pennsieve.

I'd like to propose the addition of a new feature that would enable users to search for and download files based on a provided DOI link. This feature would greatly enhance the usability and accessibility of the platform.

Alternatively, another option could be to add a "version" query parameter in the list_files function, because I can obtain the dataset ID and version number through this Pennsieve API(https://docs.pennsieve.io/reference/getdatasetbydoi-1).

Thanks

athril commented 9 months ago

This requires some backend modifications, as this is currently not supported. Adding @muftring and @darrell-d .