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):
1304
+
def_add_annotations(self, se, schemaGenerator, row, entityId, hideBlanks):
1308
1305
"""Helper function to format and add annotations to entities in Synapse.
1309
1306
Args:
1310
1307
se: schemaExplorer object,
1311
1308
schemaGenerator: schemaGenerator Object.
1312
1309
row: current row of manifest being processed
1313
1310
entityId (str): synapseId of entity to add annotations to
1314
-
useSchemaLabel (bool): Flag to use schema label instead of display name
1315
1311
hideBlanks: Boolean flag that does not upload annotation keys with blank values when true. Uploads Annotation keys with empty string values when false.
1316
1312
Returns:
1317
1313
Annotations are added to entities in Synapse, no return.
manifest (pd.DataFrame): loaded df containing user supplied data.
1362
1357
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.
1363
1358
datasetId (str): synapse ID of folder containing the dataset
1364
-
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 '.'.
1365
1359
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.
1366
1360
manifest_synapse_table_id (str): Default is an empty string ''.
component_name (str): Name of the component manifest that is currently being uploaded.
1425
1419
restrict (bool): Flag for censored data.
1426
1420
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.
1427
-
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 '.'.
1428
1421
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.
1429
1422
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
1487
1479
restrict (bool): Flag for censored data.
1488
1480
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.
1489
-
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 '.'.
1490
1481
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.
1491
1482
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'.
1492
1483
with_entities (bool): Default is False - Flag to indicate whether to create entityIds and add annotations.
1493
1484
Return:
1494
1485
manifest_synapse_file_id (str): SynID of manifest csv uploaded to synapse.
0 commit comments