| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 | 
							- <?php
 
- /**
 
-  * Implements hook_tripal_bulk_loader_supported_modules()
 
-  * This is used to supply the base tables or modules supported by the bulk loader.
 
-  * If a base table is included in this list there must also be a corresponding 
 
-  * implementation of hook_tripal_bulk_loader_<base table>_related_tables()
 
-  * 
 
-  * @return 
 
-  *   An array of <chado table> => <Human-readable Name> describing the modules supported
 
-  */
 
- function tripal_bulk_loader_tripal_bulk_loader_supported_modules() {
 
-   return array(
 
-     'feature' => 'Feature',
 
-     'organism' => 'Organism',
 
-     'library' => 'Library',
 
-     'analysis' => 'Analysis',
 
-     'stock' => 'Stocks',
 
-     'genotype' => 'Genotypes',
 
-   );
 
- }
 
- /**
 
-  * Implements hook_tripal_bulk_loader_<base table>_related_tables()
 
-  * This is used to supply the bulk loader with a list of tables and their 
 
-  * relationship to the base table.
 
-  *
 
-  * @return
 
-  * An array of relationships (any combination of 'Base Table', 'Foreign Key Relations', 
 
-  * 'Direct Relations', 'Indirect Relations') where each relationship is keyed by the type
 
-  * of relationship and the value is an array of tables with that relationship to the base table.
 
-  * Each table in the array of tables with that relationship should be of the form
 
-  * <chado table> => <Human-readable Name>.
 
-  */
 
- function tripal_bulk_loader_tripal_bulk_loader_feature_related_tables () {
 
-   return array(
 
-     'Base Table' => array(
 
-       'feature' => 'Feature'
 
-     ),
 
-     'Foreign Key Relations' => array(
 
-       'organism' => 'Organism',
 
-       'cvterm' => 'Type: Cv Term',
 
-       'dbxref' => 'Database Reference',
 
-     ),
 
-     'Direct Relations' => array(
 
-       'element' => 'Element',
 
-       'featureloc' => 'Feature Locations',
 
-       'featurepos' => 'Feature Positions on Map',
 
-       'featureprop' => 'Feature Properties',
 
-       'featurerange' => 'Feature Range',
 
-       'feature_relationship' => 'Feature Relationships',
 
-       'polynode' => 'Polynode'
 
-     ),
 
-     'Indirect Relations' => array(
 
-       'analysisfeature' => 'Analysis',
 
-       'feature_cvterm' => 'Additional Cv Terms',
 
-       'feature_dbxref' => 'Additional Database References',
 
-       'feature_expression' => 'Feature Expressions',
 
-       'feature_genotype' => 'Genotypes',
 
-       'library_feature' => 'Libraries',
 
-       'feature_phenotype' => 'Phenotypes',
 
-       'feature_pub' => 'Publications',
 
-       'feature_synonym' => 'Synonyms',
 
-     ),
 
-   );
 
- }
 
- /**
 
-  * Implements hook_tripal_bulk_loader_<base table>_related_tables()
 
-  * This is used to supply the bulk loader with a list of tables and their 
 
-  * relationship to the base table.
 
-  *
 
-  * @return
 
-  * An array of relationships (any combination of 'Base Table', 'Foreign Key Relations', 
 
-  * 'Direct Relations', 'Indirect Relations') where each relationship is keyed by the type
 
-  * of relationship and the value is an array of tables with that relationship to the base table.
 
-  * Each table in the array of tables with that relationship should be of the form
 
-  * <chado table> => <Human-readable Name>.
 
-  */
 
- function tripal_bulk_loader_tripal_bulk_loader_organism_related_tables () {
 
-   return array(
 
-     'Base Table' => array(
 
-       'feature' => 'Organism'
 
-     ),
 
-     'Direct Relations' => array(
 
-       'biomaterial' => 'Biological Material',
 
-       'feature' => 'Features',
 
-       'library' => 'Libraries',
 
-       'organismprop' => 'Organism Properties',
 
-       'stock' => 'Stocks'
 
-     ),
 
-     'Indirect Relations' => array(
 
-       'organism_dbxref' => 'Additional Database References',
 
-       'polynode_organism' => 'Polynodes',
 
-     ),
 
-   );
 
- }
 
- /**
 
-  * Implements hook_tripal_bulk_loader_<base table>_related_tables()
 
-  * This is used to supply the bulk loader with a list of tables and their 
 
-  * relationship to the base table.
 
-  *
 
-  * @return
 
-  * An array of relationships (any combination of 'Base Table', 'Foreign Key Relations', 
 
-  * 'Direct Relations', 'Indirect Relations') where each relationship is keyed by the type
 
-  * of relationship and the value is an array of tables with that relationship to the base table.
 
-  * Each table in the array of tables with that relationship should be of the form
 
-  * <chado table> => <Human-readable Name>.
 
-  */
 
- function tripal_bulk_loader_tripal_bulk_loader_library_related_tables () {
 
-   return array(
 
-     'Base Table' => array(
 
-       'library' => 'Library'
 
-     ),
 
-     'Foreign Key Relations' => array(
 
-       'organism' => 'Organism',
 
-       'cvterm' => 'Type: Cv Term',
 
-     ),
 
-     'Direct Relations' => array(
 
-       'libraryprop' => 'Library Properties',
 
-     ),
 
-     'Indirect Relations' => array(
 
-       'library_cvterm' => 'Additional Cv Terms',
 
-       'library_feature' => 'Features',
 
-       'library_pub' => 'Publications',
 
-       'library_synonym' => 'Synonyms',
 
-     ),
 
-   );
 
- }
 
- /**
 
-  * Implements hook_tripal_bulk_loader_<base table>_related_tables()
 
-  * This is used to supply the bulk loader with a list of tables and their 
 
-  * relationship to the base table.
 
-  *
 
-  * @return
 
-  * An array of relationships (any combination of 'Base Table', 'Foreign Key Relations', 
 
-  * 'Direct Relations', 'Indirect Relations') where each relationship is keyed by the type
 
-  * of relationship and the value is an array of tables with that relationship to the base table.
 
-  * Each table in the array of tables with that relationship should be of the form
 
-  * <chado table> => <Human-readable Name>.
 
-  */
 
- function tripal_bulk_loader_tripal_bulk_loader_analysis_related_tables () {
 
-   return array(
 
-     'Base Table' => array(
 
-       'analysis' => 'Analysis'
 
-     ),
 
-     'Direct Relations' => array(
 
-       'analysisprop' => 'Analysis Properties',
 
-       'phylotree' => 'Phylogeny Tree',
 
-       'quantification' => 'Quantification'
 
-     ),
 
-     'Indirect Relations' => array(
 
-       'analysis_feature' => 'Features',
 
-     ),
 
-   );
 
- }
 
- /**
 
-  * Implements hook_tripal_bulk_loader_<base table>_related_tables()
 
-  * This is used to supply the bulk loader with a list of tables and their 
 
-  * relationship to the base table.
 
-  *
 
-  * @return
 
-  * An array of relationships (any combination of 'Base Table', 'Foreign Key Relations', 
 
-  * 'Direct Relations', 'Indirect Relations') where each relationship is keyed by the type
 
-  * of relationship and the value is an array of tables with that relationship to the base table.
 
-  * Each table in the array of tables with that relationship should be of the form
 
-  * <chado table> => <Human-readable Name>.
 
-  */
 
- function tripal_bulk_loader_tripal_bulk_loader_stock_related_tables () {
 
-   return array(
 
-     'Base Table' => array(
 
-       'stock' => 'Stock'
 
-     ),
 
-     'Foreign Key Relations' => array(
 
-       'organism' => 'Organism',
 
-       'cvterm' => 'Type: Cv Term',
 
-       'dbxref' => 'Database Reference',
 
-     ),
 
-     'Direct Relations' => array(
 
-       'stockprop' => 'Stock Properties',
 
-       'stock_relationship' => 'Stock Relationships',
 
-     ),
 
-     'Indirect Relations' => array(
 
-       'stock_cvterm' => 'Additional Cv Terms',
 
-       'stock_dbxref' => 'Additional Database References',
 
-       'stock_genotype' => 'Genotypes',
 
-       'stock_pub' => 'Publications',
 
-       'stockcollection_stock' => 'Stock Collections'
 
-     ),
 
-   );
 
- }
 
- /**
 
-  * Implements hook_tripal_bulk_loader_<base table>_related_tables()
 
-  * This is used to supply the bulk loader with a list of tables and their 
 
-  * relationship to the base table.
 
-  *
 
-  * @return
 
-  * An array of relationships (any combination of 'Base Table', 'Foreign Key Relations', 
 
-  * 'Direct Relations', 'Indirect Relations') where each relationship is keyed by the type
 
-  * of relationship and the value is an array of tables with that relationship to the base table.
 
-  * Each table in the array of tables with that relationship should be of the form
 
-  * <chado table> => <Human-readable Name>.
 
-  */
 
- function tripal_bulk_loader_tripal_bulk_loader_genotype_related_tables () {
 
-   return array(
 
-     'Base Table' => array(
 
-       'genotype' => 'Genotype'
 
-     ),
 
-     'Indirect Relations' => array(
 
-       'feature_genotype' => 'Features',
 
-       'nd_experiment_genotype' => 'ND Experiments',
 
-       'phendesc' => 'Phenotypic Statements',
 
-       'phenotype_comparison' => 'Phenotype Comparisons',
 
-       'phenstatement' => 'Phenotypic Statements',
 
-       'stock_genotype' => 'Stocks',
 
-     ),
 
-   );
 
- }
 
 
  |