mention the wiki for instructions, corrections
[bioperl-db.git] / INSTALL
blob75321467f89354727af70017b1089f77a8a8bfd8
1 # $Id$
3 bioperl-db INSTALLATION
5 INSTALL THE RIGHT BIOPERL
7 You need at least the corresponding version of Bioperl. Since this
8 is bioperl-db 1.5.2, you will need bioperl 1.5.2.
10 INSTALL BIOSQL
12 The bioperl-db package is designed to work with the BioSQL database.
13 Install the BioSQL package by following the instructions in its
14 INSTALL file. You can obtain the BioSQL package at www.open-bio.org. 
15 BioSQL requires a relational database, either Mysql, Oracle, or 
16 Postgres.
19 INSTALLATION
21 Installation instructions at the following address apply here:
22 http://www.bioperl.org/wiki/Installing_Bioperl_for_Unix
23 The next 2 sections summarize the essential points from there.
26 CPAN INSTALLATION
28 To install using CPAN you will need a recent version (v1.8802 has
29 been tested) of it and your prefer_installer conf set to 'MB':
31   >cpan
32   cpan>o conf prefer_installer MB
33   cpan>o conf commit
34   cpan>q
36 Ensure that you have installed BioSQL properly prior to attempting
37 an installation. You will also probably need root privileges.
38 Find the name of the bioperl-db version you want:
40   >cpan
41   cpan>d /bioperl-db/
42   Database was generated on Mon, 20 Nov 2006 05:24:36 GMT
43   Distribution S/SE/SENDU/bioperl-db-1.5.2_100.tar.gz
44   
45 Now install:
47  cpan>install S/SE/SENDU/bioperl-db-1.5.2_100.tar.gz
49 If you've installed everything perfectly then you may pass all the tests
50 run in the './Build test' phase.
51 It's also possible that you may fail some tests. Possible explanations:
52 problems with local Perl installation, previously undetected bug in
53 Bioperl, flawed test script and so on. A few failed tests may not affect
54 your usage of bioperl-db.
56 If you decide that the failed tests will not affect how you intend to use
57 bioperl-db and you'd like to install anyway do:
59  cpan>force install S/SE/SENDU/bioperl-db-1.5.2_100.tar.gz
61 This is what most experienced Bioperl users would do. However, if you're
62 concerned about a failed test and need assistance or advice then contact
63 bioperl-l@bioperl.org.
64   
66 MANUAL INSTALLATION
68 Download the bioperl-db archive, then extract its contents. Example:
70   >gunzip bioperl-db-<release-version>.tar.gz
71   >tar xvf bioperl-db-<release-version>.tar
72   >cd bioperl-db
74 where <release-version> is the current release.
76 Issue the following command from within bioperl-db/:
78   >perl Build.PL
80 You can run regression tests and install bioperl-db using the
81 following commands:
83   >./Build test  
84   >./Build install
86 NOTE: bioperl-db tests require that the BioSQL database you configure
87 does NOT have NCBI taxonomy loaded. Also, the './Build install' step
88 may require that you have root privileges.
91 INSTALLING bioperl-db ON WINDOWS
93 The following page on the BioPerl website has up-to-date
94 instructions on how to install bioperl-db on Windows:
96 http://www.bioperl.org/wiki/Installing_Bioperl_on_Windows
98 (the instructions are aimed at bioperl-core, but apply
99 equally to bioperl-db)
102 LOAD THE NCBI TAXONOMY
104 You should pre-load the NCBI taxonomy database using the
105 scripts/load_ncbi_taxonomy.pl script in the BioSQL package. 
106 Otherwise you will see errors from mis-parsed organisms when you 
107 attempt to load sequences.
110 LOAD SEQUENCE DATA
112 Most people will want to load sequence data into their BioSQL
113 databases. Use scripts/biosql/load_seqdatabase.pl in the bioperl-db
114 package to load sequences from sequence files. Do:
116   >perldoc scripts/biosql/load_seqdatabase.pl
120   >scripts/biosql/load_seqdatabase.pl --help
122 for more information.
124 This script has many options to flexibly deal with various update
125 scenarios. Do read the POD before running an update.
128 LOAD ONTOLOGIES
130 Use scripts/biosql/load_ontology.pl in the bioperl-db
131 package to load ontologies from flat files. Do:
133   >perldoc scripts/biosql/load_ontology.pl
137   >scripts/biosql/load_ontology.pl --help
139 for more information.
141 This script has many options to flexibly deal with various update
142 scenarios. Do read the POD before running an update. Also, some
143 ontologies maintain obsoleted terms, for instance the Gene
144 Ontology. Read the POD for possible options to deal with obsoleted
145 terms; this is relevant even when you load the ontology the first
146 time, as you may choose to keep obsoleted terms out of the database
147 from the start.
150 FEEDBACK
152 Write down any problems or praise and send them to 
153 bioperl-l@bioperl.org  ;-)