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

Dataverse data access module #170

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Dataverse data access module #170

wants to merge 3 commits into from

Conversation

abearab
Copy link

@abearab abearab commented Dec 24, 2024

Aim

Including a draft dataverse data collector as part of gget tool boxes.

e.g.

gget dataverse -t dataverse.tsv -o path-to-dir
import gget
# df table with `id`, `name`, and `type` columns
gget.dataverse(df = df,  path = 'path-to-dir')

Tasks

  • make a python module and CLI for data collection from dataverse
  • collect data for a list of datasets defined as a JSON
  • build a JSON file for a list of datasets deposited in a given dataverse DOI at certain version
  • collect data by providing a dataverse DOI and version
  • collect data by providing a list of dataverse datafiles (i.e. id, name, and type) in dataframe or csv/tsv file
  • collect data by providing a list of dataverse datafiles (i.e. id, name, and type) as arguments

History

As part of GilbertLabUCSF/CanDI#34, related to #121, I draft a module to collect data from dataverse. Then I thought data collection from dataverse can be a more general functionality here as part of gget.

I mostly borrowed codes from gears/utils.py or TDC/load.py. However, there are other efforts such as pyDataverse and easyDataverse.

References

@abearab
Copy link
Author

abearab commented Dec 24, 2024

@lauraluebbert – I simplified this feature as discussed here #124 (comment). It should be more straightforward now and it works smoothly on my end, let me know what you think!

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

Successfully merging this pull request may close these issues.

1 participant