SHEPHARD 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- shephard-0.1.5/.codecov.yml +14 -0
- shephard-0.1.5/.github/CONTRIBUTING.md +42 -0
- shephard-0.1.5/.github/PULL_REQUEST_TEMPLATE.md +12 -0
- shephard-0.1.5/.gitignore +114 -0
- shephard-0.1.5/.lgtm.yml +12 -0
- shephard-0.1.5/.travis.yml +51 -0
- shephard-0.1.5/CODE_OF_CONDUCT.md +77 -0
- shephard-0.1.5/LICENSE +57 -0
- shephard-0.1.5/MANIFEST.in +6 -0
- shephard-0.1.5/PKG-INFO +97 -0
- shephard-0.1.5/README.md +83 -0
- shephard-0.1.5/devtools/README.md +60 -0
- shephard-0.1.5/devtools/conda-envs/test_env.yaml +16 -0
- shephard-0.1.5/devtools/scripts/create_conda_env.py +95 -0
- shephard-0.1.5/devtools/travis-ci/before_install.sh +43 -0
- shephard-0.1.5/docs/Makefile +20 -0
- shephard-0.1.5/docs/README.md +18 -0
- shephard-0.1.5/docs/_static/README.md +16 -0
- shephard-0.1.5/docs/_templates/README.md +14 -0
- shephard-0.1.5/docs/apis.rst +25 -0
- shephard-0.1.5/docs/autosummary/shephard.proteome.rst +22 -0
- shephard-0.1.5/docs/conf.py +179 -0
- shephard-0.1.5/docs/domain.rst +37 -0
- shephard-0.1.5/docs/examples.rst +23 -0
- shephard-0.1.5/docs/index.rst +32 -0
- shephard-0.1.5/docs/interfaces.rst +60 -0
- shephard-0.1.5/docs/make.bat +36 -0
- shephard-0.1.5/docs/overview.rst +71 -0
- shephard-0.1.5/docs/protein.rst +125 -0
- shephard-0.1.5/docs/proteome.rst +56 -0
- shephard-0.1.5/docs/site.rst +27 -0
- shephard-0.1.5/docs/track.rst +18 -0
- shephard-0.1.5/setup.cfg +27 -0
- shephard-0.1.5/setup.py +62 -0
- shephard-0.1.5/shephard/__init__.py +28 -0
- shephard-0.1.5/shephard/_version.py +21 -0
- shephard-0.1.5/shephard/apis/__init__.py +9 -0
- shephard-0.1.5/shephard/apis/fasta.py +418 -0
- shephard-0.1.5/shephard/apis/uniprot.py +194 -0
- shephard-0.1.5/shephard/data/README.md +21 -0
- shephard-0.1.5/shephard/data/look_and_say.dat +15 -0
- shephard-0.1.5/shephard/data/test_data/TS1_domains_idr.tsv +21 -0
- shephard-0.1.5/shephard/data/test_data/TS1_domains_idr_and_others.tsv +22 -0
- shephard-0.1.5/shephard/data/test_data/TS1_domains_pscore.tsv +2 -0
- shephard-0.1.5/shephard/data/test_data/TS1_protein_attributes.tsv +2 -0
- shephard-0.1.5/shephard/data/test_data/TS1_sites.tsv +209 -0
- shephard-0.1.5/shephard/data/test_data/TS1_tracks_pscore.tsv +9 -0
- shephard-0.1.5/shephard/data/test_data/names.txt +9 -0
- shephard-0.1.5/shephard/data/test_data/testset_1.fasta +96 -0
- shephard-0.1.5/shephard/data/test_data/testset_1.fasta.fai +9 -0
- shephard-0.1.5/shephard/data/test_data/testset_1_ptms.tsv +3 -0
- shephard-0.1.5/shephard/data/test_data/ts1_bonus_sites.tsv +5 -0
- shephard-0.1.5/shephard/data/test_data/ts1_bonus_sites_bad.tsv +6 -0
- shephard-0.1.5/shephard/data/test_data/ts1_bonus_sites_bad2.tsv +5 -0
- shephard-0.1.5/shephard/data/test_data/tst.py +19 -0
- shephard-0.1.5/shephard/domain.py +549 -0
- shephard-0.1.5/shephard/exceptions.py +101 -0
- shephard-0.1.5/shephard/general_utilities.py +169 -0
- shephard-0.1.5/shephard/interfaces/__init__.py +15 -0
- shephard-0.1.5/shephard/interfaces/interface_tools.py +201 -0
- shephard-0.1.5/shephard/interfaces/si_domains.py +719 -0
- shephard-0.1.5/shephard/interfaces/si_protein_attributes.py +361 -0
- shephard-0.1.5/shephard/interfaces/si_proteins.py +365 -0
- shephard-0.1.5/shephard/interfaces/si_sites.py +358 -0
- shephard-0.1.5/shephard/interfaces/si_tracks.py +651 -0
- shephard-0.1.5/shephard/protein.py +2305 -0
- shephard-0.1.5/shephard/proteome.py +1269 -0
- shephard-0.1.5/shephard/sequence_utilities.py +73 -0
- shephard-0.1.5/shephard/site.py +494 -0
- shephard-0.1.5/shephard/tests/__init__.py +13 -0
- shephard-0.1.5/shephard/tests/conftest.py +110 -0
- shephard-0.1.5/shephard/tests/example_test_function.py +30 -0
- shephard-0.1.5/shephard/tests/output_test/all_symbols_test.tsv +2 -0
- shephard-0.1.5/shephard/tests/output_test/out_tracks.tsv +9 -0
- shephard-0.1.5/shephard/tests/output_test/readme.md +1 -0
- shephard-0.1.5/shephard/tests/output_test/shephard_track_phosres.tsv +1 -0
- shephard-0.1.5/shephard/tests/output_test/shephard_track_pscore.tsv +9 -0
- shephard-0.1.5/shephard/tests/output_test/track_phospho_track.tsv +1 -0
- shephard-0.1.5/shephard/tests/output_test/track_random_vals.tsv +1 -0
- shephard-0.1.5/shephard/tests/test_add_remove_annotations.py +115 -0
- shephard-0.1.5/shephard/tests/test_apis_fasta.py +95 -0
- shephard-0.1.5/shephard/tests/test_domains.py +254 -0
- shephard-0.1.5/shephard/tests/test_interfaces.py +23 -0
- shephard-0.1.5/shephard/tests/test_protein.py +205 -0
- shephard-0.1.5/shephard/tests/test_proteome.py +157 -0
- shephard-0.1.5/shephard/tests/test_sequence_tools.py +45 -0
- shephard-0.1.5/shephard/tests/test_shephard.py +18 -0
- shephard-0.1.5/shephard/tests/test_si_domains.py +92 -0
- shephard-0.1.5/shephard/tests/test_si_sites.py +64 -0
- shephard-0.1.5/shephard/tests/test_si_tracks.py +355 -0
- shephard-0.1.5/shephard/tests/test_sites.py +42 -0
- shephard-0.1.5/shephard/tests/test_tracks.py +16 -0
- shephard-0.1.5/shephard/tools/__init__.py +15 -0
- shephard-0.1.5/shephard/tools/domain_tools.py +556 -0
- shephard-0.1.5/shephard/tools/experimental.py +74 -0
- shephard-0.1.5/shephard/tools/sequence_tools.py +59 -0
- shephard-0.1.5/shephard/tools/site_tools.py +107 -0
- shephard-0.1.5/shephard/tools/track_tools.py +63 -0
- shephard-0.1.5/shephard/track.py +361 -0
- shephard-0.1.5/shephard.egg-info/PKG-INFO +97 -0
- shephard-0.1.5/shephard.egg-info/SOURCES.txt +104 -0
- shephard-0.1.5/shephard.egg-info/dependency_links.txt +1 -0
- shephard-0.1.5/shephard.egg-info/requires.txt +2 -0
- shephard-0.1.5/shephard.egg-info/top_level.txt +1 -0
- shephard-0.1.5/versioneer.py +1822 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# How to contribute
|
|
2
|
+
|
|
3
|
+
We welcome contributions from external contributors, and this document
|
|
4
|
+
describes how to merge code changes into this shephard.
|
|
5
|
+
|
|
6
|
+
## Getting Started
|
|
7
|
+
|
|
8
|
+
* Make sure you have a [GitHub account](https://github.com/signup/free).
|
|
9
|
+
* [Fork](https://help.github.com/articles/fork-a-repo/) this repository on GitHub.
|
|
10
|
+
* On your local machine,
|
|
11
|
+
[clone](https://help.github.com/articles/cloning-a-repository/) your fork of
|
|
12
|
+
the repository.
|
|
13
|
+
|
|
14
|
+
## Making Changes
|
|
15
|
+
|
|
16
|
+
* Add some really awesome code to your local fork. It's usually a [good
|
|
17
|
+
idea](http://blog.jasonmeridth.com/posts/do-not-issue-pull-requests-from-your-master-branch/)
|
|
18
|
+
to make changes on a
|
|
19
|
+
[branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/)
|
|
20
|
+
with the branch name relating to the feature you are going to add.
|
|
21
|
+
* When you are ready for others to examine and comment on your new feature,
|
|
22
|
+
navigate to your fork of shephard on GitHub and open a [pull
|
|
23
|
+
request](https://help.github.com/articles/using-pull-requests/) (PR). Note that
|
|
24
|
+
after you launch a PR from one of your fork's branches, all
|
|
25
|
+
subsequent commits to that branch will be added to the open pull request
|
|
26
|
+
automatically. Each commit added to the PR will be validated for
|
|
27
|
+
mergability, compilation and test suite compliance; the results of these tests
|
|
28
|
+
will be visible on the PR page.
|
|
29
|
+
* If you're providing a new feature, you must add test cases and documentation.
|
|
30
|
+
* When the code is ready to go, make sure you run the test suite using pytest.
|
|
31
|
+
* When you're ready to be considered for merging, check the "Ready to go"
|
|
32
|
+
box on the PR page to let the shephard devs know that the changes are complete.
|
|
33
|
+
The code will not be merged until this box is checked, the continuous
|
|
34
|
+
integration returns checkmarks,
|
|
35
|
+
and multiple core developers give "Approved" reviews.
|
|
36
|
+
|
|
37
|
+
# Additional Resources
|
|
38
|
+
|
|
39
|
+
* [General GitHub documentation](https://help.github.com/)
|
|
40
|
+
* [PR best practices](http://codeinthehole.com/writing/pull-requests-and-other-good-practices-for-teams-using-github/)
|
|
41
|
+
* [A guide to contributing to software packages](http://www.contribution-guide.org)
|
|
42
|
+
* [Thinkful PR example](http://www.thinkful.com/learn/github-pull-request-tutorial/#Time-to-Submit-Your-First-PR)
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
|
|
2
|
+
# avoid
|
|
3
|
+
shephard/tests/output_test/*
|
|
4
|
+
shephard/tests/output_test/track_random_vals.tsv
|
|
5
|
+
|
|
6
|
+
# Byte-compiled / optimized / DLL files
|
|
7
|
+
__pycache__/
|
|
8
|
+
*.py[cod]
|
|
9
|
+
*$py.class
|
|
10
|
+
*~
|
|
11
|
+
helper_code/
|
|
12
|
+
\#\*
|
|
13
|
+
docs/docs.zip
|
|
14
|
+
\.ipynb_checkpoints/
|
|
15
|
+
\.#*
|
|
16
|
+
|
|
17
|
+
# C extensions
|
|
18
|
+
*.so
|
|
19
|
+
.DS_Store
|
|
20
|
+
|
|
21
|
+
# Distribution / packaging
|
|
22
|
+
.Python
|
|
23
|
+
env/
|
|
24
|
+
build/
|
|
25
|
+
develop-eggs/
|
|
26
|
+
dist/
|
|
27
|
+
downloads/
|
|
28
|
+
eggs/
|
|
29
|
+
.eggs/
|
|
30
|
+
lib/
|
|
31
|
+
lib64/
|
|
32
|
+
parts/
|
|
33
|
+
sdist/
|
|
34
|
+
var/
|
|
35
|
+
wheels/
|
|
36
|
+
*.egg-info/
|
|
37
|
+
.installed.cfg
|
|
38
|
+
*.egg
|
|
39
|
+
|
|
40
|
+
# PyInstaller
|
|
41
|
+
# Usually these files are written by a python script from a template
|
|
42
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
43
|
+
*.manifest
|
|
44
|
+
*.spec
|
|
45
|
+
|
|
46
|
+
# Installer logs
|
|
47
|
+
pip-log.txt
|
|
48
|
+
pip-delete-this-directory.txt
|
|
49
|
+
|
|
50
|
+
# Unit test / coverage reports
|
|
51
|
+
htmlcov/
|
|
52
|
+
.tox/
|
|
53
|
+
.coverage
|
|
54
|
+
.coverage.*
|
|
55
|
+
.cache
|
|
56
|
+
.pytest_cache
|
|
57
|
+
nosetests.xml
|
|
58
|
+
coverage.xml
|
|
59
|
+
*.cover
|
|
60
|
+
.hypothesis/
|
|
61
|
+
|
|
62
|
+
# Translations
|
|
63
|
+
*.mo
|
|
64
|
+
*.pot
|
|
65
|
+
|
|
66
|
+
# Django stuff:
|
|
67
|
+
*.log
|
|
68
|
+
local_settings.py
|
|
69
|
+
|
|
70
|
+
# Flask stuff:
|
|
71
|
+
instance/
|
|
72
|
+
.webassets-cache
|
|
73
|
+
|
|
74
|
+
# Scrapy stuff:
|
|
75
|
+
.scrapy
|
|
76
|
+
|
|
77
|
+
# Sphinx documentation
|
|
78
|
+
docs/_build/
|
|
79
|
+
|
|
80
|
+
# PyBuilder
|
|
81
|
+
target/
|
|
82
|
+
|
|
83
|
+
# Jupyter Notebook
|
|
84
|
+
.ipynb_checkpoints
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
.python-version
|
|
88
|
+
|
|
89
|
+
# celery beat schedule file
|
|
90
|
+
celerybeat-schedule
|
|
91
|
+
|
|
92
|
+
# SageMath parsed files
|
|
93
|
+
*.sage.py
|
|
94
|
+
|
|
95
|
+
# dotenv
|
|
96
|
+
.env
|
|
97
|
+
|
|
98
|
+
# virtualenv
|
|
99
|
+
.venv
|
|
100
|
+
venv/
|
|
101
|
+
ENV/
|
|
102
|
+
|
|
103
|
+
# Spyder project settings
|
|
104
|
+
.spyderproject
|
|
105
|
+
.spyproject
|
|
106
|
+
|
|
107
|
+
# Rope project settings
|
|
108
|
+
.ropeproject
|
|
109
|
+
|
|
110
|
+
# mkdocs documentation
|
|
111
|
+
/site
|
|
112
|
+
|
|
113
|
+
# mypy
|
|
114
|
+
.mypy_cache/
|
shephard-0.1.5/.lgtm.yml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Configure LGTM for this package
|
|
2
|
+
|
|
3
|
+
extraction:
|
|
4
|
+
python: # Configure Python
|
|
5
|
+
python_setup: # Configure the setup
|
|
6
|
+
version: 3 # Specify Version 3
|
|
7
|
+
path_classifiers:
|
|
8
|
+
library:
|
|
9
|
+
- versioneer.py # Set Versioneer.py to an external "library" (3rd party code)
|
|
10
|
+
- devtools/*
|
|
11
|
+
generated:
|
|
12
|
+
- shephard/_version.py
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
language: python
|
|
2
|
+
|
|
3
|
+
# Run jobs on container-based infrastructure, can be overridden per job
|
|
4
|
+
|
|
5
|
+
matrix:
|
|
6
|
+
include:
|
|
7
|
+
# Extra includes for OSX since python language is not available by default on OSX
|
|
8
|
+
- os: osx
|
|
9
|
+
language: generic
|
|
10
|
+
env: PYTHON_VER=3.6
|
|
11
|
+
- os: osx
|
|
12
|
+
language: generic
|
|
13
|
+
env: PYTHON_VER=3.7
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
- os: linux
|
|
17
|
+
language: generic # No need to set Python version since its conda
|
|
18
|
+
env: PYTHON_VER=3.6
|
|
19
|
+
- os: linux
|
|
20
|
+
language: generic
|
|
21
|
+
env: PYTHON_VER=3.7
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
before_install:
|
|
25
|
+
# Additional info about the build
|
|
26
|
+
- uname -a
|
|
27
|
+
- df -h
|
|
28
|
+
- ulimit -a
|
|
29
|
+
|
|
30
|
+
# Install the Python environment
|
|
31
|
+
- source devtools/travis-ci/before_install.sh
|
|
32
|
+
- python -V
|
|
33
|
+
|
|
34
|
+
install:
|
|
35
|
+
|
|
36
|
+
# Create test environment for package
|
|
37
|
+
- python devtools/scripts/create_conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/test_env.yaml
|
|
38
|
+
# Activate the test environment
|
|
39
|
+
- conda activate test
|
|
40
|
+
# Build and install package
|
|
41
|
+
- python setup.py develop --no-deps
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
script:
|
|
45
|
+
- pytest -v --cov=shephard shephard/tests/
|
|
46
|
+
|
|
47
|
+
notifications:
|
|
48
|
+
email: false
|
|
49
|
+
|
|
50
|
+
after_success:
|
|
51
|
+
- codecov
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
|
7
|
+
our community a harassment-free experience for everyone, regardless of age,
|
|
8
|
+
body size, disability, ethnicity, gender identity and expression, level of
|
|
9
|
+
experience, nationality, personal appearance, race, religion, or sexual
|
|
10
|
+
identity and orientation.
|
|
11
|
+
|
|
12
|
+
## Our Standards
|
|
13
|
+
|
|
14
|
+
Examples of behavior that contributes to creating a positive environment include:
|
|
15
|
+
|
|
16
|
+
* Using welcoming and inclusive language
|
|
17
|
+
* Being respectful of differing viewpoints and experiences
|
|
18
|
+
* Gracefully accepting constructive criticism
|
|
19
|
+
* Focusing on what is best for the community
|
|
20
|
+
* Showing empathy towards other community members
|
|
21
|
+
|
|
22
|
+
Examples of unacceptable behavior by participants include:
|
|
23
|
+
|
|
24
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
|
|
25
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
26
|
+
* Public or private harassment
|
|
27
|
+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
|
28
|
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
29
|
+
|
|
30
|
+
## Our Responsibilities
|
|
31
|
+
|
|
32
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
|
33
|
+
behavior and are expected to take appropriate and fair corrective action in
|
|
34
|
+
response to any instances of unacceptable behavior.
|
|
35
|
+
|
|
36
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
|
37
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
38
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
39
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
|
40
|
+
threatening, offensive, or harmful.
|
|
41
|
+
|
|
42
|
+
Moreover, project maintainers will strive to offer feedback and advice to
|
|
43
|
+
ensure quality and consistency of contributions to the code. Contributions
|
|
44
|
+
from outside the group of project maintainers are strongly welcomed but the
|
|
45
|
+
final decision as to whether commits are merged into the codebase rests with
|
|
46
|
+
the team of project maintainers.
|
|
47
|
+
|
|
48
|
+
## Scope
|
|
49
|
+
|
|
50
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
|
51
|
+
when an individual is representing the project or its community. Examples of
|
|
52
|
+
representing a project or community include using an official project e-mail
|
|
53
|
+
address, posting via an official social media account, or acting as an
|
|
54
|
+
appointed representative at an online or offline event. Representation of a
|
|
55
|
+
project may be further defined and clarified by project maintainers.
|
|
56
|
+
|
|
57
|
+
## Enforcement
|
|
58
|
+
|
|
59
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
60
|
+
reported by contacting the project team at 'alex.holehouse@wustl.edu'. The project team will
|
|
61
|
+
review and investigate all complaints, and will respond in a way that it deems
|
|
62
|
+
appropriate to the circumstances. The project team is obligated to maintain
|
|
63
|
+
confidentiality with regard to the reporter of an incident. Further details of
|
|
64
|
+
specific enforcement policies may be posted separately.
|
|
65
|
+
|
|
66
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
67
|
+
faith may face temporary or permanent repercussions as determined by other
|
|
68
|
+
members of the project's leadership.
|
|
69
|
+
|
|
70
|
+
## Attribution
|
|
71
|
+
|
|
72
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
73
|
+
version 1.4, available at
|
|
74
|
+
[http://contributor-covenant.org/version/1/4][version]
|
|
75
|
+
|
|
76
|
+
[homepage]: http://contributor-covenant.org
|
|
77
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
shephard-0.1.5/LICENSE
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
3
|
+
Version 3, 29 June 2007
|
|
4
|
+
|
|
5
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
6
|
+
|
|
7
|
+
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.
|
|
10
|
+
|
|
11
|
+
0. Additional Definitions.
|
|
12
|
+
As used herein, “this License” refers to version 3 of the GNU Lesser General Public License, and the “GNU GPL” refers to version 3 of the GNU General Public License.
|
|
13
|
+
|
|
14
|
+
“The Library” refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.
|
|
15
|
+
|
|
16
|
+
An “Application” is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.
|
|
17
|
+
|
|
18
|
+
A “Combined Work” is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the “Linked Version”.
|
|
19
|
+
|
|
20
|
+
The “Minimal Corresponding Source” for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.
|
|
21
|
+
|
|
22
|
+
The “Corresponding Application Code” for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.
|
|
23
|
+
|
|
24
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
25
|
+
You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.
|
|
26
|
+
|
|
27
|
+
2. Conveying Modified Versions.
|
|
28
|
+
If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:
|
|
29
|
+
|
|
30
|
+
a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or
|
|
31
|
+
b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
|
|
32
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
33
|
+
The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:
|
|
34
|
+
|
|
35
|
+
a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.
|
|
36
|
+
b) Accompany the object code with a copy of the GNU GPL and this license document.
|
|
37
|
+
4. Combined Works.
|
|
38
|
+
You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:
|
|
39
|
+
|
|
40
|
+
a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
|
|
41
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
|
|
42
|
+
c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
|
|
43
|
+
d) Do one of the following:
|
|
44
|
+
0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
|
|
45
|
+
1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.
|
|
46
|
+
e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
|
|
47
|
+
5. Combined Libraries.
|
|
48
|
+
You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:
|
|
49
|
+
|
|
50
|
+
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.
|
|
51
|
+
b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
|
|
52
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
53
|
+
The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
|
54
|
+
|
|
55
|
+
Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.
|
|
56
|
+
|
|
57
|
+
If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
|
shephard-0.1.5/PKG-INFO
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: shephard
|
|
3
|
+
Version: 0.1.5
|
|
4
|
+
Summary: UNKNOWN
|
|
5
|
+
Home-page: UNKNOWN
|
|
6
|
+
Author: Garrett Ginell and Alex Holehouse
|
|
7
|
+
Author-email: alex.holehouse@wustl.edu
|
|
8
|
+
License: LGPLv3
|
|
9
|
+
Platform: UNKNOWN
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
|
|
13
|
+
SHEPHARD
|
|
14
|
+
==============================
|
|
15
|
+
####Sequence-based Hierarchical and Extendable Platform for High-throughput Analysis of Region of Disorder
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Current major version: 0.1.5 (April 2022)
|
|
19
|
+
|
|
20
|
+
[//]: # (Badges)
|
|
21
|
+
[](https://travis-ci.com/REPLACE_WITH_OWNER_ACCOUNT/shephard)
|
|
22
|
+
[](https://codecov.io/gh/REPLACE_WITH_OWNER_ACCOUNT/shephard/branch/master)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## About
|
|
26
|
+
SHEPHARD is a Python toolkit for integrative proteome-wide analysis. It was written by Garrett Ginell and Alex Holehouse.
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
Copy and paste into your terminal:
|
|
30
|
+
|
|
31
|
+
pip install shephard
|
|
32
|
+
|
|
33
|
+
This installs the current stable release candidate from PyPi.
|
|
34
|
+
|
|
35
|
+
#### Installation from GitHub
|
|
36
|
+
|
|
37
|
+
Copy and paste into your terminal:
|
|
38
|
+
|
|
39
|
+
pip install shephard@git+git://github.com/holehouse-lab/shephard.git
|
|
40
|
+
|
|
41
|
+
This installs the current bleeding-edge version directly from GitHub.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## Documentation
|
|
45
|
+
Documentation: [https://shephard.readthedocs.io/en/latest/](https://shephard.readthedocs.io/en/latest/)
|
|
46
|
+
|
|
47
|
+
## Status
|
|
48
|
+
As of April 2022 the full release of SHEPHARD is available on PyPI. We are still adding some tweaks and tests but this will be the final version in the SHEPHARD paper.
|
|
49
|
+
|
|
50
|
+
If you plan to use SHEPHARD in your science please let [Alex](http://holehouse.wustl.edu/) know, only so he can warn you if bugs are found or backwards compatibility is broken.
|
|
51
|
+
|
|
52
|
+
## Roadmap
|
|
53
|
+
SHEPHARD is the base code for a large body of sequence-based bioinformatic tools developed by the Holehouse lab. These include:
|
|
54
|
+
|
|
55
|
+
* [metapredict](https://github.com/idptools/metapredict) - high-performance disorder predictor
|
|
56
|
+
* [parrot](https://github.com/idptools/parrot) - a general tool for deep learning of sequence features
|
|
57
|
+
* [pipit](https://github.com/idptools/PIPIT) - A simple tool for sequential sequence shuffling, as implemented in Langstein *et al.* [preprint here](https://www.biorxiv.org/content/10.1101/2022.02.10.480018v1).
|
|
58
|
+
* **sparrow** - a high-throughput tool for sequence analysis (*in development*)
|
|
59
|
+
* **goose** - a general purpose tool for the rational design of disordered protein sequences (*in development*)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
These tools together form the backbone of our informatics infrastructure, and SHEPHARD will contain direct or indirect API access to each of them (and various other tools).
|
|
63
|
+
|
|
64
|
+
## Change log
|
|
65
|
+
As we approach final release and versions of SHEPHARD are available for distribution, a change log is updated and changes that break backwards compatibility or introduce new features are tagged as minor/major increments. Bug fixes/docs/tests are simply tagged by their git hash.
|
|
66
|
+
|
|
67
|
+
#### Version 0.1.5 (April 2022)
|
|
68
|
+
* First version released to PyPI
|
|
69
|
+
|
|
70
|
+
#### Version 0.1.4 (Feb 2022)
|
|
71
|
+
* Added ability to remove Tracks, Sites and Domains from a Protein objects
|
|
72
|
+
* Track number of unique domains, sites, and tracks rather than just their presence/absence
|
|
73
|
+
* Updated Track writing
|
|
74
|
+
* Added Tracks MUST be either symbolic or values-based but cannot be both
|
|
75
|
+
*
|
|
76
|
+
|
|
77
|
+
#### Version 0.1.3.1 (May 2021)
|
|
78
|
+
* Various bug fixes
|
|
79
|
+
* Improved performance
|
|
80
|
+
* Updated interfaces for reading/writing different types of files
|
|
81
|
+
* Major updates to internal docs
|
|
82
|
+
* This release should be considered largely stable, although docs are lacking
|
|
83
|
+
* Expanded the test suite
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Version 0.1.2.1 (August 2020)
|
|
87
|
+
**WARNING**: This version breaks backwards compatibility with prior versions!
|
|
88
|
+
|
|
89
|
+
* `protein.get_domains_by_type()` now returns a list of domains instead of a dictionary. This helps bring consistency to how domains are retrieved and moves us away from dictionary returning.
|
|
90
|
+
* Various internal updates
|
|
91
|
+
|
|
92
|
+
### Copyright
|
|
93
|
+
|
|
94
|
+
Copyright (c) 2019-2022, Garrett M. Ginell and Alex S. Holehouse - [Holehouse lab](http://holehouse.wustl.edu/)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
shephard-0.1.5/README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
SHEPHARD
|
|
2
|
+
==============================
|
|
3
|
+
####Sequence-based Hierarchical and Extendable Platform for High-throughput Analysis of Region of Disorder
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Current major version: 0.1.5 (April 2022)
|
|
7
|
+
|
|
8
|
+
[//]: # (Badges)
|
|
9
|
+
[](https://travis-ci.com/REPLACE_WITH_OWNER_ACCOUNT/shephard)
|
|
10
|
+
[](https://codecov.io/gh/REPLACE_WITH_OWNER_ACCOUNT/shephard/branch/master)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## About
|
|
14
|
+
SHEPHARD is a Python toolkit for integrative proteome-wide analysis. It was written by Garrett Ginell and Alex Holehouse.
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
Copy and paste into your terminal:
|
|
18
|
+
|
|
19
|
+
pip install shephard
|
|
20
|
+
|
|
21
|
+
This installs the current stable release candidate from PyPi.
|
|
22
|
+
|
|
23
|
+
#### Installation from GitHub
|
|
24
|
+
|
|
25
|
+
Copy and paste into your terminal:
|
|
26
|
+
|
|
27
|
+
pip install shephard@git+git://github.com/holehouse-lab/shephard.git
|
|
28
|
+
|
|
29
|
+
This installs the current bleeding-edge version directly from GitHub.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## Documentation
|
|
33
|
+
Documentation: [https://shephard.readthedocs.io/en/latest/](https://shephard.readthedocs.io/en/latest/)
|
|
34
|
+
|
|
35
|
+
## Status
|
|
36
|
+
As of April 2022 the full release of SHEPHARD is available on PyPI. We are still adding some tweaks and tests but this will be the final version in the SHEPHARD paper.
|
|
37
|
+
|
|
38
|
+
If you plan to use SHEPHARD in your science please let [Alex](http://holehouse.wustl.edu/) know, only so he can warn you if bugs are found or backwards compatibility is broken.
|
|
39
|
+
|
|
40
|
+
## Roadmap
|
|
41
|
+
SHEPHARD is the base code for a large body of sequence-based bioinformatic tools developed by the Holehouse lab. These include:
|
|
42
|
+
|
|
43
|
+
* [metapredict](https://github.com/idptools/metapredict) - high-performance disorder predictor
|
|
44
|
+
* [parrot](https://github.com/idptools/parrot) - a general tool for deep learning of sequence features
|
|
45
|
+
* [pipit](https://github.com/idptools/PIPIT) - A simple tool for sequential sequence shuffling, as implemented in Langstein *et al.* [preprint here](https://www.biorxiv.org/content/10.1101/2022.02.10.480018v1).
|
|
46
|
+
* **sparrow** - a high-throughput tool for sequence analysis (*in development*)
|
|
47
|
+
* **goose** - a general purpose tool for the rational design of disordered protein sequences (*in development*)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
These tools together form the backbone of our informatics infrastructure, and SHEPHARD will contain direct or indirect API access to each of them (and various other tools).
|
|
51
|
+
|
|
52
|
+
## Change log
|
|
53
|
+
As we approach final release and versions of SHEPHARD are available for distribution, a change log is updated and changes that break backwards compatibility or introduce new features are tagged as minor/major increments. Bug fixes/docs/tests are simply tagged by their git hash.
|
|
54
|
+
|
|
55
|
+
#### Version 0.1.5 (April 2022)
|
|
56
|
+
* First version released to PyPI
|
|
57
|
+
|
|
58
|
+
#### Version 0.1.4 (Feb 2022)
|
|
59
|
+
* Added ability to remove Tracks, Sites and Domains from a Protein objects
|
|
60
|
+
* Track number of unique domains, sites, and tracks rather than just their presence/absence
|
|
61
|
+
* Updated Track writing
|
|
62
|
+
* Added Tracks MUST be either symbolic or values-based but cannot be both
|
|
63
|
+
*
|
|
64
|
+
|
|
65
|
+
#### Version 0.1.3.1 (May 2021)
|
|
66
|
+
* Various bug fixes
|
|
67
|
+
* Improved performance
|
|
68
|
+
* Updated interfaces for reading/writing different types of files
|
|
69
|
+
* Major updates to internal docs
|
|
70
|
+
* This release should be considered largely stable, although docs are lacking
|
|
71
|
+
* Expanded the test suite
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Version 0.1.2.1 (August 2020)
|
|
75
|
+
**WARNING**: This version breaks backwards compatibility with prior versions!
|
|
76
|
+
|
|
77
|
+
* `protein.get_domains_by_type()` now returns a list of domains instead of a dictionary. This helps bring consistency to how domains are retrieved and moves us away from dictionary returning.
|
|
78
|
+
* Various internal updates
|
|
79
|
+
|
|
80
|
+
### Copyright
|
|
81
|
+
|
|
82
|
+
Copyright (c) 2019-2022, Garrett M. Ginell and Alex S. Holehouse - [Holehouse lab](http://holehouse.wustl.edu/)
|
|
83
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Development, testing, and deployment tools
|
|
2
|
+
|
|
3
|
+
This directory contains a collection of tools for running Continuous Integration (CI) tests,
|
|
4
|
+
conda installation, and other development tools not directly related to the coding process.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## Manifest
|
|
8
|
+
|
|
9
|
+
### Continuous Integration
|
|
10
|
+
|
|
11
|
+
You should test your code, but do not feel compelled to use these specific programs. You also may not need Unix and
|
|
12
|
+
Windows testing if you only plan to deploy on specific platforms. These are just to help you get started
|
|
13
|
+
|
|
14
|
+
* `travis-ci`: Linux and OSX based testing through [Travis-CI](https://about.travis-ci.com/)
|
|
15
|
+
* `before_install.sh`: Pip/Miniconda pre-package installation script for Travis
|
|
16
|
+
* `appveyor`: Windows based testing through [AppVeyor](https://www.appveyor.com/) (there are no files directly related to this)
|
|
17
|
+
|
|
18
|
+
### Conda Environment:
|
|
19
|
+
|
|
20
|
+
This directory contains the files to setup the Conda environment for testing purposes
|
|
21
|
+
|
|
22
|
+
* `conda-envs`: directory containing the YAML file(s) which fully describe Conda Environments, their dependencies, and those dependency provenance's
|
|
23
|
+
* `test_env.yaml`: Simple test environment file with base dependencies. Channels are not specified here and therefore respect global Conda configuration
|
|
24
|
+
|
|
25
|
+
### Additional Scripts:
|
|
26
|
+
|
|
27
|
+
This directory contains OS agnostic helper scripts which don't fall in any of the previous categories
|
|
28
|
+
* `scripts`
|
|
29
|
+
* `create_conda_env.py`: Helper program for spinning up new conda environments based on a starter file with Python Version and Env. Name command-line options
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## How to contribute changes
|
|
33
|
+
- Clone the repository if you have write access to the main repo, fork the repository if you are a collaborator.
|
|
34
|
+
- Make a new branch with `git checkout -b {your branch name}`
|
|
35
|
+
- Make changes and test your code
|
|
36
|
+
- Ensure that the test environment dependencies (`conda-envs`) line up with the build and deploy dependencies (`conda-recipe/meta.yaml`)
|
|
37
|
+
- Push the branch to the repo (either the main or your fork) with `git push -u origin {your branch name}`
|
|
38
|
+
* Note that `origin` is the default name assigned to the remote, yours may be different
|
|
39
|
+
- Make a PR on GitHub with your changes
|
|
40
|
+
- We'll review the changes and get your code into the repo after lively discussion!
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Checklist for updates
|
|
44
|
+
- [ ] Make sure there is an/are issue(s) opened for your specific update
|
|
45
|
+
- [ ] Create the PR, referencing the issue
|
|
46
|
+
- [ ] Debug the PR as needed until tests pass
|
|
47
|
+
- [ ] Tag the final, debugged version
|
|
48
|
+
* `git tag -a X.Y.Z [latest pushed commit] && git push --follow-tags`
|
|
49
|
+
- [ ] Get the PR merged in
|
|
50
|
+
|
|
51
|
+
## Versioneer Auto-version
|
|
52
|
+
[Versioneer](https://github.com/warner/python-versioneer) will automatically infer what version
|
|
53
|
+
is installed by looking at the `git` tags and how many commits ahead this version is. The format follows
|
|
54
|
+
[PEP 440](https://www.python.org/dev/peps/pep-0440/) and has the regular expression of:
|
|
55
|
+
```regexp
|
|
56
|
+
\d+.\d+.\d+(?\+\d+-[a-z0-9]+)
|
|
57
|
+
```
|
|
58
|
+
If the version of this commit is the same as a `git` tag, the installed version is the same as the tag,
|
|
59
|
+
e.g. `shephard-0.1.2`, otherwise it will be appended with `+X` where `X` is the number of commits
|
|
60
|
+
ahead from the last tag, and then `-YYYYYY` where the `Y`'s are replaced with the `git` commit hash.
|