Skip to content

Commit

Permalink
calpro calculates distances for drugs, small molecules, and amino aci…
Browse files Browse the repository at this point in the history
…ds but skips water.
  • Loading branch information
AdamDS committed Oct 17, 2017
1 parent ddebbe2 commit f37976c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Usage

Stable: v0.6.0

Beta: up to v1.8.1
Beta: up to v1.8.2
Author: Beifang Niu, John Wallis, Adam D Scott, Sohini Sengupta, & Amila Weerasinghe

Expand Down Expand Up @@ -86,9 +86,9 @@ For the latest stable version:

For the latest beta version:

git pull origin v1.8.1
git pull origin v1.8.2

cpanm HotSpot3D-1.8.1.tar.gz
cpanm HotSpot3D-1.8.2.tar.gz

Final note: Installations under some organizations may use an internal perl version.
To make use of the /usr/ perl, edit the first line of ~/perl5/bin/hotspot3d.
Expand Down
4 changes: 2 additions & 2 deletions bin/hotspot3d
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#----------------------------------
# $Authors: Beifang Niu & Adam D Scott
# $Date: 2013-08-08 13:22:08 -0500 (Thu Aug 8 13:22:08 CDT 2013) $
# $Revision: 1.8.1 $
# $Revision: 1.8.2 $
# $URL: $
#----------------------------------
use strict;
use warnings;

our $VERSION = 'V1.8.1';
our $VERSION = 'V1.8.2';

use Carp;
use FileHandle;
Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = HotSpot3D
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
version = 1.8.1
version = 1.8.2
license = Perl_5
copyright_holder = McDonnell Genome Institute at Washington University
copyright_year = 2017
Expand Down
12 changes: 10 additions & 2 deletions lib/TGI/Mutpro/Preprocess/Calpro.pm
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ sub writeProximityFile {
# Get AminoAcid object for residue in chain '$uniprotChain',
# at position $position
$uniprotAminoAcidRef = $$peptideRef{$uniprotChain}->getAminoAcidObject( $residuePosition );
next if ( $$uniprotAminoAcidRef->isAA() == 0 );
next if ( $$uniprotAminoAcidRef->isHOH() == 0 ); #skip water, but not other compounds
#my $thisIsProtein1 = 1;
#if ( not $$uniprotAminoAcidRef->isAA() ) {
# $thisIsProtein1 = 0;
#}
$uniprotAaName = $$uniprotAminoAcidRef->name();
# Updated 170510 : use a hash with chain and regions for retrieving the offset
$uniprotChainOffset = getOffset( $allOffsets, $uniprotChain, $residuePosition );
Expand Down Expand Up @@ -339,7 +343,11 @@ sub writeProximityFile {
foreach $position ( sort {$a<=>$b} @tmp_array_positions ) {
$otherChainOffset = getOffset( $allOffsets, $chain, $position );
$aaObjRef = $$peptideRef{$chain}->getAminoAcidObject($position);
next if ( $$aaObjRef->isAA() == 0 );
next if ( $$aaObjRef->isHOH() == 0 ); #skip water, but not other compounds
#my $thisIsProtein2 = 1;
#if ( not $$uniprotAminoAcidRef->isAA() ) {
# $thisIsProtein2 = 0;
#}
if ( (defined $otherChainOffset) and ($otherChainOffset eq "N/A") ) {
$correctedPosition = $position;
} else {
Expand Down

0 comments on commit f37976c

Please sign in to comment.