AlignDB-DeltaG

 view release on metacpan or  search on metacpan

lib/AlignDB/DeltaG.pm  view on Meta::CPAN

package AlignDB::DeltaG;
use Moose;
use YAML::Syck;

our $VERSION = '1.1.0';

has 'temperature' => ( is => 'rw', isa => 'Num', default => sub {37.0}, );
has 'salt_conc'   => ( is => 'rw', isa => 'Num', default => sub {1.0}, );
has 'deltaH'      => ( is => 'ro', isa => 'HashRef', );
has 'deltaS'      => ( is => 'ro', isa => 'HashRef', );
has 'deltaG'      => ( is => 'ro', isa => 'HashRef', );

sub BUILD {
    my $self = shift;

    # Load thermodynamic data
    my ( $deltaH, $deltaS ) = $self->_load_thermodynamic_data;
    $self->{deltaH} = $deltaH;
    $self->{deltaS} = $deltaS;

    # Recalculate the deltaG hash on current temperature and salt conditions

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.634 second using v1.00-cache-2.02-grep-82fe00e-cpan-72ae3ad1e6da )