Skip to content

Commit 18690c0

Browse files
Issue 30 (#31)
* Initial relative import changes * - Adds a requirements file (for testing) - Fix for Python3 has_key (now "in") - Fix for Python 3 xrange (now range) * - Updated Dockerfile requirements * - Use of Python3 RDKit base image * #30 switched service descriptors to yaml
1 parent 87c6e7b commit 18690c0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1536
-1881
lines changed

Dockerfile-rdkit

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM informaticsmatters/rdkit-python-debian:Release_2018_09_1
1+
FROM informaticsmatters/rdkit-python3-debian:Release_2019_03_1
22
LABEL maintainer="Tim Dudgeon<[email protected]>"
33

44
USER root
@@ -10,4 +10,5 @@ RUN apt-get -y update && apt-get -y install zip unzip procps
1010
COPY src/python /opt/python
1111
RUN pip install -e /opt/python
1212
# And the pip packages including pipeline-utilities and im-pipelines-utils-rdkit
13-
RUN pip install molvs standardiser matplotlib im-pipelines-utils==2.2.* im-pipelines-utils-rdkit==1.4.*
13+
RUN pip install molvs standardiser matplotlib \
14+
im-pipelines-utils>=2.4.5 im-pipelines-utils-rdkit>=1.5.7

post-service-descriptors.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ POST=${1:-http://coreservices:8080/coreservices/rest/v1/services}
1010
BASE_D='docker://github.com/InformaticsMatters/pipelines'
1111
BASE_N='nextflow://github.com/InformaticsMatters/pipelines'
1212
CT_DJ="application/x-squonk-service-descriptor-docker+json"
13+
CT_DY="application/x-squonk-service-descriptor-docker+yaml"
1314
CT_MM="multipart/mixed"
1415

1516

1617
for d in 'src/python/pipelines/dmpk' 'src/python/pipelines/docking' 'src/python/pipelines/rdkit'
1718
do
18-
for file in $d/*.dsd.json
19+
for file in $d/*.dsd.yml
1920
do
2021
echo $file
2122
curl -X POST \
2223
-T $file\
23-
-H "Content-Type: $CT_DJ"\
24+
-H "Content-Type: $CT_DY"\
2425
-H "Base-URL: $BASE_D"\
2526
$POST
2627
echo ""

requirements.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
im-pipelines-utils==2.4.*
2+
im-pipelines-utils-rdkit==1.5.*
3+
matplotlib==2.2.*
4+
scipy==1.1.*
5+
numpy==1.14.*
6+
scikit-learn==0.19.*
7+
pandas==0.23.*

src/python/pipelines/dmpk/pk_tmax_cmax_sim.dsd.json

Lines changed: 0 additions & 122 deletions
This file was deleted.
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
"@class": org.squonk.core.DockerServiceDescriptor
3+
serviceConfig:
4+
id: pipelines.dmpk.sygnature.tmax_cmax_sim.1
5+
name: TmaxCmaxSimulation
6+
description: Simulation of Tmax and Cmax
7+
tags:
8+
- sygnature
9+
- dmpk
10+
- pk
11+
- cmax
12+
- tmax
13+
- simulation
14+
- prediction
15+
- docker
16+
resourceUrl:
17+
icon: icons/program.png
18+
outputDescriptors:
19+
- primaryType: org.squonk.types.PngImageFile
20+
mediaType: image/png
21+
name: output
22+
optionDescriptors:
23+
- modes:
24+
- User
25+
editable: true
26+
visible: true
27+
description: Half life(elim)(hr)
28+
label: Half life(elim)(hr)
29+
key: arg.halfLife
30+
minValues: 1
31+
maxValues: 1
32+
typeDescriptor:
33+
type: java.lang.Float
34+
"@class": org.squonk.options.SimpleTypeDescriptor
35+
"@class": org.squonk.options.OptionDescriptor
36+
- modes:
37+
- User
38+
editable: true
39+
visible: true
40+
description: Half life(abs)(hr)
41+
label: Half life(abs)(hr)
42+
key: arg.absorption
43+
minValues: 1
44+
maxValues: 1
45+
typeDescriptor:
46+
type: java.lang.Float
47+
"@class": org.squonk.options.SimpleTypeDescriptor
48+
"@class": org.squonk.options.OptionDescriptor
49+
- modes:
50+
- User
51+
editable: true
52+
visible: true
53+
description: Dose(mg)
54+
label: Dose(mg)
55+
key: arg.dose
56+
minValues: 1
57+
maxValues: 1
58+
typeDescriptor:
59+
type: java.lang.Float
60+
"@class": org.squonk.options.SimpleTypeDescriptor
61+
"@class": org.squonk.options.OptionDescriptor
62+
- modes:
63+
- User
64+
editable: true
65+
visible: true
66+
description: AUC(mg/L.hr)
67+
label: AUC(mg/L.hr)
68+
key: arg.auc
69+
minValues: 1
70+
maxValues: 1
71+
typeDescriptor:
72+
type: java.lang.Float
73+
"@class": org.squonk.options.SimpleTypeDescriptor
74+
"@class": org.squonk.options.OptionDescriptor
75+
- modes:
76+
- User
77+
editable: true
78+
visible: true
79+
description: Simulation Time Length(hr)
80+
label: Simulation Time Length(hr)
81+
key: arg.time
82+
minValues: 1
83+
maxValues: 1
84+
typeDescriptor:
85+
type: java.lang.Float
86+
"@class": org.squonk.options.SimpleTypeDescriptor
87+
"@class": org.squonk.options.OptionDescriptor
88+
executorClassName: org.squonk.execution.steps.impl.ThinDatasetDockerExecutorStep
89+
outputRoutes:
90+
- route: FILE
91+
imageName: informaticsmatters/rdkit_pipelines
92+
command: >-
93+
python -m pipelines.dmpk.pk_tmax_cmax_sim -o ${POUT}output --half-life $halfLife
94+
--absorption $absorption --dose $dose --auc $auc --time $time

src/python/pipelines/docking/obabel_prepare_pdb.dsd.json

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
"@class": org.squonk.core.DockerServiceDescriptor
3+
serviceConfig:
4+
id: pipelines.xchem.obabel.prepare.pdb.v1
5+
name: OBabelPreparePDB
6+
description: Prepare PDB file using Open Babel
7+
tags:
8+
- rdkit
9+
- xchem
10+
- docker
11+
- openbabel
12+
- obabel
13+
- prepare
14+
- pdb
15+
- convert
16+
- protein
17+
resourceUrl:
18+
icon: icons/transform_molecule.png
19+
inputDescriptors:
20+
- primaryType: org.squonk.types.PDBFile
21+
mediaType: chemical/x-pdb
22+
name: pdb
23+
outputDescriptors:
24+
- primaryType: org.squonk.types.Mol2File
25+
mediaType: chemical/x-mol2
26+
name: mol2
27+
optionDescriptors:
28+
- modes:
29+
- User
30+
editable: true
31+
"@class": org.squonk.options.OptionDescriptor
32+
typeDescriptor:
33+
type: java.lang.Float
34+
"@class": org.squonk.options.SimpleTypeDescriptor
35+
key: arg.protonate
36+
label: Protonate at pH
37+
description: Optionally protonate side chains at this pH
38+
visible: true
39+
minValues: 0
40+
maxValues: 1
41+
executorClassName: org.squonk.execution.steps.impl.ThinDatasetDockerExecutorStep
42+
inputRoutes:
43+
- route: FILE
44+
outputRoutes:
45+
- route: FILE
46+
imageName: informaticsmatters/pipelines-obabel:latest
47+
command: >-
48+
python -m pipelines.docking.obabel_prepare_pdb -i ${PIN}pdb.pdb.gz -o ${POUT}mol2 -mol2
49+
${binding.variables.containsKey('protonate') ? '-prot ' + protonate : ''}
50+
--meta

0 commit comments

Comments
 (0)