-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
executable file
·107 lines (86 loc) · 3.16 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import setuptools
from henipipe import __version__
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="henipipe",
version= __version__,
author="Scott Furlan",
author_email="[email protected]",
description="A python wrapper for fast and parallel processing of sequencing data using CutnRun or CutnTag",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/scfurl/henipipe.git",
packages=setuptools.find_packages(),
package_data={'henipipe': ['henipipe/data/genomes.json']},
install_requires=['six >= 1'],
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=2.5',
entry_points={'console_scripts': [
'henipipe = henipipe.__main__:run_henipipe',
'samTobed = henipipe.samTobed:run_sam2bed',
'pyWriter = henipipe.pyWriter:run_pyWriter',
'auc = henipipe.auc:run_auc',
]},
)
"""
#TEST PyPI
## run this to make package: python3 setup.py sdist bdist_wheel
## run this to upload to test pypi: twine upload --repository-url https://test.pypi.org/legacy/ dist/*
#TEST INSTALL
# pip install --index-url https://test.pypi.org/henipipe/ henipipe
#FOR REAL
cd ~/computation/develop/henipipe/
rm dist/*
y
git commit -a -m "version 2.4.14"
git push
python setup.py sdist bdist_wheel
python -m twine upload dist/*
scfurl
rm -R dist/* build/* henipipe.egg-info/*
##Install pipx
## python3 -m pip install --user pipx
## python3 -m pipx ensurepath
**At SCRI do the following**
module load python
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install --include-deps --pip-args '--trusted-host pypi.org --trusted-host files.pythonhosted.org' henipipe
pipx install --spec git+https://github.com/scfurl/henipipe --include-deps henipipe --pip-args '--trusted-host pypi.org --trusted-host files.pythonhosted.org'
pipx install --spec git+https://github.com/scfurl/henipipe@cleaner --include-deps henipipe --pip-args '--trusted-host pypi.org --trusted-host files.pythonhosted.org'
**At the FHCRC do the following...**
module load Python/3.6.7-foss-2016b-fh1
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install --include-deps henipipe
pipx install git+https://github.com/scfurl/henipipe --include-deps
pipx uninstall henipipe
pipx uninstall henipipe
pipx install git+https://github.com/scfurl/henipipe --include-deps
## running test data at FH
ml Python/3.9.6-GCCcore-11.2.0
pipx uninstall henipipe
pipx install henipipe
git clone https://github.com/scfurl/henipipe.git
cd ~/henipipe/test_data
mkdir henipipe
cd henipipe
henipipe MAKERUNSHEET -fq ../fastq
awk -F ',' '{print $1, $2}' runsheet.csv
#proceed with henipipe steps
henipipe ALIGN -t 4 -r runsheet.csv
henipipe SCALE -r runsheet_fixed.csv
henipipe SEACR -r runsheet_fixed.csv
## running dest data at SCRI
cd /home/sfurla/develop/henipipe/test_data
mkdir henipipe
cd henipipe
henipipe MAKERUNSHEET -fq ../fastq -c PBS -gk furlan_hg38
henipipe ALIGN -t 4 -r runsheet.csv -c PBS
"""