#!/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/#from__future__importannotationsfromtypingimportGeneratorimportcollectionsimportpypath.share.curlascurlimportpypath.resources.urlsasurls
[docs]defoffsides_side_effects()->Generator[tuple]:""" Side effects from the OffSIDES (OFF label SIDE effectS) database. Retrieves individual drug side effect signals mined from the FDA's Adverse Event Reporting System. Yields: Tuples of drug side effect information. """return_sides_base(url_key='offsides',fields=('drug_rxnorn','drug','condition_meddra','condition','prr','prr_error','mean_reporting_frequency',),indices=(0,1,2,3,8,9,10),record_name='OffsideSideEffect',)