Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pdbfixer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pdbfixer
Commits
da0fa01c
Commit
da0fa01c
authored
Mar 28, 2014
by
John Chodera (MSKCC)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added debug code to test why travis-ci is failing.
parent
00469843
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
.travis.yml
+3
-2
tests/test_build.py
+14
-1
No files found.
.travis.yml
View file @
da0fa01c
...
@@ -10,8 +10,9 @@ install:
...
@@ -10,8 +10,9 @@ install:
script
:
script
:
-
python setup.py install
-
python setup.py install
-
nosetests tests/test_build.py
# - nosetests tests/test_build.py
-
nosetests tests/test_simulate.py
# - nosetests tests/test_simulate.py
-
python tests/test_build.py
after_script
:
after_script
:
-
pyflakes pdbfixer/*.py
-
pyflakes pdbfixer/*.py
...
...
tests/test_build.py
View file @
da0fa01c
...
@@ -15,7 +15,10 @@ def test_build():
...
@@ -15,7 +15,10 @@ def test_build():
success
=
True
success
=
True
for
pdbcode
in
pdbcodes
:
for
pdbcode
in
pdbcodes
:
print
pdbcode
try
:
try
:
print
"Attempting to retrieve PDB code '
%
s' from
%
s..."
%
(
pdbcode
,
PDBList
.
alternative_download_url
)
input_pdb_filename
=
pdblist
.
retrieve_pdb_file
(
pdbcode
,
pdir
=
'.'
)
input_pdb_filename
=
pdblist
.
retrieve_pdb_file
(
pdbcode
,
pdir
=
'.'
)
except
Exception
as
e
:
except
Exception
as
e
:
print
str
(
e
)
print
str
(
e
)
...
@@ -37,18 +40,28 @@ def test_build():
...
@@ -37,18 +40,28 @@ def test_build():
outfile
=
open
(
output_pdb_filename
,
'w'
)
outfile
=
open
(
output_pdb_filename
,
'w'
)
try
:
try
:
print
"Creating PDBFixer..."
fixer
=
PDBFixer
(
PdbStructure
(
infile
))
fixer
=
PDBFixer
(
PdbStructure
(
infile
))
print
"Finding missing residues..."
fixer
.
findMissingResidues
()
fixer
.
findMissingResidues
()
print
"Finding nonstandard residues..."
fixer
.
findNonstandardResidues
()
fixer
.
findNonstandardResidues
()
print
"Replacing nonstandard residues..."
fixer
.
replaceNonstandardResidues
()
fixer
.
replaceNonstandardResidues
()
print
"Finding missing atoms..."
fixer
.
findMissingAtoms
()
fixer
.
findMissingAtoms
()
print
"Adding missing atoms..."
fixer
.
addMissingAtoms
()
fixer
.
addMissingAtoms
()
print
"Removing heterogens..."
fixer
.
removeHeterogens
(
False
)
fixer
.
removeHeterogens
(
False
)
print
"Adding missing hydrogens..."
fixer
.
addMissingHydrogens
(
pH
)
fixer
.
addMissingHydrogens
(
pH
)
#fixer.addSolvent(box*unit.nanometer, positiveIon, negativeIon, ionic*unit.molar)
#fixer.addSolvent(box*unit.nanometer, positiveIon, negativeIon, ionic*unit.molar)
print
"Writing PDB file..."
app
.
PDBFile
.
writeFile
(
fixer
.
topology
,
fixer
.
positions
,
outfile
)
app
.
PDBFile
.
writeFile
(
fixer
.
topology
,
fixer
.
positions
,
outfile
)
infile
.
close
()
infile
.
close
()
outfile
.
close
()
outfile
.
close
()
print
"Done."
# Delete input file.
# Delete input file.
os
.
remove
(
input_pdb_filename
)
os
.
remove
(
input_pdb_filename
)
...
@@ -61,4 +74,4 @@ def test_build():
...
@@ -61,4 +74,4 @@ def test_build():
if
not
success
:
if
not
success
:
raise
Exception
(
"build test failed on one or more PDB files."
)
raise
Exception
(
"build test failed on one or more PDB files."
)
test_build
()
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