|
This is a quick tutorial to take you through the main steps to create a BioXRT database and publish it on the internet through TBrowse. This tutorial assumes that you have successfully set up an Apache web server with MySQL, Perl, BioPerl, other BioXRT dependencies and the BioXRT system itself (instructions for installing system dependencies, and the necessary BioPerl modules, are included in the BioXRT distribution). Aside: $HTDOCS is used to indicate your web server's DocumentRoot; the place where web pages are stored. This is defined when the server is installed (usually in the httpd.conf file), and can be provided by the server admin. 1. About the XRT model
XRT organizes data into different classes (e.g. gene, transcript, clone,
mutation, disease etc.); each class has many attributes to describe the
properties of its elements. The XRT table above contains three elements (each in
the Gene class), each with six attributes; the first line specifies the
attribute names, while the following lines contain the actual attribute values
for elements. Three attributes (ID, P_ID, C_ID) have special meaning to the
system. The ID field (mandatory to all entries) stores the unique identifier of
each data element; P_ID / C_ID are used for more complex parent / child
relationships between entries which will not be used here. 2. Preparing XRT tables
3. Loading XRT tables into database
mysql –u username –p password –e “CREATE DATABASE chr7annotation” bulk_load_xrt.pl –database chr7annotation –user username –pass password Gene.xrt Revised data (for example, new attributes have been added) can then be imported into the database using the bulk_load_xrt command, replacing earlier iterations of the data. 4. Defining output table for TBrowse
The view_id is simply a unique name for this view, and the main_class indicates
what class the upcoming attributes (in column definition rows) should be based
on. To define a table column, four options (class, attribute, column header,
hyperlink, while the last two are optional) delimited by “::” need to be
specified. Column can be defined in two formats: one-row and multi-row
definitions. The column settings above are fairly self explanatory with the
exception of the “*” in the URL link, which is replaced with the value of the
column in question, and the “0” class, which should be left intact for simple
displays with only one class involved such as this, but is used for more complex
tables. 5. Exploring the data in TBrowse
http://YourDomainName/cgi-bin/tbrowse?source=chr7annotation and you should be able to see the interface of TBrowse. Using the simple controls presented, you can browse the entire table, search for keywords, and filter results by column values to obtain your data of interest. If there is a particular 'default' view you wish to present to visitors to your site, all controls can be represented in the URL you provide. For example, http://YourDomainName/cgi-bin/tbrowse?source=chr7annotation&table=Gene&keyword= Known_Gene&fcol=Column3&fcomp==&fkwd=ACHE will display results from the database with the keyword “Known_Gene”, but only show the match records whose Column3 (i.e. Symbol) equals “ACHE”. |