Skip to content

Commit

Permalink
read install reqs from requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandr committed Apr 29, 2024
1 parent a95e4e1 commit cbe632e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 26 deletions.
14 changes: 7 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
six
numpy>=1.14.0
pandas
pyensembl>=1.5.0
varcode>=0.5.9
isovar>=1.1.1
mhctools>=1.5.0
numpy>=1.14.0,<2.0.0
pandas>=2.1.4,<3.0.0
pyensembl>=2.0.0,<3.0.0
varcode>=1.1.0,<2.0.0
isovar>=1.3.0,<2.0.0
mhctools>=1.8.2,<2.0.0
roman
jinja2<3.1
pdfkit # needs wkhtmltopdf: brew install Caskroom/cask/wkhtmltopdf
Expand All @@ -17,3 +16,4 @@ future>=0.16.0 # needed by pylint
astropy
datacache
pysam>=0.15.2
msgspec>=0.18.6,<1.0.0
23 changes: 4 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
f.read(),
re.MULTILINE).group(1)

with open("requirements.txt") as f:
requirements = [req.strip() for req in f.read().splitlines() if req.strip()]

if not version:
raise RuntimeError("Cannot find version information")

Expand All @@ -56,25 +59,7 @@
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
install_requires=[
'numpy>=1.14.0,<2.0.0',
'pandas>=2.1.4,<3.0.0',
'pyensembl>=2.0.0,<3.0.0',
'varcode>=1.1.0,<2.0.0',
'isovar>=1.3.0,<2.0.0',
'mhctools>=1.8.2,<2.0.0',
'roman',
'jinja2<3.1',
'pdfkit',
'pypandoc',
'shellinford>=0.3.4',
'xlrd>=1.0.0,<2.0.0',
'xlsxwriter',
'xvfbwrapper',
'future>=0.16.0', # needed by pylint
'astropy',
],

install_requires=requirements,
long_description=readme_markdown,
long_description_content_type='text/markdown',
packages=['vaxrank'],
Expand Down
11 changes: 11 additions & 0 deletions vaxrank/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import msgspec

class Confiug(msgspec.Struct):

"""Parameters for score, filtering, and ranking both epitopes and vaccine peptides"""
logistic_epitope_score_midpoint : float =350.0
logistic_epitope_score_width : float = 150.0

min_epitope_score : float = 0.0
binding_affinity_cutoff : float = 5000.0

0 comments on commit cbe632e

Please sign in to comment.