Skip to content

Commit f37976c

Browse files
committed
calpro calculates distances for drugs, small molecules, and amino acids but skips water.
1 parent ddebbe2 commit f37976c

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Usage
1010

1111
Stable: v0.6.0
1212

13-
Beta: up to v1.8.1
13+
Beta: up to v1.8.2
1414
1515
Author: Beifang Niu, John Wallis, Adam D Scott, Sohini Sengupta, & Amila Weerasinghe
1616

@@ -86,9 +86,9 @@ For the latest stable version:
8686

8787
For the latest beta version:
8888

89-
git pull origin v1.8.1
89+
git pull origin v1.8.2
9090

91-
cpanm HotSpot3D-1.8.1.tar.gz
91+
cpanm HotSpot3D-1.8.2.tar.gz
9292

9393
Final note: Installations under some organizations may use an internal perl version.
9494
To make use of the /usr/ perl, edit the first line of ~/perl5/bin/hotspot3d.

bin/hotspot3d

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
#----------------------------------
33
# $Authors: Beifang Niu & Adam D Scott
44
# $Date: 2013-08-08 13:22:08 -0500 (Thu Aug 8 13:22:08 CDT 2013) $
5-
# $Revision: 1.8.1 $
5+
# $Revision: 1.8.2 $
66
# $URL: $
77
#----------------------------------
88
use strict;
99
use warnings;
1010

11-
our $VERSION = 'V1.8.1';
11+
our $VERSION = 'V1.8.2';
1212

1313
use Carp;
1414
use FileHandle;

dist.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = HotSpot3D
22
author = Beifang Niu, John Wallis, Adam D Scott, Sohini Sengupta, Amila Weerasinghe, & Matthew H Bailey from McDonnell Genome Institute of Washington University at St. Louis
3-
version = 1.8.1
3+
version = 1.8.2
44
license = Perl_5
55
copyright_holder = McDonnell Genome Institute at Washington University
66
copyright_year = 2017

lib/TGI/Mutpro/Preprocess/Calpro.pm

+10-2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,11 @@ sub writeProximityFile {
300300
# Get AminoAcid object for residue in chain '$uniprotChain',
301301
# at position $position
302302
$uniprotAminoAcidRef = $$peptideRef{$uniprotChain}->getAminoAcidObject( $residuePosition );
303-
next if ( $$uniprotAminoAcidRef->isAA() == 0 );
303+
next if ( $$uniprotAminoAcidRef->isHOH() == 0 ); #skip water, but not other compounds
304+
#my $thisIsProtein1 = 1;
305+
#if ( not $$uniprotAminoAcidRef->isAA() ) {
306+
# $thisIsProtein1 = 0;
307+
#}
304308
$uniprotAaName = $$uniprotAminoAcidRef->name();
305309
# Updated 170510 : use a hash with chain and regions for retrieving the offset
306310
$uniprotChainOffset = getOffset( $allOffsets, $uniprotChain, $residuePosition );
@@ -339,7 +343,11 @@ sub writeProximityFile {
339343
foreach $position ( sort {$a<=>$b} @tmp_array_positions ) {
340344
$otherChainOffset = getOffset( $allOffsets, $chain, $position );
341345
$aaObjRef = $$peptideRef{$chain}->getAminoAcidObject($position);
342-
next if ( $$aaObjRef->isAA() == 0 );
346+
next if ( $$aaObjRef->isHOH() == 0 ); #skip water, but not other compounds
347+
#my $thisIsProtein2 = 1;
348+
#if ( not $$uniprotAminoAcidRef->isAA() ) {
349+
# $thisIsProtein2 = 0;
350+
#}
343351
if ( (defined $otherChainOffset) and ($otherChainOffset eq "N/A") ) {
344352
$correctedPosition = $position;
345353
} else {

0 commit comments

Comments
 (0)