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
Copy file name to clipboardExpand all lines: docs/src/en/opentargets.md
+2-35Lines changed: 2 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,41 +34,8 @@ Note: Not compatible with the `tractability` and `depmap` resources.
34
34
Path to the JSON file the results will be saved in, e.g. path/to/directory/results.json. Default: Standard out.
35
35
Python: `save=True` will save the output in the current working directory.
36
36
37
-
**Optional filter arguments**
38
-
39
-
`-fd``--filter_disease``disease_id`
40
-
Filter by disease ID, e.g. 'EFO_0000274'. *Only valid for the `drugs` resource.*
41
-
42
-
`-fc``--filter_drug``drug_id`
43
-
Filter by drug ID, e.g. 'CHEMBL1743081'. *Only valid for the `pharmacogenetics` resource.*
44
-
45
-
`-ft``--filter_tissue``tissue_id`
46
-
Filter by tissue ID, e.g. 'UBERON_0000473'. *Only valid for the `expression` and `depmap` resources.*
47
-
48
-
`-fa``--filter_anat_sys`
49
-
Filter by anatomical system, e.g. 'nervous system'. *Only valid for the `expression` resource.*
50
-
51
-
`-fo``--filter_organ``anatomical_system`
52
-
Filter by organ, e.g. 'brain'. *Only valid for the `expression` resource.*
53
-
54
-
`-fpa``--filter_protein_a``protein_a_id`
55
-
Filter by the protein ID of the first protein in the interaction, e.g. 'ENSP00000304915'. *Only valid for the `interactions` resource.*
56
-
57
-
`-fpb``--filter_protein_b``protein_b_id`
58
-
Filter by the protein ID of the second protein in the interaction, e.g. 'ENSP00000379111'. *Only valid for the `interactions` resource.*
59
-
60
-
`-fgb``--filter_gene_b``gene_b_id`
61
-
Filter by the gene ID of the second protein in the interaction, e.g. 'ENSG00000077238'. *Only valid for the `interactions` resource.*
62
-
63
-
`filters`
64
-
Python only. A dictionary of filters, e.g.
65
-
```python
66
-
{'disease_id': ['EFO_0000274', 'HP_0000964']}
67
-
```
68
-
69
-
`filter_mode`
70
-
Python only. `filter_mode='or'` combines filters of different IDs with OR logic.
71
-
`filter_mode='and'` combines filters of different IDs with AND logic (default).
37
+
`--filters`
38
+
Filter results by exact equality using returned OpenTargets column names. Pass multiple filters by repeating the flag, e.g. '--filter disease.id=EFO_0000274 --filter drug.id=CHEMBL1743081'. Nested fields use dot notation, matching the column names returned by the API.
Copy file name to clipboardExpand all lines: docs/src/en/updates.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
- some output column/key names may differ to reflect the new API structure
7
7
- Removed the `--filter_mode` argument
8
8
-[`gget blast`](blast.md): Fixed compatibility with newer pandas versions (≥ 2.0) where `pd.read_html()` no longer accepts raw HTML strings directly, causing a `FileNotFoundError` / `OSError: Filename too long` error when parsing BLAST results
9
+
-[`gget cosmic`](cosmic.md): Added overwrite and gzip arguments to internals.
9
10
10
11
**Version ≥ 0.30.3** (Feb 22, 2026):
11
12
-[`gget virus`](virus.md): New filtering options, quiet mode, and improved download reliability
0 commit comments