Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MIT_MAHE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
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
2022 Competition
Software Tools
MIT_MAHE
Commits
b2778c11
Commit
b2778c11
authored
2 years ago
by
Ashrith Sagar Yedlapalli
Browse files
Options
Downloads
Patches
Plain Diff
c0.15.21
parent
bf0a0b7f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pep_mod.py
+7
-5
7 additions, 5 deletions
pep_mod.py
with
7 additions
and
5 deletions
pep_mod.py
+
7
−
5
View file @
b2778c11
...
...
@@ -62,12 +62,14 @@ class BAlaS:
return
ddg_threshold
def
replot_get_positions
(
self
):
def
replot_get_positions
(
self
,
count
=
5
):
"""
Get positions from filtered ddG thresholds
"""
df_ResNumber
=
self
.
ddg_threshold
[[
'
ResNumber
'
]]
positions
=
[]
ddg_threshold_sorted
=
self
.
ddg_threshold
.
sort_values
(
'
ddGs
'
,
ascending
=
True
)
df_ResNumber
=
ddg_threshold_sorted
[[
'
ResNumber
'
]]
df_ResNumber_clipped
=
df_ResNumber
.
head
(
count
)
for
index
,
ResNumber
in
df_ResNumber
.
iterrows
():
positions
=
[]
for
index
,
ResNumber
in
df_ResNumber_clipped
.
iterrows
():
position
=
re
.
search
(
r
'
([0-9])+
'
,
str
(
ResNumber
))
if
position
is
not
None
:
position
=
position
[
0
]
positions
.
append
(
position
)
...
...
@@ -390,7 +392,7 @@ def main():
bude
=
BAlaS
()
df_ddg
=
bude
.
replot_read
(
args
.
alaninescan
)
ddg_preferences
=
bude
.
replot_filter
(
1
)
# Threshold in kCal/mol
positions
=
bude
.
replot_get_positions
()
positions
=
bude
.
replot_get_positions
(
args
.
mutation_count
)
muts
=
to_mut_obj
(
sequence
,
positions
)
mutations_obj
=
mutater
(
sequence
=
sequence
,
mutations
=
muts
,
mutation_lock
=
[])
...
...
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