Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mconlon17/vivo-grant-ingest
Manage grant data in VIVO
https://github.com/mconlon17/vivo-grant-ingest
Last synced: 11 days ago
JSON representation
Manage grant data in VIVO
- Host: GitHub
- URL: https://github.com/mconlon17/vivo-grant-ingest
- Owner: mconlon17
- License: bsd-3-clause
- Created: 2014-11-10T22:45:34.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-10T22:55:34.000Z (about 10 years ago)
- Last Synced: 2023-08-05T04:38:03.782Z (over 1 year ago)
- Language: Python
- Size: 1.54 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Grant ingest
Getting started with grant ingest.
## Innovations
* Adding a grant is just a call to create a URI that assigns type grant. Then update
that URI. So all attributes for all grants are handled as updates.
* All dates are attempted to be reused. Dates and datetime intervals are only
created if they can not be found in VIVO
* The source data is read into a dictionary and extensively prepped for processing.
Hopefully this clarifies and simplifies the eventual processing. Also gathers
all the error checking, corrections and exception processing in one place.
* Personnel on grants are classified into three types: 1) PIs -- any number of people
can be PI; 2) Co-PI -- any number can be co-PI, and 3) Investigator -- any number
of people can be investigators## Notes
Takes about three minutes for dictionary loading
## Production Process
- Ed Neu runs process to create vivo_grants.txt
- Ed Neu SFTP's file to Shands FTP site using CTS-VIVO with password
- Script to do the following:
- Delete old output files named vivo_grants_add.rdf and vivo_grants_sub.rdf
- Delete old log files named vivo_grants_log.txt and vivo_grants_exc.txt
- Delete old input file named vivo_grants.txt
- Run the following commands:
- lftp sftp://cts-vivo:[email protected] -e "get vivo_grants.txt; bye"
- python grant_ingest.py
- Through site admin interface, run add on vivo_grants_add.rdf
- Through site admin interface, run sub on vivo_grants_sub.rdf