Skip to content
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

sparc queries to spreadsheets #64

Open
tgbugs opened this issue May 24, 2019 · 3 comments
Open

sparc queries to spreadsheets #64

tgbugs opened this issue May 24, 2019 · 3 comments
Assignees

Comments

@tgbugs
Copy link
Owner

tgbugs commented May 24, 2019

For each organ in
https://scicrunch.org/api/1/sparc-scigraph/dynamic/prod/sparc/organList
get the list of all terms from
https://scicrunch.org/api/1/sparc-scigraph/dynamic/prod/sparc/organParts/FMA:7203
and organize into 3 lists for parts, nerves, and blood vessels
use the update functionality of the Sheet object

def update(self, values):
if self.readonly:
raise PermissionError('sheet was loaded readonly, '
'if you want to write '
'reinit with readonly=False')
update_sheet_values(self.name,
self.sheet_name,
values,
spreadsheet_service=self.spreadsheet_service)

to populate a sheet per organ in a new google sheets workbook. Columns should be

  1. curie
  2. label
  3. synonyms
  4. definition (if available)
  5. mapping to uberon if uberon has an xref, and fill in the definition from uberon

We will probably need update functionality that can keep track of where things in the grid are anchored so we can move comments, but that is for the future.

@tmsincomb

@tgbugs
Copy link
Owner Author

tgbugs commented Aug 4, 2020

Done now.

@tgbugs tgbugs closed this as completed Aug 4, 2020
@tgbugs tgbugs reopened this Feb 25, 2021
@tgbugs
Copy link
Owner Author

tgbugs commented Feb 25, 2021

This was originally done manually. This should now be done systematically, following the original spec, and should probably live in the sparcur reports/sheets file https://github.com/SciCrunch/sparc-curation/blob/master/sparcur/sheets.py.

@tgbugs
Copy link
Owner Author

tgbugs commented Feb 25, 2021

The additional requirement is that this needs to be able to be updated and kept in sync automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants