Skip to content

Commit

Permalink
threshold added to xcos nextflow workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tdudgeon committed Jul 30, 2020
1 parent 2e96763 commit 2f9ee9d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/nextflow/xchem/xcos.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

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

inputs = file(params.inputs)
fragments = file(params.fragments)
Expand Down Expand Up @@ -36,7 +37,7 @@ process xcos {
file 'scored_part*.sdf' into scored_parts

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

Expand Down

0 comments on commit 2f9ee9d

Please sign in to comment.