Cookie access to the submission portal is required and can be provided by editing the .env file. Requires you be an individual with appropriate access to the submission you're transforming.
When in the NMDC data portal or submission portal, right click & select 'Inspect'
In the 'Application' menu, select 'Local Storage', specifically, the storage for the NMDC portal
For the 'Storage Refresh Token' copy the 'Value'
Edit your .env file and add this value to the file. This should read
DATA_PORTAL_COOKIE = {value}
Run etl.py with options as follows:
➜ metadata-template-transformation git:(main) ✗ poetry run python etl.py --help
Usage: etl.py [OPTIONS]
Options:
-o, --output TEXT Path to result output XLSX file. [required]
-m, --mapper PATH Path to user facility specific JSON file.
[required]
-h, --header / --no-header [default: no-header]
-u, --user-facility TEXT User facility to send data to. [required]
-s, --submission TEXT Metadata submission id. [required]
--help Show this message and exit.
Example- JGI
poetry run python etl.py --submission {UUID of the target submission} --user-facility jgi_mg --mapper input-files/jgi_mg_header.json --output file-name_jgi.xlsx
Learning how to run MUTTs with @sujaypatil96 I have some suggestions for the readme page for this repo.
Software Requirements
Setup
Cookie access to the submission portal is required and can be provided by editing the .env file. Requires you be an individual with appropriate access to the submission you're transforming.
Run
etl.py
with options as follows: