Skip to content

Commit 1d97336

Browse files
committed
removed hyphen from python file names
1 parent c8cd73b commit 1d97336

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

requirements-rdkit.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ molvs==0.1.1
55
standardiser==0.1.9
66
pandas==1.0.1
77
scikit-learn==0.22.1
8+
requests==2.24.0

src/nextflow/xchem/featurestein.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ process generate_feat_maps {
2020
file 'featurestein.p' into fmaps
2121

2222
"""
23-
python -m pipelines.xchem.featurestein-generate -i '$fragments' -f featurestein.p
23+
python -m pipelines.xchem.featurestein_generate -i '$fragments' -f featurestein.p
2424
"""
2525
}
2626

@@ -51,7 +51,7 @@ process score {
5151
file 'scored_part*.sdf' into scored_parts
5252

5353
"""
54-
python -m pipelines.xchem.featurestein-score -i '$part' -f '$fmaps' -o '${part.name.replace('inputs', 'scored')[0..-8]}' -of sdf --no-gzip
54+
python -m pipelines.xchem.featurestein_score -i '$part' -f '$fmaps' -o '${part.name.replace('inputs', 'scored')[0..-8]}' -of sdf --no-gzip
5555
"""
5656
}
5757

src/python/pipelines/xchem/featurestein-generate.py renamed to src/python/pipelines/xchem/featurestein_generate.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"""
1818
Ligand pose scoring using 'FeatureStein'.
1919
This module generates a merged feature map from a set of 3D ligands.
20-
The output is a pickle of the merged feature map that can be read by the featurestein-score.py module to
20+
The output is a pickle of the merged feature map that can be read by the featurestein_score.py module to
2121
generate scores.
2222
"""
2323

@@ -82,12 +82,13 @@ def build_feat_data(mols):
8282

8383
def find_closest(scores):
8484
#print('Find closest for', len(scores), len(scores[0]))
85-
best_score = 0
85+
best_score = -1.0
8686
for i in range(len(scores)):
8787
for j in range(len(scores)):
8888
if i == j:
8989
continue
9090
score = scores[i][j]
91+
utils.log('Score:', score)
9192
if score > best_score:
9293
best_score = score
9394
best_row = i
@@ -151,7 +152,7 @@ def process(inputs, fname):
151152
def main():
152153

153154
# Example usage:
154-
# python -m pipelines.xchem.featurestein-generate -i ../../data/mpro/hits-17.sdf.gz -f mpro-fstein.p
155+
# python -m pipelines.xchem.featurestein_generate -i ../../data/mpro/hits-17.sdf.gz -f mpro-fstein.p
155156

156157
global fmaps
157158

src/python/pipelines/xchem/featurestein-generate.test renamed to src/python/pipelines/xchem/featurestein_generate.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
version = 1,
66

7-
// Testing featurestein-generate.py
7+
// Testing featurestein_generate.py
88
// reading from STDIN and writing to STDOUT
99
test_featurestein_generate = [
1010

11-
command: '''python -m pipelines.rdkit.featurestein-generate
11+
command: '''python -m pipelines.xchem.featurestein_generate
1212
-i ${PIN}/mpro/hits-17.sdf.gz
1313
-f ${POUT}featurestein.p''',
1414

src/python/pipelines/xchem/featurestein-score.py renamed to src/python/pipelines/xchem/featurestein_score.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Ligand pose scoring using 'FeatureStein'.
1919
FeatureStein is a merged RDKit feature map that estimates the overlap of a ligand with a set of ligands (e.g. fragment
2020
screening hits) based on the RDKit feature maps.
21-
See featurestein-generate.py for how to generate the merged feature maps.
21+
See featurestein_generate.py for how to generate the merged feature maps.
2222
"""
2323

2424
from __future__ import print_function
@@ -96,7 +96,7 @@ def process(inputs, writer):
9696
def main():
9797

9898
# Example usage
99-
# python -m pipelines.xchem.featurestein-score -i ../../data/mpro/poses.sdf.gz -f mpro-fstein.p -o fstein
99+
# python -m pipelines.xchem.featurestein_score -i ../../data/mpro/poses.sdf.gz -f mpro-fstein.p -o fstein
100100

101101
global fmaps
102102

@@ -110,7 +110,7 @@ def main():
110110
args = parser.parse_args()
111111
utils.log("FeatureStein Args: ", args)
112112

113-
source = "featurestein-score.py"
113+
source = "featurestein_score.py"
114114
datasetMetaProps = {"source":source, "description": "FeatureStein scoring using RDKit " + rdBase.rdkitVersion}
115115

116116
clsMappings = {}

src/python/pipelines/xchem/featurestein-score.test renamed to src/python/pipelines/xchem/featurestein_score.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
version = 1,
66

7-
// Testing featurestein-score.py
7+
// Testing featurestein_score.py
88
// reading from STDIN and writing to STDOUT
99
test_featurestein_score = [
1010

11-
command: '''python -m pipelines.xchem.featurestein-score
11+
command: '''python -m pipelines.xchem.featurestein_score
1212
-i ${PIN}/mpro/poses.sdf.gz
1313
-f ${PIN}/mpro/featurestein.p
1414
-o ${POUT}fstein''',

0 commit comments

Comments
 (0)