Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dssp
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
dssp
Commits
336ffaee
Unverified
Commit
336ffaee
authored
Jun 07, 2023
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
eb2283cc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
src/dssp-io.cpp
+7
-3
src/dssp.cpp
+12
-5
No files found.
src/dssp-io.cpp
View file @
336ffaee
...
...
@@ -341,9 +341,13 @@ void writeSheets(cif::datablock &db, const dssp &dssp)
{
if
(
sheetNr
!=
lastSheet
)
{
struct_sheet
.
emplace
({
{
"id"
,
cif
::
cif_id_for_number
(
sheetNr
)
},
{
"number_strands"
,
std
::
count_if
(
strands
.
begin
(),
strands
.
end
(),
[
nr
=
sheetNr
](
std
::
tuple
<
int
,
res_list
>
const
&
s
)
{
return
std
::
get
<
0
>
(
s
)
==
nr
;
})
}
});
struct_sheet
.
emplace
({
{
"id"
,
cif
::
cif_id_for_number
(
sheetNr
)
},
{
"number_strands"
,
std
::
count_if
(
strands
.
begin
(),
strands
.
end
(),
[
nr
=
sheetNr
](
std
::
tuple
<
int
,
res_list
>
const
&
s
)
{
return
std
::
get
<
0
>
(
s
)
==
nr
;
})
}
});
lastSheet
=
sheetNr
;
}
...
...
src/dssp.cpp
View file @
336ffaee
...
...
@@ -860,14 +860,21 @@ bool Linked(const bridge &a, const bridge &b)
void
CalculateBetaSheets
(
std
::
vector
<
residue
>
&
inResidues
,
statistics
&
stats
,
std
::
vector
<
std
::
tuple
<
uint32_t
,
uint32_t
>>
&
q
)
{
if
(
cif
::
VERBOSE
)
std
::
cerr
<<
"calculating beta sheets"
<<
std
::
endl
;
// if (cif::VERBOSE)
// std::cerr << "calculating beta sheets" << std::endl;
std
::
unique_ptr
<
cif
::
progress_bar
>
progress
;
if
(
cif
::
VERBOSE
==
0
or
cif
::
VERBOSE
==
1
)
progress
.
reset
(
new
cif
::
progress_bar
(
q
.
size
(),
"calculate hbond energies"
));
// Calculate Bridges
std
::
vector
<
bridge
>
bridges
;
for
(
const
auto
&
[
i
,
j
]
:
q
)
{
if
(
progress
)
progress
->
consumed
(
1
);
auto
&
ri
=
inResidues
[
i
];
auto
&
rj
=
inResidues
[
j
];
...
...
@@ -1578,14 +1585,14 @@ void DSSP_impl::calculateSecondaryStructure()
hbond_thread
.
join
();
std
::
thread
bsheet_thread
(
std
::
bind
(
&
CalculateBetaSheets
,
std
::
ref
(
mResidues
),
std
::
ref
(
mStats
),
std
::
ref
(
near
)));
//
std::thread bsheet_thread(std::bind(&CalculateBetaSheets, std::ref(mResidues), std::ref(mStats), std::ref(near)));
// CalculateHBondEnergies(mResidues);
// CalculateBetaSheets(mResidues, mStats
);
CalculateBetaSheets
(
mResidues
,
mStats
,
near
);
CalculateAlphaHelices
(
mResidues
,
mStats
);
CalculatePPHelices
(
mResidues
,
mStats
,
m_min_poly_proline_stretch_length
);
bsheet_thread
.
join
();
//
bsheet_thread.join();
if
(
cif
::
VERBOSE
>
1
)
{
...
...
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