initialize-1.11.sql 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. /* For load_gff3.pl */
  2. insert into organism (abbreviation, genus, species, common_name)
  3. values ('H.sapiens', 'Homo','sapiens','human');
  4. insert into organism (abbreviation, genus, species, common_name)
  5. values ('D.melanogaster', 'Drosophila','melanogaster','fruitfly');
  6. insert into organism (abbreviation, genus, species, common_name)
  7. values ('M.musculus', 'Mus','musculus','mouse');
  8. insert into organism (abbreviation, genus, species, common_name)
  9. values ('A.gambiae', 'Anopheles','gambiae','mosquito');
  10. insert into organism (abbreviation, genus, species, common_name)
  11. values ('R.norvegicus', 'Rattus','norvegicus','rat');
  12. insert into organism (abbreviation, genus, species, common_name)
  13. values ('A.thaliana', 'Arabidopsis','thaliana','mouse-ear cress');
  14. insert into organism (abbreviation, genus, species, common_name)
  15. values ('C.elegans', 'Caenorhabditis','elegans','worm');
  16. insert into organism (abbreviation, genus, species, common_name)
  17. values ('D.rerio', 'Danio','rerio','zebrafish');
  18. insert into organism (abbreviation, genus, species, common_name)
  19. values ('O.sativa', 'Oryza','sativa','rice');
  20. insert into organism (abbreviation, genus, species, common_name)
  21. values ('S.cerevisiae', 'Saccharomyces','cerevisiae','yeast');
  22. insert into organism (abbreviation, genus, species, common_name)
  23. values ('X.laevis', 'Xenopus','laevis','frog');
  24. insert into organism (abbreviation, genus, species,common_name)
  25. values ('D.discoideum','Dictyostelium','discoideum','dicty');
  26. insert into contact (name) values ('Affymetrix');
  27. insert into contact (name,description) values ('null','null');
  28. insert into cv (name) values ('null');
  29. insert into cv (name,definition) values ('local','Locally created terms');
  30. insert into cv (name,definition) values ('Statistical Terms','Locally created terms for statistics');
  31. insert into db (name, description) values ('null','a fake database for local items');
  32. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'local:null');
  33. insert into cvterm (name,cv_id,dbxref_id) values ('null',(select cv_id from cv where name = 'null'),(select dbxref_id from dbxref where accession='local:null'));
  34. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'local:computer file');
  35. insert into cvterm (name,cv_id,dbxref_id) values ('computer file', (select cv_id from cv where name = 'null'),(select dbxref_id from dbxref where accession='local:computer file'));
  36. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'local:glass');
  37. insert into cvterm (name,definition,cv_id,dbxref_id) values ('glass','glass array',(select cv_id from cv where name = 'local'),(select dbxref_id from dbxref where accession='local:glass'));
  38. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'local:photochemical_oligo');
  39. insert into cvterm (name,definition,cv_id,dbxref_id) values ('photochemical_oligo','in-situ photochemically synthesized oligoes',(select cv_id from cv where name = 'local'),(select dbxref_id from dbxref where accession='local:photochemical_oligo'));
  40. insert into pub (miniref,uniquename,type_id) values ('null','null',(select cvterm_id from cvterm where name = 'null'));
  41. insert into db (name, description) values ('GFF_source', 'A collection of sources (ie, column 2) from GFF files');
  42. insert into db (name) values ('ATCC');
  43. insert into db (name) values ('DB:refseq');
  44. insert into db (name) values ('DB:genbank');
  45. insert into db (name) values ('DB:EMBL');
  46. insert into db (name) values ('DB:TIGR');
  47. insert into db (name) values ('DB:ucsc');
  48. insert into db (name) values ('DB:ucla');
  49. insert into db (name) values ('DB:SGD');
  50. insert into db (name) values ('DB:PFAM');
  51. insert into db (name) values ('DB:SUPERFAMILY');
  52. insert into db (name) values ('DB:PROFILE');
  53. insert into db (name) values ('DB:PRODOM');
  54. insert into db (name) values ('DB:PRINTS');
  55. insert into db (name) values ('DB:SMART');
  56. insert into db (name) values ('DB:TIGRFAMs');
  57. insert into db (name) values ('DB:PIR');
  58. insert into db (name) values ('DB:Affymetrix_U133');
  59. insert into db (name) values ('DB:Affymetrix_U133PLUS');
  60. insert into db (name) values ('DB:Affymetrix_U95');
  61. insert into db (name) values ('DB:LocusLink');
  62. insert into db (name) values ('DB:RefSeq_protein');
  63. insert into db (name) values ('DB:GenBank_protein');
  64. insert into db (name) values ('DB:OMIM');
  65. insert into db (name) values ('DB:Swiss');
  66. insert into db (name) values ('DB:RefSNP');
  67. insert into db (name) values ('DB:TSC');
  68. --insert into db (name, contact_id, description, urlprefix) values ('DB:affy:U133',(select contact_id from contact where name = 'null'),'Affymetrix U133','http://https://www.affymetrix.com/analysis/netaffx/fullrecord.affx?pk=HG-U133_PLUS_2:');
  69. --insert into db (name, contact_id, description, urlprefix) values ('DB:affy:U95',(select contact_id from contact where name = 'null'),'Affymetrix U95','http://https://www.affymetrix.com/analysis/netaffx/fullrecord.affx?pk=HG-U95AV2:');
  70. insert into db (name, description) values ('DB:GR','Gramene');
  71. insert into db (name, description, urlprefix) values ('DB:uniprot','UniProt/TrEMBL','http://us.expasy.org/cgi-bin/niceprot.pl?');
  72. insert into db (name, description, urlprefix) values ('DB:refseq:mrna','RefSeq mRNA','http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=nucleotide&dopt=GenBank&term=');
  73. insert into db (name, description, urlprefix) values ('DB:refseq:protein','RefSeq Protein','http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=protein&dopt=GenBank&term=');
  74. insert into db (name, description, urlprefix) values ('DB:unigene','Unigene','http://www.ncbi.nih.gov/entrez/query.fcgi?db=unigene&cmd=search&term=');
  75. insert into db (name, description, urlprefix) values ('DB:omim','OMIM','http://www.ncbi.nlm.nih.gov/entrez/dispomim.cgi?id=');
  76. insert into db (name, description, urlprefix) values ('DB:locuslink','LocusLink','http://www.ncbi.nlm.nih.gov/LocusLink/LocRpt.cgi?l=');
  77. insert into db (name, description, urlprefix) values ('DB:genbank:mrna','GenBank mRNA','http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=nucleotide&dopt=GenBank&term=');
  78. insert into db (name, description, urlprefix) values ('DB:genbank:protein','GenBank Protein','http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=protein&dopt=GenBank&term=');
  79. insert into db (name, description, urlprefix) values ('DB:swissprot:display','SwissProt','http://us.expasy.org/cgi-bin/niceprot.pl?');
  80. insert into db (name, description, urlprefix) values ('DB:pfam','Pfam','http://www.sanger.ac.uk/cgi-bin/Pfam/dql.pl?query=');
  81. insert into analysis (name,program,programversion) values ('dabg' ,'dabg' ,'dabg' );
  82. insert into analysis (name,program,programversion) values ('dchip','dchip','dchip');
  83. insert into analysis (name,program,programversion) values ('gcrma','gcrma','gcrma');
  84. insert into analysis (name,program,programversion) values ('mas5' ,'mas5' ,'mas5' );
  85. insert into analysis (name,program,programversion) values ('mpam' ,'mpam' ,'mpam' );
  86. insert into analysis (name,program,programversion) values ('plier','plier','plier');
  87. insert into analysis (name,program,programversion) values ('rma' ,'rma' ,'rma' );
  88. insert into analysis (name,program,programversion) values ('sea' ,'sea' ,'sea' );
  89. insert into analysis (name,program,programversion) values ('vsn' ,'vsn' ,'vsn' );
  90. insert into arraydesign (name,manufacturer_id,platformtype_id) values ('unknown' , (select contact_id from contact where name = 'null'),(select cvterm_id from cvterm where name = 'null'));
  91. insert into arraydesign (name,manufacturer_id,platformtype_id) values ('virtual array' , (select contact_id from contact where name = 'null'),(select cvterm_id from cvterm where name = 'null'));
  92. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_HG-U133_Plus_2' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  93. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_HG-U133A' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  94. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_HG-U133A_2' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  95. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_HG-U133B' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  96. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_HG-U95Av2' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  97. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_HG-U95B' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  98. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_HG-U95C' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  99. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_HG-U95D' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  100. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_HG-U95E' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  101. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_HuExon1' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  102. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_HuGeneFL' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  103. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_U74Av2' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  104. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_MG-U74Av2' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  105. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_MG-U74Bv2' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  106. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_MG-U74Cv2' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  107. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_RG-U34A' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  108. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_RG-U34B' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  109. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_RG-U34C' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  110. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_RT-U34' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  111. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_RN-U34' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  112. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_YG-S98' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  113. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_Yeast_2' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  114. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_RAE230A' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  115. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_RAE230B' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  116. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_Rat230_2' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  117. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_MOE430A' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  118. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_MOE430B' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  119. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_Mouse430_2' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  120. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_Mouse430A_2' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  121. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_ATH1-121501' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  122. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_Mapping100K_Hind240' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  123. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_Mapping100K_Xba240' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  124. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_Mapping10K_Xba131' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  125. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_Mapping10K_Xba142' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  126. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_Mapping500K_NspI' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  127. insert into arraydesign (name,manufacturer_id,platformtype_id,substratetype_id) values ('Affymetrix_Mapping500K_StyI' , (select contact_id from contact where name = 'Affymetrix'),(select cvterm_id from cvterm where name = 'photochemical_oligo'),(select cvterm_id from cvterm where name = 'glass'));
  128. insert into cv (name) values ('developmental stages');
  129. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'developmental stages:fetus');
  130. insert into cvterm (name,cv_id,dbxref_id) values ('fetus', (select cv_id from cv where name = 'local'),(select dbxref_id from dbxref where accession='developmental stages:fetus'));
  131. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'developmental stages:neonate');
  132. insert into cvterm (name,cv_id,dbxref_id) values ('neonate', (select cv_id from cv where name = 'developmental stages'), (select dbxref_id from dbxref where accession='developmental stages:neonate'));
  133. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'developmental stages:child');
  134. insert into cvterm (name,cv_id,dbxref_id) values ('child', (select cv_id from cv where name = 'developmental stages'), (select dbxref_id from dbxref where accession='developmental stages:child'));
  135. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'developmental stages:adult_young');
  136. insert into cvterm (name,cv_id,dbxref_id) values ('adult_young',(select cv_id from cv where name = 'developmental stages'),(select dbxref_id from dbxref where accession='developmental stages:adult_young'));
  137. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'developmental stages:adult');
  138. insert into cvterm (name,cv_id,dbxref_id) values ('adult', (select cv_id from cv where name = 'developmental stages'),(select dbxref_id from dbxref where accession='developmental stages:adult'));
  139. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'developmental stages:adult_old');
  140. insert into cvterm (name,cv_id,dbxref_id) values ('adult_old', (select cv_id from cv where name = 'developmental stages'), (select dbxref_id from dbxref where accession='developmental stages:adult_old'));
  141. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'local:survival_time');
  142. insert into cvterm (name,cv_id,dbxref_id) values ('survival_time',(select cv_id from cv where name = 'local'),(select dbxref_id from dbxref where accession='local:survival_time'));
  143. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:n');
  144. insert into cvterm (name,definition,cv_id,dbxref_id) values ('n','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:n'));
  145. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:minimum');
  146. insert into cvterm (name,definition,cv_id,dbxref_id) values ('minimum','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:minimum'));
  147. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:maximum');
  148. insert into cvterm (name,definition,cv_id,dbxref_id) values ('maximum','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:maximum'));
  149. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:modality');
  150. insert into cvterm (name,definition,cv_id,dbxref_id) values ('modality','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:modality'));
  151. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:modality p');
  152. insert into cvterm (name,definition,cv_id,dbxref_id) values ('modality p','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:modality p'));
  153. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:mean');
  154. insert into cvterm (name,definition,cv_id,dbxref_id) values ('mean','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:mean'));
  155. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:median');
  156. insert into cvterm (name,definition,cv_id,dbxref_id) values ('median','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:median'));
  157. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:mode');
  158. insert into cvterm (name,definition,cv_id,dbxref_id) values ('mode','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:mode'));
  159. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:quartile 1');
  160. insert into cvterm (name,definition,cv_id,dbxref_id) values ('quartile 1','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:quartile 1'));
  161. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:quartile 3');
  162. insert into cvterm (name,definition,cv_id,dbxref_id) values ('quartile 3','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:quartile 3'));
  163. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:skewness');
  164. insert into cvterm (name,definition,cv_id,dbxref_id) values ('skewness','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:skewness'));
  165. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:kurtosis');
  166. insert into cvterm (name,definition,cv_id,dbxref_id) values ('kurtosis','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:kurtosis'));
  167. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:chi square p');
  168. insert into cvterm (name,definition,cv_id,dbxref_id) values ('chi square p','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:chi square p'));
  169. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:standard deviation');
  170. insert into cvterm (name,definition,cv_id,dbxref_id) values ('standard deviation','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:standard deviation'));
  171. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:expectation maximization gaussian mean');
  172. insert into cvterm (name,definition,cv_id,dbxref_id) values ('expectation maximization gaussian mean','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:expectation maximization gaussian mean'));
  173. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:expectation maximization p');
  174. insert into cvterm (name,definition,cv_id,dbxref_id) values ('expectation maximization p','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:expectation maximization p'));
  175. insert into dbxref (db_id,accession) values ((select db_id from db where name='null'), 'Statistical Terms:histogram');
  176. insert into cvterm (name,definition,cv_id,dbxref_id) values ('histogram','sensu statistica', (select cv_id from cv where name = 'Statistical Terms'),(select dbxref_id from dbxref where accession='Statistical Terms:histogram'));
  177. insert into cv (name,definition) values ('autocreated','Terms that are automatically inserted by loading software');
  178. --this table will probably end up in general.sql
  179. CREATE TABLE public.materialized_view (
  180. materialized_view_id SERIAL,
  181. last_update TIMESTAMP,
  182. refresh_time INT,
  183. name VARCHAR(64) UNIQUE,
  184. mv_schema VARCHAR(64),
  185. mv_table VARCHAR(128),
  186. mv_specs TEXT,
  187. indexed TEXT,
  188. query TEXT,
  189. special_index TEXT
  190. );