Skip to content

Commit

Permalink
Merge pull request #209 from jvolkening/master
Browse files Browse the repository at this point in the history
Fixed bug in _toDsspKey()
  • Loading branch information
hlapp committed Jan 11, 2017
2 parents 02f4447 + f63905b commit 6046cae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Bio/Structure/SecStr/DSSP/Res.pm
Expand Up @@ -1190,10 +1190,10 @@ sub _toDsspKey {

if ( ! $chain_id) { # parse the lone argument
( $key_num, $chain_id, $ins_code )
= $key_num =~ m/([0-9]+)
([a-zA-z]?)
(?::([a-zA-Z]))?/xms
? ( $1, $2, $3 )
= $key_num =~ m/^(\-?[0-9]+) # PDB coords can be negative
([a-zA-Z]?)
(?::([a-zA-Z\-]))?$/x # missing chains are '-'
? ( $1, $3, $2 )
: $self->throw("Could not derive PDB key $key_num");
}

Expand Down

0 comments on commit 6046cae

Please sign in to comment.