You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def_add_annotations(self, se, schemaGenerator, row, entityId, useSchemaLabel, hideBlanks):
1305
+
def_add_annotations(self, se, schemaGenerator, row, entityId, hideBlanks):
1309
1306
"""Helper function to format and add annotations to entities in Synapse.
1310
1307
Args:
1311
1308
se: schemaExplorer object,
1312
1309
schemaGenerator: schemaGenerator Object.
1313
1310
row: current row of manifest being processed
1314
1311
entityId (str): synapseId of entity to add annotations to
1315
-
useSchemaLabel (bool): Flag to use schema label instead of display name
1316
1312
hideBlanks: Boolean flag that does not upload annotation keys with blank values when true. Uploads Annotation keys with empty string values when false.
1317
1313
Returns:
1318
1314
Annotations are added to entities in Synapse, no return.
manifest (pd.DataFrame): loaded df containing user supplied data.
1363
1358
manifest_record_type: valid values are 'entity', 'table' or 'both'. Specifies whether to create entity ids and folders for each row in a manifest, a Synapse table to house the entire manifest or do both.
1364
1359
datasetId (str): synapse ID of folder containing the dataset
1365
-
useSchemaLabel (bool): Default is True - use the schema label. If False, uses the display label from the schema. Attribute display names in the schema must not only include characters that are not accepted by Synapse. Annotation names may only contain: letters, numbers, '_' and '.'.
1366
1360
hideBlanks (bool): Default is false -Boolean flag that does not upload annotation keys with blank values when true. Uploads Annotation keys with empty string values when false.
1367
1361
manifest_synapse_table_id (str): Default is an empty string ''.
component_name (str): Name of the component manifest that is currently being uploaded.
1426
1420
restrict (bool): Flag for censored data.
1427
1421
manifest_record_type (str): valid values are 'entity', 'table' or 'both'. Specifies whether to create entity ids and folders for each row in a manifest, a Synapse table to house the entire manifest or do both.
1428
-
useSchemaLabel(bool): Default is True - use the schema label. If False, uses the display label from the schema. Attribute display names in the schema must not only include characters that are not accepted by Synapse. Annotation names may only contain: letters, numbers, '_' and '.'.
1429
1422
hideBlanks (bool): Default is False -Boolean flag that does not upload annotation keys with blank values when true. Uploads Annotation keys with empty string values when false.
1430
1423
table_malnipulation (str): Specify the way the manifest tables should be store as on Synapse when one with the same name already exists. Options are 'replace' and 'upsert'.
datasetId (str): synapse ID of folder containing the dataset
1488
1480
restrict (bool): Flag for censored data.
1489
1481
manifest_record_type: valid values are 'entity', 'table' or 'both'. Specifies whether to create entity ids and folders for each row in a manifest, a Synapse table to house the entire manifest or do both.
1490
-
useSchemaLabel (bool): Default is True - use the schema label. If False, uses the display label from the schema. Attribute display names in the schema must not only include characters that are not accepted by Synapse. Annotation names may only contain: letters, numbers, '_' and '.'.
1491
1482
hideBlanks (bool): Default is False -Boolean flag that does not upload annotation keys with blank values when true. Uploads Annotation keys with empty string values when false.
1492
1483
table_malnipulation (str): Specify the way the manifest tables should be store as on Synapse when one with the same name already exists. Options are 'replace' and 'upsert'.
1493
1484
with_entities (bool): Default is False - Flag to indicate whether to create entityIds and add annotations.
1494
1485
Return:
1495
1486
manifest_synapse_file_id (str): SynID of manifest csv uploaded to synapse.
0 commit comments