Home > brede > brede_str_str2woroi.m

brede_str_str2woroi

PURPOSE ^

brede_str_str2woroi - Try to convert a string to a WOROI

SYNOPSIS ^

function woroi = brede_str_str2woroi(s, varargin)

DESCRIPTION ^

 brede_str_str2woroi  - Try to convert a string to a WOROI

       woroi = brede_str_str2woroi(s)

       Input:  s        String or cellstring

       Output: woroi    WOROI identifiers as integers

       Persistent: MROI Variable storing Names of brain regions 

       This function will try to convert a string that should
       represent a neuroanatomical term into a WOROI, ie, the
       identifier used in the Brede Database brain region ontology. 

       Multiple strings might be inputted to the function. If a match
       is not found a NaN is returned for the specific element.
 
       The Brede Database is read with the brede_bdb function.

       Examples: 
         brede_str_str2woroi('Caudate')   % This should return 39
   
         woroi = brede_str_str2woroi('posterior cingulate')
         url = brede_url_woroi(woroi)
         web(url, '-browser')

         % With the Brede Database as 'B'
         s = brede_struct_select(B{1}.Exp{1}.Loc, 'select', 'lobarAnatomy')
         worois = brede_str_str2woroi(s)

       See also BREDE, BREDE_STR, BREDE_ROI, BREDE_STR_CLEAN,
                BREDE_ROI_ROI2MAT, BREDE_ROI_ROI2STR,
                BREDE_ROI_ROI2NAMES, BREDE_BDB.

 $Id: brede_str_str2woroi.m,v 1.3 2006/02/14 18:09:05 fnielsen Exp $

CROSS-REFERENCE INFORMATION ^

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