Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
nam
ProxPython
Commits
7975f0c6
Commit
7975f0c6
authored
Apr 03, 2017
by
Russell Luke
Browse files
added/moved DRpotein_demo.py to the TestSuite subfolder
parent
05bdbdf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
TestSuite/DRprotein_demo.py
0 → 100755
View file @
7975f0c6
#Input, Output and Logfiles
import
sys
sys
.
path
.
append
(
".."
)
problemName
=
'1PTQ'
inputFile
=
'../InputData/Protein/1PTQ.pdb'
#in InputFiles directory
outputFile
=
'1PTQrecon.pdb'
#Parameters used by all variants of the algorithm
gapEps
=
1e-5
maxIterations
=
5000
P1Eps
=
1e-12
P2Rank
=
3
#Data simulation parameters
maxBondLength
=
6
startingSeed
=
2
replications
=
1
from
proxtoolbox.Problems
import
DRprotein
for
rep
in
range
(
replications
):
problem
=
DRprotein
(
problemName
,
startingSeed
+
rep
)
problem
.
readInputFile
(
inputFile
)
problem
.
addOutputFile
(
outputFile
)
problem
.
setGapEps
(
gapEps
)
problem
.
setMaxIterations
(
maxIterations
)
problem
.
setP1Eps
(
P1Eps
)
problem
.
setP2Rank
(
P2Rank
)
problem
.
simulateNMR
(
maxBondLength
)
problem
.
addAminoInfo
()
problem
.
solve
()
problem
.
printStats
()
problem
.
savePDB
()
#problem.saveJPG()
problem
.
show
()
del
problem
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment