Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ariaec
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
bis-aria
ariaec
Commits
215ab225
Commit
215ab225
authored
5 years ago
by
Fabrice ALLAIN
Browse files
Options
Downloads
Patches
Plain Diff
feat: support ss format
parent
79f33d7c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/tutorial.rst
+5
-4
5 additions, 4 deletions
docs/tutorial.rst
src/aria/conbox/protein.py
+11
-0
11 additions, 0 deletions
src/aria/conbox/protein.py
with
16 additions
and
4 deletions
docs/tutorial.rst
+
5
−
4
View file @
215ab225
...
...
@@ -285,10 +285,11 @@ analysis pipeline.
Contact map analysis
--------------------
To quickly see several plots and stats related to the reference structure
or/with the EC contact maps. We can use the ``maplot`` subcommand. The first
argument in this command will always be set as the reference map/pdb for the
contact map, ROC or precision-recall plots.
Aside ConKit_ :abbr:`Command Line Interface CLI)` tools, the
:ref:`maplot <./usage>` command line has been implemented to show statistics
between contact maps and the reference which can be a structure in PDB_ format.
The first argument in this command will always be set as the reference map/pdb
for the contact map, ROC or precision-recall plots.
.. code-block:: console
...
...
This diff is collapsed.
Click to expand it.
src/aria/conbox/protein.py
+
11
−
0
View file @
215ab225
...
...
@@ -51,6 +51,7 @@ class SsList(object):
r
'
\s+(?P<h_conf>\d?\.?\d*)
'
r
'
\s+(?P<e_conf>\d?\.?\d*)
'
r
'
\s+(?P<c_conf>\d?\.?\d*)
'
),
'
ss
'
:
re
.
compile
(
r
'
^(?P<ss_pred>[HECBTG]+)
'
),
}
# psipred_reg = re.compile(r'^(?P<up_index>\d+)'
# r'\s+(?P<up_residue>[AC-IK-NP-TVWYZ])'
...
...
@@ -184,8 +185,18 @@ class SsList(object):
filename
,
sstype
)
self
.
ssdict
=
reg_load
(
ssregex
,
filename
)
# Change the format of the ssdict if we have ss type format
if
sstype
==
"
ss
"
:
tmpdict
=
{}
for
sstridx
in
sorted
(
self
.
ssdict
.
keys
()):
for
ssidx
,
ss
in
enumerate
(
self
.
ssdict
[
sstridx
][
"
ss_pred
"
]):
tmpdict
[
ssidx
+
1
]
=
{
"
ss_pred
"
:
ss
}
self
.
ssdict
=
tmpdict
ss_index_dict
=
{
'
H
'
:
1
,
'
C
'
:
1
,
'
E
'
:
1
}
for
line_id
in
sorted
(
self
.
ssdict
.
keys
()):
# Modif champ ss_pred
# Si line_id
if
line_id
!=
min
(
self
.
ssdict
.
keys
())
and
\
...
...
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