it would be nice to only receive the annotation info for the namespace rather than a list of annotations for each project in a namespace - if that makes sense. In other words, I am proposing that there be two functions:
Obviously, some of this might need to be indexed when loading the PEP's into the database. Otherwise, if you are clever with SQL, you might be able to construct a query to do it.
There is possibility to retrieve just n_samples from each project, that we can sum it, so I think it's kinda solution. Do you need any other information annotations?
I am not sure the best route to take, but it would be nice to split up some of the
get_anno
functionalities. For example, when I run the following:it would be nice to only receive the annotation info for the namespace rather than a list of annotations for each project in a namespace - if that makes sense. In other words, I am proposing that there be two functions:
get_project_annotation("nfcore/demo_rna_pep")
This will return something like:
get_namespace_annotation("demo")
This will return something like:
Obviously, some of this might need to be indexed when loading the PEP's into the database. Otherwise, if you are clever with SQL, you might be able to construct a query to do it.