Skip to main content

Python Boilerplate contains all the boilerplate you need to create a Python NDEx Content Loader package.

Project description

NDEx Signor Content Loader

https://img.shields.io/pypi/v/ndexsignorloader.svg https://img.shields.io/travis/ndexcontent/ndexsignorloader.svg https://coveralls.io/repos/github/ndexcontent/ndexsignorloader/badge.svg?branch=master Documentation Status

Python application that loads Signor data into NDEx

This tool downloads data files from Signor and performs the following operations:

1) The text files are loaded into a network using this loadplan

2) The edge attribute direct is set to True if value is ‘t’ otherwise its set to False

3) Using values in the databasea and databaseb data files, the represents field found on each node is prefixed with uniprot: if the database value is UNIPROT and signor: if the database value is SIGNOR

4) The compartment node attribute is set to cytoplasm if its not set (which is case for all nodes in FULL-Human, Full-Rat, and Full-Mouse networks)

5) Any negative or non-numeric citations are removed from the citation edge attribute (There were multiple cases of -1 and Other). In addition, a specific PMC:## is updated to its pubmed id.

6) The layout of the network is created using the spring layout, but with additional logic that positions nodes in a vertical based on value of the compartment node attribute. The ordering is as follows:

  • extracellular are placed at the top

  • receptor are below extracellular

  • cytoplasm are placed in the middle

  • factor are below cytoplasm

  • phenotypeList are placed at the bottom

7) The following network attributes are set

  • name is set to data from Signor service getPathwayData.php?pathway= (except for the Full networks which have a more generic description)

  • author is set to data from Signor service getPathwayData.php?pathway=

  • organism is set to Human, 9606, Homo sapiens (except for Full Rat and Mouse networks)

  • prov:wasGeneratedBy is set to ndexsignorloader <VERSION> (example: ndexsignorloader 1.0.0)

  • prov:wasDerivedFrom set to URL to download data file

  • version is set to Abbreviated day-month-year (example: 05-Jun-2019)

  • description is taken from Signor service getPathwayData.php?pathway=

  • rightsHolder is set to Prof. Gianni Cesareni

  • rights is set to Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)

  • reference is set to citation for SIGNOR: a database of causal relationships between biological entities

  • labels is set to data from Signor service getPathwayData.php?pathway=

  • type is set to a list with pathway and if known type of pathway

  • __normalizationversion is set to 0.1

Dependencies

Compatibility

  • Python 3.3+

Installation

git clone https://github.com/ndexcontent/ndexsignorloader
cd ndexsignorloader
make dist
pip install dist/ndexloadsignor*whl

Run make command with no arguments to see other build/deploy options including creation of Docker image

make

Output:

clean                remove all build, test, coverage and Python artifacts
clean-build          remove build artifacts
clean-pyc            remove Python file artifacts
clean-test           remove test and coverage artifacts
lint                 check style with flake8
test                 run tests quickly with the default Python
test-all             run tests on every Python version with tox
coverage             check code coverage quickly with the default Python
docs                 generate Sphinx HTML documentation, including API docs
servedocs            compile the docs watching for changes
testrelease          package and upload a TEST release
release              package and upload a release
dist                 builds source and wheel package
install              install the package to the active Python's site-packages
dockerbuild          build docker image and store in local repository
dockerpush           push image to dockerhub

Configuration

The ndexloadsignor.py requires a configuration file in the following format be created. The default path for this configuration is ~/.ndexutils.conf but can be overridden with --conf flag.

Format of configuration file

[<value in --profile (default ndexsignorloader)>]

user = <NDEx username>
password = <NDEx password>
server = <NDEx server(omit http) ie public.ndexbio.org>

Example configuration file

[ndexsignorloader_dev]

user = joe123
password = somepassword123
server = dev.ndexbio.org

Needed files

TODO: Add description of needed files

Usage

For information invoke ndexloadsignor.py -h

Example usage

TODO: Add information about example usage

ndexloadsignor.py # TODO Add other needed arguments here

Via Docker

Example usage

TODO: Add information about example usage

docker run -v `pwd`:`pwd` -w `pwd` coleslawndex/ndexsignorloader:0.1.0 ndexloadsignor.py --conf conf # TODO Add other needed arguments here

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2019-06-27)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ndexsignorloader-0.1.0.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ndexsignorloader-0.1.0-py2.py3-none-any.whl (51.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ndexsignorloader-0.1.0.tar.gz.

File metadata

  • Download URL: ndexsignorloader-0.1.0.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for ndexsignorloader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 38f7314b994012e567caef0a4c8acbe5c8e7a63243b68b212653bce6242b8ba4
MD5 3931afa1dd2bce17a82b4a3d3d261a62
BLAKE2b-256 3f457a78b0e5b0446fdf160418afab522d4164ad8f4c341cfc047db9f5f63dc4

See more details on using hashes here.

File details

Details for the file ndexsignorloader-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: ndexsignorloader-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 51.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for ndexsignorloader-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a90c05ca1b700a9382f029c0d1ca5a91eb32227e338fa5c1e08916f3dd4a1da7
MD5 729a1bb1c2b812634abc7a29d98eb3c2
BLAKE2b-256 c29048f314e36a6322c88fa691a0fd21c07ad7a2c2778751f49f098aebb6d774

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page