tripal_bulk_loader.info_hooks.inc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?php
  2. /**
  3. * Implements hook_tripal_bulk_loader_supported_modules
  4. *
  5. * @return
  6. * An array of <chado table> => <Human-readable Name> describing the modules supported
  7. */
  8. function tripal_bulk_loader_tripal_bulk_loader_supported_modules() {
  9. return array(
  10. 'feature' => 'Feature',
  11. 'organism' => 'Organism',
  12. 'library' => 'Library',
  13. 'analysis' => 'Analysis',
  14. );
  15. }
  16. function tripal_bulk_loader_tripal_bulk_loader_feature_related_tables () {
  17. return array(
  18. 'Base Table' => array(
  19. 'feature' => 'Feature'
  20. ),
  21. 'Foreign Key Relations' => array(
  22. 'organism' => 'Organism',
  23. 'cvterm' => 'Type: Cv Term',
  24. 'dbxref' => 'Database Reference',
  25. ),
  26. 'Direct Relations' => array(
  27. 'element' => 'Element',
  28. 'featureloc' => 'Feature Locations',
  29. 'featurepos' => 'Feature Positions on Map',
  30. 'featureprop' => 'Feature Properties',
  31. 'featurerange' => 'Feature Range',
  32. 'feature_relationship' => 'Feature Relationships',
  33. 'polynode' => 'Polynode'
  34. ),
  35. 'Indirect Relations' => array(
  36. 'analysisfeature' => 'Analysis',
  37. 'feature_cvterm' => 'Additional Cv Terms',
  38. 'feature_dbxref' => 'Additional Database References',
  39. 'feature_expression' => 'Feature Expressions',
  40. 'feature_genotype' => 'Genotypes',
  41. 'library_feature' => 'Libraries',
  42. 'feature_phenotype' => 'Phenotypes',
  43. 'feature_pub' => 'Publications',
  44. 'feature_synonym' => 'Synonyms',
  45. ),
  46. );
  47. }
  48. function tripal_bulk_loader_tripal_bulk_loader_organism_related_tables () {
  49. return array(
  50. 'Base Table' => array(
  51. 'feature' => 'Organism'
  52. ),
  53. 'Direct Relations' => array(
  54. 'biomaterial' => 'Biological Material',
  55. 'feature' => 'Features',
  56. 'library' => 'Libraries',
  57. 'organismprop' => 'Organism Properties',
  58. 'stock' => 'Stocks'
  59. ),
  60. 'Indirect Relations' => array(
  61. 'organism_dbxref' => 'Additional Database References',
  62. 'polynode_organism' => 'Polynodes',
  63. ),
  64. );
  65. }
  66. function tripal_bulk_loader_tripal_bulk_loader_library_related_tables () {
  67. return array(
  68. 'Base Table' => array(
  69. 'library' => 'Library'
  70. ),
  71. 'Foreign Key Relations' => array(
  72. 'organism' => 'Organism',
  73. 'cvterm' => 'Type: Cv Term',
  74. ),
  75. 'Direct Relations' => array(
  76. 'libraryprop' => 'Library Properties',
  77. ),
  78. 'Indirect Relations' => array(
  79. 'library_cvterm' => 'Additional Cv Terms',
  80. 'library_feature' => 'Features',
  81. 'library_pub' => 'Publications',
  82. 'library_synonym' => 'Synonyms',
  83. ),
  84. );
  85. }
  86. function tripal_bulk_loader_tripal_bulk_loader_analysis_related_tables () {
  87. return array(
  88. 'Base Table' => array(
  89. 'analysis' => 'Analysis'
  90. ),
  91. 'Direct Relations' => array(
  92. 'analysisprop' => 'Analysis Properties',
  93. 'phylotree' => 'Phylogeny Tree',
  94. 'quantification' => 'Quantification'
  95. ),
  96. 'Indirect Relations' => array(
  97. 'analysis_feature' => 'Features',
  98. ),
  99. );
  100. }