#!/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/#importreimportcollectionsimportitertoolsimportpypath.inputs.commonasinputs_commonimportpypath.resources.urlsasurlsimportpypath.utils.mappingasmappingimportpypath.share.commonascommonimportpypath.inputs.cellascell_input
[docs]defwojtowicz2020_raw():""" Returns Supplementary Table S4 from 10.1016/j.cell.2020.07.025 (Wojtowicz et al. 2020) as a list of tuples. """path=cell_input.cell_supplementary(supp_url=urls.urls['wojtowicz2020']['url'],article_url=urls.urls['wojtowicz2020']['article'],)content=inputs_common.read_xls(path)fields=content.pop(0)fields=[re.sub('[- ]','_',f.lower())forfinfields]Wojtowicz2020RawRecord=collections.namedtuple('Wojtowicz2020RawRecord',fields)return[Wojtowicz2020RawRecord(*(float(f)if5<i<17elseffori,finenumerate(line)))forlineincontent]