Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
3643b0be
Commit
3643b0be
authored
12 years ago
by
Bienchen
Browse files
Options
Downloads
Patches
Plain Diff
Added a unit test for PDBize and removed debug output.
parent
222c2782
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/io/pymod/__init__.py
+0
-1
0 additions, 1 deletion
modules/io/pymod/__init__.py
modules/io/tests/test_io_mmcif.py
+15
-0
15 additions, 0 deletions
modules/io/tests/test_io_mmcif.py
modules/io/tests/testfiles/mmcif/3hqv.cif.gz
+0
-0
0 additions, 0 deletions
modules/io/tests/testfiles/mmcif/3hqv.cif.gz
with
15 additions
and
1 deletion
modules/io/pymod/__init__.py
+
0
−
1
View file @
3643b0be
...
...
@@ -481,7 +481,6 @@ def _PDBize(biounit, asu, seqres=None, min_polymer_size=10,
a_pos_wrong
=
a_b
move_to_origin
=
None
if
a_pos_wrong
:
print
"
IN
"
start
=
pdb_bu
.
bounds
.
min
move_to_origin
=
geom
.
Mat4
(
1
,
0
,
0
,(
-
999
-
start
[
0
]),
0
,
1
,
0
,(
-
999
-
start
[
1
]),
...
...
This diff is collapsed.
Click to expand it.
modules/io/tests/test_io_mmcif.py
+
15
−
0
View file @
3643b0be
...
...
@@ -165,6 +165,21 @@ class TestMMCifInfo(unittest.TestCase):
self
.
assertEquals
(
len
(
pdb_seqres_ent
.
GetChainList
()[
9
].
GetResidueList
()),
414
)
def
test_mmcifinfo_biounit_pdbize_transformation
(
self
):
ent
,
seqres
,
info
=
io
.
LoadMMCIF
(
"
testfiles/mmcif/3hqv.cif.gz
"
,
seqres
=
True
,
info
=
True
)
pdb_ent
,
t
=
info
.
GetBioUnits
()[
0
].
PDBize
(
ent
,
transformation
=
True
)
self
.
assertAlmostEquals
(
pdb_ent
.
GetCenterOfAtoms
()[
0
],
-
915.759
,
3
)
self
.
assertAlmostEquals
(
pdb_ent
.
GetCenterOfAtoms
()[
1
],
-
952.345
,
2
)
self
.
assertAlmostEquals
(
pdb_ent
.
GetCenterOfAtoms
()[
2
],
3221.75
,
2
)
self
.
assertEquals
(
geom
.
Equal
(
t
,
geom
.
Mat4
(
1
,
0
,
0
,
-
920.462
,
0
,
1
,
0
,
-
966.654
,
0
,
0
,
1
,
1703
,
0
,
0
,
0
,
1
),
epsilon
=
0.01
),
True
)
def
test_mmcifinfo_structdetails
(
self
):
d
=
io
.
MMCifInfoStructDetails
()
...
...
This diff is collapsed.
Click to expand it.
modules/io/tests/testfiles/mmcif/3hqv.cif.gz
0 → 100644
+
0
−
0
View file @
3643b0be
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment