# CABI Yeast Catalogue
#
# Version 2023.03.15.1
# Last Updated March 23, 2023
# Author: Domenico Marra & Francesca Piersigilli & Paolo Romano
# (c) CABRI 1999-2023

$CABI_YEAST_DB=$Library:[CABI_YEAST group:$CABRI_FUNGI_LIBS
 res:$CABI_YEAST_RES
 comment:'CABI Bioscience Collection of yeasts (Egham, United Kingdom)'
 defaultEntryView:$Entries_View
 defaultView:$CABRI_Fungi_View
 format:$CABI_YEAST_FORMAT maxNameLen:60
 files:{$LibFile:cabi_yeast}
 links:{
    $Link:[$CABI_YEAST_DB to:$BCCM_MUCL_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Other_collection_numbers]
    $Link:[$CABI_YEAST_DB to:$CABI_FIL_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Other_collection_numbers]
    $Link:[$CABI_YEAST_DB to:$BCCM_IHEM_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Other_collection_numbers]
   }
 ]

$CABI_YEAST_FILE=$FileType:[text typeName:'dat'
                            maxline:10000 fieldTokens:fields ]
$CABI_YEAST_SYNTAX=$Syntax:[file:'SRSSITE:cabi_yeast.is' ignore:'\t']

$CABI_YEAST_FORMAT=$LibFormat:[fileType:$CABI_YEAST_FILE
  syntax:$CABI_YEAST_SYNTAX
  printFormat:table3 tableFormat:left
  fields:{ 
   $Field:[$DF_CABRI_Strain_number code:strain_no index:id
           indexToken:strain_no tableToken:'t_fields|strain_no']  
   $Field:[$DF_CABRI_Other_collection_numbers code:other_nos index:str
           indexToken:'other_nos' tableToken:'t_fields|other_nos']
   $Field:[$DF_CABRI_Restrictions code:restrictions index:str
           indexToken:'strX|restrictions' tableToken:'t_fields|restrictions']
   $Field:[$DF_CABRI_Organism_type code:org_type index:str
           indexToken:'strX|org_type' tableToken:'t_fields|org_type']
   $Field:[$DF_CABRI_Name code:name index:str
           indexToken:'name' tableToken:'t_fields|name']
   $Field:[$DF_CABRI_Status code:status index:str
           indexToken:'strX|status' tableToken:'t_fields|status']
   $Field:[$DF_CABRI_History code:history index:str
           indexToken:'strX|history' tableToken:'t_fields|history']
   $Field:[$DF_CABRI_Conditions_for_growth code:cond index:str
           indexToken:'strX|cond' tableToken:'t_fields|cond']
   $Field:[$DF_CABRI_Form_of_supply code:supply index:str
           indexToken:'strX|supply' tableToken:'t_fields|supply']
   $Field:[$DF_CABRI_Isolated_from code:isol_from index:str
           indexToken:'strX|isol_from' tableToken:'t_fields|isol_from']
   $Field:[$DF_CABRI_Geographic_origin code:geo_origin index:str
           indexToken:'strX|geo_origin' tableToken:'t_fields|geo_origin']
   $Field:[$DF_CABRI_Mutant code:mutant index:str
           indexToken:'strX|mutant' tableToken:'t_fields|mutant']
   $Field:[$DF_CABRI_Substrate code:substrate index:str
           indexToken:'strX|substrate' tableToken:'t_fields|substrate']
   $Field:[$DF_CABRI_Literature code:lit index:str
           indexToken:lit tableToken:'t_fields|lit']
   $Field:[$DF_CABRI_Race code:race index:str
           indexToken:'strX|race' tableToken:'t_fields|race']
   $Field:[$DF_CABRI_Sexual_state code:sexual index:str
           indexToken:'strX|sexual' tableToken:'t_fields|sexual']
 
   $Field:[$DF_CABRI_ALL]
   $Field:[$DF_CABRI_IDE]
   $Field:[$DF_CABRI_NAM]
   $Field:[$DF_CABRI_Information code:information index:show
           indexToken:'strX|name' token:'strX|name' tableToken:'t_fields|name']
    }
 ]

$CABI_YEAST_RL_DB=$Library:[CABI_YEAST_RL group:$CABRI_FUNGI_HIDDEN_LIBS 
 type:hidden
 defaultView:$CABRI_Fungi_View
 format:$CABI_YEAST_RL_FORMAT maxNameLen:60
 files:{$LibFile:cabi_yeast}
 links:{ $Link:[$CABI_YEAST_RL_DB to:$BCCM_IHEM_RL_DB
             fromField:$DF_CABRI_Other_collection_numbers toField:$DF_CABRI_Strain_number]
         $Link:[$CABI_YEAST_RL_DB to:$BCCM_MUCL_RL_DB
             fromField:$DF_CABRI_Other_collection_numbers toField:$DF_CABRI_Strain_number]
         $Link:[$CABI_YEAST_RL_DB to:$CABI_FIL_RL_DB
             fromField:$DF_CABRI_Other_collection_numbers toField:$DF_CABRI_Strain_number]
         $Link:[$CABI_YEAST_RL_DB to:$CABI_YEAST_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Strain_number]
   }
 ]

$CABI_YEAST_RL_FORMAT=$LibFormat:[fileType:$CABI_YEAST_FILE
   syntax:$CABI_YEAST_SYNTAX
   printFormat:table3 tableFormat:left
   fields:{ $Field:[$DF_CABRI_Strain_number code:strain_no index:id
                    indexToken:strain_no tableToken:'t_fields|strain_no']  
            $Field:[$DF_CABRI_Other_collection_numbers code:other_nos index:str
                    indexToken:'other_nos' tableToken:'t_fields|other_nos']
          }
 ]

$CABI_YEAST_EL_DB=$Library:[CABI_YEAST_EL group:$CABRI_FUNGI_HIDDEN_LIBS 
 type:hidden
 defaultView:$CABRI_Fungi_View
 format:$CABI_YEAST_EL_FORMAT maxNameLen:60
 files:{$LibFile:cabi_yeast}
 links:{ $Link:[$CABI_YEAST_EL_DB to:$BCCM_IHEM_EL_DB
             fromField:$DF_CABRI_Other_collection_numbers
             toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CABI_YEAST_EL_DB to:$BCCM_MUCL_EL_DB
             fromField:$DF_CABRI_Other_collection_numbers
             toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CABI_YEAST_EL_DB to:$CABI_FIL_EL_DB
             fromField:$DF_CABRI_Other_collection_numbers
             toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CABI_YEAST_EL_DB to:$CABI_YEAST_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Strain_number]
   }
 ]

$CABI_YEAST_EL_FORMAT=$LibFormat:[fileType:$CABI_YEAST_FILE
   syntax:$CABI_YEAST_SYNTAX
   printFormat:table3 tableFormat:left
   fields:{ $Field:[$DF_CABRI_Strain_number code:strain_no index:id
                    indexToken:strain_no tableToken:'t_fields|strain_no']  
            $Field:[$DF_CABRI_Other_collection_numbers code:other_nos index:str
                    indexToken:'other_nos' tableToken:'t_fields|other_nos']
          }
 ]