TFBS::DB::LocalTRANSFAC.3pm

Langue: en

Autres versions - même langue

Version: 2008-01-24 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

TFBS::DB::LocalTRANSFAC - interface to local transfac database position frequency matrices (matrix.dat)
  -------------------------------- NOTICE ----------------------------------
   The TRANSFAC database is free for non-commercial use.  For commercial use
   the TRANSFAC databases and programs have to be licensed. Please read
   the DISCLAIMER at http://transfac.gbf.de/TRANSFAC/disclaimer.htm.
  -------------------------------------------------------------------------
 
 

SYNOPSIS

creating a database object by connecting to TRANSFAC data
     my $db = TFBS::DB::LocalTRANSFAC->connect(-localdir => '/home/someusr');
 
     localdir is the location of the matrix.dat TRANSFAC datafile
 
 
retrieving a TFBS::Matrix::* object from the database
     # retrieving a PFM by ID
     my $pfm = $db->get_Matrix_by_ID('V$CEBPA_01','PFM');
 
     #retrieving a PWM by TRANSFAC accession number
     my $pwm = $db->get_Matrix_by_acc('M00116', 'PWM');
 
 

DESCRIPTION

TFBS::DB::LocalTRANSFAC is a read only database interface that fetches TRANSFAC matrix data from a local TRANSFAC install (matrix.dat)

connect

  Title   : connect
  Usage   : my $db = TFBS::DB::TRANSFAC->connect(%args);
  Function: Creates a TRANSFAC database connection object, which can be used
            to retrieve matrices from a locally installed TRANSFAC database
  Returns : a TFBS::DB::TRANSFAC object
  Args    : -localdir    # REQUIRED: the directory of the matrix.dat TRANSFAC
                         # datafile.  matrix.dat must have read access.
            -accept_conditions # OPTIONAL: by setting this to a true
                               # value, you confirm that you
                               # have read and accepted the terms
                               # of use of TRANSFAC at
                               # http://transfac.gbf.de/TRANSFAC/disclaimer.htm;
                               # this also supresses the annoying
                               # message that is printed to STDERR
                               # upon invoking the method
 
 

get_Matrix_by_acc

  Title   : get_Matrix_by_acc
  Usage   : my $pfm = $db->get_Matrix_by_acc('V$CREB_01', 'PFM');
  Function: fetches matrix data under the given TRANSFAC aaccession number
            from database and returns a TFBS::Matrix::* object
  Returns : a TFBS::Matrix::* object; the exact type of the
            object depending on the second argument (allowed
            values are 'PFM', 'ICM', and 'PWM'); returns undef if
            matrix with the given ID is not found
  Args    : (Matrix_ID, Matrix_type)
            Matrix_ID is a string; Matrix_type is one of the
            following: 'PFM' (raw position frequency matrix),
            'ICM' (information content matrix) or 'PWM' (position
            weight matrix)
            If Matrix_type is omitted, a PFM is retrieved by default.
 
 

get_Matrix_by_ID

  Title   : get_Matrix_by_ID
  Usage   : my $pfm = $db->get_Matrix_by_ID('V$CREB_01', 'PFM');
  Function: fetches matrix data under the given TRANSFAC ID from the
            database and returns a TFBS::Matrix::* object
  Returns : a TFBS::Matrix::* object; the exact type of the
            object depending on the second argument (allowed
            values are 'PFM', 'ICM', and 'PWM'); returns undef if
            matrix with the given ID is not found
  Args    : (Matrix_ID, Matrix_type)
            Matrix_ID is a string; Matrix_type is one of the
            following: 'PFM' (raw position frequency matrix),
            'ICM' (information content matrix) or 'PWM' (position
            weight matrix)
            If Matrix_type is omitted, a PFM is retrieved by default.