Python Boilerplate contains all the boilerplate you need to create a Python NDEx Content Loader package.
Project description
NDEx STRING Content Loader
Python Boilerplate contains all the boilerplate you need to create a Python NDEx Content Loader package.
Free software: BSD license
Documentation: https://ndexstringloader.readthedocs.io.
Tools
ndexloadstring.py – Loads STRING into NDEx
Dependencies
Compatibility
Python 3.3+
Installation
git clone https://github.com/vrynkov/ndexstringloader
cd ndexstringloader
make dist
pip install dist/ndexloadstring*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 ndexloadstring.py requires a configuration file to be created.
The default path for this configuration is ~/.ndexutils.conf
but can be overridden with
--conf
flag.
Configuration file
Networks listed in [network_ids] section need to be visible to the user
[dev]
user = joe123
password = somepassword123
server = dev.ndexbio.org
[prod]
user = joe123 _prod
password = somepassword123_prod
server = prod.ndexbio.org
[network_ids]
style = 9c23e193-5d73-11e9-8c69-525400c25d22
hi_confidence_style = 9c100b71-5d73-11e9-8c69-525400c25d22
full = a57b23c5-65fe-11e9-8c69-525400c25d22
hi_confidence = 311b0e5f-6570-11e9-8c69-525400c25d22
[source]
ProteinLinksFile = https://stringdb-static.org/download/protein.links.full.v11.0/9606.protein.links.full.v11.0.txt.gz
NamesFile = https://string-db.org/mapping_files/STRING_display_names/human.name_2_string.tsv.gz
EntrezIdsFile = https://stringdb-static.org/mapping_files/entrez/human.entrez_2_string.2018.tsv.gz
UniprotIdsFile = https://string-db.org/mapping_files/uniprot/human.uniprot_2_string.2018.tsv.gz
[input]
full_file_name = 9606.protein.links.full.v11.0.txt
entrez_file = human.entrez_2_string.2018.tsv
names_file = human.name_2_string.tsv
uniprot_file = human.uniprot_2_string.2018.tsv
[output]
output_tsv_file_name = 9606.protein.links.full.v11.0.tsv.txt
output_hi_conf_tsv_file_name = 9606.protein.links.full.v11.0.hi_conf.tsv.txt
Needed files
Load plan is required for running this script. string_plan.json found at ndexstringloader/ndexstringloader can be used for this purpose.
Usage
For information invoke ndexloadstring.py -h
Example usage
Here is how this command can be run for dev and prod targets:
ndexloadstring.py --loadplan loadplan.json --profile dev
ndexloadstring.py --loadplan loadplan.json --profile prod
Via Docker
Example usage
TODO: Add information about example usage
docker run -v `pwd`:`pwd` -w `pwd` vrynkov/ndexstringloader:0.1.0 ndexloadstring.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-03-13)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ndexstringloader-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d2d93eca7e6463e28815af391f40172fd50062167adbf5d9a20f9a7f165b21d |
|
MD5 | f3fd196f027c475c4fce26ffa227c8f6 |
|
BLAKE2b-256 | d7157c8c048de0f3f98f3085ac584289c5ebd21023ecdb7e7d2810725b10b4c3 |