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
Create mock / simulated data project for a list of nodes in the data dictionary. Ignores program/project root nodes, so make sure those exist first. This is a wrapper for the func Gen3Expansion.create_mock_tsv()
5167
+
Args:
5168
+
dd (dict): the Gen3 data dictionary you get with Gen3Submission.get_dictionary_all().
5169
+
node_counts(dict): node_ids as keys, values is number of records to create for that node.
5170
+
For example: {"case":3,"imaging_study":6}
5171
+
project_id(str): If no project_id is provided, using the generic 'DEV-test' project_id
5172
+
outdir(str): the local directory to write simulated TSV data to.
5173
+
excluded_props(list): a list of properties in data dictionary to ignore / exclude from TSVs.
5174
+
file_props(list): a list of file_properties to be simulated; unlikely to change from default.
5175
+
excluded_nodes(list): a list of nodes to not create mock TSVs for.
5176
+
submit_tsvs(boolean): if true, will use sdk to submit the DataFrames via sheepdog
5177
+
"""
5178
+
dd_version=dd["_settings"]["_dict_version"]
5179
+
ifproject_idisNone:
5180
+
print("\tNo 'project_id' provided; using the generic 'DEV-test' as the project_id.")
5181
+
project_id="DEV-test"
5182
+
prog,proj=project_id.split("-",1)
5183
+
5184
+
# for the create_mock_tsv() func, we need "node", "count" and "parent_tsvs".
5185
+
5186
+
# Build node_counts if not provided; this gets us "node" and "count"
0 commit comments