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
63c86249
Commit
63c86249
authored
May 29, 2014
by
Kyle Beauchamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test atom names in GLY and ALA after mutation.
parent
ac2538b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
tests/test_mutate.py
+10
-1
No files found.
tests/test_mutate.py
View file @
63c86249
...
@@ -16,7 +16,11 @@ def test_mutate_1():
...
@@ -16,7 +16,11 @@ def test_mutate_1():
new_residue57
=
list
(
fixer
.
topology
.
residues
())[
16
]
new_residue57
=
list
(
fixer
.
topology
.
residues
())[
16
]
assert
new_residue57
.
name
==
"GLY"
,
"Name of mutated residue did not change correctly!"
assert
new_residue57
.
name
==
"GLY"
,
"Name of mutated residue did not change correctly!"
assert
len
(
list
(
new_residue57
.
atoms
()))
==
7
,
"Should have 7 atoms in GLY 56"
assert
len
(
list
(
new_residue57
.
atoms
()))
==
7
,
"Should have 7 atoms in GLY 56"
atom_names
=
set
([
atom
.
name
for
atom
in
new_residue57
.
atoms
()])
desired_atom_names
=
set
([
"N"
,
"CA"
,
"C"
,
"O"
,
"H"
,
"HA3"
,
"HA2"
])
assert
atom_names
==
desired_atom_names
,
"Atom Names did not match for GLY 56"
def
test_mutate_2
():
def
test_mutate_2
():
...
@@ -34,6 +38,11 @@ def test_mutate_2():
...
@@ -34,6 +38,11 @@ def test_mutate_2():
assert
len
(
list
(
new_residue56
.
atoms
()))
==
10
,
"Should have 10 atoms in ALA 56"
assert
len
(
list
(
new_residue56
.
atoms
()))
==
10
,
"Should have 10 atoms in ALA 56"
assert
len
(
list
(
new_residue57
.
atoms
()))
==
19
,
"Should have 19 atoms in LEU 57"
assert
len
(
list
(
new_residue57
.
atoms
()))
==
19
,
"Should have 19 atoms in LEU 57"
atom_names
=
set
([
atom
.
name
for
atom
in
new_residue56
.
atoms
()])
desired_atom_names
=
set
([
"N"
,
"CA"
,
"CB"
,
"C"
,
"O"
,
"H"
,
"HA"
,
"HB1"
,
"HB2"
,
"HB3"
])
assert
atom_names
==
desired_atom_names
,
"Atom Names did not match for ALA 56"
@raises
(
ValueError
)
@raises
(
ValueError
)
...
...
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