Closed nleroy917 closed 1 month ago
fetch_from_pephub
is also for situations where you would want to standardize the metadata locally instead of using PEPhub.
I can add the following function:
def fetch_pep(pep):
"""
Fetches the metadata locally from peppy.Project.
"""
sample_table =peppy.Project.from_pep_config("path/to/project/sample_sheet.csv")
And then we could have the user specify the kind of path
:
attr_standardizer(path="LOCAL/PEPhub", pep=/path/to/pep, schema="ENCODE" )
Solved in new PR.
@khoroshevskyi added the function get_any_pep
Right now it looks like the
AttrStandardizer
class just fetches the PEP from pephub:But, what if the PEP is not on PEPhub? Then I can't standardize. Or what if we are already on PEPhub (like in the
/standardize
endpoint?) Thats a little inefficient, and I think it would be better if this just took apeppy.Project
object instead.