Skip to content

About

Repo to automatically generate CyTargetLinker linksets

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

linkset-automation

WikiPathways linkset TFLink linkset ChEMBL linkset Orphanet linkset Reactome linkset SIGNOR linkset AOP-Wiki linksets CTD linksets QC XGMML BridgeDb cache

Under construction: This repo automatically generates CyTargetLinker linksets from different resources.

image

Linkset resources

This list is still being extended. The resources below are the ones covered so far; more are being added as they are automated, and the table is updated once a resource is built and deposited. LinksetStatusList.md tracks how far each resource has got, and which databases are still candidates for automation.

Resource Details Persistent DOI License
WikiPathways (13 species) wikipathways/ DOI CC BY 4.0
TFLink (5 species) tflink/ DOI CC BY-NC 4.0
ChEMBL (mechanism of action, human) CHEMBL/ not yet deposited CC BY-SA 3.0
Orphanet (human) Orphanet/ not yet deposited CC BY 4.0
Reactome (human) reactome/ not yet deposited CC0 1.0
SIGNOR (human) signor/ not yet deposited CC BY 4.0
AOP-Wiki (key event–gene, stressor–MIE) aopwiki/ not yet deposited CC BY-SA 4.0
CTD (chemical-gene interaction, 5 species) CTD/ not yet deposited written permission

Each resource name links to its upstream source, and the Details column links to that resource's own readme — how it is built, how to update it to a new release, and what is still outstanding. Resource-specific documentation lives there rather than in this file.

The DOI column holds the Zenodo concept DOI, which always resolves to the latest published version; individual versions have their own DOIs. For resources that are not yet deposited the license shown is that of the upstream source data, and the license of the eventual deposit still needs to be decided.

QC

scripts/qc_xgmml.py validates that an XGMML linkset is well-formed and has the structure every CyTargetLinker linkset carries (a <graph>, nodes with an identifiers list + type, and edges whose source/target reference existing nodes plus datasource/interaction). Empty graphs fail by default.

python3 scripts/qc_xgmml.py path/to/linkset.xgmml          # one file
python3 scripts/qc_xgmml.py '*.xgmml'                       # a glob
python3 scripts/qc_xgmml.py --allow-empty --min-edges 1 a.xgmml b.xgmml

# Report, and optionally require, BridgeDb cross-reference coverage
python3 scripts/qc_xgmml.py --mapped-type gene --min-mapped-frac 0.9 linkset.xgmml

--mapped-type reports what fraction of nodes of that type gained more than one identifier, and --min-mapped-frac fails the file below that fraction. This catches a BridgeDb mapper that failed to load, which leaves every node carrying only its input id — structurally valid, but useless for matching a network.

Exit code is non-zero if any file fails. The same check runs in CI via .github/workflows/qc-xgmml.yml, which can be triggered manually (point it at a url or repo pattern) or called from another workflow (workflow_call, e.g. on a built artifact).

About

Repo to automatically generate CyTargetLinker linksets

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages