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
19e93c2b
Commit
19e93c2b
authored
14 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
added OneLetterCodeToAminoAcid
parent
e537ecc4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/qa/src/amino_acids.cc
+49
-0
49 additions, 0 deletions
modules/qa/src/amino_acids.cc
modules/qa/src/amino_acids.hh
+2
-0
2 additions, 0 deletions
modules/qa/src/amino_acids.hh
modules/qa/src/packing_potential.hh
+1
-1
1 addition, 1 deletion
modules/qa/src/packing_potential.hh
with
52 additions
and
1 deletion
modules/qa/src/amino_acids.cc
+
49
−
0
View file @
19e93c2b
...
@@ -174,6 +174,55 @@ String OneLetterCodeToResidueName(char olc)
...
@@ -174,6 +174,55 @@ String OneLetterCodeToResidueName(char olc)
}
}
}
}
AminoAcid
OneLetterCodeToAminoAcid
(
char
olc
)
{
char
upper_olc
=
toupper
(
olc
);
switch
(
upper_olc
)
{
case
'A'
:
return
Ala
;
case
'R'
:
return
Arg
;
case
'N'
:
return
Asn
;
case
'D'
:
return
Asp
;
case
'Q'
:
return
Gln
;
case
'E'
:
return
Glu
;
case
'K'
:
return
Lys
;
case
'S'
:
return
Ser
;
case
'C'
:
return
Cys
;
case
'Y'
:
return
Tyr
;
case
'W'
:
return
Trp
;
case
'T'
:
return
Thr
;
case
'V'
:
return
Val
;
case
'I'
:
return
Ile
;
case
'M'
:
return
Met
;
case
'L'
:
return
Leu
;
case
'G'
:
return
Gly
;
case
'P'
:
return
Pro
;
case
'H'
:
return
His
;
case
'F'
:
return
Phe
;
default:
return
Xxx
;
}
}
AminoAcidSet
AminoAcidSet
::
CreatePolarSet
()
AminoAcidSet
AminoAcidSet
::
CreatePolarSet
()
{
{
AminoAcidSet
polar
;
AminoAcidSet
polar
;
...
...
This diff is collapsed.
Click to expand it.
modules/qa/src/amino_acids.hh
+
2
−
0
View file @
19e93c2b
...
@@ -52,6 +52,8 @@ DLLEXPORT_OST_QA String AminoAcidToResidueName(AminoAcid aa);
...
@@ -52,6 +52,8 @@ DLLEXPORT_OST_QA String AminoAcidToResidueName(AminoAcid aa);
DLLEXPORT_OST_QA
String
OneLetterCodeToResidueName
(
char
olc
);
DLLEXPORT_OST_QA
String
OneLetterCodeToResidueName
(
char
olc
);
DLLEXPORT_OST_QA
AminoAcid
OneLetterCodeToAminoAcid
(
char
olc
);
class
AminoAcidSetIterator
:
public
std
::
iterator
<
std
::
forward_iterator_tag
,
class
AminoAcidSetIterator
:
public
std
::
iterator
<
std
::
forward_iterator_tag
,
AminoAcid
>
{
AminoAcid
>
{
public:
public:
...
...
This diff is collapsed.
Click to expand it.
modules/qa/src/packing_potential.hh
+
1
−
1
View file @
19e93c2b
...
@@ -94,7 +94,7 @@ public:
...
@@ -94,7 +94,7 @@ public:
count
=
count
>
options_
.
max_counts
?
options_
.
max_counts
:
count
;
count
=
count
>
options_
.
max_counts
?
options_
.
max_counts
:
count
;
return
energies_
.
Get
(
aa
,
count
/
options_
.
bucket_size
);
return
energies_
.
Get
(
aa
,
count
/
options_
.
bucket_size
);
}
}
const
PackingPotentialOpts
&
GetOptions
()
const
{
return
options_
;
}
template
<
typename
DS
>
template
<
typename
DS
>
void
Serialize
(
DS
&
ds
);
void
Serialize
(
DS
&
ds
);
...
...
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