#!/usr/bin/env python# -*- coding: utf-8 -*-## This file is part of the `pypath` python module## Copyright 2014-2023# EMBL, EMBL-EBI, Uniklinik RWTH Aachen, Heidelberg University## Authors: see the file `README.rst`# Contact: Dénes Türei (turei.denes@gmail.com)## Distributed under the GPLv3 License.# See accompanying file LICENSE.txt or copy at# https://www.gnu.org/licenses/gpl-3.0.html## Website: https://pypath.omnipathdb.org/#fromfuture.utilsimportiteritemsimportcollectionsimportpypath.share.curlascurlimportpypath.share.progressasprogressimportpypath.resources.urlsasurlsimportpypath.share.commonascommonPathwayCommonsInteraction=collections.namedtuple('PathwayCommonsInteraction',['id_a','interaction_type','id_b','resource',],)PathwayCommonsResource=collections.namedtuple('PathwayCommonsResource',['name','pc_label','version',])PathwayCommonsResource.__new__.__defaults__=(12,)pathwaycommons_resources={PathwayCommonsResource('WikiPathways','wp',11),PathwayCommonsResource('KEGG','kegg'),PathwayCommonsResource('BIND','bind'),PathwayCommonsResource('IntAct','intact'),PathwayCommonsResource('IntAct','intact_complex'),PathwayCommonsResource('PANTHER','panther'),PathwayCommonsResource('NCI-PID','pid'),PathwayCommonsResource('Reactome','reactome'),PathwayCommonsResource('DIP','dip'),PathwayCommonsResource('HPRD','hprd'),PathwayCommonsResource('INOH','inoh'),PathwayCommonsResource('NetPath','netpath'),PathwayCommonsResource('BioGRID','biogrid'),PathwayCommonsResource('CORUM','corum'),PathwayCommonsResource('PhosphoSite','psp'),}pathwaycommons_directed_types={'state-change','controls-state-change-of','controls-transport-of','controls-phosphorylation-of',}