pepkit / pepdbagent

Database for storing sample metadata
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

retrieving projects #3

Closed nsheff closed 1 year ago

nsheff commented 2 years ago

the readme says:

pr_ob = projectDB.get_project(project_name='imply')
print(pr_ob.samples)

But I think you should not be able to retrieve a project by name, since it's not unique. instead, you should retrieve by registry path.

somthing like:

pr_obj = projectDB.get_project("namespace/project")

you should use ubiquerg.parse_registry_path to parse this and then lookup.

nleroy917 commented 1 year ago

Should be solved with latest updates.