-
Notifications
You must be signed in to change notification settings - Fork 28
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
Bulk update graphite #282
base: master
Are you sure you want to change the base?
Bulk update graphite #282
Conversation
parent_is_defined_if_not_tissue(row) | ||
|
||
# check these columns are unique | ||
field_is_unique(row[graphite.CSV_RESOURCE_URI], |
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.
confused about this function, not sure I see how resource_uri_set
is ever populated
also, the function itself doesn't seem to use the arguments being passed in. maybe misreading?
print(f"'{field_name}' is a required field in '{csv_file}'. It is empty for '{internal_id}'", file=sys.stderr) | ||
sys.exit(1) | ||
|
||
def field_is_unique(field, field_name, column_set, internal_id, csv_file): |
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.
remove internal_id - not used
NOT TESTED
Given two CSV files (one oncotree downloaded from Graphite, the second the same file modified with any changes needed to the tree) this will output an RDF file to be uploaded to Graphite. Any nodes that need removing from Graphite must be removed manually. The script will validate the changes and also output a description of them and will ask the user to confirm that all changes are intentional. It will remind them to manually delete any oncotree nodes that have been removed.
An example run from the script looks like this: