trade29.sc.SubgraphQuery#
- class trade29.sc.SubgraphQuery(study_id: int, subgraphs: list[int])#
Represents a selection of subgraphs from a study.
- Parameters:
- study_idint
The ID of the study in question. Just the number component in the ID of the study list
- subgraphslist[int]
A list of subgraph ID numbers.
Examples
>>> from trade29.sc import SubgraphQuery >>> foo = SubgraphQuery(2, [1, 2, 3, 6]) # represents SG1, SG2, SG5 from study ID:2 >>> # you can also add lists >>> bar = SubgraphQuery(2, [1, 2, 3] + [6]) # represents SG1, SG2, SG5 from study ID:2 >>> #or build them from functions >>> bar = SubgraphQuery(4, range(1, 4)) # represents SG1 through SG3 from study ID:4