Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BioHelpers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Operate
Terraform modules
Monitor
Incidents
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christian Faber
BioHelpers
Commits
bf7e672f
Commit
bf7e672f
authored
7 months ago
by
Christian Faber
Browse files
Options
Downloads
Patches
Plain Diff
fix rmsd function
parent
08360ec3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.py
+1
-1
1 addition, 1 deletion
setup.py
src/BioHelpers_FABER/rmsd.py
+10
-2
10 additions, 2 deletions
src/BioHelpers_FABER/rmsd.py
with
11 additions
and
3 deletions
setup.py
+
1
−
1
View file @
bf7e672f
...
@@ -5,7 +5,7 @@ with open("README.md", "r") as f:
...
@@ -5,7 +5,7 @@ with open("README.md", "r") as f:
setup
(
setup
(
name
=
"
BioHelpers_FABER
"
,
name
=
"
BioHelpers_FABER
"
,
version
=
"
0.2.
9
"
,
version
=
"
0.2.
10
"
,
description
=
"
Small collection of useful scripts for the computational work with RNA Data.
"
,
description
=
"
Small collection of useful scripts for the computational work with RNA Data.
"
,
url
=
"
https://gitlab.jsc.fz-juelich.de/faber1/biohelpers
"
,
url
=
"
https://gitlab.jsc.fz-juelich.de/faber1/biohelpers
"
,
package_dir
=
{
""
:
"
src
"
},
package_dir
=
{
""
:
"
src
"
},
...
...
This diff is collapsed.
Click to expand it.
src/BioHelpers_FABER/rmsd.py
+
10
−
2
View file @
bf7e672f
...
@@ -194,8 +194,16 @@ def rmsd_pdb(file1: str, file2: str, exclude_residues: Optional[list] = None) ->
...
@@ -194,8 +194,16 @@ def rmsd_pdb(file1: str, file2: str, exclude_residues: Optional[list] = None) ->
p2
.
detach_child
((
"
"
,
i
,
"
"
))
p2
.
detach_child
((
"
"
,
i
,
"
"
))
# p1_AA = [list(a.get_vector()) for a in p1.get_atoms()]
# p1_AA = [list(a.get_vector()) for a in p1.get_atoms()]
# p2_AA = [list(a.get_vector()) for a in p2.get_atoms()]
# p2_AA = [list(a.get_vector()) for a in p2.get_atoms()]
p1_AA
=
[
list
(
a
.
get_vector
())
for
a
in
p1
.
get_atoms
()
if
a
.
id
!=
"
OP3
"
]
p1_AA
=
[
p2_AA
=
[
list
(
a
.
get_vector
())
for
a
in
p2
.
get_atoms
()
if
a
.
id
!=
"
OP3
"
]
list
(
a
.
get_vector
())
for
a
in
p1
.
get_atoms
()
if
a
.
id
!=
"
OP3
"
and
a
.
element
!=
"
H
"
]
p2_AA
=
[
list
(
a
.
get_vector
())
for
a
in
p2
.
get_atoms
()
if
a
.
id
!=
"
OP3
"
and
a
.
element
!=
"
H
"
]
p1_AA
=
np
.
transpose
(
np
.
array
(
p1_AA
))
p1_AA
=
np
.
transpose
(
np
.
array
(
p1_AA
))
p2_AA
=
np
.
transpose
(
np
.
array
(
p2_AA
))
p2_AA
=
np
.
transpose
(
np
.
array
(
p2_AA
))
return
rmsd
(
p1_AA
,
p2_AA
)
return
rmsd
(
p1_AA
,
p2_AA
)
...
...
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