-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cellguide): upload json script #6426
Conversation
Deployment Summary
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6426 +/- ##
=======================================
Coverage 92.07% 92.07%
=======================================
Files 178 178
Lines 14732 14732
=======================================
Hits 13565 13565
Misses 1167 1167
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one small question, but otherwise this looks great! I'm trusting that you've tested this in rdev already..
Reason for Change
This is a script to upload cellguide descriptions using the
/cellguide/v1/upload
endpoint.It requires a csv file to be present in the
scripts
directory with the following columns:Cell Ontology ID, Final version (QC'd), Supporting reference 1, Supporting reference 2, Supporting reference 3, Supporting reference 4, Supporting reference 5
The script will convert the csv to json and post each row to the endpoint.
Testing steps
Step 1 - Login:
python upload_cellguide_descriptions.py --deployment rdev login --api_key <api_key>
Step 2 - Upload:
python upload_cellguide_descriptions.py --deployment rdev upload --path cl_descriptions.csv
Notes for Reviewer