| 1 | # This is the README file for TFBS modules distribution, Version 0.7.1 |
| 2 | |
| 3 | |
| 4 | **NOTE** |
| 5 | TFBS perl module is no longer under active development. |
| 6 | All the functionality can be found in [TFBSTools](http://bioconductor.org/packages/TFBSTools/) Bioconductor package. |
| 7 | Users are highly encouraged to switch to TFBSTools. |
| 8 | |
| 9 | ## About TFBS |
| 10 | TFBS is a computational framework for transcription factor binding site |
| 11 | analysis. It can also be used for analysis involving other DNA paterns |
| 12 | representable by matrices, e.g. splice sites. |
| 13 | |
| 14 | |
| 15 | ## Contact info |
| 16 | Author: b.lenhard at imperial.ac.uk |
| 17 | |
| 18 | TFBS website: http://tfbs.genereg.net/ |
| 19 | |
| 20 | Bug reports: https://github.com/ComputationalRegulatoryGenomicsICL/TFBS/issues |
| 21 | |
| 22 | Please send bug reports, in particular about documentation which you |
| 23 | think is unclear or problems in installation. |
| 24 | The author is also interested in suggestions on directions in which TFBS functionality should be expanded. |
| 25 | |
| 26 | ## System requirements |
| 27 | * Tested on Linux/i686, Mac OS 10.12.3 |
| 28 | * perl 5.10.0 or later |
| 29 | * ANSI C or Gnu C compiler for XS extensions |
| 30 | * bioperl 1.0 or later |
| 31 | * Additional perl module and application dependencies listed at http://tfbs.genereg.net/ |
| 32 | |
| 33 | ## Documentation |
| 34 | |
| 35 | The modules have a reasovably complete POD documentation. After instalation, type e.g. |
| 36 | |
| 37 | ```sh |
| 38 | perldoc TFBS::Matrix::ICM |
| 39 | ``` |
| 40 | |
| 41 | to display the documentation for a particular module. |
| 42 | |
| 43 | POD documentation for all modules, as well as additional information can be accessed from TFBS web page at |
| 44 | http://tfbs.genereg.net/POD/. |
| 45 | |
| 46 | A limited amount of example code, can also be found in the `examples/` directory. |
| 47 | The current collection includes scripts for demonstrational purposes. |
| 48 | The explanations an be found in the source code of individual scripts. |
| 49 | |
| 50 | ## Installation |
| 51 | The TFBS modules are distributed as a tar file in standard perl CPAN distribution form. |
| 52 | This means that installation is very simple. |
| 53 | Once you have unpacked the tar distribution there is a directory called TFBS-xx/, which is where this file is. |
| 54 | Move into that directory and issue the following commands: |
| 55 | |
| 56 | ```sh |
| 57 | perl Makefile.PL # makes a system-specific makefile |
| 58 | make # makes the distribution |
| 59 | make test # runs the test code |
| 60 | make install # [may need root access for system install. See below for how to get around this.] |
| 61 | ``` |
| 62 | |
| 63 | This should build, test and install the distribution cleanly on your system, |
| 64 | provided that all prerequisite modules have been installed. |
| 65 | Running perl Makefile.PL will ask you for a MySQL server write access |
| 66 | details if you want to test TFBS::DB::JASPAR7 module. |
| 67 | You can safely choose not to do the test by answering "no" tho the first questions. |
| 68 | |
| 69 | To install you need write permission in the `perl5/site_perl/` source area. |
| 70 | Quite often this will require you (or someone else) becoming root, |
| 71 | so you will want to talk to your systems manager if you don't have the necessary access. |
| 72 | |
| 73 | It is possible to install the package outside of the standard Perl5 location. See below for details. |
| 74 | |
| 75 | ### INSTALLING TFBS IN A PERSONAL OR PRIVATE MODULE AREA |
| 76 | |
| 77 | If you lack permission to install perl modules into the standard `site_perl/` system area you can configure TFBS to |
| 78 | install itself anywhere you choose. |
| 79 | Ideally this would be a personal perl directory or standard place where you plan to put all your 'local' or personal perl modules. |
| 80 | |
| 81 | *Note*: you _must_ have write permission to this area. |
| 82 | |
| 83 | Simply pass a parameter to perl as it builds your system specific makefile. |
| 84 | |
| 85 | Example: |
| 86 | |
| 87 | ```sh |
| 88 | perl Makefile.PL PREFIX=/home/borisl/perllib |
| 89 | make |
| 90 | make test |
| 91 | make install |
| 92 | ``` |
| 93 | |
| 94 | This will cause perl to install the TFBS modules in: `/home/borisl/perllib/lib/perl5/site_perl/` |
| 95 | |
| 96 | And the man pages will go in: `/home/dag/My_Perl_Modules/lib/perl5/man/` |
| 97 | |
| 98 | To specify a directory besides `lib/perl5/site_perl`, or if there are still permission problems, |
| 99 | include an **INSTALLSITELIB** directive along with the PREFIX: |
| 100 | |
| 101 | ```sh |
| 102 | perl Makefile.PL PREFIX=/home/borisl/perl INSTALLSITELIB=/home/borisl/perl/lib |
| 103 | ``` |
| 104 | |
| 105 | See below for how to use modules that are not installed in the standard Perl5 location. |
| 106 | |
| 107 | ### USING MODULES NOT INSTALLED IN THE STANDARD PERL LOCATION |
| 108 | You can explicitly tell perl where to look for modules by using the lib module which comes standard with perl. |
| 109 | |
| 110 | Example: |
| 111 | |
| 112 | ```sh |
| 113 | #!/usr/bin/perl -w |
| 114 | use lib "/home/borisl/perllib/"; |
| 115 | use TFBS::PatternGen::Gibbs; |
| 116 | # etc... |
| 117 | ``` |