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
3b0f2706
Unverified
Commit
3b0f2706
authored
Jun 08, 2023
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if data will fit in old format before doing calculation
parent
b87ef206
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
CMakeLists.txt
+1
-1
changelog
+3
-0
src/dssp-io.cpp
+1
-1
src/mkdssp.cpp
+14
-0
No files found.
CMakeLists.txt
View file @
3b0f2706
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
cmake_minimum_required
(
VERSION 3.15
)
cmake_minimum_required
(
VERSION 3.15
)
# set the project name
# set the project name
project
(
mkdssp VERSION 4.3.1 LANGUAGES CXX
)
project
(
mkdssp VERSION 4.3.1
.1
LANGUAGES CXX
)
list
(
APPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
list
(
APPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
...
...
changelog
View file @
3b0f2706
Version 4.3.1.1
- Check to see if data will fit in old format before starting calculations
Version 4.3.1
Version 4.3.1
- Optimised for speed
- Optimised for speed
- Fix in sheet numbering (mmCIF output)
- Fix in sheet numbering (mmCIF output)
...
...
src/dssp-io.cpp
View file @
3b0f2706
...
@@ -49,7 +49,7 @@ std::string ResidueToDSSPLine(const dssp::residue_info &info)
...
@@ -49,7 +49,7 @@ std::string ResidueToDSSPLine(const dssp::residue_info &info)
// auto& residue = info.residue();
// auto& residue = info.residue();
auto
&
residue
=
info
;
auto
&
residue
=
info
;
if
(
residue
.
asym
_id
().
length
()
>
1
)
if
(
residue
.
pdb_strand
_id
().
length
()
>
1
)
throw
std
::
runtime_error
(
"This file contains data that won't fit in the original DSSP format"
);
throw
std
::
runtime_error
(
"This file contains data that won't fit in the original DSSP format"
);
char
code
=
residue
.
compound_letter
();
char
code
=
residue
.
compound_letter
();
...
...
src/mkdssp.cpp
View file @
3b0f2706
...
@@ -158,6 +158,20 @@ int d_main(int argc, const char *argv[])
...
@@ -158,6 +158,20 @@ int d_main(int argc, const char *argv[])
fmt
=
"cif"
;
fmt
=
"cif"
;
}
}
if
(
fmt
==
"dssp"
)
{
// See if the data will fit at all
auto
&
db
=
f
.
front
();
for
(
const
auto
&
[
chain_id
,
seq_nr
]
:
db
[
"pdbx_poly_seq_scheme"
].
rows
<
std
::
string
,
int
>
(
"pdb_strand_id"
,
"pdb_seq_num"
))
{
if
(
chain_id
.
length
()
>
1
or
seq_nr
>
99999
)
{
std
::
cerr
<<
"The data in this file won't fit in the old DSSP format, please use the mmCIF format instead."
<<
std
::
endl
;
exit
(
2
);
}
}
}
dssp
dssp
(
f
.
front
(),
1
,
pp_stretch
,
fmt
==
"dssp"
or
config
.
has
(
"calculate-accessibility"
));
dssp
dssp
(
f
.
front
(),
1
,
pp_stretch
,
fmt
==
"dssp"
or
config
.
has
(
"calculate-accessibility"
));
if
(
not
output
.
empty
())
if
(
not
output
.
empty
())
...
...
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