Home > brede > brede_bdb.m

brede_bdb

PURPOSE ^

brede_bdb - Read and store Brede database

SYNOPSIS ^

function S = brede_bdb(varargin)

DESCRIPTION ^

 brede_bdb            - Read and store Brede database

       S = brede_bdb('PropertyName', 'PropertyValue')

       Property: Type   [ {bib} | bibs | exp | ext | loc | per | pers
                        | roi | rois ] Type of structure to load.

       Output:   S      Structure with information from the Brede
                        database 

       Persistent: BIBS Main part of Brede Database (wobibs.xml)
                   EXT  External components  (woexts.xml)
                   LOC  (Talairach) Locations (from wobibs.xml)
                   PERS Author database (wopers.xml)
                   ROIS Brain region ontology (worois.xml)

       This function reads one of the Brede Database XML-files
       and returns it as a structure. 

       If there is a 'wobibs.mat' file then this is read first before
       the XML (brede/data/wobibs.xml), since it is much faster to
       load the Brede Database with abstracts and Talairach
       coordinates from the mat-file than from the XML-file.
      
       When read the first time the structures are 'saved' as
       persistent variable and the second time the function is called
       the files will not be read - instead the persistent variables
       are returned. Thus the second call to the function is much
       faster than the first call. 
 
       See also BREDE, BREDE_BIB, BREDE_EXT, BREDE_LOC, BREDE_ROI,
                BREDE_UI_BIBS, BREDE_UI_ROI, BREDE_UI_ROIS.

       Example:
         R = brede_bdb('type', 'roi')
         brede_ui_rois(R)

 $Id: brede_bdb.m,v 1.8 2007/03/13 09:29:12 fn Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005