Skip to content

Commit 2f9ee9d

Browse files
committed
threshold added to xcos nextflow workflow
1 parent 2e96763 commit 2f9ee9d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/nextflow/xchem/xcos.nf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
params.inputs = 'data/mpro/poses.sdf.gz'
44
params.fragments = 'data/mpro/hits-17.sdf.gz'
5-
params.chunk = 500
6-
params.limit = 0
7-
params.digits = 4
5+
params.threshold = 0.4 // XCos score theshold
6+
params.chunk = 500 // chunk size to split input into
7+
params.limit = 0 // max number of molecules to process
8+
params.digits = 4 // number of digits for the split file name number
89

910
inputs = file(params.inputs)
1011
fragments = file(params.fragments)
@@ -36,7 +37,7 @@ process xcos {
3637
file 'scored_part*.sdf' into scored_parts
3738

3839
"""
39-
python -m pipelines.xchem.xcos -i '$part' -f '$fragments' -o '${part.name.replace('inputs', 'scored')[0..-8]}' -of sdf --no-gzip
40+
python -m pipelines.xchem.xcos -i '$part' -f '$fragments' -t $params.threshold -o '${part.name.replace('inputs', 'scored')[0..-8]}' -of sdf --no-gzip
4041
"""
4142
}
4243

0 commit comments

Comments
 (0)