diff --git a/pephub/routers/api/v1/namespace.py b/pephub/routers/api/v1/namespace.py index 84950b98..b7f4228c 100644 --- a/pephub/routers/api/v1/namespace.py +++ b/pephub/routers/api/v1/namespace.py @@ -42,7 +42,7 @@ from ....helpers import parse_user_file_upload, split_upload_files_on_init_file from ...models import FavoriteRequest, ProjectJsonRequest, ProjectRawModel -from attribute_standardizer import AttrStandardizer +from bedms.const import AVAILABLE_SCHEMAS load_dotenv() @@ -462,11 +462,8 @@ async def get_archive(namespace: str, agent: PEPDatabaseAgent = Depends(get_db)) @namespace.get( "/standardizer_schemas", - summary="Get metadata of all archived files of all projects in the namespace", + summary="Get all available schemas from BEDMS", ) async def get_schemas(namespace: str, agent: PEPDatabaseAgent = Depends(get_db)): - model = AttrStandardizer("ENCODE") - schemas = model.get_available_schemas() - - return schemas + return AVAILABLE_SCHEMAS diff --git a/pephub/routers/api/v1/project.py b/pephub/routers/api/v1/project.py index ea6e53e3..1beed717 100644 --- a/pephub/routers/api/v1/project.py +++ b/pephub/routers/api/v1/project.py @@ -57,7 +57,7 @@ ) from .helpers import verify_updated_project -from attribute_standardizer import AttrStandardizer +from bedms import AttrStandardizer _LOGGER = logging.getLogger(__name__) diff --git a/web/src/components/modals/standardize-metadata.tsx b/web/src/components/modals/standardize-metadata.tsx index 0d799664..86972c3f 100644 --- a/web/src/components/modals/standardize-metadata.tsx +++ b/web/src/components/modals/standardize-metadata.tsx @@ -202,7 +202,7 @@ export const StandardizeMetadataModal = (props: Props) => {

- Use the metadata standardizer powered by BEDms to bring consistency across metadata columns in all of your + Use the metadata standardizer powered by BEDMS to bring consistency across metadata columns in all of your projects. After choosing a standardizer schema below, compare predicted suggestions (confidence indicated in parenthesis) and choose whether to keep or discard them. Column contents are not modified by the standardizer. After accepting the changes, save your project for them to take effect.