default_schema-1.3.sql 2.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872
  1. -- $Id: general.sql,v 1.31 2007-03-01 02:45:54 briano Exp $
  2. -- ==========================================
  3. -- Chado general module
  4. --
  5. -- ================================================
  6. -- TABLE: tableinfo
  7. -- ================================================
  8. create table tableinfo (
  9. tableinfo_id bigserial not null,
  10. primary key (tableinfo_id),
  11. name varchar(30) not null,
  12. primary_key_column varchar(30) null,
  13. is_view int not null default 0,
  14. view_on_table_id bigint null,
  15. superclass_table_id bigint null,
  16. is_updateable int not null default 1,
  17. modification_date date not null default now(),
  18. constraint tableinfo_c1 unique (name)
  19. );
  20. COMMENT ON TABLE tableinfo IS NULL;
  21. -- ================================================
  22. -- TABLE: db
  23. -- ================================================
  24. create table db (
  25. db_id bigserial not null,
  26. primary key (db_id),
  27. name varchar(255) not null,
  28. -- contact_id bigint,
  29. -- foreign key (contact_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  30. description varchar(255) null,
  31. urlprefix varchar(255) null,
  32. url varchar(255) null,
  33. constraint db_c1 unique (name)
  34. );
  35. COMMENT ON TABLE db IS 'A database authority. Typical databases in
  36. bioinformatics are FlyBase, GO, UniProt, NCBI, MGI, etc. The authority
  37. is generally known by this shortened form, which is unique within the
  38. bioinformatics and biomedical realm. To Do - add support for URIs,
  39. URNs (e.g. LSIDs). We can do this by treating the URL as a URI -
  40. however, some applications may expect this to be resolvable - to be
  41. decided.';
  42. -- ================================================
  43. -- TABLE: dbxref
  44. -- ================================================
  45. create table dbxref (
  46. dbxref_id bigserial not null,
  47. primary key (dbxref_id),
  48. db_id bigint not null,
  49. foreign key (db_id) references db (db_id) on delete cascade INITIALLY DEFERRED,
  50. accession varchar(1024) not null,
  51. version varchar(255) not null default '',
  52. description text,
  53. constraint dbxref_c1 unique (db_id,accession,version)
  54. );
  55. create index dbxref_idx1 on dbxref (db_id);
  56. create index dbxref_idx2 on dbxref (accession);
  57. create index dbxref_idx3 on dbxref (version);
  58. COMMENT ON TABLE dbxref IS 'A unique, global, public, stable identifier. Not necessarily an external reference - can reference data items inside the particular chado instance being used. Typically a row in a table can be uniquely identified with a primary identifier (called dbxref_id); a table may also have secondary identifiers (in a linking table <T>_dbxref). A dbxref is generally written as <DB>:<ACCESSION> or as <DB>:<ACCESSION>:<VERSION>.';
  59. COMMENT ON COLUMN dbxref.accession IS 'The local part of the identifier. Guaranteed by the db authority to be unique for that db.';
  60. CREATE VIEW db_dbxref_count AS
  61. SELECT db.name,count(*) AS num_dbxrefs FROM db INNER JOIN dbxref USING (db_id) GROUP BY db.name;
  62. COMMENT ON VIEW db_dbxref_count IS 'per-db dbxref counts';
  63. CREATE OR REPLACE FUNCTION store_db (VARCHAR)
  64. RETURNS BIGINT AS
  65. 'DECLARE
  66. v_name ALIAS FOR $1;
  67. v_db_id BIGINT;
  68. BEGIN
  69. SELECT INTO v_db_id db_id
  70. FROM db
  71. WHERE name=v_name;
  72. IF NOT FOUND THEN
  73. INSERT INTO db
  74. (name)
  75. VALUES
  76. (v_name);
  77. RETURN currval(''db_db_id_seq'');
  78. END IF;
  79. RETURN v_db_id;
  80. END;
  81. ' LANGUAGE 'plpgsql';
  82. CREATE OR REPLACE FUNCTION store_dbxref (VARCHAR,VARCHAR)
  83. RETURNS BIGINT AS
  84. 'DECLARE
  85. v_dbname ALIAS FOR $1;
  86. v_accession ALIAS FOR $2;
  87. v_db_id BIGINT;
  88. v_dbxref_id BIGINT;
  89. BEGIN
  90. SELECT INTO v_db_id
  91. store_db(v_dbname);
  92. SELECT INTO v_dbxref_id dbxref_id
  93. FROM dbxref
  94. WHERE db_id=v_db_id AND
  95. accession=v_accession;
  96. IF NOT FOUND THEN
  97. INSERT INTO dbxref
  98. (db_id,accession)
  99. VALUES
  100. (v_db_id,v_accession);
  101. RETURN currval(''dbxref_dbxref_id_seq'');
  102. END IF;
  103. RETURN v_dbxref_id;
  104. END;
  105. ' LANGUAGE 'plpgsql';
  106. -- $Id: cv.sql,v 1.37 2007-02-28 15:08:48 briano Exp $
  107. -- ==========================================
  108. -- Chado cv module
  109. --
  110. -- =================================================================
  111. -- Dependencies:
  112. --
  113. -- :import dbxref from db
  114. -- =================================================================
  115. -- ================================================
  116. -- TABLE: cv
  117. -- ================================================
  118. create table cv (
  119. cv_id bigserial not null,
  120. primary key (cv_id),
  121. name varchar(255) not null,
  122. definition text,
  123. constraint cv_c1 unique (name)
  124. );
  125. COMMENT ON TABLE cv IS 'A controlled vocabulary or ontology. A cv is
  126. composed of cvterms (AKA terms, classes, types, universals - relations
  127. and properties are also stored in cvterm) and the relationships
  128. between them.';
  129. COMMENT ON COLUMN cv.name IS 'The name of the ontology. This
  130. corresponds to the obo-format -namespace-. cv names uniquely identify
  131. the cv. In OBO file format, the cv.name is known as the namespace.';
  132. COMMENT ON COLUMN cv.definition IS 'A text description of the criteria for
  133. membership of this ontology.';
  134. -- ================================================
  135. -- TABLE: cvterm
  136. -- ================================================
  137. create table cvterm (
  138. cvterm_id bigserial not null,
  139. primary key (cvterm_id),
  140. cv_id bigint not null,
  141. foreign key (cv_id) references cv (cv_id) on delete cascade INITIALLY DEFERRED,
  142. name varchar(1024) not null,
  143. definition text,
  144. dbxref_id bigint not null,
  145. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  146. is_obsolete int not null default 0,
  147. is_relationshiptype int not null default 0,
  148. constraint cvterm_c1 unique (name,cv_id,is_obsolete),
  149. constraint cvterm_c2 unique (dbxref_id)
  150. );
  151. create index cvterm_idx1 on cvterm (cv_id);
  152. create index cvterm_idx2 on cvterm (name);
  153. create index cvterm_idx3 on cvterm (dbxref_id);
  154. COMMENT ON TABLE cvterm IS 'A term, class, universal or type within an
  155. ontology or controlled vocabulary. This table is also used for
  156. relations and properties. cvterms constitute nodes in the graph
  157. defined by the collection of cvterms and cvterm_relationships.';
  158. COMMENT ON COLUMN cvterm.cv_id IS 'The cv or ontology or namespace to which
  159. this cvterm belongs.';
  160. COMMENT ON COLUMN cvterm.name IS 'A concise human-readable name or
  161. label for the cvterm. Uniquely identifies a cvterm within a cv.';
  162. COMMENT ON COLUMN cvterm.definition IS 'A human-readable text
  163. definition.';
  164. COMMENT ON COLUMN cvterm.dbxref_id IS 'Primary identifier dbxref - The
  165. unique global OBO identifier for this cvterm. Note that a cvterm may
  166. have multiple secondary dbxrefs - see also table: cvterm_dbxref.';
  167. COMMENT ON COLUMN cvterm.is_obsolete IS 'Boolean 0=false,1=true; see
  168. GO documentation for details of obsoletion. Note that two terms with
  169. different primary dbxrefs may exist if one is obsolete.';
  170. COMMENT ON COLUMN cvterm.is_relationshiptype IS 'Boolean
  171. 0=false,1=true relations or relationship types (also known as Typedefs
  172. in OBO format, or as properties or slots) form a cv/ontology in
  173. themselves. We use this flag to indicate whether this cvterm is an
  174. actual term/class/universal or a relation. Relations may be drawn from
  175. the OBO Relations ontology, but are not exclusively drawn from there.';
  176. COMMENT ON INDEX cvterm_c1 IS 'A name can mean different things in
  177. different contexts; for example "chromosome" in SO and GO. A name
  178. should be unique within an ontology or cv. A name may exist twice in a
  179. cv, in both obsolete and non-obsolete forms - these will be for
  180. different cvterms with different OBO identifiers; so GO documentation
  181. for more details on obsoletion. Note that occasionally multiple
  182. obsolete terms with the same name will exist in the same cv. If this
  183. is a possibility for the ontology under consideration (e.g. GO) then the
  184. ID should be appended to the name to ensure uniqueness.';
  185. COMMENT ON INDEX cvterm_c2 IS 'The OBO identifier is globally unique.';
  186. -- ================================================
  187. -- TABLE: cvterm_relationship
  188. -- ================================================
  189. create table cvterm_relationship (
  190. cvterm_relationship_id bigserial not null,
  191. primary key (cvterm_relationship_id),
  192. type_id bigint not null,
  193. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  194. subject_id bigint not null,
  195. foreign key (subject_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  196. object_id bigint not null,
  197. foreign key (object_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  198. constraint cvterm_relationship_c1 unique (subject_id,object_id,type_id)
  199. );
  200. create index cvterm_relationship_idx1 on cvterm_relationship (type_id);
  201. create index cvterm_relationship_idx2 on cvterm_relationship (subject_id);
  202. create index cvterm_relationship_idx3 on cvterm_relationship (object_id);
  203. COMMENT ON TABLE cvterm_relationship IS 'A relationship linking two
  204. cvterms. Each cvterm_relationship constitutes an edge in the graph
  205. defined by the collection of cvterms and cvterm_relationships. The
  206. meaning of the cvterm_relationship depends on the definition of the
  207. cvterm R refered to by type_id. However, in general the definitions
  208. are such that the statement "all SUBJs REL some OBJ" is true. The
  209. cvterm_relationship statement is about the subject, not the
  210. object. For example "insect wing part_of thorax".';
  211. COMMENT ON COLUMN cvterm_relationship.subject_id IS 'The subject of
  212. the subj-predicate-obj sentence. The cvterm_relationship is about the
  213. subject. In a graph, this typically corresponds to the child node.';
  214. COMMENT ON COLUMN cvterm_relationship.object_id IS 'The object of the
  215. subj-predicate-obj sentence. The cvterm_relationship refers to the
  216. object. In a graph, this typically corresponds to the parent node.';
  217. COMMENT ON COLUMN cvterm_relationship.type_id IS 'The nature of the
  218. relationship between subject and object. Note that relations are also
  219. housed in the cvterm table, typically from the OBO relationship
  220. ontology, although other relationship types are allowed.';
  221. -- ================================================
  222. -- TABLE: cvtermpath
  223. -- ================================================
  224. create table cvtermpath (
  225. cvtermpath_id bigserial not null,
  226. primary key (cvtermpath_id),
  227. type_id bigint,
  228. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  229. subject_id bigint not null,
  230. foreign key (subject_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  231. object_id bigint not null,
  232. foreign key (object_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  233. cv_id bigint not null,
  234. foreign key (cv_id) references cv (cv_id) on delete cascade INITIALLY DEFERRED,
  235. pathdistance int,
  236. constraint cvtermpath_c1 unique (subject_id,object_id,type_id,pathdistance)
  237. );
  238. create index cvtermpath_idx1 on cvtermpath (type_id);
  239. create index cvtermpath_idx2 on cvtermpath (subject_id);
  240. create index cvtermpath_idx3 on cvtermpath (object_id);
  241. create index cvtermpath_idx4 on cvtermpath (cv_id);
  242. COMMENT ON TABLE cvtermpath IS 'The reflexive transitive closure of
  243. the cvterm_relationship relation.';
  244. COMMENT ON COLUMN cvtermpath.type_id IS 'The relationship type that
  245. this is a closure over. If null, then this is a closure over ALL
  246. relationship types. If non-null, then this references a relationship
  247. cvterm - note that the closure will apply to both this relationship
  248. AND the OBO_REL:is_a (subclass) relationship.';
  249. COMMENT ON COLUMN cvtermpath.cv_id IS 'Closures will mostly be within
  250. one cv. If the closure of a relationship traverses a cv, then this
  251. refers to the cv of the object_id cvterm.';
  252. COMMENT ON COLUMN cvtermpath.pathdistance IS 'The number of steps
  253. required to get from the subject cvterm to the object cvterm, counting
  254. from zero (reflexive relationship).';
  255. -- ================================================
  256. -- TABLE: cvtermsynonym
  257. -- ================================================
  258. create table cvtermsynonym (
  259. cvtermsynonym_id bigserial not null,
  260. primary key (cvtermsynonym_id),
  261. cvterm_id bigint not null,
  262. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  263. synonym varchar(1024) not null,
  264. type_id bigint,
  265. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  266. constraint cvtermsynonym_c1 unique (cvterm_id,synonym)
  267. );
  268. create index cvtermsynonym_idx1 on cvtermsynonym (cvterm_id);
  269. COMMENT ON TABLE cvtermsynonym IS 'A cvterm actually represents a
  270. distinct class or concept. A concept can be refered to by different
  271. phrases or names. In addition to the primary name (cvterm.name) there
  272. can be a number of alternative aliases or synonyms. For example, "T
  273. cell" as a synonym for "T lymphocyte".';
  274. COMMENT ON COLUMN cvtermsynonym.type_id IS 'A synonym can be exact,
  275. narrower, or broader than.';
  276. -- ================================================
  277. -- TABLE: cvterm_dbxref
  278. -- ================================================
  279. create table cvterm_dbxref (
  280. cvterm_dbxref_id bigserial not null,
  281. primary key (cvterm_dbxref_id),
  282. cvterm_id bigint not null,
  283. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  284. dbxref_id bigint not null,
  285. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  286. is_for_definition int not null default 0,
  287. constraint cvterm_dbxref_c1 unique (cvterm_id,dbxref_id)
  288. );
  289. create index cvterm_dbxref_idx1 on cvterm_dbxref (cvterm_id);
  290. create index cvterm_dbxref_idx2 on cvterm_dbxref (dbxref_id);
  291. COMMENT ON TABLE cvterm_dbxref IS 'In addition to the primary
  292. identifier (cvterm.dbxref_id) a cvterm can have zero or more secondary
  293. identifiers/dbxrefs, which may refer to records in external
  294. databases. The exact semantics of cvterm_dbxref are not fixed. For
  295. example: the dbxref could be a pubmed ID that is pertinent to the
  296. cvterm, or it could be an equivalent or similar term in another
  297. ontology. For example, GO cvterms are typically linked to InterPro
  298. IDs, even though the nature of the relationship between them is
  299. largely one of statistical association. The dbxref may be have data
  300. records attached in the same database instance, or it could be a
  301. "hanging" dbxref pointing to some external database. NOTE: If the
  302. desired objective is to link two cvterms together, and the nature of
  303. the relation is known and holds for all instances of the subject
  304. cvterm then consider instead using cvterm_relationship together with a
  305. well-defined relation.';
  306. COMMENT ON COLUMN cvterm_dbxref.is_for_definition IS 'A
  307. cvterm.definition should be supported by one or more references. If
  308. this column is true, the dbxref is not for a term in an external database -
  309. it is a dbxref for provenance information for the definition.';
  310. -- ================================================
  311. -- TABLE: cvtermprop
  312. -- ================================================
  313. create table cvtermprop (
  314. cvtermprop_id bigserial not null,
  315. primary key (cvtermprop_id),
  316. cvterm_id bigint not null,
  317. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  318. type_id bigint not null,
  319. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  320. value text not null default '',
  321. rank int not null default 0,
  322. unique(cvterm_id, type_id, value, rank)
  323. );
  324. create index cvtermprop_idx1 on cvtermprop (cvterm_id);
  325. create index cvtermprop_idx2 on cvtermprop (type_id);
  326. COMMENT ON TABLE cvtermprop IS 'Additional extensible properties can be attached to a cvterm using this table. Corresponds to -AnnotationProperty- in W3C OWL format.';
  327. COMMENT ON COLUMN cvtermprop.type_id IS 'The name of the property or slot is a cvterm. The meaning of the property is defined in that cvterm.';
  328. COMMENT ON COLUMN cvtermprop.value IS 'The value of the property, represented as text. Numeric values are converted to their text representation.';
  329. COMMENT ON COLUMN cvtermprop.rank IS 'Property-Value ordering. Any
  330. cvterm can have multiple values for any particular property type -
  331. these are ordered in a list using rank, counting from zero. For
  332. properties that are single-valued rather than multi-valued, the
  333. default 0 value should be used.';
  334. -- ================================================
  335. -- TABLE: dbxrefprop
  336. -- ================================================
  337. create table dbxrefprop (
  338. dbxrefprop_id bigserial not null,
  339. primary key (dbxrefprop_id),
  340. dbxref_id bigint not null,
  341. foreign key (dbxref_id) references dbxref (dbxref_id) INITIALLY DEFERRED,
  342. type_id bigint not null,
  343. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  344. value text not null default '',
  345. rank int not null default 0,
  346. constraint dbxrefprop_c1 unique (dbxref_id,type_id,rank)
  347. );
  348. create index dbxrefprop_idx1 on dbxrefprop (dbxref_id);
  349. create index dbxrefprop_idx2 on dbxrefprop (type_id);
  350. COMMENT ON TABLE dbxrefprop IS 'Metadata about a dbxref. Note that this is not defined in the dbxref module, as it depends on the cvterm table. This table has a structure analagous to cvtermprop.';
  351. -- ================================================
  352. -- TABLE: cvprop
  353. -- ================================================
  354. create table cvprop (
  355. cvprop_id bigserial not null,
  356. primary key (cvprop_id),
  357. cv_id bigint not null,
  358. foreign key (cv_id) references cv (cv_id) INITIALLY DEFERRED,
  359. type_id bigint not null,
  360. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  361. value text,
  362. rank int not null default 0,
  363. constraint cvprop_c1 unique (cv_id,type_id,rank)
  364. );
  365. COMMENT ON TABLE cvprop IS 'Additional extensible properties can be attached to a cv using this table. A notable example would be the cv version';
  366. COMMENT ON COLUMN cvprop.type_id IS 'The name of the property or slot is a cvterm. The meaning of the property is defined in that cvterm.';
  367. COMMENT ON COLUMN cvprop.value IS 'The value of the property, represented as text. Numeric values are converted to their text representation.';
  368. COMMENT ON COLUMN cvprop.rank IS 'Property-Value ordering. Any
  369. cv can have multiple values for any particular property type -
  370. these are ordered in a list using rank, counting from zero. For
  371. properties that are single-valued rather than multi-valued, the
  372. default 0 value should be used.';
  373. -- ================================================
  374. -- TABLE: chadoprop
  375. -- ================================================
  376. create table chadoprop (
  377. chadoprop_id bigserial not null,
  378. primary key (chadoprop_id),
  379. type_id bigint not null,
  380. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  381. value text,
  382. rank int not null default 0,
  383. constraint chadoprop_c1 unique (type_id,rank)
  384. );
  385. COMMENT ON TABLE chadoprop IS 'This table is different from other prop tables in the database, as it is for storing information about the database itself, like schema version';
  386. COMMENT ON COLUMN chadoprop.type_id IS 'The name of the property or slot is a cvterm. The meaning of the property is defined in that cvterm.';
  387. COMMENT ON COLUMN chadoprop.value IS 'The value of the property, represented as text. Numeric values are converted to their text representation.';
  388. COMMENT ON COLUMN chadoprop.rank IS 'Property-Value ordering. Any
  389. cv can have multiple values for any particular property type -
  390. these are ordered in a list using rank, counting from zero. For
  391. properties that are single-valued rather than multi-valued, the
  392. default 0 value should be used.';
  393. -- ================================================
  394. -- TABLE: dbprop
  395. -- ================================================
  396. create table dbprop (
  397. dbprop_id bigserial not null,
  398. primary key (dbprop_id),
  399. db_id bigint not null,
  400. type_id bigint not null,
  401. value text null,
  402. rank int not null default 0,
  403. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  404. foreign key (db_id) references db (db_id) on delete cascade INITIALLY DEFERRED,
  405. constraint dbprop_c1 unique (db_id,type_id,rank)
  406. );
  407. create index dbprop_idx1 on dbprop (db_id);
  408. create index dbprop_idx2 on dbprop (type_id);
  409. COMMENT ON TABLE dbprop IS 'An external database can have any number of
  410. slot-value property tags attached to it. This is an alternative to
  411. hardcoding a list of columns in the relational schema, and is
  412. completely extensible. There is a unique constraint, dbprop_c1, for
  413. the combination of db_id, rank, and type_id. Multivalued property-value pairs must be differentiated by rank.';
  414. CREATE OR REPLACE VIEW cv_root AS
  415. SELECT
  416. cv_id,
  417. cvterm_id AS root_cvterm_id
  418. FROM cvterm
  419. WHERE
  420. cvterm_id NOT IN ( SELECT subject_id FROM cvterm_relationship) AND
  421. is_obsolete=0;
  422. COMMENT ON VIEW cv_root IS 'the roots of a cv are the set of terms
  423. which have no parents (terms that are not the subject of a
  424. relation). Most cvs will have a single root, some may have >1. All
  425. will have at least 1';
  426. CREATE OR REPLACE VIEW cv_leaf AS
  427. SELECT
  428. cv_id,
  429. cvterm_id
  430. FROM cvterm
  431. WHERE
  432. cvterm_id NOT IN ( SELECT object_id FROM cvterm_relationship);
  433. COMMENT ON VIEW cv_leaf IS 'the leaves of a cv are the set of terms
  434. which have no children (terms that are not the object of a
  435. relation). All cvs will have at least 1 leaf';
  436. CREATE OR REPLACE VIEW common_ancestor_cvterm AS
  437. SELECT
  438. p1.subject_id AS cvterm1_id,
  439. p2.subject_id AS cvterm2_id,
  440. p1.object_id AS ancestor_cvterm_id,
  441. p1.pathdistance AS pathdistance1,
  442. p2.pathdistance AS pathdistance2,
  443. p1.pathdistance + p2.pathdistance
  444. AS total_pathdistance
  445. FROM
  446. cvtermpath AS p1,
  447. cvtermpath AS p2
  448. WHERE
  449. p1.object_id = p2.object_id;
  450. COMMENT ON VIEW common_ancestor_cvterm IS 'The common ancestor of any
  451. two terms is the intersection of both terms ancestors. Two terms can
  452. have multiple common ancestors. Use total_pathdistance to get the
  453. least common ancestor';
  454. CREATE OR REPLACE VIEW common_descendant_cvterm AS
  455. SELECT
  456. p1.object_id AS cvterm1_id,
  457. p2.object_id AS cvterm2_id,
  458. p1.subject_id AS ancestor_cvterm_id,
  459. p1.pathdistance AS pathdistance1,
  460. p2.pathdistance AS pathdistance2,
  461. p1.pathdistance + p2.pathdistance
  462. AS total_pathdistance
  463. FROM
  464. cvtermpath AS p1,
  465. cvtermpath AS p2
  466. WHERE
  467. p1.subject_id = p2.subject_id;
  468. COMMENT ON VIEW common_descendant_cvterm IS 'The common descendant of
  469. any two terms is the intersection of both terms descendants. Two terms
  470. can have multiple common descendants. Use total_pathdistance to get
  471. the least common ancestor';
  472. CREATE OR REPLACE VIEW stats_paths_to_root AS
  473. SELECT
  474. subject_id AS cvterm_id,
  475. count(DISTINCT cvtermpath_id) AS total_paths,
  476. avg(pathdistance) AS avg_distance,
  477. min(pathdistance) AS min_distance,
  478. max(pathdistance) AS max_distance
  479. FROM cvtermpath INNER JOIN cv_root ON (object_id=root_cvterm_id)
  480. GROUP BY cvterm_id;
  481. COMMENT ON VIEW stats_paths_to_root IS 'per-cvterm statistics on its
  482. placement in the DAG relative to the root. There may be multiple paths
  483. from any term to the root. This gives the total number of paths, and
  484. the average minimum and maximum distances. Here distance is defined by
  485. cvtermpath.pathdistance';
  486. CREATE VIEW cv_cvterm_count AS
  487. SELECT cv.name,count(*) AS num_terms_excl_obs FROM cv INNER JOIN cvterm USING (cv_id) WHERE is_obsolete=0 GROUP BY cv.name;
  488. COMMENT ON VIEW cv_cvterm_count IS 'per-cv terms counts (excludes obsoletes)';
  489. CREATE VIEW cv_cvterm_count_with_obs AS
  490. SELECT cv.name,count(*) AS num_terms_incl_obs FROM cv INNER JOIN cvterm USING (cv_id) GROUP BY cv.name;
  491. COMMENT ON VIEW cv_cvterm_count_with_obs IS 'per-cv terms counts (includes obsoletes)';
  492. CREATE VIEW cv_link_count AS
  493. SELECT cv.name AS cv_name,
  494. relation.name AS relation_name,
  495. relation_cv.name AS relation_cv_name,
  496. count(*) AS num_links
  497. FROM cv
  498. INNER JOIN cvterm ON (cvterm.cv_id=cv.cv_id)
  499. INNER JOIN cvterm_relationship ON (cvterm.cvterm_id=subject_id)
  500. INNER JOIN cvterm AS relation ON (type_id=relation.cvterm_id)
  501. INNER JOIN cv AS relation_cv ON (relation.cv_id=relation_cv.cv_id)
  502. GROUP BY cv.name,relation.name,relation_cv.name;
  503. COMMENT ON VIEW cv_link_count IS 'per-cv summary of number of
  504. links (cvterm_relationships) broken down by
  505. relationship_type. num_links is the total # of links of the specified
  506. type in which the subject_id of the link is in the named cv';
  507. CREATE VIEW cv_path_count AS
  508. SELECT cv.name AS cv_name,
  509. relation.name AS relation_name,
  510. relation_cv.name AS relation_cv_name,
  511. count(*) AS num_paths
  512. FROM cv
  513. INNER JOIN cvterm ON (cvterm.cv_id=cv.cv_id)
  514. INNER JOIN cvtermpath ON (cvterm.cvterm_id=subject_id)
  515. INNER JOIN cvterm AS relation ON (type_id=relation.cvterm_id)
  516. INNER JOIN cv AS relation_cv ON (relation.cv_id=relation_cv.cv_id)
  517. GROUP BY cv.name,relation.name,relation_cv.name;
  518. COMMENT ON VIEW cv_path_count IS 'per-cv summary of number of
  519. paths (cvtermpaths) broken down by relationship_type. num_paths is the
  520. total # of paths of the specified type in which the subject_id of the
  521. path is in the named cv. See also: cv_distinct_relations';
  522. CREATE OR REPLACE FUNCTION _get_all_subject_ids(bigint) RETURNS SETOF cvtermpath AS
  523. '
  524. DECLARE
  525. root alias for $1;
  526. cterm cvtermpath%ROWTYPE;
  527. cterm2 cvtermpath%ROWTYPE;
  528. BEGIN
  529. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = root LOOP
  530. RETURN NEXT cterm;
  531. FOR cterm2 IN SELECT * FROM _get_all_subject_ids(cterm.subject_id) LOOP
  532. RETURN NEXT cterm2;
  533. END LOOP;
  534. END LOOP;
  535. RETURN;
  536. END;
  537. '
  538. LANGUAGE 'plpgsql';
  539. ---arg: parent term id
  540. ---return: all children term id and their parent term id with relationship type id
  541. CREATE OR REPLACE FUNCTION get_all_subject_ids(bigint) RETURNS SETOF cvtermpath AS
  542. '
  543. DECLARE
  544. root alias for $1;
  545. cterm cvtermpath%ROWTYPE;
  546. exist_c int;
  547. BEGIN
  548. SELECT INTO exist_c count(*) FROM cvtermpath WHERE object_id = root and pathdistance <= 0;
  549. IF (exist_c > 0) THEN
  550. FOR cterm IN SELECT * FROM cvtermpath WHERE object_id = root and pathdistance > 0 LOOP
  551. RETURN NEXT cterm;
  552. END LOOP;
  553. ELSE
  554. FOR cterm IN SELECT * FROM _get_all_subject_ids(root) LOOP
  555. RETURN NEXT cterm;
  556. END LOOP;
  557. END IF;
  558. RETURN;
  559. END;
  560. '
  561. LANGUAGE 'plpgsql';
  562. CREATE OR REPLACE FUNCTION get_graph_below(bigint) RETURNS SETOF cvtermpath AS
  563. '
  564. DECLARE
  565. root alias for $1;
  566. cterm cvtermpath%ROWTYPE;
  567. cterm2 cvtermpath%ROWTYPE;
  568. BEGIN
  569. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = root LOOP
  570. RETURN NEXT cterm;
  571. FOR cterm2 IN SELECT * FROM get_all_subject_ids(cterm.subject_id) LOOP
  572. RETURN NEXT cterm2;
  573. END LOOP;
  574. END LOOP;
  575. RETURN;
  576. END;
  577. '
  578. LANGUAGE 'plpgsql';
  579. CREATE OR REPLACE FUNCTION get_graph_above(bigint) RETURNS SETOF cvtermpath AS
  580. '
  581. DECLARE
  582. leaf alias for $1;
  583. cterm cvtermpath%ROWTYPE;
  584. cterm2 cvtermpath%ROWTYPE;
  585. BEGIN
  586. FOR cterm IN SELECT * FROM cvterm_relationship WHERE subject_id = leaf LOOP
  587. RETURN NEXT cterm;
  588. FOR cterm2 IN SELECT * FROM get_all_object_ids(cterm.object_id) LOOP
  589. RETURN NEXT cterm2;
  590. END LOOP;
  591. END LOOP;
  592. RETURN;
  593. END;
  594. '
  595. LANGUAGE 'plpgsql';
  596. CREATE OR REPLACE FUNCTION _get_all_object_ids(bigint) RETURNS SETOF cvtermpath AS
  597. '
  598. DECLARE
  599. leaf alias for $1;
  600. cterm cvtermpath%ROWTYPE;
  601. cterm2 cvtermpath%ROWTYPE;
  602. BEGIN
  603. FOR cterm IN SELECT * FROM cvterm_relationship WHERE subject_id = leaf LOOP
  604. RETURN NEXT cterm;
  605. FOR cterm2 IN SELECT * FROM _get_all_object_ids(cterm.object_id) LOOP
  606. RETURN NEXT cterm2;
  607. END LOOP;
  608. END LOOP;
  609. RETURN;
  610. END;
  611. '
  612. LANGUAGE 'plpgsql';
  613. ---arg: child term id
  614. ---return: all parent term id and their childrent term id with relationship type id
  615. CREATE OR REPLACE FUNCTION get_all_object_ids(bigint) RETURNS SETOF cvtermpath AS
  616. '
  617. DECLARE
  618. leaf alias for $1;
  619. cterm cvtermpath%ROWTYPE;
  620. exist_c int;
  621. BEGIN
  622. SELECT INTO exist_c count(*) FROM cvtermpath WHERE object_id = leaf and pathdistance <= 0;
  623. IF (exist_c > 0) THEN
  624. FOR cterm IN SELECT * FROM cvtermpath WHERE subject_id = leaf AND pathdistance > 0 LOOP
  625. RETURN NEXT cterm;
  626. END LOOP;
  627. ELSE
  628. FOR cterm IN SELECT * FROM _get_all_object_ids(leaf) LOOP
  629. RETURN NEXT cterm;
  630. END LOOP;
  631. END IF;
  632. RETURN;
  633. END;
  634. '
  635. LANGUAGE 'plpgsql';
  636. ---arg: sql statement which must be in the form of select cvterm_id from ...
  637. ---return: a set of cvterm ids that includes what is in sql statement and their children (subject ids)
  638. CREATE OR REPLACE FUNCTION get_it_sub_cvterm_ids(text) RETURNS SETOF cvterm AS
  639. '
  640. DECLARE
  641. query alias for $1;
  642. cterm cvterm%ROWTYPE;
  643. cterm2 cvterm%ROWTYPE;
  644. BEGIN
  645. FOR cterm IN EXECUTE query LOOP
  646. RETURN NEXT cterm;
  647. FOR cterm2 IN SELECT subject_id as cvterm_id FROM get_all_subject_ids(cterm.cvterm_id) LOOP
  648. RETURN NEXT cterm2;
  649. END LOOP;
  650. END LOOP;
  651. RETURN;
  652. END;
  653. '
  654. LANGUAGE 'plpgsql';
  655. --- example: select * from fill_cvtermpath(7); where 7 is cv_id for an ontology
  656. --- fill path from the node to its children and their children
  657. CREATE OR REPLACE FUNCTION _fill_cvtermpath4node(BIGINT, BIGINT, BIGINT, BIGINT, INTEGER) RETURNS INTEGER AS
  658. '
  659. DECLARE
  660. origin alias for $1;
  661. child_id alias for $2;
  662. cvid alias for $3;
  663. typeid alias for $4;
  664. depth alias for $5;
  665. cterm cvterm_relationship%ROWTYPE;
  666. exist_c int;
  667. BEGIN
  668. --- RAISE NOTICE ''depth=% root=%'', depth,child_id;
  669. --- not check type_id as it may be null and not very meaningful in cvtermpath when pathdistance > 1
  670. SELECT INTO exist_c count(*) FROM cvtermpath WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id AND pathdistance = depth;
  671. IF (exist_c = 0) THEN
  672. INSERT INTO cvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES(origin, child_id, cvid, typeid, depth);
  673. END IF;
  674. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = child_id LOOP
  675. PERFORM _fill_cvtermpath4node(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  676. END LOOP;
  677. RETURN 1;
  678. END;
  679. '
  680. LANGUAGE 'plpgsql';
  681. CREATE OR REPLACE FUNCTION _fill_cvtermpath4root(BIGINT, BIGINT) RETURNS INTEGER AS
  682. '
  683. DECLARE
  684. rootid alias for $1;
  685. cvid alias for $2;
  686. ttype bigint;
  687. cterm cvterm_relationship%ROWTYPE;
  688. child cvterm_relationship%ROWTYPE;
  689. BEGIN
  690. SELECT INTO ttype cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  691. PERFORM _fill_cvtermpath4node(rootid, rootid, cvid, ttype, 0);
  692. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = rootid LOOP
  693. PERFORM _fill_cvtermpath4root(cterm.subject_id, cvid);
  694. -- RAISE NOTICE ''DONE for term, %'', cterm.subject_id;
  695. END LOOP;
  696. RETURN 1;
  697. END;
  698. '
  699. LANGUAGE 'plpgsql';
  700. CREATE OR REPLACE FUNCTION fill_cvtermpath(BIGINT) RETURNS INTEGER AS
  701. '
  702. DECLARE
  703. cvid alias for $1;
  704. root cvterm%ROWTYPE;
  705. BEGIN
  706. DELETE FROM cvtermpath WHERE cv_id = cvid;
  707. FOR root IN SELECT DISTINCT t.* from cvterm t LEFT JOIN cvterm_relationship r ON (t.cvterm_id = r.subject_id) INNER JOIN cvterm_relationship r2 ON (t.cvterm_id = r2.object_id) WHERE t.cv_id = cvid AND r.subject_id is null LOOP
  708. PERFORM _fill_cvtermpath4root(root.cvterm_id, root.cv_id);
  709. END LOOP;
  710. RETURN 1;
  711. END;
  712. '
  713. LANGUAGE 'plpgsql';
  714. CREATE OR REPLACE FUNCTION fill_cvtermpath(cv.name%TYPE) RETURNS INTEGER AS
  715. '
  716. DECLARE
  717. cvname alias for $1;
  718. cv_id bigint;
  719. rtn int;
  720. BEGIN
  721. SELECT INTO cv_id cv.cv_id from cv WHERE cv.name = cvname;
  722. SELECT INTO rtn fill_cvtermpath(cv_id);
  723. RETURN rtn;
  724. END;
  725. '
  726. LANGUAGE 'plpgsql';
  727. CREATE OR REPLACE FUNCTION _fill_cvtermpath4node2detect_cycle(BIGINT, BIGINT, BIGINT, BIGINT, INTEGER) RETURNS BIGINT AS
  728. '
  729. DECLARE
  730. origin alias for $1;
  731. child_id alias for $2;
  732. cvid alias for $3;
  733. typeid alias for $4;
  734. depth alias for $5;
  735. cterm cvterm_relationship%ROWTYPE;
  736. exist_c int;
  737. ccount int;
  738. ecount int;
  739. rtn bigint;
  740. BEGIN
  741. EXECUTE ''SELECT * FROM tmpcvtermpath p1, tmpcvtermpath p2 WHERE p1.subject_id=p2.object_id AND p1.object_id=p2.subject_id AND p1.object_id = ''|| origin || '' AND p2.subject_id = '' || child_id || ''AND '' || depth || ''> 0'';
  742. GET DIAGNOSTICS ccount = ROW_COUNT;
  743. IF (ccount > 0) THEN
  744. --RAISE EXCEPTION ''FOUND CYCLE: node % on cycle path'',origin;
  745. RETURN origin;
  746. END IF;
  747. EXECUTE ''SELECT * FROM tmpcvtermpath WHERE cv_id = '' || cvid || '' AND object_id = '' || origin || '' AND subject_id = '' || child_id || '' AND '' || origin || ''<>'' || child_id;
  748. GET DIAGNOSTICS ecount = ROW_COUNT;
  749. IF (ecount > 0) THEN
  750. --RAISE NOTICE ''FOUND TWICE (node), will check root obj % subj %'',origin, child_id;
  751. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(child_id, cvid);
  752. IF (rtn > 0) THEN
  753. RETURN rtn;
  754. END IF;
  755. END IF;
  756. EXECUTE ''SELECT * FROM tmpcvtermpath WHERE cv_id = '' || cvid || '' AND object_id = '' || origin || '' AND subject_id = '' || child_id || '' AND pathdistance = '' || depth;
  757. GET DIAGNOSTICS exist_c = ROW_COUNT;
  758. IF (exist_c = 0) THEN
  759. EXECUTE ''INSERT INTO tmpcvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES('' || origin || '', '' || child_id || '', '' || cvid || '', '' || typeid || '', '' || depth || '')'';
  760. END IF;
  761. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = child_id LOOP
  762. --RAISE NOTICE ''DOING for node, % %'', origin, cterm.subject_id;
  763. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  764. IF (rtn > 0) THEN
  765. RETURN rtn;
  766. END IF;
  767. END LOOP;
  768. RETURN 0;
  769. END;
  770. '
  771. LANGUAGE 'plpgsql';
  772. CREATE OR REPLACE FUNCTION _fill_cvtermpath4root2detect_cycle(BIGINT, BIGINT) RETURNS BIGINT AS
  773. '
  774. DECLARE
  775. rootid alias for $1;
  776. cvid alias for $2;
  777. ttype bigint;
  778. ccount int;
  779. cterm cvterm_relationship%ROWTYPE;
  780. child cvterm_relationship%ROWTYPE;
  781. rtn bigint;
  782. BEGIN
  783. SELECT INTO ttype cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  784. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(rootid, rootid, cvid, ttype, 0);
  785. IF (rtn > 0) THEN
  786. RETURN rtn;
  787. END IF;
  788. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = rootid LOOP
  789. EXECUTE ''SELECT * FROM tmpcvtermpath p1, tmpcvtermpath p2 WHERE p1.subject_id=p2.object_id AND p1.object_id=p2.subject_id AND p1.object_id='' || rootid || '' AND p1.subject_id='' || cterm.subject_id;
  790. GET DIAGNOSTICS ccount = ROW_COUNT;
  791. IF (ccount > 0) THEN
  792. --RAISE NOTICE ''FOUND TWICE (root), will check root obj % subj %'',rootid,cterm.subject_id;
  793. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(rootid, cterm.subject_id, cvid, ttype, 0);
  794. IF (rtn > 0) THEN
  795. RETURN rtn;
  796. END IF;
  797. ELSE
  798. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(cterm.subject_id, cvid);
  799. IF (rtn > 0) THEN
  800. RETURN rtn;
  801. END IF;
  802. END IF;
  803. END LOOP;
  804. RETURN 0;
  805. END;
  806. '
  807. LANGUAGE 'plpgsql';
  808. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(BIGINT, BIGINT) RETURNS BIGINT AS
  809. '
  810. DECLARE
  811. cvid alias for $1;
  812. rootid alias for $2;
  813. rtn bigint;
  814. BEGIN
  815. CREATE TEMP TABLE tmpcvtermpath(object_id bigint, subject_id bigint, cv_id bigint, type_id bigint, pathdistance int);
  816. CREATE INDEX tmp_cvtpath1 ON tmpcvtermpath(object_id, subject_id);
  817. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(rootid, cvid);
  818. IF (rtn > 0) THEN
  819. DROP TABLE tmpcvtermpath;
  820. RETURN rtn;
  821. END IF;
  822. DROP TABLE tmpcvtermpath;
  823. RETURN 0;
  824. END;
  825. '
  826. LANGUAGE 'plpgsql';
  827. CREATE OR REPLACE FUNCTION get_cycle_cvterm_ids(BIGINT) RETURNS SETOF BIGINT AS
  828. '
  829. DECLARE
  830. cvid alias for $1;
  831. root cvterm%ROWTYPE;
  832. rtn bigint;
  833. BEGIN
  834. FOR root IN SELECT DISTINCT t.* from cvterm t WHERE cv_id = cvid LOOP
  835. SELECT INTO rtn get_cycle_cvterm_id(cvid,root.cvterm_id);
  836. IF (rtn > 0) THEN
  837. RETURN NEXT rtn;
  838. END IF;
  839. END LOOP;
  840. RETURN;
  841. END;
  842. '
  843. LANGUAGE 'plpgsql';
  844. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(BIGINT) RETURNS BIGINT AS
  845. '
  846. DECLARE
  847. cvid alias for $1;
  848. root cvterm%ROWTYPE;
  849. rtn bigint;
  850. BEGIN
  851. CREATE TEMP TABLE tmpcvtermpath(object_id bigint, subject_id bigint, cv_id bigint, type_id bigint, pathdistance int);
  852. CREATE INDEX tmp_cvtpath1 ON tmpcvtermpath(object_id, subject_id);
  853. FOR root IN SELECT DISTINCT t.* from cvterm t LEFT JOIN cvterm_relationship r ON (t.cvterm_id = r.subject_id) INNER JOIN cvterm_relationship r2 ON (t.cvterm_id = r2.object_id) WHERE t.cv_id = cvid AND r.subject_id is null LOOP
  854. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(root.cvterm_id, root.cv_id);
  855. IF (rtn > 0) THEN
  856. DROP TABLE tmpcvtermpath;
  857. RETURN rtn;
  858. END IF;
  859. END LOOP;
  860. DROP TABLE tmpcvtermpath;
  861. RETURN 0;
  862. END;
  863. '
  864. LANGUAGE 'plpgsql';
  865. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(cv.name%TYPE) RETURNS BIGINT AS
  866. '
  867. DECLARE
  868. cvname alias for $1;
  869. cv_id bigint;
  870. rtn bigint;
  871. BEGIN
  872. SELECT INTO cv_id cv.cv_id from cv WHERE cv.name = cvname;
  873. SELECT INTO rtn get_cycle_cvterm_id(cv_id);
  874. RETURN rtn;
  875. END;
  876. '
  877. LANGUAGE 'plpgsql';
  878. -- $Id: contact.sql,v 1.5 2007-02-25 17:00:17 briano Exp $
  879. -- ==========================================
  880. -- Chado contact module
  881. --
  882. -- =================================================================
  883. -- Dependencies:
  884. --
  885. -- :import cvterm from cv
  886. -- =================================================================
  887. -- ================================================
  888. -- TABLE: contact
  889. -- ================================================
  890. CREATE TABLE contact (
  891. contact_id bigserial not null,
  892. primary key (contact_id),
  893. type_id bigint null,
  894. foreign key (type_id) references cvterm (cvterm_id),
  895. name varchar(255) not null,
  896. description varchar(255) null,
  897. constraint contact_c1 unique (name)
  898. );
  899. COMMENT ON TABLE contact IS 'Model persons, institutes, groups, organizations, etc.';
  900. COMMENT ON COLUMN contact.type_id IS 'What type of contact is this? E.g. "person", "lab".';
  901. -- ================================================
  902. -- TABLE: contactprop
  903. -- ================================================
  904. CREATE TABLE contactprop (
  905. contactprop_id bigserial primary key not null,
  906. contact_id bigint NOT NULL,
  907. type_id bigint NOT NULL,
  908. value text,
  909. rank integer DEFAULT 0 NOT NULL,
  910. CONSTRAINT contactprop_c1 UNIQUE (contact_id, type_id, rank),
  911. FOREIGN KEY (contact_id) REFERENCES contact(contact_id) ON DELETE CASCADE,
  912. FOREIGN KEY (type_id) REFERENCES cvterm(cvterm_id) ON DELETE CASCADE
  913. );
  914. CREATE INDEX contactprop_idx1 ON contactprop USING btree (contact_id);
  915. CREATE INDEX contactprop_idx2 ON contactprop USING btree (type_id);
  916. COMMENT ON TABLE contactprop IS 'A contact can have any number of slot-value property
  917. tags attached to it. This is an alternative to hardcoding a list of columns in the
  918. relational schema, and is completely extensible.';
  919. -- ================================================
  920. -- TABLE: contact_relationship
  921. -- ================================================
  922. create table contact_relationship (
  923. contact_relationship_id bigserial not null,
  924. primary key (contact_relationship_id),
  925. type_id bigint not null,
  926. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  927. subject_id bigint not null,
  928. foreign key (subject_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  929. object_id bigint not null,
  930. foreign key (object_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  931. constraint contact_relationship_c1 unique (subject_id,object_id,type_id)
  932. );
  933. create index contact_relationship_idx1 on contact_relationship (type_id);
  934. create index contact_relationship_idx2 on contact_relationship (subject_id);
  935. create index contact_relationship_idx3 on contact_relationship (object_id);
  936. COMMENT ON TABLE contact_relationship IS 'Model relationships between contacts';
  937. COMMENT ON COLUMN contact_relationship.subject_id IS 'The subject of the subj-predicate-obj sentence. In a DAG, this corresponds to the child node.';
  938. COMMENT ON COLUMN contact_relationship.object_id IS 'The object of the subj-predicate-obj sentence. In a DAG, this corresponds to the parent node.';
  939. COMMENT ON COLUMN contact_relationship.type_id IS 'Relationship type between subject and object. This is a cvterm, typically from the OBO relationship ontology, although other relationship types are allowed.';
  940. -- $Id: pub.sql,v 1.27 2007-02-19 20:50:44 briano Exp $
  941. -- ==========================================
  942. -- Chado pub module
  943. --
  944. -- =================================================================
  945. -- Dependencies:
  946. --
  947. -- :import cvterm from cv
  948. -- :import dbxref from db
  949. -- :import analysis from companalysis
  950. -- :import contact from contact
  951. -- =================================================================
  952. -- ================================================
  953. -- TABLE: pub
  954. -- ================================================
  955. create table pub (
  956. pub_id bigserial not null,
  957. primary key (pub_id),
  958. title text,
  959. volumetitle text,
  960. volume varchar(255),
  961. series_name varchar(255),
  962. issue varchar(255),
  963. pyear varchar(255),
  964. pages varchar(255),
  965. miniref varchar(255),
  966. uniquename text not null,
  967. type_id bigint not null,
  968. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  969. is_obsolete boolean default 'false',
  970. publisher varchar(255),
  971. pubplace varchar(255),
  972. constraint pub_c1 unique (uniquename)
  973. );
  974. CREATE INDEX pub_idx1 ON pub (type_id);
  975. COMMENT ON TABLE pub IS 'A documented provenance artefact - publications,
  976. documents, personal communication.';
  977. COMMENT ON COLUMN pub.title IS 'Descriptive general heading.';
  978. COMMENT ON COLUMN pub.volumetitle IS 'Title of part if one of a series.';
  979. COMMENT ON COLUMN pub.series_name IS 'Full name of (journal) series.';
  980. COMMENT ON COLUMN pub.pages IS 'Page number range[s], e.g. 457--459, viii + 664pp, lv--lvii.';
  981. COMMENT ON COLUMN pub.type_id IS 'The type of the publication (book, journal, poem, graffiti, etc). Uses pub cv.';
  982. -- ================================================
  983. -- TABLE: pub_relationship
  984. -- ================================================
  985. create table pub_relationship (
  986. pub_relationship_id bigserial not null,
  987. primary key (pub_relationship_id),
  988. subject_id bigint not null,
  989. foreign key (subject_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  990. object_id bigint not null,
  991. foreign key (object_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  992. type_id bigint not null,
  993. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  994. constraint pub_relationship_c1 unique (subject_id,object_id,type_id)
  995. );
  996. create index pub_relationship_idx1 on pub_relationship (subject_id);
  997. create index pub_relationship_idx2 on pub_relationship (object_id);
  998. create index pub_relationship_idx3 on pub_relationship (type_id);
  999. COMMENT ON TABLE pub_relationship IS 'Handle relationships between
  1000. publications, e.g. when one publication makes others obsolete, when one
  1001. publication contains errata with respect to other publication(s), or
  1002. when one publication also appears in another pub.';
  1003. -- ================================================
  1004. -- TABLE: pub_dbxref
  1005. -- ================================================
  1006. create table pub_dbxref (
  1007. pub_dbxref_id bigserial not null,
  1008. primary key (pub_dbxref_id),
  1009. pub_id bigint not null,
  1010. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1011. dbxref_id bigint not null,
  1012. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1013. is_current boolean not null default 'true',
  1014. constraint pub_dbxref_c1 unique (pub_id,dbxref_id)
  1015. );
  1016. create index pub_dbxref_idx1 on pub_dbxref (pub_id);
  1017. create index pub_dbxref_idx2 on pub_dbxref (dbxref_id);
  1018. COMMENT ON TABLE pub_dbxref IS 'Handle links to repositories,
  1019. e.g. Pubmed, Biosis, zoorec, OCLC, Medline, ISSN, coden...';
  1020. -- ================================================
  1021. -- TABLE: pubauthor
  1022. -- ================================================
  1023. create table pubauthor (
  1024. pubauthor_id bigserial not null,
  1025. primary key (pubauthor_id),
  1026. pub_id bigint not null,
  1027. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1028. rank int not null,
  1029. editor boolean default 'false',
  1030. surname varchar(100) not null,
  1031. givennames varchar(100),
  1032. suffix varchar(100),
  1033. constraint pubauthor_c1 unique (pub_id, rank)
  1034. );
  1035. create index pubauthor_idx2 on pubauthor (pub_id);
  1036. COMMENT ON TABLE pubauthor IS 'An author for a publication. Note the denormalisation (hence lack of _ in table name) - this is deliberate as it is in general too hard to assign IDs to authors.';
  1037. COMMENT ON COLUMN pubauthor.givennames IS 'First name, initials';
  1038. COMMENT ON COLUMN pubauthor.suffix IS 'Jr., Sr., etc';
  1039. COMMENT ON COLUMN pubauthor.rank IS 'Order of author in author list for this pub - order is important.';
  1040. COMMENT ON COLUMN pubauthor.editor IS 'Indicates whether the author is an editor for linked publication. Note: this is a boolean field but does not follow the normal chado convention for naming booleans.';
  1041. -- ================================================
  1042. -- TABLE: pubprop
  1043. -- ================================================
  1044. create table pubprop (
  1045. pubprop_id bigserial not null,
  1046. primary key (pubprop_id),
  1047. pub_id bigint not null,
  1048. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1049. type_id bigint not null,
  1050. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1051. value text not null,
  1052. rank integer,
  1053. constraint pubprop_c1 unique (pub_id,type_id,rank)
  1054. );
  1055. create index pubprop_idx1 on pubprop (pub_id);
  1056. create index pubprop_idx2 on pubprop (type_id);
  1057. COMMENT ON TABLE pubprop IS 'Property-value pairs for a pub. Follows standard chado pattern.';
  1058. -- ================================================
  1059. -- TABLE: pubauthor_contact
  1060. -- ================================================
  1061. CREATE TABLE pubauthor_contact (
  1062. pubauthor_contact_id bigserial primary key NOT NULL,
  1063. contact_id bigint NOT NULL,
  1064. pubauthor_id bigint NOT NULL,
  1065. CONSTRAINT pubauthor_contact_c1 UNIQUE (contact_id, pubauthor_id),
  1066. FOREIGN KEY (pubauthor_id) REFERENCES pubauthor(pubauthor_id) ON DELETE CASCADE,
  1067. FOREIGN KEY (contact_id) REFERENCES contact(contact_id) ON DELETE CASCADE
  1068. );
  1069. CREATE INDEX pubauthor_contact_idx1 ON pubauthor USING btree (pubauthor_id);
  1070. CREATE INDEX pubauthor_contact_idx2 ON contact USING btree (contact_id);
  1071. COMMENT ON TABLE pubauthor_contact IS 'An author on a publication may have a corresponding entry in the contact table and this table can link the two.';
  1072. -- $Id: organism.sql,v 1.19 2007/04/01 18:45:41 briano Exp $
  1073. -- ==========================================
  1074. -- Chado organism module
  1075. --
  1076. -- ============
  1077. -- DEPENDENCIES
  1078. -- ============
  1079. -- :import cvterm from cv
  1080. -- :import dbxref from db
  1081. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1082. -- ================================================
  1083. -- TABLE: organism
  1084. -- ================================================
  1085. create table organism (
  1086. organism_id bigserial not null,
  1087. primary key (organism_id),
  1088. abbreviation varchar(255) null,
  1089. genus varchar(255) not null,
  1090. species varchar(255) not null,
  1091. common_name varchar(255) null,
  1092. infraspecific_name varchar(1024) null,
  1093. type_id bigint default null,
  1094. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  1095. comment text null,
  1096. constraint organism_c1 unique (genus,species,type_id,infraspecific_name)
  1097. );
  1098. COMMENT ON TABLE organism IS 'The organismal taxonomic
  1099. classification. Note that phylogenies are represented using the
  1100. phylogeny module, and taxonomies can be represented using the cvterm
  1101. module or the phylogeny module.';
  1102. COMMENT ON COLUMN organism.species IS 'A type of organism is always
  1103. uniquely identified by genus and species. When mapping from the NCBI
  1104. taxonomy names.dmp file, this column must be used where it
  1105. is present, as the common_name column is not always unique (e.g. environmental
  1106. samples). If a particular strain or subspecies is to be represented,
  1107. this is appended onto the species name. Follows standard NCBI taxonomy
  1108. pattern.';
  1109. COMMENT ON COLUMN organism.type_id IS 'A controlled vocabulary term that
  1110. specifies the organism rank below species. It is used when an infraspecific
  1111. name is provided. Ideally, the rank should be a valid ICN name such as
  1112. subspecies, varietas, subvarietas, forma and subforma';
  1113. COMMENT ON COLUMN organism.infraspecific_name IS 'The scientific name for any taxon
  1114. below the rank of species. The rank should be specified using the type_id field
  1115. and the name is provided here.';
  1116. -- ================================================
  1117. -- TABLE: organism_dbxref
  1118. -- ================================================
  1119. create table organism_dbxref (
  1120. organism_dbxref_id bigserial not null,
  1121. primary key (organism_dbxref_id),
  1122. organism_id bigint not null,
  1123. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  1124. dbxref_id bigint not null,
  1125. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1126. constraint organism_dbxref_c1 unique (organism_id,dbxref_id)
  1127. );
  1128. create index organism_dbxref_idx1 on organism_dbxref (organism_id);
  1129. create index organism_dbxref_idx2 on organism_dbxref (dbxref_id);
  1130. COMMENT ON TABLE organism_dbxref IS 'Links an organism to a dbxref.';
  1131. -- ================================================
  1132. -- TABLE: organismprop
  1133. -- ================================================
  1134. create table organismprop (
  1135. organismprop_id bigserial not null,
  1136. primary key (organismprop_id),
  1137. organism_id bigint not null,
  1138. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  1139. type_id bigint not null,
  1140. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1141. value text null,
  1142. rank int not null default 0,
  1143. constraint organismprop_c1 unique (organism_id,type_id,rank)
  1144. );
  1145. create index organismprop_idx1 on organismprop (organism_id);
  1146. create index organismprop_idx2 on organismprop (type_id);
  1147. COMMENT ON TABLE organismprop IS 'Tag-value properties - follows standard chado model.';
  1148. -- ================================================
  1149. -- TABLE: organismprop_pub
  1150. -- ================================================
  1151. create table organismprop_pub (
  1152. organismprop_pub_id bigserial not null,
  1153. primary key (organismprop_pub_id),
  1154. organismprop_id bigint not null,
  1155. foreign key (organismprop_id) references organismprop (organismprop_id) on delete cascade INITIALLY DEFERRED,
  1156. pub_id bigint not null,
  1157. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1158. value text null,
  1159. rank int not null default 0,
  1160. constraint organismprop_pub_c1 unique (organismprop_id,pub_id)
  1161. );
  1162. create index organismprop_pub_idx1 on organismprop_pub (organismprop_id);
  1163. create index organismprop_pub_idx2 on organismprop_pub (pub_id);
  1164. COMMENT ON TABLE organismprop_pub IS 'Attribution for organismprop.';
  1165. -- ================================================
  1166. -- TABLE: organism_pub
  1167. -- ================================================
  1168. create table organism_pub (
  1169. organism_pub_id bigserial not null,
  1170. primary key (organism_pub_id),
  1171. organism_id bigint not null,
  1172. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  1173. pub_id bigint not null,
  1174. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1175. constraint organism_pub_c1 unique (organism_id,pub_id)
  1176. );
  1177. create index organism_pub_idx1 on organism_pub (organism_id);
  1178. create index organism_pub_idx2 on organism_pub (pub_id);
  1179. COMMENT ON TABLE organism_pub IS 'Attribution for organism.';
  1180. -- ================================================
  1181. -- TABLE: organism_cvterm
  1182. -- ================================================
  1183. create table organism_cvterm (
  1184. organism_cvterm_id bigserial not null,
  1185. primary key (organism_cvterm_id),
  1186. organism_id bigint not null,
  1187. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY
  1188. DEFERRED,
  1189. cvterm_id bigint not null,
  1190. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1191. rank int not null default 0,
  1192. pub_id bigint not null,
  1193. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1194. constraint organism_cvterm_c1 unique(organism_id,cvterm_id,pub_id)
  1195. );
  1196. create index organism_cvterm_idx1 on organism_cvterm (organism_id);
  1197. create index organism_cvterm_idx2 on organism_cvterm (cvterm_id);
  1198. COMMENT ON TABLE organism_cvterm IS 'organism to cvterm associations. Examples: taxonomic name';
  1199. COMMENT ON COLUMN organism_cvterm.rank IS 'Property-Value
  1200. ordering. Any organism_cvterm can have multiple values for any particular
  1201. property type - these are ordered in a list using rank, counting from
  1202. zero. For properties that are single-valued rather than multi-valued,
  1203. the default 0 value should be used';
  1204. -- ================================================
  1205. -- TABLE: organism_cvtermprop
  1206. -- ================================================
  1207. create table organism_cvtermprop (
  1208. organism_cvtermprop_id bigserial not null,
  1209. primary key (organism_cvtermprop_id),
  1210. organism_cvterm_id bigint not null,
  1211. foreign key (organism_cvterm_id) references organism_cvterm (organism_cvterm_id) on delete cascade,
  1212. type_id bigint not null,
  1213. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1214. value text null,
  1215. rank int not null default 0,
  1216. constraint organism_cvtermprop_c1 unique (organism_cvterm_id,type_id,rank)
  1217. );
  1218. create index organism_cvtermprop_idx1 on organism_cvtermprop (organism_cvterm_id);
  1219. create index organism_cvtermprop_idx2 on organism_cvtermprop (type_id);
  1220. COMMENT ON TABLE organism_cvtermprop IS 'Extensible properties for
  1221. organism to cvterm associations. Examples: qualifiers';
  1222. COMMENT ON COLUMN organism_cvtermprop.type_id IS 'The name of the
  1223. property/slot is a cvterm. The meaning of the property is defined in
  1224. that cvterm. ';
  1225. COMMENT ON COLUMN organism_cvtermprop.value IS 'The value of the
  1226. property, represented as text. Numeric values are converted to their
  1227. text representation. This is less efficient than using native database
  1228. types, but is easier to query.';
  1229. COMMENT ON COLUMN organism_cvtermprop.rank IS 'Property-Value
  1230. ordering. Any organism_cvterm can have multiple values for any particular
  1231. property type - these are ordered in a list using rank, counting from
  1232. zero. For properties that are single-valued rather than multi-valued,
  1233. the default 0 value should be used';
  1234. -- ================================================
  1235. -- TABLE: organism_relationship
  1236. -- ================================================
  1237. CREATE TABLE organism_relationship (
  1238. organism_relationship_id bigserial primary key NOT NULL,
  1239. subject_id bigint NOT NULL,
  1240. object_id bigint NOT NULL,
  1241. type_id bigint NOT NULL,
  1242. rank integer DEFAULT 0 NOT NULL,
  1243. CONSTRAINT organism_relationship_c1 UNIQUE (subject_id, object_id, type_id, rank),
  1244. FOREIGN KEY (object_id) REFERENCES organism(organism_id) ON DELETE CASCADE,
  1245. FOREIGN KEY (subject_id) REFERENCES organism(organism_id) ON DELETE CASCADE,
  1246. FOREIGN KEY (type_id) REFERENCES cvterm(cvterm_id) ON DELETE CASCADE
  1247. );
  1248. CREATE INDEX organism_relationship_idx1 ON organism_relationship USING btree (subject_id);
  1249. CREATE INDEX organism_relationship_idx2 ON organism_relationship USING btree (object_id);
  1250. CREATE INDEX organism_relationship_idx3 ON organism_relationship USING btree (type_id);
  1251. COMMENT ON TABLE organism_relationship IS 'Specifies relationships between organisms
  1252. that are not taxonomic. For example, in breeding, relationships such as
  1253. "sterile_with", "incompatible_with", or "fertile_with" would be appropriate. Taxonomic
  1254. relatinoships should be housed in the phylogeny tables.';
  1255. CREATE OR REPLACE FUNCTION get_organism_id(VARCHAR,VARCHAR) RETURNS BIGINT
  1256. AS '
  1257. SELECT organism_id
  1258. FROM organism
  1259. WHERE genus=$1
  1260. AND species=$2
  1261. ' LANGUAGE 'sql';
  1262. CREATE OR REPLACE FUNCTION get_organism_id(VARCHAR) RETURNS BIGINT
  1263. AS '
  1264. SELECT organism_id
  1265. FROM organism
  1266. WHERE genus=substring($1,1,position('' '' IN $1)-1)
  1267. AND species=substring($1,position('' '' IN $1)+1)
  1268. ' LANGUAGE 'sql';
  1269. CREATE OR REPLACE FUNCTION get_organism_id_abbrev(VARCHAR) RETURNS BIGINT
  1270. AS '
  1271. SELECT organism_id
  1272. FROM organism
  1273. WHERE substr(genus,1,1)=substring($1,1,1)
  1274. AND species=substring($1,position('' '' IN $1)+1)
  1275. ' LANGUAGE 'sql';
  1276. CREATE OR REPLACE FUNCTION store_organism (VARCHAR,VARCHAR,VARCHAR)
  1277. RETURNS BIGINT AS
  1278. 'DECLARE
  1279. v_genus ALIAS FOR $1;
  1280. v_species ALIAS FOR $2;
  1281. v_common_name ALIAS FOR $3;
  1282. v_organism_id BIGINT;
  1283. BEGIN
  1284. SELECT INTO v_organism_id organism_id
  1285. FROM organism
  1286. WHERE genus=v_genus AND
  1287. species=v_species;
  1288. IF NOT FOUND THEN
  1289. INSERT INTO organism
  1290. (genus,species,common_name)
  1291. VALUES
  1292. (v_genus,v_species,v_common_name);
  1293. RETURN currval(''organism_organism_id_seq'');
  1294. ELSE
  1295. UPDATE organism
  1296. SET common_name=v_common_name
  1297. WHERE organism_id = v_organism_id;
  1298. END IF;
  1299. RETURN v_organism_id;
  1300. END;
  1301. ' LANGUAGE 'plpgsql';
  1302. -- $Id: sequence.sql,v 1.69 2009-05-14 02:44:23 scottcain Exp $
  1303. -- ==========================================
  1304. -- Chado sequence module
  1305. --
  1306. -- =================================================================
  1307. -- Dependencies:
  1308. --
  1309. -- :import cvterm from cv
  1310. -- :import pub from pub
  1311. -- :import organism from organism
  1312. -- :import dbxref from db
  1313. -- :import contact from contact
  1314. -- =================================================================
  1315. -- ================================================
  1316. -- TABLE: feature
  1317. -- ================================================
  1318. create table feature (
  1319. feature_id bigserial not null,
  1320. primary key (feature_id),
  1321. dbxref_id bigint,
  1322. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  1323. organism_id bigint not null,
  1324. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  1325. name varchar(255),
  1326. uniquename text not null,
  1327. residues text,
  1328. seqlen bigint,
  1329. md5checksum char(32),
  1330. type_id bigint not null,
  1331. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1332. is_analysis boolean not null default 'false',
  1333. is_obsolete boolean not null default 'false',
  1334. timeaccessioned timestamp not null default current_timestamp,
  1335. timelastmodified timestamp not null default current_timestamp,
  1336. constraint feature_c1 unique (organism_id,uniquename,type_id)
  1337. );
  1338. create sequence feature_uniquename_seq;
  1339. create index feature_name_ind1 on feature(name);
  1340. create index feature_idx1 on feature (dbxref_id);
  1341. create index feature_idx2 on feature (organism_id);
  1342. create index feature_idx3 on feature (type_id);
  1343. create index feature_idx4 on feature (uniquename);
  1344. create index feature_idx5 on feature (lower(name));
  1345. create index feature_idx1b on feature (feature_id, dbxref_id) where dbxref_id is not null;
  1346. ALTER TABLE feature ALTER residues SET STORAGE EXTERNAL;
  1347. COMMENT ON TABLE feature IS 'A feature is a biological sequence or a
  1348. section of a biological sequence, or a collection of such
  1349. sections. Examples include genes, exons, transcripts, regulatory
  1350. regions, polypeptides, protein domains, chromosome sequences, sequence
  1351. variations, cross-genome match regions such as hits and HSPs and so
  1352. on; see the Sequence Ontology for more. The combination of
  1353. organism_id, uniquename and type_id should be unique.';
  1354. COMMENT ON COLUMN feature.dbxref_id IS 'An optional primary public stable
  1355. identifier for this feature. Secondary identifiers and external
  1356. dbxrefs go in the table feature_dbxref.';
  1357. COMMENT ON COLUMN feature.organism_id IS 'The organism to which this feature
  1358. belongs. This column is mandatory.';
  1359. COMMENT ON COLUMN feature.name IS 'The optional human-readable common name for
  1360. a feature, for display purposes.';
  1361. COMMENT ON COLUMN feature.uniquename IS 'The unique name for a feature; may
  1362. not be necessarily be particularly human-readable, although this is
  1363. preferred. This name must be unique for this type of feature within
  1364. this organism.';
  1365. COMMENT ON COLUMN feature.residues IS 'A sequence of alphabetic characters
  1366. representing biological residues (nucleic acids, amino acids). This
  1367. column does not need to be manifested for all features; it is optional
  1368. for features such as exons where the residues can be derived from the
  1369. featureloc. It is recommended that the value for this column be
  1370. manifested for features which may may non-contiguous sublocations (e.g.
  1371. transcripts), since derivation at query time is non-trivial. For
  1372. expressed sequence, the DNA sequence should be used rather than the
  1373. RNA sequence. The default storage method for the residues column is
  1374. EXTERNAL, which will store it uncompressed to make substring operations
  1375. faster.';
  1376. COMMENT ON COLUMN feature.seqlen IS 'The length of the residue feature. See
  1377. column:residues. This column is partially redundant with the residues
  1378. column, and also with featureloc. This column is required because the
  1379. location may be unknown and the residue sequence may not be
  1380. manifested, yet it may be desirable to store and query the length of
  1381. the feature. The seqlen should always be manifested where the length
  1382. of the sequence is known.';
  1383. COMMENT ON COLUMN feature.md5checksum IS 'The 32-character checksum of the sequence,
  1384. calculated using the MD5 algorithm. This is practically guaranteed to
  1385. be unique for any feature. This column thus acts as a unique
  1386. identifier on the mathematical sequence.';
  1387. COMMENT ON COLUMN feature.type_id IS 'A required reference to a table:cvterm
  1388. giving the feature type. This will typically be a Sequence Ontology
  1389. identifier. This column is thus used to subclass the feature table.';
  1390. COMMENT ON COLUMN feature.is_analysis IS 'Boolean indicating whether this
  1391. feature is annotated or the result of an automated analysis. Analysis
  1392. results also use the companalysis module. Note that the dividing line
  1393. between analysis and annotation may be fuzzy, this should be determined on
  1394. a per-project basis in a consistent manner. One requirement is that
  1395. there should only be one non-analysis version of each wild-type gene
  1396. feature in a genome, whereas the same gene feature can be predicted
  1397. multiple times in different analyses.';
  1398. COMMENT ON COLUMN feature.is_obsolete IS 'Boolean indicating whether this
  1399. feature has been obsoleted. Some chado instances may choose to simply
  1400. remove the feature altogether, others may choose to keep an obsolete
  1401. row in the table.';
  1402. COMMENT ON COLUMN feature.timeaccessioned IS 'For handling object
  1403. accession or modification timestamps (as opposed to database auditing data,
  1404. handled elsewhere). The expectation is that these fields would be
  1405. available to software interacting with chado.';
  1406. COMMENT ON COLUMN feature.timelastmodified IS 'For handling object
  1407. accession or modification timestamps (as opposed to database auditing data,
  1408. handled elsewhere). The expectation is that these fields would be
  1409. available to software interacting with chado.';
  1410. --- COMMENT ON INDEX feature_c1 IS 'Any feature can be globally identified
  1411. --- by the combination of organism, uniquename and feature type';
  1412. -- ================================================
  1413. -- TABLE: featureloc
  1414. -- ================================================
  1415. create table featureloc (
  1416. featureloc_id bigserial not null,
  1417. primary key (featureloc_id),
  1418. feature_id bigint not null,
  1419. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1420. srcfeature_id bigint,
  1421. foreign key (srcfeature_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  1422. fmin bigint,
  1423. is_fmin_partial boolean not null default 'false',
  1424. fmax bigint,
  1425. is_fmax_partial boolean not null default 'false',
  1426. strand smallint,
  1427. phase int,
  1428. residue_info text,
  1429. locgroup int not null default 0,
  1430. rank int not null default 0,
  1431. constraint featureloc_c1 unique (feature_id,locgroup,rank),
  1432. constraint featureloc_c2 check (fmin <= fmax)
  1433. );
  1434. create index featureloc_idx1 on featureloc (feature_id);
  1435. create index featureloc_idx2 on featureloc (srcfeature_id);
  1436. create index featureloc_idx3 on featureloc (srcfeature_id,fmin,fmax);
  1437. create index featureloc_idx1b on featureloc (feature_id, fmin, fmax);
  1438. COMMENT ON TABLE featureloc IS 'The location of a feature relative to
  1439. another feature. Important: interbase coordinates are used. This is
  1440. vital as it allows us to represent zero-length features e.g. splice
  1441. sites, insertion points without an awkward fuzzy system. Features
  1442. typically have exactly ONE location, but this need not be the
  1443. case. Some features may not be localized (e.g. a gene that has been
  1444. characterized genetically but no sequence or molecular information is
  1445. available). Note on multiple locations: Each feature can have 0 or
  1446. more locations. Multiple locations do NOT indicate non-contiguous
  1447. locations (if a feature such as a transcript has a non-contiguous
  1448. location, then the subfeatures such as exons should always be
  1449. manifested). Instead, multiple featurelocs for a feature designate
  1450. alternate locations or grouped locations; for instance, a feature
  1451. designating a blast hit or hsp will have two locations, one on the
  1452. query feature, one on the subject feature. Features representing
  1453. sequence variation could have alternate locations instantiated on a
  1454. feature on the mutant strain. The column:rank is used to
  1455. differentiate these different locations. Reflexive locations should
  1456. never be stored - this is for -proper- (i.e. non-self) locations only; nothing should be located relative to itself.';
  1457. COMMENT ON COLUMN featureloc.feature_id IS 'The feature that is being located. Any feature can have zero or more featurelocs.';
  1458. COMMENT ON COLUMN featureloc.srcfeature_id IS 'The source feature which this location is relative to. Every location is relative to another feature (however, this column is nullable, because the srcfeature may not be known). All locations are -proper- that is, nothing should be located relative to itself. No cycles are allowed in the featureloc graph.';
  1459. COMMENT ON COLUMN featureloc.fmin IS 'The leftmost/minimal boundary in the linear range represented by the featureloc. Sometimes (e.g. in Bioperl) this is called -start- although this is confusing because it does not necessarily represent the 5-prime coordinate. Important: This is space-based (interbase) coordinates, counting from zero. To convert this to the leftmost position in a base-oriented system (eg GFF, Bioperl), add 1 to fmin.';
  1460. COMMENT ON COLUMN featureloc.fmax IS 'The rightmost/maximal boundary in the linear range represented by the featureloc. Sometimes (e.g. in bioperl) this is called -end- although this is confusing because it does not necessarily represent the 3-prime coordinate. Important: This is space-based (interbase) coordinates, counting from zero. No conversion is required to go from fmax to the rightmost coordinate in a base-oriented system that counts from 1 (e.g. GFF, Bioperl).';
  1461. COMMENT ON COLUMN featureloc.strand IS 'The orientation/directionality of the
  1462. location. Should be 0, -1 or +1.';
  1463. COMMENT ON COLUMN featureloc.rank IS 'Used when a feature has >1
  1464. location, otherwise the default rank 0 is used. Some features (e.g.
  1465. blast hits and HSPs) have two locations - one on the query and one on
  1466. the subject. Rank is used to differentiate these. Rank=0 is always
  1467. used for the query, Rank=1 for the subject. For multiple alignments,
  1468. assignment of rank is arbitrary. Rank is also used for
  1469. sequence_variant features, such as SNPs. Rank=0 indicates the wildtype
  1470. (or baseline) feature, Rank=1 indicates the mutant (or compared) feature.';
  1471. COMMENT ON COLUMN featureloc.locgroup IS 'This is used to manifest redundant,
  1472. derivable extra locations for a feature. The default locgroup=0 is
  1473. used for the DIRECT location of a feature. Important: most Chado users may
  1474. never use featurelocs WITH logroup > 0. Transitively derived locations
  1475. are indicated with locgroup > 0. For example, the position of an exon on
  1476. a BAC and in global chromosome coordinates. This column is used to
  1477. differentiate these groupings of locations. The default locgroup 0
  1478. is used for the main or primary location, from which the others can be
  1479. derived via coordinate transformations. Another example of redundant
  1480. locations is storing ORF coordinates relative to both transcript and
  1481. genome. Redundant locations open the possibility of the database
  1482. getting into inconsistent states; this schema gives us the flexibility
  1483. of both warehouse instantiations with redundant locations (easier for
  1484. querying) and management instantiations with no redundant
  1485. locations. An example of using both locgroup and rank: imagine a
  1486. feature indicating a conserved region between the chromosomes of two
  1487. different species. We may want to keep redundant locations on both
  1488. contigs and chromosomes. We would thus have 4 locations for the single
  1489. conserved region feature - two distinct locgroups (contig level and
  1490. chromosome level) and two distinct ranks (for the two species).';
  1491. COMMENT ON COLUMN featureloc.residue_info IS 'Alternative residues,
  1492. when these differ from feature.residues. For instance, a SNP feature
  1493. located on a wild and mutant protein would have different alternative residues.
  1494. for alignment/similarity features, the alternative residues is used to
  1495. represent the alignment string (CIGAR format). Note on variation
  1496. features; even if we do not want to instantiate a mutant
  1497. chromosome/contig feature, we can still represent a SNP etc with 2
  1498. locations, one (rank 0) on the genome, the other (rank 1) would have
  1499. most fields null, except for alternative residues.';
  1500. COMMENT ON COLUMN featureloc.phase IS 'Phase of translation with
  1501. respect to srcfeature_id.
  1502. Values are 0, 1, 2. It may not be possible to manifest this column for
  1503. some features such as exons, because the phase is dependant on the
  1504. spliceform (the same exon can appear in multiple spliceforms). This column is mostly useful for predicted exons and CDSs.';
  1505. COMMENT ON COLUMN featureloc.is_fmin_partial IS 'This is typically
  1506. false, but may be true if the value for column:fmin is inaccurate or
  1507. the leftmost part of the range is unknown/unbounded.';
  1508. COMMENT ON COLUMN featureloc.is_fmax_partial IS 'This is typically
  1509. false, but may be true if the value for column:fmax is inaccurate or
  1510. the rightmost part of the range is unknown/unbounded.';
  1511. --- COMMENT ON INDEX featureloc_c1 IS 'locgroup and rank serve to uniquely
  1512. --- partition locations for any one feature';
  1513. -- ================================================
  1514. -- TABLE: featureloc_pub
  1515. -- ================================================
  1516. create table featureloc_pub (
  1517. featureloc_pub_id bigserial not null,
  1518. primary key (featureloc_pub_id),
  1519. featureloc_id bigint not null,
  1520. foreign key (featureloc_id) references featureloc (featureloc_id) on delete cascade INITIALLY DEFERRED,
  1521. pub_id bigint not null,
  1522. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1523. constraint featureloc_pub_c1 unique (featureloc_id,pub_id)
  1524. );
  1525. create index featureloc_pub_idx1 on featureloc_pub (featureloc_id);
  1526. create index featureloc_pub_idx2 on featureloc_pub (pub_id);
  1527. COMMENT ON TABLE featureloc_pub IS 'Provenance of featureloc. Linking table between featurelocs and publications that mention them.';
  1528. -- ================================================
  1529. -- TABLE: feature_pub
  1530. -- ================================================
  1531. create table feature_pub (
  1532. feature_pub_id bigserial not null,
  1533. primary key (feature_pub_id),
  1534. feature_id bigint not null,
  1535. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1536. pub_id bigint not null,
  1537. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1538. constraint feature_pub_c1 unique (feature_id,pub_id)
  1539. );
  1540. create index feature_pub_idx1 on feature_pub (feature_id);
  1541. create index feature_pub_idx2 on feature_pub (pub_id);
  1542. COMMENT ON TABLE feature_pub IS 'Provenance. Linking table between features and publications that mention them.';
  1543. -- ================================================
  1544. -- TABLE: feature_pubprop
  1545. -- ================================================
  1546. create table feature_pubprop (
  1547. feature_pubprop_id bigserial not null,
  1548. primary key (feature_pubprop_id),
  1549. feature_pub_id bigint not null,
  1550. foreign key (feature_pub_id) references feature_pub (feature_pub_id) on delete cascade INITIALLY DEFERRED,
  1551. type_id bigint not null,
  1552. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1553. value text null,
  1554. rank int not null default 0,
  1555. constraint feature_pubprop_c1 unique (feature_pub_id,type_id,rank)
  1556. );
  1557. create index feature_pubprop_idx1 on feature_pubprop (feature_pub_id);
  1558. COMMENT ON TABLE feature_pubprop IS 'Property or attribute of a feature_pub link.';
  1559. -- ================================================
  1560. -- TABLE: featureprop
  1561. -- ================================================
  1562. create table featureprop (
  1563. featureprop_id bigserial not null,
  1564. primary key (featureprop_id),
  1565. feature_id bigint not null,
  1566. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1567. type_id bigint not null,
  1568. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1569. value text null,
  1570. rank int not null default 0,
  1571. constraint featureprop_c1 unique (feature_id,type_id,rank)
  1572. );
  1573. create index featureprop_idx1 on featureprop (feature_id);
  1574. create index featureprop_idx2 on featureprop (type_id);
  1575. COMMENT ON TABLE featureprop IS 'A feature can have any number of slot-value property tags attached to it. This is an alternative to hardcoding a list of columns in the relational schema, and is completely extensible.';
  1576. COMMENT ON COLUMN featureprop.type_id IS 'The name of the
  1577. property/slot is a cvterm. The meaning of the property is defined in
  1578. that cvterm. Certain property types will only apply to certain feature
  1579. types (e.g. the anticodon property will only apply to tRNA features) ;
  1580. the types here come from the sequence feature property ontology.';
  1581. COMMENT ON COLUMN featureprop.value IS 'The value of the property, represented as text. Numeric values are converted to their text representation. This is less efficient than using native database types, but is easier to query.';
  1582. COMMENT ON COLUMN featureprop.rank IS 'Property-Value ordering. Any
  1583. feature can have multiple values for any particular property type -
  1584. these are ordered in a list using rank, counting from zero. For
  1585. properties that are single-valued rather than multi-valued, the
  1586. default 0 value should be used';
  1587. COMMENT ON INDEX featureprop_c1 IS 'For any one feature, multivalued
  1588. property-value pairs must be differentiated by rank.';
  1589. -- ================================================
  1590. -- TABLE: featureprop_pub
  1591. -- ================================================
  1592. create table featureprop_pub (
  1593. featureprop_pub_id bigserial not null,
  1594. primary key (featureprop_pub_id),
  1595. featureprop_id bigint not null,
  1596. foreign key (featureprop_id) references featureprop (featureprop_id) on delete cascade INITIALLY DEFERRED,
  1597. pub_id bigint not null,
  1598. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1599. constraint featureprop_pub_c1 unique (featureprop_id,pub_id)
  1600. );
  1601. create index featureprop_pub_idx1 on featureprop_pub (featureprop_id);
  1602. create index featureprop_pub_idx2 on featureprop_pub (pub_id);
  1603. COMMENT ON TABLE featureprop_pub IS 'Provenance. Any featureprop assignment can optionally be supported by a publication.';
  1604. -- ================================================
  1605. -- TABLE: feature_dbxref
  1606. -- ================================================
  1607. create table feature_dbxref (
  1608. feature_dbxref_id bigserial not null,
  1609. primary key (feature_dbxref_id),
  1610. feature_id bigint not null,
  1611. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1612. dbxref_id bigint not null,
  1613. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1614. is_current boolean not null default 'true',
  1615. constraint feature_dbxref_c1 unique (feature_id,dbxref_id)
  1616. );
  1617. create index feature_dbxref_idx1 on feature_dbxref (feature_id);
  1618. create index feature_dbxref_idx2 on feature_dbxref (dbxref_id);
  1619. COMMENT ON TABLE feature_dbxref IS 'Links a feature to dbxrefs. This is for secondary identifiers; primary identifiers should use feature.dbxref_id.';
  1620. COMMENT ON COLUMN feature_dbxref.is_current IS 'True if this secondary dbxref is the most up to date accession in the corresponding db. Retired accessions should set this field to false';
  1621. -- ================================================
  1622. -- TABLE: feature_relationship
  1623. -- ================================================
  1624. create table feature_relationship (
  1625. feature_relationship_id bigserial not null,
  1626. primary key (feature_relationship_id),
  1627. subject_id bigint not null,
  1628. foreign key (subject_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1629. object_id bigint not null,
  1630. foreign key (object_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1631. type_id bigint not null,
  1632. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1633. value text null,
  1634. rank int not null default 0,
  1635. constraint feature_relationship_c1 unique (subject_id,object_id,type_id,rank)
  1636. );
  1637. create index feature_relationship_idx1 on feature_relationship (subject_id);
  1638. create index feature_relationship_idx2 on feature_relationship (object_id);
  1639. create index feature_relationship_idx3 on feature_relationship (type_id);
  1640. create index feature_relationship_idx1b on feature_relationship (object_id, subject_id, type_id);
  1641. COMMENT ON TABLE feature_relationship IS 'Features can be arranged in
  1642. graphs, e.g. "exon part_of transcript part_of gene"; If type is
  1643. thought of as a verb, the each arc or edge makes a statement
  1644. [Subject Verb Object]. The object can also be thought of as parent
  1645. (containing feature), and subject as child (contained feature or
  1646. subfeature). We include the relationship rank/order, because even
  1647. though most of the time we can order things implicitly by sequence
  1648. coordinates, we can not always do this - e.g. transpliced genes. It is also
  1649. useful for quickly getting implicit introns.';
  1650. COMMENT ON COLUMN feature_relationship.subject_id IS 'The subject of the subj-predicate-obj sentence. This is typically the subfeature.';
  1651. COMMENT ON COLUMN feature_relationship.object_id IS 'The object of the subj-predicate-obj sentence. This is typically the container feature.';
  1652. COMMENT ON COLUMN feature_relationship.type_id IS 'Relationship type between subject and object. This is a cvterm, typically from the OBO relationship ontology, although other relationship types are allowed. The most common relationship type is OBO_REL:part_of. Valid relationship types are constrained by the Sequence Ontology.';
  1653. COMMENT ON COLUMN feature_relationship.rank IS 'The ordering of subject features with respect to the object feature may be important (for example, exon ordering on a transcript - not always derivable if you take trans spliced genes into consideration). Rank is used to order these; starts from zero.';
  1654. COMMENT ON COLUMN feature_relationship.value IS 'Additional notes or comments.';
  1655. -- ================================================
  1656. -- TABLE: feature_relationship_pub
  1657. -- ================================================
  1658. create table feature_relationship_pub (
  1659. feature_relationship_pub_id bigserial not null,
  1660. primary key (feature_relationship_pub_id),
  1661. feature_relationship_id bigint not null,
  1662. foreign key (feature_relationship_id) references feature_relationship (feature_relationship_id) on delete cascade INITIALLY DEFERRED,
  1663. pub_id bigint not null,
  1664. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1665. constraint feature_relationship_pub_c1 unique (feature_relationship_id,pub_id)
  1666. );
  1667. create index feature_relationship_pub_idx1 on feature_relationship_pub (feature_relationship_id);
  1668. create index feature_relationship_pub_idx2 on feature_relationship_pub (pub_id);
  1669. COMMENT ON TABLE feature_relationship_pub IS 'Provenance. Attach optional evidence to a feature_relationship in the form of a publication.';
  1670. -- ================================================
  1671. -- TABLE: feature_relationshipprop
  1672. -- ================================================
  1673. create table feature_relationshipprop (
  1674. feature_relationshipprop_id bigserial not null,
  1675. primary key (feature_relationshipprop_id),
  1676. feature_relationship_id bigint not null,
  1677. foreign key (feature_relationship_id) references feature_relationship (feature_relationship_id) on delete cascade,
  1678. type_id bigint not null,
  1679. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1680. value text null,
  1681. rank int not null default 0,
  1682. constraint feature_relationshipprop_c1 unique (feature_relationship_id,type_id,rank)
  1683. );
  1684. create index feature_relationshipprop_idx1 on feature_relationshipprop (feature_relationship_id);
  1685. create index feature_relationshipprop_idx2 on feature_relationshipprop (type_id);
  1686. COMMENT ON TABLE feature_relationshipprop IS 'Extensible properties
  1687. for feature_relationships. Analagous structure to featureprop. This
  1688. table is largely optional and not used with a high frequency. Typical
  1689. scenarios may be if one wishes to attach additional data to a
  1690. feature_relationship - for example to say that the
  1691. feature_relationship is only true in certain contexts.';
  1692. COMMENT ON COLUMN feature_relationshipprop.type_id IS 'The name of the
  1693. property/slot is a cvterm. The meaning of the property is defined in
  1694. that cvterm. Currently there is no standard ontology for
  1695. feature_relationship property types.';
  1696. COMMENT ON COLUMN feature_relationshipprop.value IS 'The value of the
  1697. property, represented as text. Numeric values are converted to their
  1698. text representation. This is less efficient than using native database
  1699. types, but is easier to query.';
  1700. COMMENT ON COLUMN feature_relationshipprop.rank IS 'Property-Value
  1701. ordering. Any feature_relationship can have multiple values for any particular
  1702. property type - these are ordered in a list using rank, counting from
  1703. zero. For properties that are single-valued rather than multi-valued,
  1704. the default 0 value should be used.';
  1705. -- ================================================
  1706. -- TABLE: feature_relationshipprop_pub
  1707. -- ================================================
  1708. create table feature_relationshipprop_pub (
  1709. feature_relationshipprop_pub_id bigserial not null,
  1710. primary key (feature_relationshipprop_pub_id),
  1711. feature_relationshipprop_id bigint not null,
  1712. foreign key (feature_relationshipprop_id) references feature_relationshipprop (feature_relationshipprop_id) on delete cascade INITIALLY DEFERRED,
  1713. pub_id bigint not null,
  1714. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1715. constraint feature_relationshipprop_pub_c1 unique (feature_relationshipprop_id,pub_id)
  1716. );
  1717. create index feature_relationshipprop_pub_idx1 on feature_relationshipprop_pub (feature_relationshipprop_id);
  1718. create index feature_relationshipprop_pub_idx2 on feature_relationshipprop_pub (pub_id);
  1719. COMMENT ON TABLE feature_relationshipprop_pub IS 'Provenance for feature_relationshipprop.';
  1720. -- ================================================
  1721. -- TABLE: feature_cvterm
  1722. -- ================================================
  1723. create table feature_cvterm (
  1724. feature_cvterm_id bigserial not null,
  1725. primary key (feature_cvterm_id),
  1726. feature_id bigint not null,
  1727. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1728. cvterm_id bigint not null,
  1729. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1730. pub_id bigint not null,
  1731. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1732. is_not boolean not null default false,
  1733. rank int not null default 0,
  1734. constraint feature_cvterm_c1 unique (feature_id,cvterm_id,pub_id,rank)
  1735. );
  1736. create index feature_cvterm_idx1 on feature_cvterm (feature_id);
  1737. create index feature_cvterm_idx2 on feature_cvterm (cvterm_id);
  1738. create index feature_cvterm_idx3 on feature_cvterm (pub_id);
  1739. COMMENT ON TABLE feature_cvterm IS 'Associate a term from a cv with a feature, for example, GO annotation.';
  1740. COMMENT ON COLUMN feature_cvterm.pub_id IS 'Provenance for the annotation. Each annotation should have a single primary publication (which may be of the appropriate type for computational analyses) where more details can be found. Additional provenance dbxrefs can be attached using feature_cvterm_dbxref.';
  1741. COMMENT ON COLUMN feature_cvterm.is_not IS 'If this is set to true, then this annotation is interpreted as a NEGATIVE annotation - i.e. the feature does NOT have the specified function, process, component, part, etc. See GO docs for more details.';
  1742. -- ================================================
  1743. -- TABLE: feature_cvtermprop
  1744. -- ================================================
  1745. create table feature_cvtermprop (
  1746. feature_cvtermprop_id bigserial not null,
  1747. primary key (feature_cvtermprop_id),
  1748. feature_cvterm_id bigint not null,
  1749. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1750. type_id bigint not null,
  1751. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1752. value text null,
  1753. rank int not null default 0,
  1754. constraint feature_cvtermprop_c1 unique (feature_cvterm_id,type_id,rank)
  1755. );
  1756. create index feature_cvtermprop_idx1 on feature_cvtermprop (feature_cvterm_id);
  1757. create index feature_cvtermprop_idx2 on feature_cvtermprop (type_id);
  1758. COMMENT ON TABLE feature_cvtermprop IS 'Extensible properties for
  1759. feature to cvterm associations. Examples: GO evidence codes;
  1760. qualifiers; metadata such as the date on which the entry was curated
  1761. and the source of the association. See the featureprop table for
  1762. meanings of type_id, value and rank.';
  1763. COMMENT ON COLUMN feature_cvtermprop.type_id IS 'The name of the
  1764. property/slot is a cvterm. The meaning of the property is defined in
  1765. that cvterm. cvterms may come from the OBO evidence code cv.';
  1766. COMMENT ON COLUMN feature_cvtermprop.value IS 'The value of the
  1767. property, represented as text. Numeric values are converted to their
  1768. text representation. This is less efficient than using native database
  1769. types, but is easier to query.';
  1770. COMMENT ON COLUMN feature_cvtermprop.rank IS 'Property-Value
  1771. ordering. Any feature_cvterm can have multiple values for any particular
  1772. property type - these are ordered in a list using rank, counting from
  1773. zero. For properties that are single-valued rather than multi-valued,
  1774. the default 0 value should be used.';
  1775. -- ================================================
  1776. -- TABLE: feature_cvterm_dbxref
  1777. -- ================================================
  1778. create table feature_cvterm_dbxref (
  1779. feature_cvterm_dbxref_id bigserial not null,
  1780. primary key (feature_cvterm_dbxref_id),
  1781. feature_cvterm_id bigint not null,
  1782. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1783. dbxref_id bigint not null,
  1784. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1785. constraint feature_cvterm_dbxref_c1 unique (feature_cvterm_id,dbxref_id)
  1786. );
  1787. create index feature_cvterm_dbxref_idx1 on feature_cvterm_dbxref (feature_cvterm_id);
  1788. create index feature_cvterm_dbxref_idx2 on feature_cvterm_dbxref (dbxref_id);
  1789. COMMENT ON TABLE feature_cvterm_dbxref IS 'Additional dbxrefs for an association. Rows in the feature_cvterm table may be backed up by dbxrefs. For example, a feature_cvterm association that was inferred via a protein-protein interaction may be backed by by refering to the dbxref for the alternate protein. Corresponds to the WITH column in a GO gene association file (but can also be used for other analagous associations). See http://www.geneontology.org/doc/GO.annotation.shtml#file for more details.';
  1790. -- ================================================
  1791. -- TABLE: feature_cvterm_pub
  1792. -- ================================================
  1793. create table feature_cvterm_pub (
  1794. feature_cvterm_pub_id bigserial not null,
  1795. primary key (feature_cvterm_pub_id),
  1796. feature_cvterm_id bigint not null,
  1797. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1798. pub_id bigint not null,
  1799. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1800. constraint feature_cvterm_pub_c1 unique (feature_cvterm_id,pub_id)
  1801. );
  1802. create index feature_cvterm_pub_idx1 on feature_cvterm_pub (feature_cvterm_id);
  1803. create index feature_cvterm_pub_idx2 on feature_cvterm_pub (pub_id);
  1804. COMMENT ON TABLE feature_cvterm_pub IS 'Secondary pubs for an
  1805. association. Each feature_cvterm association is supported by a single
  1806. primary publication. Additional secondary pubs can be added using this
  1807. linking table (in a GO gene association file, these corresponding to
  1808. any IDs after the pipe symbol in the publications column.';
  1809. -- ================================================
  1810. -- TABLE: synonym
  1811. -- ================================================
  1812. create table synonym (
  1813. synonym_id bigserial not null,
  1814. primary key (synonym_id),
  1815. name varchar(255) not null,
  1816. type_id bigint not null,
  1817. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1818. synonym_sgml varchar(255) not null,
  1819. constraint synonym_c1 unique (name,type_id)
  1820. );
  1821. create index synonym_idx1 on synonym (type_id);
  1822. create index synonym_idx2 on synonym ((lower(synonym_sgml)));
  1823. COMMENT ON TABLE synonym IS 'A synonym for a feature. One feature can have multiple synonyms, and the same synonym can apply to multiple features.';
  1824. COMMENT ON COLUMN synonym.name IS 'The synonym itself. Should be human-readable machine-searchable ascii text.';
  1825. COMMENT ON COLUMN synonym.synonym_sgml IS 'The fully specified synonym, with any non-ascii characters encoded in SGML.';
  1826. COMMENT ON COLUMN synonym.type_id IS 'Types would be symbol and fullname for now.';
  1827. -- ================================================
  1828. -- TABLE: feature_synonym
  1829. -- ================================================
  1830. create table feature_synonym (
  1831. feature_synonym_id bigserial not null,
  1832. primary key (feature_synonym_id),
  1833. synonym_id bigint not null,
  1834. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  1835. feature_id bigint not null,
  1836. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1837. pub_id bigint not null,
  1838. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1839. is_current boolean not null default 'false',
  1840. is_internal boolean not null default 'false',
  1841. constraint feature_synonym_c1 unique (synonym_id,feature_id,pub_id)
  1842. );
  1843. create index feature_synonym_idx1 on feature_synonym (synonym_id);
  1844. create index feature_synonym_idx2 on feature_synonym (feature_id);
  1845. create index feature_synonym_idx3 on feature_synonym (pub_id);
  1846. COMMENT ON TABLE feature_synonym IS 'Linking table between feature and synonym.';
  1847. COMMENT ON COLUMN feature_synonym.pub_id IS 'The pub_id link is for relating the usage of a given synonym to the publication in which it was used.';
  1848. COMMENT ON COLUMN feature_synonym.is_current IS 'The is_current boolean indicates whether the linked synonym is the current -official- symbol for the linked feature.';
  1849. COMMENT ON COLUMN feature_synonym.is_internal IS 'Typically a synonym exists so that somebody querying the db with an obsolete name can find the object theyre looking for (under its current name. If the synonym has been used publicly and deliberately (e.g. in a paper), it may also be listed in reports as a synonym. If the synonym was not used deliberately (e.g. there was a typo which went public), then the is_internal boolean may be set to -true- so that it is known that the synonym is -internal- and should be queryable but should not be listed in reports as a valid synonym.';
  1850. -- ================================================
  1851. -- TABLE: feature_contact
  1852. -- ================================================
  1853. CREATE TABLE feature_contact (
  1854. feature_contact_id bigserial primary key NOT NULL,
  1855. feature_id bigint NOT NULL,
  1856. contact_id bigint NOT NULL,
  1857. CONSTRAINT feature_contact_c1 UNIQUE (feature_id, contact_id),
  1858. FOREIGN KEY (contact_id) REFERENCES contact(contact_id) ON DELETE CASCADE,
  1859. FOREIGN KEY (feature_id) REFERENCES feature(feature_id) ON DELETE CASCADE
  1860. );
  1861. CREATE INDEX feature_contact_idx1 ON feature_contact USING btree (feature_id);
  1862. CREATE INDEX feature_contact_idx2 ON feature_contact USING btree (contact_id);
  1863. COMMENT ON TABLE feature_contact IS 'Links contact(s) with a feature. Used to indicate a particular
  1864. person or organization responsible for discovery or that can provide more information on a particular feature.';
  1865. CREATE VIEW type_feature_count AS
  1866. SELECT t.name AS type,count(*) AS num_features
  1867. FROM cvterm AS t INNER JOIN feature ON (type_id=t.cvterm_id)
  1868. GROUP BY t.name;
  1869. COMMENT ON VIEW type_feature_count IS 'per-feature-type feature counts';
  1870. CREATE SCHEMA genetic_code;
  1871. SET search_path = genetic_code,public,pg_catalog;
  1872. CREATE TABLE gencode (
  1873. gencode_id BIGINT PRIMARY KEY NOT NULL,
  1874. organismstr VARCHAR(512) NOT NULL
  1875. );
  1876. CREATE TABLE gencode_codon_aa (
  1877. gencode_id BIGINT NOT NULL REFERENCES gencode(gencode_id),
  1878. codon CHAR(3) NOT NULL,
  1879. aa CHAR(1) NOT NULL,
  1880. CONSTRAINT gencode_codon_unique UNIQUE( gencode_id, codon )
  1881. );
  1882. CREATE INDEX gencode_codon_aa_i1 ON gencode_codon_aa(gencode_id,codon,aa);
  1883. CREATE TABLE gencode_startcodon (
  1884. gencode_id BIGINT NOT NULL REFERENCES gencode(gencode_id),
  1885. codon CHAR(3),
  1886. CONSTRAINT gencode_startcodon_unique UNIQUE( gencode_id, codon )
  1887. );
  1888. SET search_path = public,pg_catalog;
  1889. --
  1890. -- functions operating on featureloc ranges
  1891. --
  1892. -- create a point
  1893. CREATE OR REPLACE FUNCTION create_point (bigint, bigint) RETURNS point AS
  1894. 'SELECT point ($1, $2)'
  1895. LANGUAGE 'sql';
  1896. -- create a range box
  1897. -- (make this immutable so we can index it)
  1898. CREATE OR REPLACE FUNCTION boxrange (bigint, bigint) RETURNS box AS
  1899. 'SELECT box (create_point(0, $1), create_point($2,500000000))'
  1900. LANGUAGE 'sql' IMMUTABLE;
  1901. -- create a query box
  1902. CREATE OR REPLACE FUNCTION boxquery (bigint, bigint) RETURNS box AS
  1903. 'SELECT box (create_point($1, $2), create_point($1, $2))'
  1904. LANGUAGE 'sql' IMMUTABLE;
  1905. --functional index that depends on the above functions
  1906. CREATE INDEX binloc_boxrange ON featureloc USING GIST (boxrange(fmin, fmax));
  1907. CREATE OR REPLACE FUNCTION featureloc_slice(bigint, bigint) RETURNS setof featureloc AS
  1908. 'SELECT * from featureloc where boxquery($1, $2) @ boxrange(fmin,fmax)'
  1909. LANGUAGE 'sql';
  1910. CREATE OR REPLACE FUNCTION featureloc_slice(varchar, bigint, bigint)
  1911. RETURNS setof featureloc AS
  1912. 'SELECT featureloc.*
  1913. FROM featureloc
  1914. INNER JOIN feature AS srcf ON (srcf.feature_id = featureloc.srcfeature_id)
  1915. WHERE boxquery($2, $3) @ boxrange(fmin,fmax)
  1916. AND srcf.name = $1 '
  1917. LANGUAGE 'sql';
  1918. CREATE OR REPLACE FUNCTION featureloc_slice(bigint, bigint, bigint)
  1919. RETURNS setof featureloc AS
  1920. 'SELECT *
  1921. FROM featureloc
  1922. WHERE boxquery($2, $3) @ boxrange(fmin,fmax)
  1923. AND srcfeature_id = $1 '
  1924. LANGUAGE 'sql';
  1925. -- can we not just do these as views?
  1926. CREATE OR REPLACE FUNCTION feature_overlaps(bigint)
  1927. RETURNS setof feature AS
  1928. 'SELECT feature.*
  1929. FROM feature
  1930. INNER JOIN featureloc AS x ON (x.feature_id=feature.feature_id)
  1931. INNER JOIN featureloc AS y ON (y.feature_id = $1)
  1932. WHERE
  1933. x.srcfeature_id = y.srcfeature_id AND
  1934. ( x.fmax >= y.fmin AND x.fmin <= y.fmax ) '
  1935. LANGUAGE 'sql';
  1936. CREATE OR REPLACE FUNCTION feature_disjoint_from(bigint)
  1937. RETURNS setof feature AS
  1938. 'SELECT feature.*
  1939. FROM feature
  1940. INNER JOIN featureloc AS x ON (x.feature_id=feature.feature_id)
  1941. INNER JOIN featureloc AS y ON (y.feature_id = $1)
  1942. WHERE
  1943. x.srcfeature_id = y.srcfeature_id AND
  1944. ( x.fmax < y.fmin OR x.fmin > y.fmax ) '
  1945. LANGUAGE 'sql';
  1946. --Evolution of the methods found in range.plpgsql (C. Pommier)
  1947. --Goal : increase performances of segment fetching
  1948. -- Implies to optimise featureloc_slice
  1949. --Background : The existing featureloc_slice uses uses a spatial rtree index. The spatial objects used are a boxrange ((0,fmin), (fmax,500000000)) and a boxquery ((fmin,fmax),(fmin,fmax)) . The boxranges are indexed.
  1950. -- To speed up things (for gbrowse) featureloc_slice has been overiden to filter simultaneously on the boxrange and the srcfeature_id. This gives good results.
  1951. -- The goal here is to push this logic further and to include the srcfeature_id filter directly into the boxrange object. We propose to consider the following boxs :
  1952. -- boxrange : ((srcfeature_id,fmin),(srcfeature_id,fmax))
  1953. -- boxquery : ((srcfeature_id,fmin),(srcfeature_id,fmax))
  1954. CREATE OR REPLACE FUNCTION boxrange (bigint, bigint, bigint) RETURNS box AS
  1955. 'SELECT box (create_point($1, $2), create_point($1,$3))'
  1956. LANGUAGE 'sql' IMMUTABLE;
  1957. -- create a query box
  1958. CREATE OR REPLACE FUNCTION boxquery (bigint, bigint, bigint) RETURNS box AS
  1959. 'SELECT box (create_point($1, $2), create_point($1, $3))'
  1960. LANGUAGE 'sql' IMMUTABLE;
  1961. CREATE INDEX binloc_boxrange_src ON featureloc USING GIST (boxrange(srcfeature_id,fmin, fmax));
  1962. CREATE OR REPLACE FUNCTION featureloc_slice(bigint, bigint, bigint)
  1963. RETURNS setof featureloc AS
  1964. 'SELECT *
  1965. FROM featureloc
  1966. WHERE boxquery($1, $2, $3) && boxrange(srcfeature_id,fmin,fmax)'
  1967. LANGUAGE 'sql';
  1968. -- reverse_string
  1969. CREATE OR REPLACE FUNCTION reverse_string(TEXT) RETURNS TEXT AS
  1970. '
  1971. DECLARE
  1972. reversed_string TEXT;
  1973. incoming ALIAS FOR $1;
  1974. BEGIN
  1975. reversed_string = '''';
  1976. FOR i IN REVERSE char_length(incoming)..1 loop
  1977. reversed_string = reversed_string || substring(incoming FROM i FOR 1);
  1978. END loop;
  1979. RETURN reversed_string;
  1980. END'
  1981. language plpgsql;
  1982. -- complements DNA
  1983. CREATE OR REPLACE FUNCTION complement_residues(text) RETURNS text AS
  1984. 'SELECT (translate($1,
  1985. ''acgtrymkswhbvdnxACGTRYMKSWHBVDNX'',
  1986. ''tgcayrkmswdvbhnxTGCAYRKMSWDVBHNX''))'
  1987. LANGUAGE 'sql';
  1988. -- revcomp
  1989. CREATE OR REPLACE FUNCTION reverse_complement(TEXT) RETURNS TEXT AS
  1990. 'SELECT reverse_string(complement_residues($1))'
  1991. LANGUAGE 'sql';
  1992. -- DNA to AA
  1993. CREATE OR REPLACE FUNCTION translate_dna(TEXT,BIGINT) RETURNS TEXT AS
  1994. '
  1995. DECLARE
  1996. dnaseq ALIAS FOR $1;
  1997. gcode ALIAS FOR $2;
  1998. translation TEXT;
  1999. dnaseqlen BIGINT;
  2000. codon CHAR(3);
  2001. aa CHAR(1);
  2002. i INT;
  2003. BEGIN
  2004. translation = '''';
  2005. dnaseqlen = char_length(dnaseq);
  2006. i=1;
  2007. WHILE i+1 < dnaseqlen loop
  2008. codon = substring(dnaseq,i,3);
  2009. aa = translate_codon(codon,gcode);
  2010. translation = translation || aa;
  2011. i = i+3;
  2012. END loop;
  2013. RETURN translation;
  2014. END'
  2015. language plpgsql;
  2016. -- DNA to AA, default genetic code
  2017. CREATE OR REPLACE FUNCTION translate_dna(TEXT) RETURNS TEXT AS
  2018. 'SELECT translate_dna($1,1)'
  2019. LANGUAGE 'sql';
  2020. CREATE OR REPLACE FUNCTION translate_codon(TEXT,BIGINT) RETURNS CHAR AS
  2021. 'SELECT aa FROM genetic_code.gencode_codon_aa WHERE codon=$1 AND gencode_id=$2'
  2022. LANGUAGE 'sql';
  2023. CREATE OR REPLACE FUNCTION concat_pair (text, text) RETURNS text AS
  2024. 'SELECT $1 || $2'
  2025. LANGUAGE 'sql';
  2026. CREATE AGGREGATE concat (
  2027. sfunc = concat_pair,
  2028. basetype = text,
  2029. stype = text,
  2030. initcond = ''
  2031. );
  2032. --function to 'unshare' exons. It looks for exons that have the same fmin
  2033. --and fmax and belong to the same gene and only keeps one. The other,
  2034. --redundant exons are marked obsolete in the feature table. Nothing
  2035. --is done with those features' entries in the featureprop, feature_dbxref,
  2036. --feature_pub, or feature_cvterm tables. For the moment, I'm assuming
  2037. --that any annotations that they have when this script is run are
  2038. --identical to their non-obsoleted doppelgangers. If that's not the case,
  2039. --they could be merged via query.
  2040. --
  2041. --The bulk of this code was contributed by Robin Houston at
  2042. --GeneDB/Sanger Centre.
  2043. CREATE OR REPLACE FUNCTION share_exons () RETURNS void AS '
  2044. DECLARE
  2045. BEGIN
  2046. /* Generate a table of shared exons */
  2047. CREATE temporary TABLE shared_exons AS
  2048. SELECT gene.feature_id as gene_feature_id
  2049. , gene.uniquename as gene_uniquename
  2050. , transcript1.uniquename as transcript1
  2051. , exon1.feature_id as exon1_feature_id
  2052. , exon1.uniquename as exon1_uniquename
  2053. , transcript2.uniquename as transcript2
  2054. , exon2.feature_id as exon2_feature_id
  2055. , exon2.uniquename as exon2_uniquename
  2056. , exon1_loc.fmin /* = exon2_loc.fmin */
  2057. , exon1_loc.fmax /* = exon2_loc.fmax */
  2058. FROM feature gene
  2059. JOIN cvterm gene_type ON gene.type_id = gene_type.cvterm_id
  2060. JOIN cv gene_type_cv USING (cv_id)
  2061. JOIN feature_relationship gene_transcript1 ON gene.feature_id = gene_transcript1.object_id
  2062. JOIN feature transcript1 ON gene_transcript1.subject_id = transcript1.feature_id
  2063. JOIN cvterm transcript1_type ON transcript1.type_id = transcript1_type.cvterm_id
  2064. JOIN cv transcript1_type_cv ON transcript1_type.cv_id = transcript1_type_cv.cv_id
  2065. JOIN feature_relationship transcript1_exon1 ON transcript1_exon1.object_id = transcript1.feature_id
  2066. JOIN feature exon1 ON transcript1_exon1.subject_id = exon1.feature_id
  2067. JOIN cvterm exon1_type ON exon1.type_id = exon1_type.cvterm_id
  2068. JOIN cv exon1_type_cv ON exon1_type.cv_id = exon1_type_cv.cv_id
  2069. JOIN featureloc exon1_loc ON exon1_loc.feature_id = exon1.feature_id
  2070. JOIN feature_relationship gene_transcript2 ON gene.feature_id = gene_transcript2.object_id
  2071. JOIN feature transcript2 ON gene_transcript2.subject_id = transcript2.feature_id
  2072. JOIN cvterm transcript2_type ON transcript2.type_id = transcript2_type.cvterm_id
  2073. JOIN cv transcript2_type_cv ON transcript2_type.cv_id = transcript2_type_cv.cv_id
  2074. JOIN feature_relationship transcript2_exon2 ON transcript2_exon2.object_id = transcript2.feature_id
  2075. JOIN feature exon2 ON transcript2_exon2.subject_id = exon2.feature_id
  2076. JOIN cvterm exon2_type ON exon2.type_id = exon2_type.cvterm_id
  2077. JOIN cv exon2_type_cv ON exon2_type.cv_id = exon2_type_cv.cv_id
  2078. JOIN featureloc exon2_loc ON exon2_loc.feature_id = exon2.feature_id
  2079. WHERE gene_type_cv.name = ''sequence''
  2080. AND gene_type.name = ''gene''
  2081. AND transcript1_type_cv.name = ''sequence''
  2082. AND transcript1_type.name = ''mRNA''
  2083. AND transcript2_type_cv.name = ''sequence''
  2084. AND transcript2_type.name = ''mRNA''
  2085. AND exon1_type_cv.name = ''sequence''
  2086. AND exon1_type.name = ''exon''
  2087. AND exon2_type_cv.name = ''sequence''
  2088. AND exon2_type.name = ''exon''
  2089. AND exon1.feature_id < exon2.feature_id
  2090. AND exon1_loc.rank = 0
  2091. AND exon2_loc.rank = 0
  2092. AND exon1_loc.fmin = exon2_loc.fmin
  2093. AND exon1_loc.fmax = exon2_loc.fmax
  2094. ;
  2095. /* Choose one of the shared exons to be the canonical representative.
  2096. We pick the one with the smallest feature_id.
  2097. */
  2098. CREATE temporary TABLE canonical_exon_representatives AS
  2099. SELECT gene_feature_id, min(exon1_feature_id) AS canonical_feature_id, fmin
  2100. FROM shared_exons
  2101. GROUP BY gene_feature_id,fmin
  2102. ;
  2103. CREATE temporary TABLE exon_replacements AS
  2104. SELECT DISTINCT shared_exons.exon2_feature_id AS actual_feature_id
  2105. , canonical_exon_representatives.canonical_feature_id
  2106. , canonical_exon_representatives.fmin
  2107. FROM shared_exons
  2108. JOIN canonical_exon_representatives USING (gene_feature_id)
  2109. WHERE shared_exons.exon2_feature_id <> canonical_exon_representatives.canonical_feature_id
  2110. AND shared_exons.fmin = canonical_exon_representatives.fmin
  2111. ;
  2112. UPDATE feature_relationship
  2113. SET subject_id = (
  2114. SELECT canonical_feature_id
  2115. FROM exon_replacements
  2116. WHERE feature_relationship.subject_id = exon_replacements.actual_feature_id)
  2117. WHERE subject_id IN (
  2118. SELECT actual_feature_id FROM exon_replacements
  2119. );
  2120. UPDATE feature_relationship
  2121. SET object_id = (
  2122. SELECT canonical_feature_id
  2123. FROM exon_replacements
  2124. WHERE feature_relationship.subject_id = exon_replacements.actual_feature_id)
  2125. WHERE object_id IN (
  2126. SELECT actual_feature_id FROM exon_replacements
  2127. );
  2128. UPDATE feature
  2129. SET is_obsolete = true
  2130. WHERE feature_id IN (
  2131. SELECT actual_feature_id FROM exon_replacements
  2132. );
  2133. END;
  2134. ' LANGUAGE 'plpgsql';
  2135. --This is a function to seek out exons of transcripts and orders them,
  2136. --using feature_relationship.rank, in "transcript order" numbering
  2137. --from 0, taking strand into account. It will not touch transcripts that
  2138. --already have their exons ordered (in case they have a non-obvious
  2139. --ordering due to trans splicing). It takes as an argument the
  2140. --feature.type_id of the parent transcript type (typically, mRNA, although
  2141. --non coding transcript types should work too).
  2142. CREATE OR REPLACE FUNCTION order_exons (bigint) RETURNS void AS '
  2143. DECLARE
  2144. parent_type ALIAS FOR $1;
  2145. exon_id bigint;
  2146. part_of bigint;
  2147. exon_type bigint;
  2148. strand int;
  2149. arow RECORD;
  2150. order_by varchar;
  2151. rowcount int;
  2152. exon_count int;
  2153. ordered_exons int;
  2154. transcript_id bigint;
  2155. transcript_row feature%ROWTYPE;
  2156. BEGIN
  2157. SELECT INTO part_of cvterm_id FROM cvterm WHERE name=''part_of''
  2158. AND cv_id IN (SELECT cv_id FROM cv WHERE name=''relationship'');
  2159. --SELECT INTO exon_type cvterm_id FROM cvterm WHERE name=''exon''
  2160. -- AND cv_id IN (SELECT cv_id FROM cv WHERE name=''sequence'');
  2161. --RAISE NOTICE ''part_of %, exon %'',part_of,exon_type;
  2162. FOR transcript_row IN
  2163. SELECT * FROM feature WHERE type_id = parent_type
  2164. LOOP
  2165. transcript_id = transcript_row.feature_id;
  2166. SELECT INTO rowcount count(*) FROM feature_relationship
  2167. WHERE object_id = transcript_id
  2168. AND rank = 0;
  2169. --Dont modify this transcript if there are already numbered exons or
  2170. --if there is only one exon
  2171. IF rowcount = 1 THEN
  2172. --RAISE NOTICE ''skipping transcript %, row count %'',transcript_id,rowcount;
  2173. CONTINUE;
  2174. END IF;
  2175. --need to reverse the order if the strand is negative
  2176. SELECT INTO strand strand FROM featureloc WHERE feature_id=transcript_id;
  2177. IF strand > 0 THEN
  2178. order_by = ''fl.fmin'';
  2179. ELSE
  2180. order_by = ''fl.fmax desc'';
  2181. END IF;
  2182. exon_count = 0;
  2183. FOR arow IN EXECUTE
  2184. ''SELECT fr.*, fl.fmin, fl.fmax
  2185. FROM feature_relationship fr, featureloc fl
  2186. WHERE fr.object_id = ''||transcript_id||''
  2187. AND fr.subject_id = fl.feature_id
  2188. AND fr.type_id = ''||part_of||''
  2189. ORDER BY ''||order_by
  2190. LOOP
  2191. --number the exons for a given transcript
  2192. UPDATE feature_relationship
  2193. SET rank = exon_count
  2194. WHERE feature_relationship_id = arow.feature_relationship_id;
  2195. exon_count = exon_count + 1;
  2196. END LOOP;
  2197. END LOOP;
  2198. END;
  2199. ' LANGUAGE 'plpgsql';
  2200. -- down the graph: eg from chromosome to contig
  2201. CREATE OR REPLACE FUNCTION project_point_up(bigint,bigint,bigint,bigint)
  2202. RETURNS bigint AS
  2203. 'SELECT
  2204. CASE WHEN $4<0
  2205. THEN $3-$1 -- rev strand
  2206. ELSE $1-$2 -- fwd strand
  2207. END AS p'
  2208. LANGUAGE 'sql';
  2209. -- down the graph: eg from contig to chromosome
  2210. CREATE OR REPLACE FUNCTION project_point_down(bigint,bigint,bigint,bigint)
  2211. RETURNS bigint AS
  2212. 'SELECT
  2213. CASE WHEN $4<0
  2214. THEN $3-$1
  2215. ELSE $1+$2
  2216. END AS p'
  2217. LANGUAGE 'sql';
  2218. CREATE OR REPLACE FUNCTION project_featureloc_up(bigint,bigint)
  2219. RETURNS featureloc AS
  2220. '
  2221. DECLARE
  2222. in_featureloc_id alias for $1;
  2223. up_srcfeature_id alias for $2;
  2224. in_featureloc featureloc%ROWTYPE;
  2225. up_featureloc featureloc%ROWTYPE;
  2226. nu_featureloc featureloc%ROWTYPE;
  2227. nu_fmin BIGINT;
  2228. nu_fmax BIGINT;
  2229. nu_strand INT;
  2230. BEGIN
  2231. SELECT INTO in_featureloc
  2232. featureloc.*
  2233. FROM featureloc
  2234. WHERE featureloc_id = in_featureloc_id;
  2235. SELECT INTO up_featureloc
  2236. up_fl.*
  2237. FROM featureloc AS in_fl
  2238. INNER JOIN featureloc AS up_fl
  2239. ON (in_fl.srcfeature_id = up_fl.feature_id)
  2240. WHERE
  2241. in_fl.featureloc_id = in_featureloc_id AND
  2242. up_fl.srcfeature_id = up_srcfeature_id;
  2243. IF up_featureloc.strand IS NULL
  2244. THEN RETURN NULL;
  2245. END IF;
  2246. IF up_featureloc.strand < 0
  2247. THEN
  2248. nu_fmin = project_point_up(in_featureloc.fmax,
  2249. up_featureloc.fmin,up_featureloc.fmax,-1);
  2250. nu_fmax = project_point_up(in_featureloc.fmin,
  2251. up_featureloc.fmin,up_featureloc.fmax,-1);
  2252. nu_strand = -in_featureloc.strand;
  2253. ELSE
  2254. nu_fmin = project_point_up(in_featureloc.fmin,
  2255. up_featureloc.fmin,up_featureloc.fmax,1);
  2256. nu_fmax = project_point_up(in_featureloc.fmax,
  2257. up_featureloc.fmin,up_featureloc.fmax,1);
  2258. nu_strand = in_featureloc.strand;
  2259. END IF;
  2260. in_featureloc.fmin = nu_fmin;
  2261. in_featureloc.fmax = nu_fmax;
  2262. in_featureloc.strand = nu_strand;
  2263. in_featureloc.srcfeature_id = up_featureloc.srcfeature_id;
  2264. RETURN in_featureloc;
  2265. END
  2266. '
  2267. LANGUAGE 'plpgsql';
  2268. CREATE OR REPLACE FUNCTION project_point_g2t(bigint,bigint,bigint)
  2269. RETURNS BIGINT AS '
  2270. DECLARE
  2271. in_p alias for $1;
  2272. srcf_id alias for $2;
  2273. t_id alias for $3;
  2274. e_floc featureloc%ROWTYPE;
  2275. out_p BIGINT;
  2276. exon_cvterm_id BIGINT;
  2277. BEGIN
  2278. SELECT INTO exon_cvterm_id get_feature_type_id(''exon'');
  2279. SELECT INTO out_p
  2280. CASE
  2281. WHEN strand<0 THEN fmax-p
  2282. ELSE p-fmin
  2283. END AS p
  2284. FROM featureloc
  2285. INNER JOIN feature USING (feature_id)
  2286. INNER JOIN feature_relationship ON (feature.feature_id=subject_id)
  2287. WHERE
  2288. object_id = t_id AND
  2289. feature.type_id = exon_cvterm_id AND
  2290. featureloc.srcfeature_id = srcf_id AND
  2291. in_p >= fmin AND
  2292. in_p <= fmax;
  2293. RETURN in_featureloc;
  2294. END
  2295. '
  2296. LANGUAGE 'plpgsql';
  2297. CREATE OR REPLACE FUNCTION get_cv_id_for_feature() RETURNS BIGINT
  2298. AS 'SELECT cv_id FROM cv WHERE name=''sequence''' LANGUAGE 'sql';
  2299. CREATE OR REPLACE FUNCTION get_cv_id_for_featureprop() RETURNS BIGINT
  2300. AS 'SELECT cv_id FROM cv WHERE name=''feature_property''' LANGUAGE 'sql';
  2301. CREATE OR REPLACE FUNCTION get_cv_id_for_feature_relationsgip() RETURNS BIGINT
  2302. AS 'SELECT cv_id FROM cv WHERE name=''relationship''' LANGUAGE 'sql';
  2303. CREATE OR REPLACE FUNCTION get_feature_type_id(VARCHAR) RETURNS BIGINT
  2304. AS '
  2305. SELECT cvterm_id
  2306. FROM cv INNER JOIN cvterm USING (cv_id)
  2307. WHERE cvterm.name=$1 AND cv.name=''sequence''
  2308. ' LANGUAGE 'sql';
  2309. CREATE OR REPLACE FUNCTION get_featureprop_type_id(VARCHAR) RETURNS BIGINT
  2310. AS '
  2311. SELECT cvterm_id
  2312. FROM cv INNER JOIN cvterm USING (cv_id)
  2313. WHERE cvterm.name=$1 AND cv.name=''feature_property''
  2314. ' LANGUAGE 'sql';
  2315. CREATE OR REPLACE FUNCTION get_feature_relationship_type_id(VARCHAR) RETURNS BIGINT
  2316. AS '
  2317. SELECT cvterm_id
  2318. FROM cv INNER JOIN cvterm USING (cv_id)
  2319. WHERE cvterm.name=$1 AND cv.name=''relationship''
  2320. ' LANGUAGE 'sql';
  2321. -- depends on sequence-cv-helper
  2322. CREATE OR REPLACE FUNCTION get_feature_id(VARCHAR,VARCHAR,VARCHAR) RETURNS BIGINT
  2323. AS '
  2324. SELECT feature_id
  2325. FROM feature
  2326. WHERE uniquename=$1
  2327. AND type_id=get_feature_type_id($2)
  2328. AND organism_id=get_organism_id($3)
  2329. ' LANGUAGE 'sql';
  2330. --This is an automatically generated file; do not edit it as changes will not
  2331. --be saved. Instead, modify bin/create-so-bridge.pl, which creates this file.
  2332. CREATE SCHEMA so;
  2333. SET search_path=so,public,pg_catalog;
  2334. --- ************************************************
  2335. --- *** relation: region ***
  2336. --- *** relation type: VIEW ***
  2337. --- *** ***
  2338. --- *** A sequence_feature with an extent greate ***
  2339. --- *** r than zero. A nucleotide region is comp ***
  2340. --- *** osed of bases and a polypeptide region i ***
  2341. --- *** s composed of amino acids. ***
  2342. --- ************************************************
  2343. ---
  2344. CREATE VIEW region AS
  2345. SELECT
  2346. feature_id AS region_id,
  2347. feature.*
  2348. FROM
  2349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2350. WHERE cvterm.name = 'biomaterial_region' OR cvterm.name = 'experimental_feature' OR cvterm.name = 'biological_region' OR cvterm.name = 'topologically_defined_region' OR cvterm.name = 'reagent' OR cvterm.name = 'engineered_region' OR cvterm.name = 'PCR_product' OR cvterm.name = 'clone' OR cvterm.name = 'rescue_region' OR cvterm.name = 'oligo' OR cvterm.name = 'clone_insert' OR cvterm.name = 'cloned_region' OR cvterm.name = 'databank_entry' OR cvterm.name = 'RAPD' OR cvterm.name = 'genomic_clone' OR cvterm.name = 'cDNA_clone' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'validated_cDNA_clone' OR cvterm.name = 'invalidated_cDNA_clone' OR cvterm.name = 'three_prime_RACE_clone' OR cvterm.name = 'chimeric_cDNA_clone' OR cvterm.name = 'genomically_contaminated_cDNA_clone' OR cvterm.name = 'polyA_primed_cDNA_clone' OR cvterm.name = 'partially_processed_cDNA_clone' OR cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'aptamer' OR cvterm.name = 'probe' OR cvterm.name = 'tag' OR cvterm.name = 'ss_oligo' OR cvterm.name = 'ds_oligo' OR cvterm.name = 'DNAzyme' OR cvterm.name = 'synthetic_oligo' OR cvterm.name = 'DNA_aptamer' OR cvterm.name = 'RNA_aptamer' OR cvterm.name = 'microarray_oligo' OR cvterm.name = 'SAGE_tag' OR cvterm.name = 'STS' OR cvterm.name = 'EST' OR cvterm.name = 'engineered_tag' OR cvterm.name = 'five_prime_EST' OR cvterm.name = 'three_prime_EST' OR cvterm.name = 'UST' OR cvterm.name = 'RST' OR cvterm.name = 'three_prime_UST' OR cvterm.name = 'five_prime_UST' OR cvterm.name = 'three_prime_RST' OR cvterm.name = 'five_prime_RST' OR cvterm.name = 'primer' OR cvterm.name = 'sequencing_primer' OR cvterm.name = 'forward_primer' OR cvterm.name = 'reverse_primer' OR cvterm.name = 'ASPE_primer' OR cvterm.name = 'dCAPS_primer' OR cvterm.name = 'RNAi_reagent' OR cvterm.name = 'DNA_constraint_sequence' OR cvterm.name = 'morpholino_oligo' OR cvterm.name = 'PNA_oligo' OR cvterm.name = 'LNA_oligo' OR cvterm.name = 'TNA_oligo' OR cvterm.name = 'GNA_oligo' OR cvterm.name = 'R_GNA_oligo' OR cvterm.name = 'S_GNA_oligo' OR cvterm.name = 'cloned_cDNA_insert' OR cvterm.name = 'cloned_genomic_insert' OR cvterm.name = 'engineered_insert' OR cvterm.name = 'BAC_cloned_genomic_insert' OR cvterm.name = 'engineered_gene' OR cvterm.name = 'engineered_plasmid' OR cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'engineered_transposable_element' OR cvterm.name = 'engineered_foreign_region' OR cvterm.name = 'engineered_tag' OR cvterm.name = 'engineered_insert' OR cvterm.name = 'targeting_vector' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'gene_trap_construct' OR cvterm.name = 'promoter_trap_construct' OR cvterm.name = 'enhancer_trap_construct' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_repetitive_element' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'match_part' OR cvterm.name = 'assembly_component' OR cvterm.name = 'conserved_region' OR cvterm.name = 'match' OR cvterm.name = 'remark' OR cvterm.name = 'reading_frame' OR cvterm.name = 'consensus_region' OR cvterm.name = 'low_complexity_region' OR cvterm.name = 'assembly' OR cvterm.name = 'transcribed_fragment' OR cvterm.name = 'transcribed_cluster' OR cvterm.name = 'high_identity_region' OR cvterm.name = 'mathematically_defined_repeat' OR cvterm.name = 'experimentally_defined_binding_region' OR cvterm.name = 'contig' OR cvterm.name = 'read' OR cvterm.name = 'restriction_fragment' OR cvterm.name = 'golden_path_fragment' OR cvterm.name = 'tiling_path_fragment' OR cvterm.name = 'gap' OR cvterm.name = 'sonicate_fragment' OR cvterm.name = 'paired_end_fragment' OR cvterm.name = 'read_pair' OR cvterm.name = 'contig_read' OR cvterm.name = 'BAC_end' OR cvterm.name = 'dye_terminator_read' OR cvterm.name = 'pyrosequenced_read' OR cvterm.name = 'ligation_based_read' OR cvterm.name = 'polymerase_synthesis_read' OR cvterm.name = 'PAC_end' OR cvterm.name = 'YAC_end' OR cvterm.name = 'clone_end' OR cvterm.name = 'RFLP_fragment' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'coding_conserved_region' OR cvterm.name = 'nc_conserved_region' OR cvterm.name = 'RR_tract' OR cvterm.name = 'homologous_region' OR cvterm.name = 'centromere_DNA_Element_I' OR cvterm.name = 'centromere_DNA_Element_II' OR cvterm.name = 'centromere_DNA_Element_III' OR cvterm.name = 'X_element' OR cvterm.name = 'U_box' OR cvterm.name = 'regional_centromere_central_core' OR cvterm.name = 'syntenic_region' OR cvterm.name = 'paralogous_region' OR cvterm.name = 'orthologous_region' OR cvterm.name = 'nucleotide_match' OR cvterm.name = 'protein_match' OR cvterm.name = 'expressed_sequence_match' OR cvterm.name = 'cross_genome_match' OR cvterm.name = 'translated_nucleotide_match' OR cvterm.name = 'primer_match' OR cvterm.name = 'EST_match' OR cvterm.name = 'cDNA_match' OR cvterm.name = 'UST_match' OR cvterm.name = 'RST_match' OR cvterm.name = 'sequence_difference' OR cvterm.name = 'experimental_result_region' OR cvterm.name = 'polypeptide_sequencing_information' OR cvterm.name = 'possible_base_call_error' OR cvterm.name = 'possible_assembly_error' OR cvterm.name = 'assembly_error_correction' OR cvterm.name = 'base_call_error_correction' OR cvterm.name = 'overlapping_feature_set' OR cvterm.name = 'no_output' OR cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'non_adjacent_residues' OR cvterm.name = 'non_terminal_residue' OR cvterm.name = 'sequence_conflict' OR cvterm.name = 'sequence_uncertainty' OR cvterm.name = 'contig_collection' OR cvterm.name = 'ORF' OR cvterm.name = 'blocked_reading_frame' OR cvterm.name = 'mini_gene' OR cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'consensus_mRNA' OR cvterm.name = 'sequence_assembly' OR cvterm.name = 'fragment_assembly' OR cvterm.name = 'supercontig' OR cvterm.name = 'contig' OR cvterm.name = 'tiling_path' OR cvterm.name = 'virtual_sequence' OR cvterm.name = 'golden_path' OR cvterm.name = 'ultracontig' OR cvterm.name = 'expressed_sequence_assembly' OR cvterm.name = 'fingerprint_map' OR cvterm.name = 'STS_map' OR cvterm.name = 'RH_map' OR cvterm.name = 'unigene_cluster' OR cvterm.name = 'CHiP_seq_region' OR cvterm.name = 'sequence_secondary_structure' OR cvterm.name = 'linkage_group' OR cvterm.name = 'polypeptide' OR cvterm.name = 'deletion' OR cvterm.name = 'origin_of_replication' OR cvterm.name = 'recombination_feature' OR cvterm.name = 'CpG_island' OR cvterm.name = 'pseudogene' OR cvterm.name = 'binding_site' OR cvterm.name = 'pseudogenic_region' OR cvterm.name = 'cap' OR cvterm.name = 'intergenic_region' OR cvterm.name = 'oligo_U_tail' OR cvterm.name = 'polyA_sequence' OR cvterm.name = 'repeat_region' OR cvterm.name = 'insertion' OR cvterm.name = 'gene' OR cvterm.name = 'repeat_unit' OR cvterm.name = 'QTL' OR cvterm.name = 'chromosome_part' OR cvterm.name = 'gene_member_region' OR cvterm.name = 'transcript_region' OR cvterm.name = 'polypeptide_region' OR cvterm.name = 'gene_component_region' OR cvterm.name = 'mobile_genetic_element' OR cvterm.name = 'replicon' OR cvterm.name = 'base' OR cvterm.name = 'amino_acid' OR cvterm.name = 'genetic_marker' OR cvterm.name = 'sequence_motif' OR cvterm.name = 'restriction_enzyme_recognition_site' OR cvterm.name = 'restriction_enzyme_single_strand_overhang' OR cvterm.name = 'epigenetically_modified_region' OR cvterm.name = 'open_chromatin_region' OR cvterm.name = 'gene_group' OR cvterm.name = 'substitution' OR cvterm.name = 'inversion' OR cvterm.name = 'retron' OR cvterm.name = 'G_quartet' OR cvterm.name = 'base_pair' OR cvterm.name = 'RNA_sequence_secondary_structure' OR cvterm.name = 'DNA_sequence_secondary_structure' OR cvterm.name = 'pseudoknot' OR cvterm.name = 'WC_base_pair' OR cvterm.name = 'sugar_edge_base_pair' OR cvterm.name = 'Hoogsteen_base_pair' OR cvterm.name = 'reverse_Hoogsteen_base_pair' OR cvterm.name = 'wobble_base_pair' OR cvterm.name = 'stem_loop' OR cvterm.name = 'tetraloop' OR cvterm.name = 'i_motif' OR cvterm.name = 'recoding_pseudoknot' OR cvterm.name = 'H_pseudoknot' OR cvterm.name = 'D_loop' OR cvterm.name = 'ARS' OR cvterm.name = 'oriT' OR cvterm.name = 'amplification_origin' OR cvterm.name = 'oriV' OR cvterm.name = 'oriC' OR cvterm.name = 'recombination_hotspot' OR cvterm.name = 'haplotype_block' OR cvterm.name = 'sequence_rearrangement_feature' OR cvterm.name = 'iDNA' OR cvterm.name = 'specific_recombination_site' OR cvterm.name = 'chromosome_breakage_sequence' OR cvterm.name = 'internal_eliminated_sequence' OR cvterm.name = 'macronucleus_destined_segment' OR cvterm.name = 'recombination_feature_of_rearranged_gene' OR cvterm.name = 'site_specific_recombination_target_region' OR cvterm.name = 'recombination_signal_sequence' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_feature' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_spacer' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_signal_feature' OR cvterm.name = 'D_gene' OR cvterm.name = 'V_gene' OR cvterm.name = 'J_gene' OR cvterm.name = 'C_gene' OR cvterm.name = 'D_J_C_cluster' OR cvterm.name = 'J_C_cluster' OR cvterm.name = 'J_cluster' OR cvterm.name = 'V_cluster' OR cvterm.name = 'V_J_cluster' OR cvterm.name = 'V_J_C_cluster' OR cvterm.name = 'C_cluster' OR cvterm.name = 'D_cluster' OR cvterm.name = 'D_J_cluster' OR cvterm.name = 'three_prime_D_spacer' OR cvterm.name = 'five_prime_D_spacer' OR cvterm.name = 'J_spacer' OR cvterm.name = 'V_spacer' OR cvterm.name = 'VD_gene' OR cvterm.name = 'DJ_gene' OR cvterm.name = 'VDJ_gene' OR cvterm.name = 'VJ_gene' OR cvterm.name = 'DJ_J_cluster' OR cvterm.name = 'VDJ_J_C_cluster' OR cvterm.name = 'VDJ_J_cluster' OR cvterm.name = 'VJ_C_cluster' OR cvterm.name = 'VJ_J_C_cluster' OR cvterm.name = 'VJ_J_cluster' OR cvterm.name = 'D_DJ_C_cluster' OR cvterm.name = 'D_DJ_cluster' OR cvterm.name = 'D_DJ_J_C_cluster' OR cvterm.name = 'D_DJ_J_cluster' OR cvterm.name = 'V_DJ_cluster' OR cvterm.name = 'V_DJ_J_cluster' OR cvterm.name = 'V_VDJ_C_cluster' OR cvterm.name = 'V_VDJ_cluster' OR cvterm.name = 'V_VDJ_J_cluster' OR cvterm.name = 'V_VJ_C_cluster' OR cvterm.name = 'V_VJ_cluster' OR cvterm.name = 'V_VJ_J_cluster' OR cvterm.name = 'V_D_DJ_C_cluster' OR cvterm.name = 'V_D_DJ_cluster' OR cvterm.name = 'V_D_DJ_J_C_cluster' OR cvterm.name = 'V_D_DJ_J_cluster' OR cvterm.name = 'V_D_J_C_cluster' OR cvterm.name = 'V_D_J_cluster' OR cvterm.name = 'DJ_C_cluster' OR cvterm.name = 'DJ_J_C_cluster' OR cvterm.name = 'VDJ_C_cluster' OR cvterm.name = 'V_DJ_C_cluster' OR cvterm.name = 'V_DJ_J_C_cluster' OR cvterm.name = 'V_VDJ_J_C_cluster' OR cvterm.name = 'V_VJ_J_C_cluster' OR cvterm.name = 'J_gene_recombination_feature' OR cvterm.name = 'D_gene_recombination_feature' OR cvterm.name = 'V_gene_recombination_feature' OR cvterm.name = 'heptamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'nonamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'five_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_heptamer' OR cvterm.name = 'five_prime_D_heptamer' OR cvterm.name = 'J_heptamer' OR cvterm.name = 'V_heptamer' OR cvterm.name = 'three_prime_D_nonamer' OR cvterm.name = 'five_prime_D_nonamer' OR cvterm.name = 'J_nonamer' OR cvterm.name = 'V_nonamer' OR cvterm.name = 'integration_excision_site' OR cvterm.name = 'resolution_site' OR cvterm.name = 'inversion_site' OR cvterm.name = 'inversion_site_part' OR cvterm.name = 'attI_site' OR cvterm.name = 'attP_site' OR cvterm.name = 'attB_site' OR cvterm.name = 'attL_site' OR cvterm.name = 'attR_site' OR cvterm.name = 'attC_site' OR cvterm.name = 'attCtn_site' OR cvterm.name = 'loxP_site' OR cvterm.name = 'dif_site' OR cvterm.name = 'FRT_site' OR cvterm.name = 'IRLinv_site' OR cvterm.name = 'IRRinv_site' OR cvterm.name = 'processed_pseudogene' OR cvterm.name = 'non_processed_pseudogene' OR cvterm.name = 'pseudogene_by_unequal_crossing_over' OR cvterm.name = 'nuclear_mt_pseudogene' OR cvterm.name = 'cassette_pseudogene' OR cvterm.name = 'duplicated_pseudogene' OR cvterm.name = 'unitary_pseudogene' OR cvterm.name = 'protein_binding_site' OR cvterm.name = 'epitope' OR cvterm.name = 'nucleotide_binding_site' OR cvterm.name = 'metal_binding_site' OR cvterm.name = 'ligand_binding_site' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'nucleotide_to_protein_binding_site' OR cvterm.name = 'nuclease_binding_site' OR cvterm.name = 'TF_binding_site' OR cvterm.name = 'histone_binding_site' OR cvterm.name = 'insulator_binding_site' OR cvterm.name = 'enhancer_binding_site' OR cvterm.name = 'restriction_enzyme_binding_site' OR cvterm.name = 'nuclease_sensitive_site' OR cvterm.name = 'homing_endonuclease_binding_site' OR cvterm.name = 'nuclease_hypersensitive_site' OR cvterm.name = 'group_1_intron_homing_endonuclease_target_region' OR cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'miRNA_target_site' OR cvterm.name = 'DNA_binding_site' OR cvterm.name = 'primer_binding_site' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'decayed_exon' OR cvterm.name = 'pseudogenic_exon' OR cvterm.name = 'pseudogenic_transcript' OR cvterm.name = 'pseudogenic_rRNA' OR cvterm.name = 'pseudogenic_tRNA' OR cvterm.name = 'long_terminal_repeat' OR cvterm.name = 'engineered_foreign_repetitive_element' OR cvterm.name = 'inverted_repeat' OR cvterm.name = 'direct_repeat' OR cvterm.name = 'non_LTR_retrotransposon_polymeric_tract' OR cvterm.name = 'dispersed_repeat' OR cvterm.name = 'tandem_repeat' OR cvterm.name = 'X_element_combinatorial_repeat' OR cvterm.name = 'Y_prime_element' OR cvterm.name = 'telomeric_repeat' OR cvterm.name = 'nested_repeat' OR cvterm.name = 'centromeric_repeat' OR cvterm.name = 'five_prime_LTR' OR cvterm.name = 'three_prime_LTR' OR cvterm.name = 'solo_LTR' OR cvterm.name = 'terminal_inverted_repeat' OR cvterm.name = 'five_prime_terminal_inverted_repeat' OR cvterm.name = 'three_prime_terminal_inverted_repeat' OR cvterm.name = 'target_site_duplication' OR cvterm.name = 'CRISPR' OR cvterm.name = 'satellite_DNA' OR cvterm.name = 'microsatellite' OR cvterm.name = 'minisatellite' OR cvterm.name = 'dinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'trinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'tetranucleotide_repeat_microsatellite_feature' OR cvterm.name = 'nested_tandem_repeat' OR cvterm.name = 'regional_centromere_inner_repeat_region' OR cvterm.name = 'regional_centromere_outer_repeat_region' OR cvterm.name = 'transgenic_insertion' OR cvterm.name = 'duplication' OR cvterm.name = 'tandem_duplication' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'nuclear_gene' OR cvterm.name = 'mt_gene' OR cvterm.name = 'plastid_gene' OR cvterm.name = 'nucleomorph_gene' OR cvterm.name = 'plasmid_gene' OR cvterm.name = 'proviral_gene' OR cvterm.name = 'transposable_element_gene' OR cvterm.name = 'silenced_gene' OR cvterm.name = 'engineered_gene' OR cvterm.name = 'foreign_gene' OR cvterm.name = 'fusion_gene' OR cvterm.name = 'recombinationally_rearranged_gene' OR cvterm.name = 'gene_with_trans_spliced_transcript' OR cvterm.name = 'gene_with_polycistronic_transcript' OR cvterm.name = 'rescue_gene' OR cvterm.name = 'post_translationally_regulated_gene' OR cvterm.name = 'negatively_autoregulated_gene' OR cvterm.name = 'positively_autoregulated_gene' OR cvterm.name = 'translationally_regulated_gene' OR cvterm.name = 'epigenetically_modified_gene' OR cvterm.name = 'transgene' OR cvterm.name = 'predicted_gene' OR cvterm.name = 'protein_coding_gene' OR cvterm.name = 'retrogene' OR cvterm.name = 'ncRNA_gene' OR cvterm.name = 'cryptic_gene' OR cvterm.name = 'gene_with_non_canonical_start_codon' OR cvterm.name = 'gene_cassette' OR cvterm.name = 'kinetoplast_gene' OR cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'apicoplast_gene' OR cvterm.name = 'ct_gene' OR cvterm.name = 'chromoplast_gene' OR cvterm.name = 'cyanelle_gene' OR cvterm.name = 'leucoplast_gene' OR cvterm.name = 'proplastid_gene' OR cvterm.name = 'endogenous_retroviral_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'gene_silenced_by_DNA_modification' OR cvterm.name = 'gene_silenced_by_RNA_interference' OR cvterm.name = 'gene_silenced_by_histone_modification' OR cvterm.name = 'gene_silenced_by_DNA_methylation' OR cvterm.name = 'gene_silenced_by_histone_methylation' OR cvterm.name = 'gene_silenced_by_histone_deacetylation' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'recombinationally_inverted_gene' OR cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene' OR cvterm.name = 'gene_with_dicistronic_transcript' OR cvterm.name = 'gene_with_dicistronic_primary_transcript' OR cvterm.name = 'gene_with_dicistronic_mRNA' OR cvterm.name = 'wild_type_rescue_gene' OR cvterm.name = 'gene_rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted_gene' OR cvterm.name = 'paternally_imprinted_gene' OR cvterm.name = 'allelically_excluded_gene' OR cvterm.name = 'floxed_gene' OR cvterm.name = 'gene_with_polyadenylated_mRNA' OR cvterm.name = 'gene_with_mRNA_with_frameshift' OR cvterm.name = 'gene_with_edited_transcript' OR cvterm.name = 'gene_with_recoded_mRNA' OR cvterm.name = 'gene_with_stop_codon_read_through' OR cvterm.name = 'gene_with_mRNA_recoded_by_translational_bypass' OR cvterm.name = 'gene_with_transcript_with_translational_frameshift' OR cvterm.name = 'gene_with_stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'gene_with_stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'gRNA_gene' OR cvterm.name = 'miRNA_gene' OR cvterm.name = 'scRNA_gene' OR cvterm.name = 'snoRNA_gene' OR cvterm.name = 'snRNA_gene' OR cvterm.name = 'SRP_RNA_gene' OR cvterm.name = 'stRNA_gene' OR cvterm.name = 'tmRNA_gene' OR cvterm.name = 'tRNA_gene' OR cvterm.name = 'rRNA_gene' OR cvterm.name = 'piRNA_gene' OR cvterm.name = 'RNase_P_RNA_gene' OR cvterm.name = 'RNase_MRP_RNA_gene' OR cvterm.name = 'lincRNA_gene' OR cvterm.name = 'telomerase_RNA_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'gene_with_start_codon_CUG' OR cvterm.name = 'chromosome_arm' OR cvterm.name = 'chromosome_band' OR cvterm.name = 'interband' OR cvterm.name = 'chromosomal_regulatory_element' OR cvterm.name = 'chromosomal_structural_element' OR cvterm.name = 'introgressed_chromosome_region' OR cvterm.name = 'matrix_attachment_site' OR cvterm.name = 'centromere' OR cvterm.name = 'telomere' OR cvterm.name = 'point_centromere' OR cvterm.name = 'regional_centromere' OR cvterm.name = 'transcript' OR cvterm.name = 'regulatory_region' OR cvterm.name = 'polycistronic_transcript' OR cvterm.name = 'transcript_with_translational_frameshift' OR cvterm.name = 'primary_transcript' OR cvterm.name = 'mature_transcript' OR cvterm.name = 'transcript_bound_by_nucleic_acid' OR cvterm.name = 'transcript_bound_by_protein' OR cvterm.name = 'enzymatic_RNA' OR cvterm.name = 'trans_spliced_transcript' OR cvterm.name = 'monocistronic_transcript' OR cvterm.name = 'aberrant_processed_transcript' OR cvterm.name = 'edited_transcript' OR cvterm.name = 'processed_transcript' OR cvterm.name = 'alternatively_spliced_transcript' OR cvterm.name = 'dicistronic_transcript' OR cvterm.name = 'polycistronic_primary_transcript' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'protein_coding_primary_transcript' OR cvterm.name = 'nc_primary_transcript' OR cvterm.name = 'polycistronic_primary_transcript' OR cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'mini_exon_donor_RNA' OR cvterm.name = 'antisense_primary_transcript' OR cvterm.name = 'capped_primary_transcript' OR cvterm.name = 'pre_edited_mRNA' OR cvterm.name = 'scRNA_primary_transcript' OR cvterm.name = 'rRNA_primary_transcript' OR cvterm.name = 'tRNA_primary_transcript' OR cvterm.name = 'snRNA_primary_transcript' OR cvterm.name = 'snoRNA_primary_transcript' OR cvterm.name = 'tmRNA_primary_transcript' OR cvterm.name = 'SRP_RNA_primary_transcript' OR cvterm.name = 'miRNA_primary_transcript' OR cvterm.name = 'tasiRNA_primary_transcript' OR cvterm.name = 'rRNA_small_subunit_primary_transcript' OR cvterm.name = 'rRNA_large_subunit_primary_transcript' OR cvterm.name = 'alanine_tRNA_primary_transcript' OR cvterm.name = 'arginine_tRNA_primary_transcript' OR cvterm.name = 'asparagine_tRNA_primary_transcript' OR cvterm.name = 'aspartic_acid_tRNA_primary_transcript' OR cvterm.name = 'cysteine_tRNA_primary_transcript' OR cvterm.name = 'glutamic_acid_tRNA_primary_transcript' OR cvterm.name = 'glutamine_tRNA_primary_transcript' OR cvterm.name = 'glycine_tRNA_primary_transcript' OR cvterm.name = 'histidine_tRNA_primary_transcript' OR cvterm.name = 'isoleucine_tRNA_primary_transcript' OR cvterm.name = 'leucine_tRNA_primary_transcript' OR cvterm.name = 'lysine_tRNA_primary_transcript' OR cvterm.name = 'methionine_tRNA_primary_transcript' OR cvterm.name = 'phenylalanine_tRNA_primary_transcript' OR cvterm.name = 'proline_tRNA_primary_transcript' OR cvterm.name = 'serine_tRNA_primary_transcript' OR cvterm.name = 'threonine_tRNA_primary_transcript' OR cvterm.name = 'tryptophan_tRNA_primary_transcript' OR cvterm.name = 'tyrosine_tRNA_primary_transcript' OR cvterm.name = 'valine_tRNA_primary_transcript' OR cvterm.name = 'pyrrolysine_tRNA_primary_transcript' OR cvterm.name = 'selenocysteine_tRNA_primary_transcript' OR cvterm.name = 'methylation_guide_snoRNA_primary_transcript' OR cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript' OR cvterm.name = 'C_D_box_snoRNA_primary_transcript' OR cvterm.name = 'H_ACA_box_snoRNA_primary_transcript' OR cvterm.name = 'U14_snoRNA_primary_transcript' OR cvterm.name = 'stRNA_primary_transcript' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'mRNA' OR cvterm.name = 'ncRNA' OR cvterm.name = 'mRNA_with_frameshift' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'exemplar_mRNA' OR cvterm.name = 'capped_mRNA' OR cvterm.name = 'polyadenylated_mRNA' OR cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'consensus_mRNA' OR cvterm.name = 'recoded_mRNA' OR cvterm.name = 'mRNA_with_minus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_2_frameshift' OR cvterm.name = 'mRNA_with_minus_2_frameshift' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'mRNA_recoded_by_translational_bypass' OR cvterm.name = 'mRNA_recoded_by_codon_redefinition' OR cvterm.name = 'scRNA' OR cvterm.name = 'rRNA' OR cvterm.name = 'tRNA' OR cvterm.name = 'snRNA' OR cvterm.name = 'snoRNA' OR cvterm.name = 'small_regulatory_ncRNA' OR cvterm.name = 'RNase_MRP_RNA' OR cvterm.name = 'RNase_P_RNA' OR cvterm.name = 'telomerase_RNA' OR cvterm.name = 'vault_RNA' OR cvterm.name = 'Y_RNA' OR cvterm.name = 'rasiRNA' OR cvterm.name = 'SRP_RNA' OR cvterm.name = 'guide_RNA' OR cvterm.name = 'antisense_RNA' OR cvterm.name = 'siRNA' OR cvterm.name = 'stRNA' OR cvterm.name = 'class_II_RNA' OR cvterm.name = 'class_I_RNA' OR cvterm.name = 'piRNA' OR cvterm.name = 'lincRNA' OR cvterm.name = 'tasiRNA' OR cvterm.name = 'rRNA_cleavage_RNA' OR cvterm.name = 'small_subunit_rRNA' OR cvterm.name = 'large_subunit_rRNA' OR cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'rRNA_5_8S' OR cvterm.name = 'rRNA_5S' OR cvterm.name = 'rRNA_28S' OR cvterm.name = 'rRNA_23S' OR cvterm.name = 'rRNA_25S' OR cvterm.name = 'rRNA_21S' OR cvterm.name = 'alanyl_tRNA' OR cvterm.name = 'asparaginyl_tRNA' OR cvterm.name = 'aspartyl_tRNA' OR cvterm.name = 'cysteinyl_tRNA' OR cvterm.name = 'glutaminyl_tRNA' OR cvterm.name = 'glutamyl_tRNA' OR cvterm.name = 'glycyl_tRNA' OR cvterm.name = 'histidyl_tRNA' OR cvterm.name = 'isoleucyl_tRNA' OR cvterm.name = 'leucyl_tRNA' OR cvterm.name = 'lysyl_tRNA' OR cvterm.name = 'methionyl_tRNA' OR cvterm.name = 'phenylalanyl_tRNA' OR cvterm.name = 'prolyl_tRNA' OR cvterm.name = 'seryl_tRNA' OR cvterm.name = 'threonyl_tRNA' OR cvterm.name = 'tryptophanyl_tRNA' OR cvterm.name = 'tyrosyl_tRNA' OR cvterm.name = 'valyl_tRNA' OR cvterm.name = 'pyrrolysyl_tRNA' OR cvterm.name = 'arginyl_tRNA' OR cvterm.name = 'selenocysteinyl_tRNA' OR cvterm.name = 'U1_snRNA' OR cvterm.name = 'U2_snRNA' OR cvterm.name = 'U4_snRNA' OR cvterm.name = 'U4atac_snRNA' OR cvterm.name = 'U5_snRNA' OR cvterm.name = 'U6_snRNA' OR cvterm.name = 'U6atac_snRNA' OR cvterm.name = 'U11_snRNA' OR cvterm.name = 'U12_snRNA' OR cvterm.name = 'C_D_box_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA' OR cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'miRNA' OR cvterm.name = 'RNA_6S' OR cvterm.name = 'CsrB_RsmB_RNA' OR cvterm.name = 'DsrA_RNA' OR cvterm.name = 'OxyS_RNA' OR cvterm.name = 'RprA_RNA' OR cvterm.name = 'RRE_RNA' OR cvterm.name = 'spot_42_RNA' OR cvterm.name = 'tmRNA' OR cvterm.name = 'GcvB_RNA' OR cvterm.name = 'MicF_RNA' OR cvterm.name = 'ribozyme' OR cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'transcription_regulatory_region' OR cvterm.name = 'translation_regulatory_region' OR cvterm.name = 'recombination_regulatory_region' OR cvterm.name = 'replication_regulatory_region' OR cvterm.name = 'terminator' OR cvterm.name = 'TF_binding_site' OR cvterm.name = 'polyA_signal_sequence' OR cvterm.name = 'gene_group_regulatory_region' OR cvterm.name = 'transcriptional_cis_regulatory_region' OR cvterm.name = 'splicing_regulatory_region' OR cvterm.name = 'cis_regulatory_frameshift_element' OR cvterm.name = 'intronic_regulatory_region' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'eukaryotic_terminator' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'terminator_of_type_2_RNApol_III_promoter' OR cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'promoter' OR cvterm.name = 'insulator' OR cvterm.name = 'CRM' OR cvterm.name = 'promoter_targeting_sequence' OR cvterm.name = 'ISRE' OR cvterm.name = 'bidirectional_promoter' OR cvterm.name = 'RNA_polymerase_promoter' OR cvterm.name = 'RNApol_I_promoter' OR cvterm.name = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'Phage_RNA_Polymerase_Promoter' OR cvterm.name = 'RNApol_II_core_promoter' OR cvterm.name = 'RNApol_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'SP6_RNA_Polymerase_Promoter' OR cvterm.name = 'T3_RNA_Polymerase_Promoter' OR cvterm.name = 'T7_RNA_Polymerase_Promoter' OR cvterm.name = 'locus_control_region' OR cvterm.name = 'enhancer' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'attenuator' OR cvterm.name = 'exon' OR cvterm.name = 'edited_transcript_feature' OR cvterm.name = 'mature_transcript_region' OR cvterm.name = 'primary_transcript_region' OR cvterm.name = 'exon_region' OR cvterm.name = 'anchor_binding_site' OR cvterm.name = 'coding_exon' OR cvterm.name = 'noncoding_exon' OR cvterm.name = 'interior_exon' OR cvterm.name = 'exon_of_single_exon_gene' OR cvterm.name = 'interior_coding_exon' OR cvterm.name = 'five_prime_coding_exon' OR cvterm.name = 'three_prime_coding_exon' OR cvterm.name = 'three_prime_noncoding_exon' OR cvterm.name = 'five_prime_noncoding_exon' OR cvterm.name = 'pre_edited_region' OR cvterm.name = 'editing_block' OR cvterm.name = 'editing_domain' OR cvterm.name = 'unedited_region' OR cvterm.name = 'mRNA_region' OR cvterm.name = 'tmRNA_region' OR cvterm.name = 'guide_RNA_region' OR cvterm.name = 'tRNA_region' OR cvterm.name = 'riboswitch' OR cvterm.name = 'ribosome_entry_site' OR cvterm.name = 'UTR' OR cvterm.name = 'CDS' OR cvterm.name = 'five_prime_open_reading_frame' OR cvterm.name = 'UTR_region' OR cvterm.name = 'CDS_region' OR cvterm.name = 'translational_frameshift' OR cvterm.name = 'recoding_stimulatory_region' OR cvterm.name = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'kozak_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'five_prime_UTR' OR cvterm.name = 'three_prime_UTR' OR cvterm.name = 'internal_UTR' OR cvterm.name = 'untranslated_region_polycistronic_mRNA' OR cvterm.name = 'edited_CDS' OR cvterm.name = 'CDS_fragment' OR cvterm.name = 'CDS_independently_known' OR cvterm.name = 'CDS_predicted' OR cvterm.name = 'orphan_CDS' OR cvterm.name = 'CDS_supported_by_sequence_similarity_data' OR cvterm.name = 'CDS_supported_by_domain_match_data' OR cvterm.name = 'CDS_supported_by_EST_or_cDNA_data' OR cvterm.name = 'upstream_AUG_codon' OR cvterm.name = 'AU_rich_element' OR cvterm.name = 'Bruno_response_element' OR cvterm.name = 'iron_responsive_element' OR cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' OR cvterm.name = 'codon' OR cvterm.name = 'recoded_codon' OR cvterm.name = 'start_codon' OR cvterm.name = 'stop_codon' OR cvterm.name = 'stop_codon_read_through' OR cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'non_canonical_start_codon' OR cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'plus_1_translational_frameshift' OR cvterm.name = 'plus_2_translational_frameshift' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'SECIS_element' OR cvterm.name = 'three_prime_recoding_site' OR cvterm.name = 'five_prime_recoding_site' OR cvterm.name = 'stop_codon_signal' OR cvterm.name = 'three_prime_stem_loop_structure' OR cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal' OR cvterm.name = 'three_prime_repeat_recoding_signal' OR cvterm.name = 'distant_three_prime_recoding_signal' OR cvterm.name = 'UAG_stop_codon_signal' OR cvterm.name = 'UAA_stop_codon_signal' OR cvterm.name = 'UGA_stop_codon_signal' OR cvterm.name = 'tmRNA_coding_piece' OR cvterm.name = 'tmRNA_acceptor_piece' OR cvterm.name = 'anchor_region' OR cvterm.name = 'template_region' OR cvterm.name = 'anticodon_loop' OR cvterm.name = 'anticodon' OR cvterm.name = 'CCA_tail' OR cvterm.name = 'DHU_loop' OR cvterm.name = 'T_loop' OR cvterm.name = 'splice_site' OR cvterm.name = 'intron' OR cvterm.name = 'clip' OR cvterm.name = 'TSS' OR cvterm.name = 'transcription_end_site' OR cvterm.name = 'spliced_leader_RNA' OR cvterm.name = 'rRNA_primary_transcript_region' OR cvterm.name = 'spliceosomal_intron_region' OR cvterm.name = 'intron_domain' OR cvterm.name = 'miRNA_primary_transcript_region' OR cvterm.name = 'outron' OR cvterm.name = 'cis_splice_site' OR cvterm.name = 'trans_splice_site' OR cvterm.name = 'cryptic_splice_site' OR cvterm.name = 'five_prime_cis_splice_site' OR cvterm.name = 'three_prime_cis_splice_site' OR cvterm.name = 'recursive_splice_site' OR cvterm.name = 'canonical_five_prime_splice_site' OR cvterm.name = 'non_canonical_five_prime_splice_site' OR cvterm.name = 'canonical_three_prime_splice_site' OR cvterm.name = 'non_canonical_three_prime_splice_site' OR cvterm.name = 'trans_splice_acceptor_site' OR cvterm.name = 'trans_splice_donor_site' OR cvterm.name = 'SL1_acceptor_site' OR cvterm.name = 'SL2_acceptor_site' OR cvterm.name = 'SL3_acceptor_site' OR cvterm.name = 'SL4_acceptor_site' OR cvterm.name = 'SL5_acceptor_site' OR cvterm.name = 'SL6_acceptor_site' OR cvterm.name = 'SL7_acceptor_site' OR cvterm.name = 'SL8_acceptor_site' OR cvterm.name = 'SL9_acceptor_site' OR cvterm.name = 'SL10_accceptor_site' OR cvterm.name = 'SL11_acceptor_site' OR cvterm.name = 'SL12_acceptor_site' OR cvterm.name = 'five_prime_intron' OR cvterm.name = 'interior_intron' OR cvterm.name = 'three_prime_intron' OR cvterm.name = 'twintron' OR cvterm.name = 'UTR_intron' OR cvterm.name = 'autocatalytically_spliced_intron' OR cvterm.name = 'spliceosomal_intron' OR cvterm.name = 'mobile_intron' OR cvterm.name = 'endonuclease_spliced_intron' OR cvterm.name = 'five_prime_UTR_intron' OR cvterm.name = 'three_prime_UTR_intron' OR cvterm.name = 'group_I_intron' OR cvterm.name = 'group_II_intron' OR cvterm.name = 'group_III_intron' OR cvterm.name = 'group_IIA_intron' OR cvterm.name = 'group_IIB_intron' OR cvterm.name = 'U2_intron' OR cvterm.name = 'U12_intron' OR cvterm.name = 'archaeal_intron' OR cvterm.name = 'tRNA_intron' OR cvterm.name = 'five_prime_clip' OR cvterm.name = 'three_prime_clip' OR cvterm.name = 'major_TSS' OR cvterm.name = 'minor_TSS' OR cvterm.name = 'transcribed_spacer_region' OR cvterm.name = 'internal_transcribed_spacer_region' OR cvterm.name = 'external_transcribed_spacer_region' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'branch_site' OR cvterm.name = 'polypyrimidine_tract' OR cvterm.name = 'internal_guide_sequence' OR cvterm.name = 'mirtron' OR cvterm.name = 'pre_miRNA' OR cvterm.name = 'miRNA_stem' OR cvterm.name = 'miRNA_loop' OR cvterm.name = 'miRNA_antiguide' OR cvterm.name = 'noncoding_region_of_exon' OR cvterm.name = 'coding_region_of_exon' OR cvterm.name = 'three_prime_coding_exon_noncoding_region' OR cvterm.name = 'five_prime_coding_exon_noncoding_region' OR cvterm.name = 'five_prime_coding_exon_coding_region' OR cvterm.name = 'three_prime_coding_exon_coding_region' OR cvterm.name = 'mature_protein_region' OR cvterm.name = 'immature_peptide_region' OR cvterm.name = 'compositionally_biased_region_of_peptide' OR cvterm.name = 'polypeptide_structural_region' OR cvterm.name = 'polypeptide_variation_site' OR cvterm.name = 'peptide_localization_signal' OR cvterm.name = 'cleaved_peptide_region' OR cvterm.name = 'hydrophobic_region_of_peptide' OR cvterm.name = 'polypeptide_conserved_region' OR cvterm.name = 'active_peptide' OR cvterm.name = 'polypeptide_domain' OR cvterm.name = 'membrane_structure' OR cvterm.name = 'extramembrane_polypeptide_region' OR cvterm.name = 'intramembrane_polypeptide_region' OR cvterm.name = 'polypeptide_secondary_structure' OR cvterm.name = 'polypeptide_structural_motif' OR cvterm.name = 'intrinsically_unstructured_polypeptide_region' OR cvterm.name = 'cytoplasmic_polypeptide_region' OR cvterm.name = 'non_cytoplasmic_polypeptide_region' OR cvterm.name = 'membrane_peptide_loop' OR cvterm.name = 'transmembrane_polypeptide_region' OR cvterm.name = 'asx_motif' OR cvterm.name = 'beta_bulge' OR cvterm.name = 'beta_bulge_loop' OR cvterm.name = 'beta_strand' OR cvterm.name = 'peptide_helix' OR cvterm.name = 'polypeptide_nest_motif' OR cvterm.name = 'schellmann_loop' OR cvterm.name = 'serine_threonine_motif' OR cvterm.name = 'serine_threonine_staple_motif' OR cvterm.name = 'polypeptide_turn_motif' OR cvterm.name = 'catmat_left_handed_three' OR cvterm.name = 'catmat_left_handed_four' OR cvterm.name = 'catmat_right_handed_three' OR cvterm.name = 'catmat_right_handed_four' OR cvterm.name = 'alpha_beta_motif' OR cvterm.name = 'peptide_coil' OR cvterm.name = 'beta_bulge_loop_five' OR cvterm.name = 'beta_bulge_loop_six' OR cvterm.name = 'antiparallel_beta_strand' OR cvterm.name = 'parallel_beta_strand' OR cvterm.name = 'left_handed_peptide_helix' OR cvterm.name = 'right_handed_peptide_helix' OR cvterm.name = 'alpha_helix' OR cvterm.name = 'pi_helix' OR cvterm.name = 'three_ten_helix' OR cvterm.name = 'polypeptide_nest_left_right_motif' OR cvterm.name = 'polypeptide_nest_right_left_motif' OR cvterm.name = 'schellmann_loop_seven' OR cvterm.name = 'schellmann_loop_six' OR cvterm.name = 'asx_turn' OR cvterm.name = 'beta_turn' OR cvterm.name = 'gamma_turn' OR cvterm.name = 'serine_threonine_turn' OR cvterm.name = 'asx_turn_left_handed_type_one' OR cvterm.name = 'asx_turn_left_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_two' OR cvterm.name = 'beta_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_right_handed_type_two' OR cvterm.name = 'beta_turn_type_six' OR cvterm.name = 'beta_turn_type_eight' OR cvterm.name = 'beta_turn_type_six_a' OR cvterm.name = 'beta_turn_type_six_b' OR cvterm.name = 'beta_turn_type_six_a_one' OR cvterm.name = 'beta_turn_type_six_a_two' OR cvterm.name = 'gamma_turn_classic' OR cvterm.name = 'gamma_turn_inverse' OR cvterm.name = 'st_turn_left_handed_type_one' OR cvterm.name = 'st_turn_left_handed_type_two' OR cvterm.name = 'st_turn_right_handed_type_one' OR cvterm.name = 'st_turn_right_handed_type_two' OR cvterm.name = 'coiled_coil' OR cvterm.name = 'helix_turn_helix' OR cvterm.name = 'natural_variant_site' OR cvterm.name = 'mutated_variant_site' OR cvterm.name = 'alternate_sequence_site' OR cvterm.name = 'signal_peptide' OR cvterm.name = 'transit_peptide' OR cvterm.name = 'nuclear_localization_signal' OR cvterm.name = 'endosomal_localization_signal' OR cvterm.name = 'lysosomal_localization_signal' OR cvterm.name = 'nuclear_export_signal' OR cvterm.name = 'nuclear_rim_localization_signal' OR cvterm.name = 'cleaved_initiator_methionine' OR cvterm.name = 'intein' OR cvterm.name = 'propeptide_cleavage_site' OR cvterm.name = 'propeptide' OR cvterm.name = 'cleaved_for_gpi_anchor_region' OR cvterm.name = 'lipoprotein_signal_peptide' OR cvterm.name = 'n_terminal_region' OR cvterm.name = 'c_terminal_region' OR cvterm.name = 'central_hydrophobic_region_of_signal_peptide' OR cvterm.name = 'polypeptide_domain' OR cvterm.name = 'polypeptide_motif' OR cvterm.name = 'polypeptide_repeat' OR cvterm.name = 'biochemical_region_of_peptide' OR cvterm.name = 'polypeptide_conserved_motif' OR cvterm.name = 'post_translationally_modified_region' OR cvterm.name = 'conformational_switch' OR cvterm.name = 'molecular_contact_region' OR cvterm.name = 'polypeptide_binding_motif' OR cvterm.name = 'polypeptide_catalytic_motif' OR cvterm.name = 'histone_modification' OR cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'non_transcribed_region' OR cvterm.name = 'gene_fragment' OR cvterm.name = 'TSS_region' OR cvterm.name = 'gene_segment' OR cvterm.name = 'pseudogenic_gene_segment' OR cvterm.name = 'mobile_intron' OR cvterm.name = 'extrachromosomal_mobile_genetic_element' OR cvterm.name = 'integrated_mobile_genetic_element' OR cvterm.name = 'natural_transposable_element' OR cvterm.name = 'viral_sequence' OR cvterm.name = 'natural_plasmid' OR cvterm.name = 'phage_sequence' OR cvterm.name = 'ds_RNA_viral_sequence' OR cvterm.name = 'ds_DNA_viral_sequence' OR cvterm.name = 'ss_RNA_viral_sequence' OR cvterm.name = 'negative_sense_ssRNA_viral_sequence' OR cvterm.name = 'positive_sense_ssRNA_viral_sequence' OR cvterm.name = 'ambisense_ssRNA_viral_sequence' OR cvterm.name = 'transposable_element' OR cvterm.name = 'proviral_region' OR cvterm.name = 'integron' OR cvterm.name = 'genomic_island' OR cvterm.name = 'integrated_plasmid' OR cvterm.name = 'cointegrated_plasmid' OR cvterm.name = 'retrotransposon' OR cvterm.name = 'DNA_transposon' OR cvterm.name = 'foreign_transposable_element' OR cvterm.name = 'transgenic_transposable_element' OR cvterm.name = 'natural_transposable_element' OR cvterm.name = 'engineered_transposable_element' OR cvterm.name = 'nested_transposon' OR cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'terminal_inverted_repeat_element' OR cvterm.name = 'foldback_element' OR cvterm.name = 'conjugative_transposon' OR cvterm.name = 'helitron' OR cvterm.name = 'p_element' OR cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'prophage' OR cvterm.name = 'pathogenic_island' OR cvterm.name = 'metabolic_island' OR cvterm.name = 'adaptive_island' OR cvterm.name = 'symbiosis_island' OR cvterm.name = 'cryptic_prophage' OR cvterm.name = 'defective_conjugative_transposon' OR cvterm.name = 'plasmid' OR cvterm.name = 'chromosome' OR cvterm.name = 'vector_replicon' OR cvterm.name = 'maxicircle' OR cvterm.name = 'minicircle' OR cvterm.name = 'viral_sequence' OR cvterm.name = 'engineered_plasmid' OR cvterm.name = 'episome' OR cvterm.name = 'natural_plasmid' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'gene_trap_construct' OR cvterm.name = 'promoter_trap_construct' OR cvterm.name = 'enhancer_trap_construct' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'mitochondrial_chromosome' OR cvterm.name = 'chloroplast_chromosome' OR cvterm.name = 'chromoplast_chromosome' OR cvterm.name = 'cyanelle_chromosome' OR cvterm.name = 'leucoplast_chromosome' OR cvterm.name = 'macronuclear_chromosome' OR cvterm.name = 'micronuclear_chromosome' OR cvterm.name = 'nuclear_chromosome' OR cvterm.name = 'nucleomorphic_chromosome' OR cvterm.name = 'DNA_chromosome' OR cvterm.name = 'RNA_chromosome' OR cvterm.name = 'apicoplast_chromosome' OR cvterm.name = 'double_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_DNA_chromosome' OR cvterm.name = 'linear_double_stranded_DNA_chromosome' OR cvterm.name = 'circular_double_stranded_DNA_chromosome' OR cvterm.name = 'linear_single_stranded_DNA_chromosome' OR cvterm.name = 'circular_single_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_RNA_chromosome' OR cvterm.name = 'double_stranded_RNA_chromosome' OR cvterm.name = 'linear_single_stranded_RNA_chromosome' OR cvterm.name = 'circular_single_stranded_RNA_chromosome' OR cvterm.name = 'linear_double_stranded_RNA_chromosome' OR cvterm.name = 'circular_double_stranded_RNA_chromosome' OR cvterm.name = 'YAC' OR cvterm.name = 'BAC' OR cvterm.name = 'PAC' OR cvterm.name = 'cosmid' OR cvterm.name = 'phagemid' OR cvterm.name = 'fosmid' OR cvterm.name = 'lambda_vector' OR cvterm.name = 'plasmid_vector' OR cvterm.name = 'targeting_vector' OR cvterm.name = 'phage_sequence' OR cvterm.name = 'ds_RNA_viral_sequence' OR cvterm.name = 'ds_DNA_viral_sequence' OR cvterm.name = 'ss_RNA_viral_sequence' OR cvterm.name = 'negative_sense_ssRNA_viral_sequence' OR cvterm.name = 'positive_sense_ssRNA_viral_sequence' OR cvterm.name = 'ambisense_ssRNA_viral_sequence' OR cvterm.name = 'modified_RNA_base_feature' OR cvterm.name = 'inosine' OR cvterm.name = 'seven_methylguanine' OR cvterm.name = 'ribothymidine' OR cvterm.name = 'modified_adenosine' OR cvterm.name = 'modified_cytidine' OR cvterm.name = 'modified_guanosine' OR cvterm.name = 'modified_uridine' OR cvterm.name = 'modified_inosine' OR cvterm.name = 'methylinosine' OR cvterm.name = 'one_methylinosine' OR cvterm.name = 'one_two_prime_O_dimethylinosine' OR cvterm.name = 'two_prime_O_methylinosine' OR cvterm.name = 'one_methyladenosine' OR cvterm.name = 'two_methyladenosine' OR cvterm.name = 'N6_methyladenosine' OR cvterm.name = 'two_prime_O_methyladenosine' OR cvterm.name = 'two_methylthio_N6_methyladenosine' OR cvterm.name = 'N6_isopentenyladenosine' OR cvterm.name = 'two_methylthio_N6_isopentenyladenosine' OR cvterm.name = 'N6_cis_hydroxyisopentenyl_adenosine' OR cvterm.name = 'two_methylthio_N6_cis_hydroxyisopentenyl_adenosine' OR cvterm.name = 'N6_glycinylcarbamoyladenosine' OR cvterm.name = 'N6_threonylcarbamoyladenosine' OR cvterm.name = 'two_methylthio_N6_threonyl_carbamoyladenosine' OR cvterm.name = 'N6_methyl_N6_threonylcarbamoyladenosine' OR cvterm.name = 'N6_hydroxynorvalylcarbamoyladenosine' OR cvterm.name = 'two_methylthio_N6_hydroxynorvalyl_carbamoyladenosine' OR cvterm.name = 'two_prime_O_ribosyladenosine_phosphate' OR cvterm.name = 'N6_N6_dimethyladenosine' OR cvterm.name = 'N6_2_prime_O_dimethyladenosine' OR cvterm.name = 'N6_N6_2_prime_O_trimethyladenosine' OR cvterm.name = 'one_two_prime_O_dimethyladenosine' OR cvterm.name = 'N6_acetyladenosine' OR cvterm.name = 'three_methylcytidine' OR cvterm.name = 'five_methylcytidine' OR cvterm.name = 'two_prime_O_methylcytidine' OR cvterm.name = 'two_thiocytidine' OR cvterm.name = 'N4_acetylcytidine' OR cvterm.name = 'five_formylcytidine' OR cvterm.name = 'five_two_prime_O_dimethylcytidine' OR cvterm.name = 'N4_acetyl_2_prime_O_methylcytidine' OR cvterm.name = 'lysidine' OR cvterm.name = 'N4_methylcytidine' OR cvterm.name = 'N4_2_prime_O_dimethylcytidine' OR cvterm.name = 'five_hydroxymethylcytidine' OR cvterm.name = 'five_formyl_two_prime_O_methylcytidine' OR cvterm.name = 'N4_N4_2_prime_O_trimethylcytidine' OR cvterm.name = 'seven_deazaguanosine' OR cvterm.name = 'one_methylguanosine' OR cvterm.name = 'N2_methylguanosine' OR cvterm.name = 'seven_methylguanosine' OR cvterm.name = 'two_prime_O_methylguanosine' OR cvterm.name = 'N2_N2_dimethylguanosine' OR cvterm.name = 'N2_2_prime_O_dimethylguanosine' OR cvterm.name = 'N2_N2_2_prime_O_trimethylguanosine' OR cvterm.name = 'two_prime_O_ribosylguanosine_phosphate' OR cvterm.name = 'wybutosine' OR cvterm.name = 'peroxywybutosine' OR cvterm.name = 'hydroxywybutosine' OR cvterm.name = 'undermodified_hydroxywybutosine' OR cvterm.name = 'wyosine' OR cvterm.name = 'methylwyosine' OR cvterm.name = 'N2_7_dimethylguanosine' OR cvterm.name = 'N2_N2_7_trimethylguanosine' OR cvterm.name = 'one_two_prime_O_dimethylguanosine' OR cvterm.name = 'four_demethylwyosine' OR cvterm.name = 'isowyosine' OR cvterm.name = 'N2_7_2prirme_O_trimethylguanosine' OR cvterm.name = 'queuosine' OR cvterm.name = 'epoxyqueuosine' OR cvterm.name = 'galactosyl_queuosine' OR cvterm.name = 'mannosyl_queuosine' OR cvterm.name = 'seven_cyano_seven_deazaguanosine' OR cvterm.name = 'seven_aminomethyl_seven_deazaguanosine' OR cvterm.name = 'archaeosine' OR cvterm.name = 'dihydrouridine' OR cvterm.name = 'pseudouridine' OR cvterm.name = 'five_methyluridine' OR cvterm.name = 'two_prime_O_methyluridine' OR cvterm.name = 'five_two_prime_O_dimethyluridine' OR cvterm.name = 'one_methylpseudouridine' OR cvterm.name = 'two_prime_O_methylpseudouridine' OR cvterm.name = 'two_thiouridine' OR cvterm.name = 'four_thiouridine' OR cvterm.name = 'five_methyl_2_thiouridine' OR cvterm.name = 'two_thio_two_prime_O_methyluridine' OR cvterm.name = 'three_three_amino_three_carboxypropyl_uridine' OR cvterm.name = 'five_hydroxyuridine' OR cvterm.name = 'five_methoxyuridine' OR cvterm.name = 'uridine_five_oxyacetic_acid' OR cvterm.name = 'uridine_five_oxyacetic_acid_methyl_ester' OR cvterm.name = 'five_carboxyhydroxymethyl_uridine' OR cvterm.name = 'five_carboxyhydroxymethyl_uridine_methyl_ester' OR cvterm.name = 'five_methoxycarbonylmethyluridine' OR cvterm.name = 'five_methoxycarbonylmethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_methoxycarbonylmethyl_two_thiouridine' OR cvterm.name = 'five_aminomethyl_two_thiouridine' OR cvterm.name = 'five_methylaminomethyluridine' OR cvterm.name = 'five_methylaminomethyl_two_thiouridine' OR cvterm.name = 'five_methylaminomethyl_two_selenouridine' OR cvterm.name = 'five_carbamoylmethyluridine' OR cvterm.name = 'five_carbamoylmethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_carboxymethylaminomethyluridine' OR cvterm.name = 'five_carboxymethylaminomethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_carboxymethylaminomethyl_two_thiouridine' OR cvterm.name = 'three_methyluridine' OR cvterm.name = 'one_methyl_three_three_amino_three_carboxypropyl_pseudouridine' OR cvterm.name = 'five_carboxymethyluridine' OR cvterm.name = 'three_two_prime_O_dimethyluridine' OR cvterm.name = 'five_methyldihydrouridine' OR cvterm.name = 'three_methylpseudouridine' OR cvterm.name = 'five_taurinomethyluridine' OR cvterm.name = 'five_taurinomethyl_two_thiouridine' OR cvterm.name = 'five_isopentenylaminomethyl_uridine' OR cvterm.name = 'five_isopentenylaminomethyl_two_thiouridine' OR cvterm.name = 'five_isopentenylaminomethyl_two_prime_O_methyluridine' OR cvterm.name = 'catalytic_residue' OR cvterm.name = 'modified_amino_acid_feature' OR cvterm.name = 'alanine' OR cvterm.name = 'valine' OR cvterm.name = 'leucine' OR cvterm.name = 'isoleucine' OR cvterm.name = 'proline' OR cvterm.name = 'tryptophan' OR cvterm.name = 'phenylalanine' OR cvterm.name = 'methionine' OR cvterm.name = 'glycine' OR cvterm.name = 'serine' OR cvterm.name = 'threonine' OR cvterm.name = 'tyrosine' OR cvterm.name = 'cysteine' OR cvterm.name = 'glutamine' OR cvterm.name = 'asparagine' OR cvterm.name = 'lysine' OR cvterm.name = 'arginine' OR cvterm.name = 'histidine' OR cvterm.name = 'aspartic_acid' OR cvterm.name = 'glutamic_acid' OR cvterm.name = 'selenocysteine' OR cvterm.name = 'pyrrolysine' OR cvterm.name = 'modified_glycine' OR cvterm.name = 'modified_L_alanine' OR cvterm.name = 'modified_L_asparagine' OR cvterm.name = 'modified_L_aspartic_acid' OR cvterm.name = 'modified_L_cysteine' OR cvterm.name = 'modified_L_glutamic_acid' OR cvterm.name = 'modified_L_threonine' OR cvterm.name = 'modified_L_tryptophan' OR cvterm.name = 'modified_L_glutamine' OR cvterm.name = 'modified_L_methionine' OR cvterm.name = 'modified_L_isoleucine' OR cvterm.name = 'modified_L_phenylalanine' OR cvterm.name = 'modified_L_histidine' OR cvterm.name = 'modified_L_serine' OR cvterm.name = 'modified_L_lysine' OR cvterm.name = 'modified_L_leucine' OR cvterm.name = 'modified_L_selenocysteine' OR cvterm.name = 'modified_L_valine' OR cvterm.name = 'modified_L_proline' OR cvterm.name = 'modified_L_tyrosine' OR cvterm.name = 'modified_L_arginine' OR cvterm.name = 'heritable_phenotypic_marker' OR cvterm.name = 'DArT_marker' OR cvterm.name = 'nucleotide_motif' OR cvterm.name = 'DNA_motif' OR cvterm.name = 'RNA_motif' OR cvterm.name = 'PSE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'minus_10_signal' OR cvterm.name = 'minus_35_signal' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'retinoic_acid_responsive_element' OR cvterm.name = 'promoter_element' OR cvterm.name = 'DCE_SI' OR cvterm.name = 'DCE_SII' OR cvterm.name = 'DCE_SIII' OR cvterm.name = 'minus_12_signal' OR cvterm.name = 'minus_24_signal' OR cvterm.name = 'GC_rich_promoter_region' OR cvterm.name = 'DMv4_motif' OR cvterm.name = 'DMv5_motif' OR cvterm.name = 'DMv3_motif' OR cvterm.name = 'DMv2_motif' OR cvterm.name = 'DPE1_motif' OR cvterm.name = 'DMv1_motif' OR cvterm.name = 'NDM2_motif' OR cvterm.name = 'NDM3_motif' OR cvterm.name = 'core_promoter_element' OR cvterm.name = 'regulatory_promoter_element' OR cvterm.name = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BREu_motif' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'MTE' OR cvterm.name = 'BREd_motif' OR cvterm.name = 'DCE' OR cvterm.name = 'intermediate_element' OR cvterm.name = 'RNA_polymerase_II_TATA_box' OR cvterm.name = 'RNA_polymerase_III_TATA_box' OR cvterm.name = 'A_box_type_1' OR cvterm.name = 'A_box_type_2' OR cvterm.name = 'proximal_promoter_element' OR cvterm.name = 'distal_promoter_element' OR cvterm.name = 'RNA_internal_loop' OR cvterm.name = 'A_minor_RNA_motif' OR cvterm.name = 'RNA_junction_loop' OR cvterm.name = 'hammerhead_ribozyme' OR cvterm.name = 'asymmetric_RNA_internal_loop' OR cvterm.name = 'symmetric_RNA_internal_loop' OR cvterm.name = 'K_turn_RNA_motif' OR cvterm.name = 'sarcin_like_RNA_motif' OR cvterm.name = 'RNA_hook_turn' OR cvterm.name = 'blunt_end_restriction_enzyme_cleavage_site' OR cvterm.name = 'sticky_end_restriction_enzyme_cleavage_site' OR cvterm.name = 'modified_base' OR cvterm.name = 'epigenetically_modified_gene' OR cvterm.name = 'histone_modification' OR cvterm.name = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'gene_rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted_gene' OR cvterm.name = 'paternally_imprinted_gene' OR cvterm.name = 'allelically_excluded_gene' OR cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'operon' OR cvterm.name = 'mating_type_region' OR cvterm.name = 'gene_array' OR cvterm.name = 'gene_subarray' OR cvterm.name = 'gene_cassette_array' OR cvterm.name = 'regulon' OR cvterm.name = 'sequence_length_variation' OR cvterm.name = 'MNP' OR cvterm.name = 'SNV' OR cvterm.name = 'complex_substitution' OR cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'SNP' OR cvterm.name = 'point_mutation' OR cvterm.name = 'transition' OR cvterm.name = 'transversion' OR cvterm.name = 'pyrimidine_transition' OR cvterm.name = 'purine_transition' OR cvterm.name = 'C_to_T_transition' OR cvterm.name = 'T_to_C_transition' OR cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'pyrimidine_to_purine_transversion' OR cvterm.name = 'purine_to_pyrimidine_transversion' OR cvterm.name = 'C_to_A_transversion' OR cvterm.name = 'C_to_G_transversion' OR cvterm.name = 'T_to_A_transversion' OR cvterm.name = 'T_to_G_transversion' OR cvterm.name = 'A_to_C_transversion' OR cvterm.name = 'A_to_T_transversion' OR cvterm.name = 'G_to_C_transversion' OR cvterm.name = 'G_to_T_transversion' OR cvterm.name = 'flanking_region' OR cvterm.name = 'repeat_component' OR cvterm.name = 'transposable_element_flanking_region' OR cvterm.name = 'five_prime_flanking_region' OR cvterm.name = 'three_prime_flanking_region' OR cvterm.name = 'non_LTR_retrotransposon_polymeric_tract' OR cvterm.name = 'LTR_component' OR cvterm.name = 'repeat_fragment' OR cvterm.name = 'transposon_fragment' OR cvterm.name = 'U5_LTR_region' OR cvterm.name = 'R_LTR_region' OR cvterm.name = 'U3_LTR_region' OR cvterm.name = 'three_prime_LTR_component' OR cvterm.name = 'five_prime_LTR_component' OR cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'R_three_prime_LTR_region' OR cvterm.name = 'U3_three_prime_LTR_region' OR cvterm.name = 'U5_three_prime_LTR_region' OR cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'region';
  2351. --- ************************************************
  2352. --- *** relation: sequence_secondary_structure ***
  2353. --- *** relation type: VIEW ***
  2354. --- *** ***
  2355. --- *** A folded sequence. ***
  2356. --- ************************************************
  2357. ---
  2358. CREATE VIEW sequence_secondary_structure AS
  2359. SELECT
  2360. feature_id AS sequence_secondary_structure_id,
  2361. feature.*
  2362. FROM
  2363. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2364. WHERE cvterm.name = 'G_quartet' OR cvterm.name = 'base_pair' OR cvterm.name = 'RNA_sequence_secondary_structure' OR cvterm.name = 'DNA_sequence_secondary_structure' OR cvterm.name = 'pseudoknot' OR cvterm.name = 'WC_base_pair' OR cvterm.name = 'sugar_edge_base_pair' OR cvterm.name = 'Hoogsteen_base_pair' OR cvterm.name = 'reverse_Hoogsteen_base_pair' OR cvterm.name = 'wobble_base_pair' OR cvterm.name = 'stem_loop' OR cvterm.name = 'tetraloop' OR cvterm.name = 'i_motif' OR cvterm.name = 'recoding_pseudoknot' OR cvterm.name = 'H_pseudoknot' OR cvterm.name = 'sequence_secondary_structure';
  2365. --- ************************************************
  2366. --- *** relation: g_quartet ***
  2367. --- *** relation type: VIEW ***
  2368. --- *** ***
  2369. --- *** G-quartets are unusual nucleic acid stru ***
  2370. --- *** ctures consisting of a planar arrangemen ***
  2371. --- *** t where each guanine is hydrogen bonded ***
  2372. --- *** by hoogsteen pairing to another guanine ***
  2373. --- *** in the quartet. ***
  2374. --- ************************************************
  2375. ---
  2376. CREATE VIEW g_quartet AS
  2377. SELECT
  2378. feature_id AS g_quartet_id,
  2379. feature.*
  2380. FROM
  2381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2382. WHERE cvterm.name = 'G_quartet';
  2383. --- ************************************************
  2384. --- *** relation: interior_coding_exon ***
  2385. --- *** relation type: VIEW ***
  2386. --- *** ***
  2387. --- ************************************************
  2388. ---
  2389. CREATE VIEW interior_coding_exon AS
  2390. SELECT
  2391. feature_id AS interior_coding_exon_id,
  2392. feature.*
  2393. FROM
  2394. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2395. WHERE cvterm.name = 'interior_coding_exon';
  2396. --- ************************************************
  2397. --- *** relation: satellite_dna ***
  2398. --- *** relation type: VIEW ***
  2399. --- *** ***
  2400. --- *** The many tandem repeats (identical or re ***
  2401. --- *** lated) of a short basic repeating unit; ***
  2402. --- *** many have a base composition or other pr ***
  2403. --- *** operty different from the genome average ***
  2404. --- *** that allows them to be separated from t ***
  2405. --- *** he bulk (main band) genomic DNA. ***
  2406. --- ************************************************
  2407. ---
  2408. CREATE VIEW satellite_dna AS
  2409. SELECT
  2410. feature_id AS satellite_dna_id,
  2411. feature.*
  2412. FROM
  2413. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2414. WHERE cvterm.name = 'microsatellite' OR cvterm.name = 'minisatellite' OR cvterm.name = 'dinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'trinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'tetranucleotide_repeat_microsatellite_feature' OR cvterm.name = 'satellite_DNA';
  2415. --- ************************************************
  2416. --- *** relation: pcr_product ***
  2417. --- *** relation type: VIEW ***
  2418. --- *** ***
  2419. --- *** A region amplified by a PCR reaction. ***
  2420. --- ************************************************
  2421. ---
  2422. CREATE VIEW pcr_product AS
  2423. SELECT
  2424. feature_id AS pcr_product_id,
  2425. feature.*
  2426. FROM
  2427. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2428. WHERE cvterm.name = 'RAPD' OR cvterm.name = 'PCR_product';
  2429. --- ************************************************
  2430. --- *** relation: read_pair ***
  2431. --- *** relation type: VIEW ***
  2432. --- *** ***
  2433. --- *** One of a pair of sequencing reads in whi ***
  2434. --- *** ch the two members of the pair are relat ***
  2435. --- *** ed by originating at either end of a clo ***
  2436. --- *** ne insert. ***
  2437. --- ************************************************
  2438. ---
  2439. CREATE VIEW read_pair AS
  2440. SELECT
  2441. feature_id AS read_pair_id,
  2442. feature.*
  2443. FROM
  2444. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2445. WHERE cvterm.name = 'read_pair';
  2446. --- ************************************************
  2447. --- *** relation: protein_coding ***
  2448. --- *** relation type: VIEW ***
  2449. --- *** ***
  2450. --- ************************************************
  2451. ---
  2452. CREATE VIEW protein_coding AS
  2453. SELECT
  2454. feature_id AS protein_coding_id,
  2455. feature.*
  2456. FROM
  2457. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2458. WHERE cvterm.name = 'intein_containing' OR cvterm.name = 'protein_coding';
  2459. --- ************************************************
  2460. --- *** relation: non_protein_coding ***
  2461. --- *** relation type: VIEW ***
  2462. --- *** ***
  2463. --- ************************************************
  2464. ---
  2465. CREATE VIEW non_protein_coding AS
  2466. SELECT
  2467. feature_id AS non_protein_coding_id,
  2468. feature.*
  2469. FROM
  2470. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2471. WHERE cvterm.name = 'miRNA_encoding' OR cvterm.name = 'rRNA_encoding' OR cvterm.name = 'scRNA_encoding' OR cvterm.name = 'snoRNA_encoding' OR cvterm.name = 'snRNA_encoding' OR cvterm.name = 'SRP_RNA_encoding' OR cvterm.name = 'stRNA_encoding' OR cvterm.name = 'tmRNA_encoding' OR cvterm.name = 'tRNA_encoding' OR cvterm.name = 'gRNA_encoding' OR cvterm.name = 'C_D_box_snoRNA_encoding' OR cvterm.name = 'H_ACA_box_snoRNA_encoding' OR cvterm.name = 'non_protein_coding';
  2472. --- ************************************************
  2473. --- *** relation: scrna_primary_transcript ***
  2474. --- *** relation type: VIEW ***
  2475. --- *** ***
  2476. --- *** The primary transcript of any one of sev ***
  2477. --- *** eral small cytoplasmic RNA molecules pre ***
  2478. --- *** sent in the cytoplasm and sometimes nucl ***
  2479. --- *** eus of a eukaryote. ***
  2480. --- ************************************************
  2481. ---
  2482. CREATE VIEW scrna_primary_transcript AS
  2483. SELECT
  2484. feature_id AS scrna_primary_transcript_id,
  2485. feature.*
  2486. FROM
  2487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2488. WHERE cvterm.name = 'scRNA_primary_transcript';
  2489. --- ************************************************
  2490. --- *** relation: scrna ***
  2491. --- *** relation type: VIEW ***
  2492. --- *** ***
  2493. --- *** A small non coding RNA sequence, present ***
  2494. --- *** in the cytoplasm. ***
  2495. --- ************************************************
  2496. ---
  2497. CREATE VIEW scrna AS
  2498. SELECT
  2499. feature_id AS scrna_id,
  2500. feature.*
  2501. FROM
  2502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2503. WHERE cvterm.name = 'scRNA';
  2504. --- ************************************************
  2505. --- *** relation: inr_motif ***
  2506. --- *** relation type: VIEW ***
  2507. --- *** ***
  2508. --- *** A sequence element characteristic of som ***
  2509. --- *** e RNA polymerase II promoters required f ***
  2510. --- *** or the correct positioning of the polyme ***
  2511. --- *** rase for the start of transcription. Ove ***
  2512. --- *** rlaps the TSS. The mammalian consensus s ***
  2513. --- *** equence is YYAN(T|A)YY; the Drosophila c ***
  2514. --- *** onsensus sequence is TCA(G|T)t(T|C). In ***
  2515. --- *** each the A is at position +1 with respec ***
  2516. --- *** t to the TSS. Functionally similar to th ***
  2517. --- *** e TATA box element. ***
  2518. --- ************************************************
  2519. ---
  2520. CREATE VIEW inr_motif AS
  2521. SELECT
  2522. feature_id AS inr_motif_id,
  2523. feature.*
  2524. FROM
  2525. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2526. WHERE cvterm.name = 'INR_motif';
  2527. --- ************************************************
  2528. --- *** relation: dpe_motif ***
  2529. --- *** relation type: VIEW ***
  2530. --- *** ***
  2531. --- *** A sequence element characteristic of som ***
  2532. --- *** e RNA polymerase II promoters; Positione ***
  2533. --- *** d from +28 to +32 with respect to the TS ***
  2534. --- *** S (+1). Experimental results suggest tha ***
  2535. --- *** t the DPE acts in conjunction with the I ***
  2536. --- *** NR_motif to provide a binding site for T ***
  2537. --- *** FIID in the absence of a TATA box to med ***
  2538. --- *** iate transcription of TATA-less promoter ***
  2539. --- *** s. Consensus sequence (A|G)G(A|T)(C|T)(G ***
  2540. --- *** |A|C). ***
  2541. --- ************************************************
  2542. ---
  2543. CREATE VIEW dpe_motif AS
  2544. SELECT
  2545. feature_id AS dpe_motif_id,
  2546. feature.*
  2547. FROM
  2548. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2549. WHERE cvterm.name = 'DPE_motif';
  2550. --- ************************************************
  2551. --- *** relation: breu_motif ***
  2552. --- *** relation type: VIEW ***
  2553. --- *** ***
  2554. --- *** A sequence element characteristic of som ***
  2555. --- *** e RNA polymerase II promoters, located i ***
  2556. --- *** mmediately upstream of some TATA box ele ***
  2557. --- *** ments at -37 to -32 with respect to the ***
  2558. --- *** TSS (+1). Consensus sequence is (G|C)(G| ***
  2559. --- *** C)(G|A)CGCC. Binds TFIIB. ***
  2560. --- ************************************************
  2561. ---
  2562. CREATE VIEW breu_motif AS
  2563. SELECT
  2564. feature_id AS breu_motif_id,
  2565. feature.*
  2566. FROM
  2567. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2568. WHERE cvterm.name = 'BREu_motif';
  2569. --- ************************************************
  2570. --- *** relation: pse_motif ***
  2571. --- *** relation type: VIEW ***
  2572. --- *** ***
  2573. --- *** A sequence element characteristic of the ***
  2574. --- *** promoters of snRNA genes transcribed by ***
  2575. --- *** RNA polymerase II or by RNA polymerase ***
  2576. --- *** III. Located between -45 and -60 relativ ***
  2577. --- *** e to the TSS. The human PSE_motif consen ***
  2578. --- *** sus sequence is TCACCNTNA(C|G)TNAAAAG(T| ***
  2579. --- *** G). ***
  2580. --- ************************************************
  2581. ---
  2582. CREATE VIEW pse_motif AS
  2583. SELECT
  2584. feature_id AS pse_motif_id,
  2585. feature.*
  2586. FROM
  2587. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2588. WHERE cvterm.name = 'PSE_motif';
  2589. --- ************************************************
  2590. --- *** relation: linkage_group ***
  2591. --- *** relation type: VIEW ***
  2592. --- *** ***
  2593. --- *** A group of loci that can be grouped in a ***
  2594. --- *** linear order representing the different ***
  2595. --- *** degrees of linkage among the genes conc ***
  2596. --- *** erned. ***
  2597. --- ************************************************
  2598. ---
  2599. CREATE VIEW linkage_group AS
  2600. SELECT
  2601. feature_id AS linkage_group_id,
  2602. feature.*
  2603. FROM
  2604. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2605. WHERE cvterm.name = 'linkage_group';
  2606. --- ************************************************
  2607. --- *** relation: rna_internal_loop ***
  2608. --- *** relation type: VIEW ***
  2609. --- *** ***
  2610. --- *** A region of double stranded RNA where th ***
  2611. --- *** e bases do not conform to WC base pairin ***
  2612. --- *** g. The loop is closed on both sides by c ***
  2613. --- *** anonical base pairing. If the interrupti ***
  2614. --- *** on to base pairing occurs on one strand ***
  2615. --- *** only, it is known as a bulge. ***
  2616. --- ************************************************
  2617. ---
  2618. CREATE VIEW rna_internal_loop AS
  2619. SELECT
  2620. feature_id AS rna_internal_loop_id,
  2621. feature.*
  2622. FROM
  2623. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2624. WHERE cvterm.name = 'asymmetric_RNA_internal_loop' OR cvterm.name = 'symmetric_RNA_internal_loop' OR cvterm.name = 'K_turn_RNA_motif' OR cvterm.name = 'sarcin_like_RNA_motif' OR cvterm.name = 'RNA_internal_loop';
  2625. --- ************************************************
  2626. --- *** relation: asymmetric_rna_internal_loop ***
  2627. --- *** relation type: VIEW ***
  2628. --- *** ***
  2629. --- *** An internal RNA loop where one of the st ***
  2630. --- *** rands includes more bases than the corre ***
  2631. --- *** sponding region on the other strand. ***
  2632. --- ************************************************
  2633. ---
  2634. CREATE VIEW asymmetric_rna_internal_loop AS
  2635. SELECT
  2636. feature_id AS asymmetric_rna_internal_loop_id,
  2637. feature.*
  2638. FROM
  2639. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2640. WHERE cvterm.name = 'K_turn_RNA_motif' OR cvterm.name = 'sarcin_like_RNA_motif' OR cvterm.name = 'asymmetric_RNA_internal_loop';
  2641. --- ************************************************
  2642. --- *** relation: a_minor_rna_motif ***
  2643. --- *** relation type: VIEW ***
  2644. --- *** ***
  2645. --- *** A region forming a motif, composed of ad ***
  2646. --- *** enines, where the minor groove edges are ***
  2647. --- *** inserted into the minor groove of anoth ***
  2648. --- *** er helix. ***
  2649. --- ************************************************
  2650. ---
  2651. CREATE VIEW a_minor_rna_motif AS
  2652. SELECT
  2653. feature_id AS a_minor_rna_motif_id,
  2654. feature.*
  2655. FROM
  2656. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2657. WHERE cvterm.name = 'A_minor_RNA_motif';
  2658. --- ************************************************
  2659. --- *** relation: k_turn_rna_motif ***
  2660. --- *** relation type: VIEW ***
  2661. --- *** ***
  2662. --- *** The kink turn (K-turn) is an RNA structu ***
  2663. --- *** ral motif that creates a sharp (~120 deg ***
  2664. --- *** ree) bend between two continuous helices ***
  2665. --- *** . ***
  2666. --- ************************************************
  2667. ---
  2668. CREATE VIEW k_turn_rna_motif AS
  2669. SELECT
  2670. feature_id AS k_turn_rna_motif_id,
  2671. feature.*
  2672. FROM
  2673. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2674. WHERE cvterm.name = 'K_turn_RNA_motif';
  2675. --- ************************************************
  2676. --- *** relation: sarcin_like_rna_motif ***
  2677. --- *** relation type: VIEW ***
  2678. --- *** ***
  2679. --- *** A loop in ribosomal RNA containing the s ***
  2680. --- *** ites of attack for ricin and sarcin. ***
  2681. --- ************************************************
  2682. ---
  2683. CREATE VIEW sarcin_like_rna_motif AS
  2684. SELECT
  2685. feature_id AS sarcin_like_rna_motif_id,
  2686. feature.*
  2687. FROM
  2688. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2689. WHERE cvterm.name = 'sarcin_like_RNA_motif';
  2690. --- ************************************************
  2691. --- *** relation: symmetric_rna_internal_loop ***
  2692. --- *** relation type: VIEW ***
  2693. --- *** ***
  2694. --- *** An internal RNA loop where the extent of ***
  2695. --- *** the loop on both stands is the same siz ***
  2696. --- *** e. ***
  2697. --- ************************************************
  2698. ---
  2699. CREATE VIEW symmetric_rna_internal_loop AS
  2700. SELECT
  2701. feature_id AS symmetric_rna_internal_loop_id,
  2702. feature.*
  2703. FROM
  2704. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2705. WHERE cvterm.name = 'symmetric_RNA_internal_loop';
  2706. --- ************************************************
  2707. --- *** relation: rna_junction_loop ***
  2708. --- *** relation type: VIEW ***
  2709. --- *** ***
  2710. --- ************************************************
  2711. ---
  2712. CREATE VIEW rna_junction_loop AS
  2713. SELECT
  2714. feature_id AS rna_junction_loop_id,
  2715. feature.*
  2716. FROM
  2717. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2718. WHERE cvterm.name = 'RNA_hook_turn' OR cvterm.name = 'RNA_junction_loop';
  2719. --- ************************************************
  2720. --- *** relation: rna_hook_turn ***
  2721. --- *** relation type: VIEW ***
  2722. --- *** ***
  2723. --- ************************************************
  2724. ---
  2725. CREATE VIEW rna_hook_turn AS
  2726. SELECT
  2727. feature_id AS rna_hook_turn_id,
  2728. feature.*
  2729. FROM
  2730. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2731. WHERE cvterm.name = 'RNA_hook_turn';
  2732. --- ************************************************
  2733. --- *** relation: base_pair ***
  2734. --- *** relation type: VIEW ***
  2735. --- *** ***
  2736. --- ************************************************
  2737. ---
  2738. CREATE VIEW base_pair AS
  2739. SELECT
  2740. feature_id AS base_pair_id,
  2741. feature.*
  2742. FROM
  2743. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2744. WHERE cvterm.name = 'WC_base_pair' OR cvterm.name = 'sugar_edge_base_pair' OR cvterm.name = 'Hoogsteen_base_pair' OR cvterm.name = 'reverse_Hoogsteen_base_pair' OR cvterm.name = 'wobble_base_pair' OR cvterm.name = 'base_pair';
  2745. --- ************************************************
  2746. --- *** relation: wc_base_pair ***
  2747. --- *** relation type: VIEW ***
  2748. --- *** ***
  2749. --- *** The canonical base pair, where two bases ***
  2750. --- *** interact via WC edges, with glycosidic ***
  2751. --- *** bonds oriented cis relative to the axis ***
  2752. --- *** of orientation. ***
  2753. --- ************************************************
  2754. ---
  2755. CREATE VIEW wc_base_pair AS
  2756. SELECT
  2757. feature_id AS wc_base_pair_id,
  2758. feature.*
  2759. FROM
  2760. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2761. WHERE cvterm.name = 'WC_base_pair';
  2762. --- ************************************************
  2763. --- *** relation: sugar_edge_base_pair ***
  2764. --- *** relation type: VIEW ***
  2765. --- *** ***
  2766. --- *** A type of non-canonical base-pairing. ***
  2767. --- ************************************************
  2768. ---
  2769. CREATE VIEW sugar_edge_base_pair AS
  2770. SELECT
  2771. feature_id AS sugar_edge_base_pair_id,
  2772. feature.*
  2773. FROM
  2774. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2775. WHERE cvterm.name = 'sugar_edge_base_pair';
  2776. --- ************************************************
  2777. --- *** relation: aptamer ***
  2778. --- *** relation type: VIEW ***
  2779. --- *** ***
  2780. --- *** DNA or RNA molecules that have been sele ***
  2781. --- *** cted from random pools based on their ab ***
  2782. --- *** ility to bind other molecules. ***
  2783. --- ************************************************
  2784. ---
  2785. CREATE VIEW aptamer AS
  2786. SELECT
  2787. feature_id AS aptamer_id,
  2788. feature.*
  2789. FROM
  2790. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2791. WHERE cvterm.name = 'DNA_aptamer' OR cvterm.name = 'RNA_aptamer' OR cvterm.name = 'aptamer';
  2792. --- ************************************************
  2793. --- *** relation: dna_aptamer ***
  2794. --- *** relation type: VIEW ***
  2795. --- *** ***
  2796. --- *** DNA molecules that have been selected fr ***
  2797. --- *** om random pools based on their ability t ***
  2798. --- *** o bind other molecules. ***
  2799. --- ************************************************
  2800. ---
  2801. CREATE VIEW dna_aptamer AS
  2802. SELECT
  2803. feature_id AS dna_aptamer_id,
  2804. feature.*
  2805. FROM
  2806. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2807. WHERE cvterm.name = 'DNA_aptamer';
  2808. --- ************************************************
  2809. --- *** relation: rna_aptamer ***
  2810. --- *** relation type: VIEW ***
  2811. --- *** ***
  2812. --- *** RNA molecules that have been selected fr ***
  2813. --- *** om random pools based on their ability t ***
  2814. --- *** o bind other molecules. ***
  2815. --- ************************************************
  2816. ---
  2817. CREATE VIEW rna_aptamer AS
  2818. SELECT
  2819. feature_id AS rna_aptamer_id,
  2820. feature.*
  2821. FROM
  2822. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2823. WHERE cvterm.name = 'RNA_aptamer';
  2824. --- ************************************************
  2825. --- *** relation: morpholino_oligo ***
  2826. --- *** relation type: VIEW ***
  2827. --- *** ***
  2828. --- *** Morpholino oligos are synthesized from f ***
  2829. --- *** our different Morpholino subunits, each ***
  2830. --- *** of which contains one of the four geneti ***
  2831. --- *** c bases (A, C, G, T) linked to a 6-membe ***
  2832. --- *** red morpholine ring. Eighteen to 25 subu ***
  2833. --- *** nits of these four subunit types are joi ***
  2834. --- *** ned in a specific order by non-ionic pho ***
  2835. --- *** sphorodiamidate intersubunit linkages to ***
  2836. --- *** give a Morpholino. ***
  2837. --- ************************************************
  2838. ---
  2839. CREATE VIEW morpholino_oligo AS
  2840. SELECT
  2841. feature_id AS morpholino_oligo_id,
  2842. feature.*
  2843. FROM
  2844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2845. WHERE cvterm.name = 'morpholino_oligo';
  2846. --- ************************************************
  2847. --- *** relation: riboswitch ***
  2848. --- *** relation type: VIEW ***
  2849. --- *** ***
  2850. --- *** A riboswitch is a part of an mRNA that c ***
  2851. --- *** an act as a direct sensor of small molec ***
  2852. --- *** ules to control their own expression. A ***
  2853. --- *** riboswitch is a cis element in the 5' en ***
  2854. --- *** d of an mRNA, that acts as a direct sens ***
  2855. --- *** or of metabolites. ***
  2856. --- ************************************************
  2857. ---
  2858. CREATE VIEW riboswitch AS
  2859. SELECT
  2860. feature_id AS riboswitch_id,
  2861. feature.*
  2862. FROM
  2863. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2864. WHERE cvterm.name = 'riboswitch';
  2865. --- ************************************************
  2866. --- *** relation: matrix_attachment_site ***
  2867. --- *** relation type: VIEW ***
  2868. --- *** ***
  2869. --- *** A DNA region that is required for the bi ***
  2870. --- *** nding of chromatin to the nuclear matrix ***
  2871. --- *** . ***
  2872. --- ************************************************
  2873. ---
  2874. CREATE VIEW matrix_attachment_site AS
  2875. SELECT
  2876. feature_id AS matrix_attachment_site_id,
  2877. feature.*
  2878. FROM
  2879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2880. WHERE cvterm.name = 'matrix_attachment_site';
  2881. --- ************************************************
  2882. --- *** relation: locus_control_region ***
  2883. --- *** relation type: VIEW ***
  2884. --- *** ***
  2885. --- *** A DNA region that includes DNAse hyperse ***
  2886. --- *** nsitive sites located 5' to a gene that ***
  2887. --- *** confers the high-level, position-indepen ***
  2888. --- *** dent, and copy number-dependent expressi ***
  2889. --- *** on to that gene. ***
  2890. --- ************************************************
  2891. ---
  2892. CREATE VIEW locus_control_region AS
  2893. SELECT
  2894. feature_id AS locus_control_region_id,
  2895. feature.*
  2896. FROM
  2897. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2898. WHERE cvterm.name = 'locus_control_region';
  2899. --- ************************************************
  2900. --- *** relation: match_part ***
  2901. --- *** relation type: VIEW ***
  2902. --- *** ***
  2903. --- *** A part of a match, for example an hsp fr ***
  2904. --- *** om blast is a match_part. ***
  2905. --- ************************************************
  2906. ---
  2907. CREATE VIEW match_part AS
  2908. SELECT
  2909. feature_id AS match_part_id,
  2910. feature.*
  2911. FROM
  2912. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2913. WHERE cvterm.name = 'match_part';
  2914. --- ************************************************
  2915. --- *** relation: genomic_clone ***
  2916. --- *** relation type: VIEW ***
  2917. --- *** ***
  2918. --- *** A clone of a DNA region of a genome. ***
  2919. --- ************************************************
  2920. ---
  2921. CREATE VIEW genomic_clone AS
  2922. SELECT
  2923. feature_id AS genomic_clone_id,
  2924. feature.*
  2925. FROM
  2926. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2927. WHERE cvterm.name = 'genomic_clone';
  2928. --- ************************************************
  2929. --- *** relation: processed_pseudogene ***
  2930. --- *** relation type: VIEW ***
  2931. --- *** ***
  2932. --- *** A pseudogene where by an mRNA was retrot ***
  2933. --- *** ransposed. The mRNA sequence is transcri ***
  2934. --- *** bed back into the genome, lacking intron ***
  2935. --- *** s and promoters, but often including a p ***
  2936. --- *** olyA tail. ***
  2937. --- ************************************************
  2938. ---
  2939. CREATE VIEW processed_pseudogene AS
  2940. SELECT
  2941. feature_id AS processed_pseudogene_id,
  2942. feature.*
  2943. FROM
  2944. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2945. WHERE cvterm.name = 'processed_pseudogene';
  2946. --- ************************************************
  2947. --- *** relation: pseudogene_by_unequal_crossing_over ***
  2948. --- *** relation type: VIEW ***
  2949. --- *** ***
  2950. --- *** A pseudogene caused by unequal crossing ***
  2951. --- *** over at recombination. ***
  2952. --- ************************************************
  2953. ---
  2954. CREATE VIEW pseudogene_by_unequal_crossing_over AS
  2955. SELECT
  2956. feature_id AS pseudogene_by_unequal_crossing_over_id,
  2957. feature.*
  2958. FROM
  2959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2960. WHERE cvterm.name = 'pseudogene_by_unequal_crossing_over';
  2961. --- ************************************************
  2962. --- *** relation: probe ***
  2963. --- *** relation type: VIEW ***
  2964. --- *** ***
  2965. --- *** A DNA sequence used experimentally to de ***
  2966. --- *** tect the presence or absence of a comple ***
  2967. --- *** mentary nucleic acid. ***
  2968. --- ************************************************
  2969. ---
  2970. CREATE VIEW probe AS
  2971. SELECT
  2972. feature_id AS probe_id,
  2973. feature.*
  2974. FROM
  2975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2976. WHERE cvterm.name = 'microarray_oligo' OR cvterm.name = 'probe';
  2977. --- ************************************************
  2978. --- *** relation: aneuploid ***
  2979. --- *** relation type: VIEW ***
  2980. --- *** ***
  2981. --- *** A kind of chromosome variation where the ***
  2982. --- *** chromosome complement is not an exact m ***
  2983. --- *** ultiple of the haploid number. ***
  2984. --- ************************************************
  2985. ---
  2986. CREATE VIEW aneuploid AS
  2987. SELECT
  2988. feature_id AS aneuploid_id,
  2989. feature.*
  2990. FROM
  2991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2992. WHERE cvterm.name = 'hyperploid' OR cvterm.name = 'hypoploid' OR cvterm.name = 'aneuploid';
  2993. --- ************************************************
  2994. --- *** relation: hyperploid ***
  2995. --- *** relation type: VIEW ***
  2996. --- *** ***
  2997. --- *** A kind of chromosome variation where the ***
  2998. --- *** chromosome complement is not an exact m ***
  2999. --- *** ultiple of the haploid number as extra c ***
  3000. --- *** hromosomes are present. ***
  3001. --- ************************************************
  3002. ---
  3003. CREATE VIEW hyperploid AS
  3004. SELECT
  3005. feature_id AS hyperploid_id,
  3006. feature.*
  3007. FROM
  3008. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3009. WHERE cvterm.name = 'hyperploid';
  3010. --- ************************************************
  3011. --- *** relation: hypoploid ***
  3012. --- *** relation type: VIEW ***
  3013. --- *** ***
  3014. --- *** A kind of chromosome variation where the ***
  3015. --- *** chromosome complement is not an exact m ***
  3016. --- *** ultiple of the haploid number as some ch ***
  3017. --- *** romosomes are missing. ***
  3018. --- ************************************************
  3019. ---
  3020. CREATE VIEW hypoploid AS
  3021. SELECT
  3022. feature_id AS hypoploid_id,
  3023. feature.*
  3024. FROM
  3025. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3026. WHERE cvterm.name = 'hypoploid';
  3027. --- ************************************************
  3028. --- *** relation: operator ***
  3029. --- *** relation type: VIEW ***
  3030. --- *** ***
  3031. --- *** A regulatory element of an operon to whi ***
  3032. --- *** ch activators or repressors bind thereby ***
  3033. --- *** effecting translation of genes in that ***
  3034. --- *** operon. ***
  3035. --- ************************************************
  3036. ---
  3037. CREATE VIEW operator AS
  3038. SELECT
  3039. feature_id AS operator_id,
  3040. feature.*
  3041. FROM
  3042. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3043. WHERE cvterm.name = 'operator';
  3044. --- ************************************************
  3045. --- *** relation: nuclease_binding_site ***
  3046. --- *** relation type: VIEW ***
  3047. --- *** ***
  3048. --- *** A binding site that, of a nucleotide mol ***
  3049. --- *** ecule, that interacts selectively and no ***
  3050. --- *** n-covalently with polypeptide residues o ***
  3051. --- *** f a nuclease. ***
  3052. --- ************************************************
  3053. ---
  3054. CREATE VIEW nuclease_binding_site AS
  3055. SELECT
  3056. feature_id AS nuclease_binding_site_id,
  3057. feature.*
  3058. FROM
  3059. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3060. WHERE cvterm.name = 'restriction_enzyme_binding_site' OR cvterm.name = 'nuclease_sensitive_site' OR cvterm.name = 'homing_endonuclease_binding_site' OR cvterm.name = 'nuclease_hypersensitive_site' OR cvterm.name = 'group_1_intron_homing_endonuclease_target_region' OR cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'nuclease_binding_site';
  3061. --- ************************************************
  3062. --- *** relation: compound_chromosome_arm ***
  3063. --- *** relation type: VIEW ***
  3064. --- *** ***
  3065. --- ************************************************
  3066. ---
  3067. CREATE VIEW compound_chromosome_arm AS
  3068. SELECT
  3069. feature_id AS compound_chromosome_arm_id,
  3070. feature.*
  3071. FROM
  3072. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3073. WHERE cvterm.name = 'compound_chromosome_arm';
  3074. --- ************************************************
  3075. --- *** relation: restriction_enzyme_binding_site ***
  3076. --- *** relation type: VIEW ***
  3077. --- *** ***
  3078. --- *** A binding site that, in the nucleotide m ***
  3079. --- *** olecule, interacts selectively and non-c ***
  3080. --- *** ovalently with polypeptide residues of a ***
  3081. --- *** restriction enzyme. ***
  3082. --- ************************************************
  3083. ---
  3084. CREATE VIEW restriction_enzyme_binding_site AS
  3085. SELECT
  3086. feature_id AS restriction_enzyme_binding_site_id,
  3087. feature.*
  3088. FROM
  3089. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3090. WHERE cvterm.name = 'restriction_enzyme_binding_site';
  3091. --- ************************************************
  3092. --- *** relation: d_intrachr_transposition ***
  3093. --- *** relation type: VIEW ***
  3094. --- *** ***
  3095. --- *** An intrachromosomal transposition whereb ***
  3096. --- *** y a translocation in which one of the fo ***
  3097. --- *** ur broken ends loses a segment before re ***
  3098. --- *** -joining. ***
  3099. --- ************************************************
  3100. ---
  3101. CREATE VIEW d_intrachr_transposition AS
  3102. SELECT
  3103. feature_id AS d_intrachr_transposition_id,
  3104. feature.*
  3105. FROM
  3106. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3107. WHERE cvterm.name = 'deficient_intrachromosomal_transposition';
  3108. --- ************************************************
  3109. --- *** relation: d_interchr_transposition ***
  3110. --- *** relation type: VIEW ***
  3111. --- *** ***
  3112. --- *** An interchromosomal transposition whereb ***
  3113. --- *** y a translocation in which one of the fo ***
  3114. --- *** ur broken ends loses a segment before re ***
  3115. --- *** -joining. ***
  3116. --- ************************************************
  3117. ---
  3118. CREATE VIEW d_interchr_transposition AS
  3119. SELECT
  3120. feature_id AS d_interchr_transposition_id,
  3121. feature.*
  3122. FROM
  3123. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3124. WHERE cvterm.name = 'deficient_interchromosomal_transposition';
  3125. --- ************************************************
  3126. --- *** relation: free_chromosome_arm ***
  3127. --- *** relation type: VIEW ***
  3128. --- *** ***
  3129. --- *** A chromosome structure variation whereby ***
  3130. --- *** an arm exists as an individual chromoso ***
  3131. --- *** me element. ***
  3132. --- ************************************************
  3133. ---
  3134. CREATE VIEW free_chromosome_arm AS
  3135. SELECT
  3136. feature_id AS free_chromosome_arm_id,
  3137. feature.*
  3138. FROM
  3139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3140. WHERE cvterm.name = 'free_chromosome_arm';
  3141. --- ************************************************
  3142. --- *** relation: gene_to_gene_feature ***
  3143. --- *** relation type: VIEW ***
  3144. --- *** ***
  3145. --- ************************************************
  3146. ---
  3147. CREATE VIEW gene_to_gene_feature AS
  3148. SELECT
  3149. feature_id AS gene_to_gene_feature_id,
  3150. feature.*
  3151. FROM
  3152. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3153. WHERE cvterm.name = 'overlapping' OR cvterm.name = 'inside_intron' OR cvterm.name = 'five_prime_three_prime_overlap' OR cvterm.name = 'five_prime_five_prime_overlap' OR cvterm.name = 'three_prime_three_prime_overlap' OR cvterm.name = 'three_prime_five_prime_overlap' OR cvterm.name = 'antisense' OR cvterm.name = 'inside_intron_antiparallel' OR cvterm.name = 'inside_intron_parallel' OR cvterm.name = 'gene_to_gene_feature';
  3154. --- ************************************************
  3155. --- *** relation: overlapping ***
  3156. --- *** relation type: VIEW ***
  3157. --- *** ***
  3158. --- *** An attribute describing a gene that has ***
  3159. --- *** a sequence that overlaps the sequence of ***
  3160. --- *** another gene. ***
  3161. --- ************************************************
  3162. ---
  3163. CREATE VIEW overlapping AS
  3164. SELECT
  3165. feature_id AS overlapping_id,
  3166. feature.*
  3167. FROM
  3168. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3169. WHERE cvterm.name = 'inside_intron' OR cvterm.name = 'five_prime_three_prime_overlap' OR cvterm.name = 'five_prime_five_prime_overlap' OR cvterm.name = 'three_prime_three_prime_overlap' OR cvterm.name = 'three_prime_five_prime_overlap' OR cvterm.name = 'antisense' OR cvterm.name = 'inside_intron_antiparallel' OR cvterm.name = 'inside_intron_parallel' OR cvterm.name = 'overlapping';
  3170. --- ************************************************
  3171. --- *** relation: inside_intron ***
  3172. --- *** relation type: VIEW ***
  3173. --- *** ***
  3174. --- *** An attribute to describe a gene when it ***
  3175. --- *** is located within the intron of another ***
  3176. --- *** gene. ***
  3177. --- ************************************************
  3178. ---
  3179. CREATE VIEW inside_intron AS
  3180. SELECT
  3181. feature_id AS inside_intron_id,
  3182. feature.*
  3183. FROM
  3184. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3185. WHERE cvterm.name = 'inside_intron_antiparallel' OR cvterm.name = 'inside_intron_parallel' OR cvterm.name = 'inside_intron';
  3186. --- ************************************************
  3187. --- *** relation: inside_intron_antiparallel ***
  3188. --- *** relation type: VIEW ***
  3189. --- *** ***
  3190. --- *** An attribute to describe a gene when it ***
  3191. --- *** is located within the intron of another ***
  3192. --- *** gene and on the opposite strand. ***
  3193. --- ************************************************
  3194. ---
  3195. CREATE VIEW inside_intron_antiparallel AS
  3196. SELECT
  3197. feature_id AS inside_intron_antiparallel_id,
  3198. feature.*
  3199. FROM
  3200. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3201. WHERE cvterm.name = 'inside_intron_antiparallel';
  3202. --- ************************************************
  3203. --- *** relation: inside_intron_parallel ***
  3204. --- *** relation type: VIEW ***
  3205. --- *** ***
  3206. --- *** An attribute to describe a gene when it ***
  3207. --- *** is located within the intron of another ***
  3208. --- *** gene and on the same strand. ***
  3209. --- ************************************************
  3210. ---
  3211. CREATE VIEW inside_intron_parallel AS
  3212. SELECT
  3213. feature_id AS inside_intron_parallel_id,
  3214. feature.*
  3215. FROM
  3216. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3217. WHERE cvterm.name = 'inside_intron_parallel';
  3218. --- ************************************************
  3219. --- *** relation: five_prime_three_prime_overlap ***
  3220. --- *** relation type: VIEW ***
  3221. --- *** ***
  3222. --- *** An attribute to describe a gene when the ***
  3223. --- *** five prime region overlaps with another ***
  3224. --- *** gene's 3' region. ***
  3225. --- ************************************************
  3226. ---
  3227. CREATE VIEW five_prime_three_prime_overlap AS
  3228. SELECT
  3229. feature_id AS five_prime_three_prime_overlap_id,
  3230. feature.*
  3231. FROM
  3232. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3233. WHERE cvterm.name = 'five_prime_three_prime_overlap';
  3234. --- ************************************************
  3235. --- *** relation: five_prime_five_prime_overlap ***
  3236. --- *** relation type: VIEW ***
  3237. --- *** ***
  3238. --- *** An attribute to describe a gene when the ***
  3239. --- *** five prime region overlaps with another ***
  3240. --- *** gene's five prime region. ***
  3241. --- ************************************************
  3242. ---
  3243. CREATE VIEW five_prime_five_prime_overlap AS
  3244. SELECT
  3245. feature_id AS five_prime_five_prime_overlap_id,
  3246. feature.*
  3247. FROM
  3248. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3249. WHERE cvterm.name = 'five_prime_five_prime_overlap';
  3250. --- ************************************************
  3251. --- *** relation: three_prime_three_prime_overlap ***
  3252. --- *** relation type: VIEW ***
  3253. --- *** ***
  3254. --- *** An attribute to describe a gene when the ***
  3255. --- *** 3' region overlaps with another gene's ***
  3256. --- *** 3' region. ***
  3257. --- ************************************************
  3258. ---
  3259. CREATE VIEW three_prime_three_prime_overlap AS
  3260. SELECT
  3261. feature_id AS three_prime_three_prime_overlap_id,
  3262. feature.*
  3263. FROM
  3264. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3265. WHERE cvterm.name = 'three_prime_three_prime_overlap';
  3266. --- ************************************************
  3267. --- *** relation: three_prime_five_prime_overlap ***
  3268. --- *** relation type: VIEW ***
  3269. --- *** ***
  3270. --- *** An attribute to describe a gene when the ***
  3271. --- *** 3' region overlaps with another gene's ***
  3272. --- *** 5' region. ***
  3273. --- ************************************************
  3274. ---
  3275. CREATE VIEW three_prime_five_prime_overlap AS
  3276. SELECT
  3277. feature_id AS three_prime_five_prime_overlap_id,
  3278. feature.*
  3279. FROM
  3280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3281. WHERE cvterm.name = 'three_prime_five_prime_overlap';
  3282. --- ************************************************
  3283. --- *** relation: antisense ***
  3284. --- *** relation type: VIEW ***
  3285. --- *** ***
  3286. --- *** A region sequence that is complementary ***
  3287. --- *** to a sequence of messenger RNA. ***
  3288. --- ************************************************
  3289. ---
  3290. CREATE VIEW antisense AS
  3291. SELECT
  3292. feature_id AS antisense_id,
  3293. feature.*
  3294. FROM
  3295. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3296. WHERE cvterm.name = 'antisense';
  3297. --- ************************************************
  3298. --- *** relation: polycistronic_transcript ***
  3299. --- *** relation type: VIEW ***
  3300. --- *** ***
  3301. --- *** A transcript that is polycistronic. ***
  3302. --- ************************************************
  3303. ---
  3304. CREATE VIEW polycistronic_transcript AS
  3305. SELECT
  3306. feature_id AS polycistronic_transcript_id,
  3307. feature.*
  3308. FROM
  3309. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3310. WHERE cvterm.name = 'dicistronic_transcript' OR cvterm.name = 'polycistronic_primary_transcript' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'polycistronic_transcript';
  3311. --- ************************************************
  3312. --- *** relation: dicistronic_transcript ***
  3313. --- *** relation type: VIEW ***
  3314. --- *** ***
  3315. --- *** A transcript that is dicistronic. ***
  3316. --- ************************************************
  3317. ---
  3318. CREATE VIEW dicistronic_transcript AS
  3319. SELECT
  3320. feature_id AS dicistronic_transcript_id,
  3321. feature.*
  3322. FROM
  3323. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3324. WHERE cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_transcript';
  3325. --- ************************************************
  3326. --- *** relation: operon_member ***
  3327. --- *** relation type: VIEW ***
  3328. --- *** ***
  3329. --- ************************************************
  3330. ---
  3331. CREATE VIEW operon_member AS
  3332. SELECT
  3333. feature_id AS operon_member_id,
  3334. feature.*
  3335. FROM
  3336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3337. WHERE cvterm.name = 'operon_member';
  3338. --- ************************************************
  3339. --- *** relation: gene_array_member ***
  3340. --- *** relation type: VIEW ***
  3341. --- *** ***
  3342. --- ************************************************
  3343. ---
  3344. CREATE VIEW gene_array_member AS
  3345. SELECT
  3346. feature_id AS gene_array_member_id,
  3347. feature.*
  3348. FROM
  3349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3350. WHERE cvterm.name = 'operon_member' OR cvterm.name = 'gene_cassette_member' OR cvterm.name = 'gene_subarray_member' OR cvterm.name = 'member_of_regulon' OR cvterm.name = 'cassette_array_member' OR cvterm.name = 'gene_array_member';
  3351. --- ************************************************
  3352. --- *** relation: macronuclear_sequence ***
  3353. --- *** relation type: VIEW ***
  3354. --- *** ***
  3355. --- ************************************************
  3356. ---
  3357. CREATE VIEW macronuclear_sequence AS
  3358. SELECT
  3359. feature_id AS macronuclear_sequence_id,
  3360. feature.*
  3361. FROM
  3362. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3363. WHERE cvterm.name = 'macronuclear_sequence';
  3364. --- ************************************************
  3365. --- *** relation: micronuclear_sequence ***
  3366. --- *** relation type: VIEW ***
  3367. --- *** ***
  3368. --- ************************************************
  3369. ---
  3370. CREATE VIEW micronuclear_sequence AS
  3371. SELECT
  3372. feature_id AS micronuclear_sequence_id,
  3373. feature.*
  3374. FROM
  3375. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3376. WHERE cvterm.name = 'micronuclear_sequence';
  3377. --- ************************************************
  3378. --- *** relation: nuclear_gene ***
  3379. --- *** relation type: VIEW ***
  3380. --- *** ***
  3381. --- *** A gene from nuclear sequence. ***
  3382. --- ************************************************
  3383. ---
  3384. CREATE VIEW nuclear_gene AS
  3385. SELECT
  3386. feature_id AS nuclear_gene_id,
  3387. feature.*
  3388. FROM
  3389. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3390. WHERE cvterm.name = 'nuclear_gene';
  3391. --- ************************************************
  3392. --- *** relation: mt_gene ***
  3393. --- *** relation type: VIEW ***
  3394. --- *** ***
  3395. --- *** A gene located in mitochondrial sequence ***
  3396. --- *** . ***
  3397. --- ************************************************
  3398. ---
  3399. CREATE VIEW mt_gene AS
  3400. SELECT
  3401. feature_id AS mt_gene_id,
  3402. feature.*
  3403. FROM
  3404. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3405. WHERE cvterm.name = 'kinetoplast_gene' OR cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'mt_gene';
  3406. --- ************************************************
  3407. --- *** relation: kinetoplast_gene ***
  3408. --- *** relation type: VIEW ***
  3409. --- *** ***
  3410. --- *** A gene located in kinetoplast sequence. ***
  3411. --- ************************************************
  3412. ---
  3413. CREATE VIEW kinetoplast_gene AS
  3414. SELECT
  3415. feature_id AS kinetoplast_gene_id,
  3416. feature.*
  3417. FROM
  3418. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3419. WHERE cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'kinetoplast_gene';
  3420. --- ************************************************
  3421. --- *** relation: plastid_gene ***
  3422. --- *** relation type: VIEW ***
  3423. --- *** ***
  3424. --- *** A gene from plastid sequence. ***
  3425. --- ************************************************
  3426. ---
  3427. CREATE VIEW plastid_gene AS
  3428. SELECT
  3429. feature_id AS plastid_gene_id,
  3430. feature.*
  3431. FROM
  3432. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3433. WHERE cvterm.name = 'apicoplast_gene' OR cvterm.name = 'ct_gene' OR cvterm.name = 'chromoplast_gene' OR cvterm.name = 'cyanelle_gene' OR cvterm.name = 'leucoplast_gene' OR cvterm.name = 'proplastid_gene' OR cvterm.name = 'plastid_gene';
  3434. --- ************************************************
  3435. --- *** relation: apicoplast_gene ***
  3436. --- *** relation type: VIEW ***
  3437. --- *** ***
  3438. --- *** A gene from apicoplast sequence. ***
  3439. --- ************************************************
  3440. ---
  3441. CREATE VIEW apicoplast_gene AS
  3442. SELECT
  3443. feature_id AS apicoplast_gene_id,
  3444. feature.*
  3445. FROM
  3446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3447. WHERE cvterm.name = 'apicoplast_gene';
  3448. --- ************************************************
  3449. --- *** relation: ct_gene ***
  3450. --- *** relation type: VIEW ***
  3451. --- *** ***
  3452. --- *** A gene from chloroplast sequence. ***
  3453. --- ************************************************
  3454. ---
  3455. CREATE VIEW ct_gene AS
  3456. SELECT
  3457. feature_id AS ct_gene_id,
  3458. feature.*
  3459. FROM
  3460. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3461. WHERE cvterm.name = 'ct_gene';
  3462. --- ************************************************
  3463. --- *** relation: chromoplast_gene ***
  3464. --- *** relation type: VIEW ***
  3465. --- *** ***
  3466. --- *** A gene from chromoplast_sequence. ***
  3467. --- ************************************************
  3468. ---
  3469. CREATE VIEW chromoplast_gene AS
  3470. SELECT
  3471. feature_id AS chromoplast_gene_id,
  3472. feature.*
  3473. FROM
  3474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3475. WHERE cvterm.name = 'chromoplast_gene';
  3476. --- ************************************************
  3477. --- *** relation: cyanelle_gene ***
  3478. --- *** relation type: VIEW ***
  3479. --- *** ***
  3480. --- *** A gene from cyanelle sequence. ***
  3481. --- ************************************************
  3482. ---
  3483. CREATE VIEW cyanelle_gene AS
  3484. SELECT
  3485. feature_id AS cyanelle_gene_id,
  3486. feature.*
  3487. FROM
  3488. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3489. WHERE cvterm.name = 'cyanelle_gene';
  3490. --- ************************************************
  3491. --- *** relation: leucoplast_gene ***
  3492. --- *** relation type: VIEW ***
  3493. --- *** ***
  3494. --- *** A plastid gene from leucoplast sequence. ***
  3495. --- ************************************************
  3496. ---
  3497. CREATE VIEW leucoplast_gene AS
  3498. SELECT
  3499. feature_id AS leucoplast_gene_id,
  3500. feature.*
  3501. FROM
  3502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3503. WHERE cvterm.name = 'leucoplast_gene';
  3504. --- ************************************************
  3505. --- *** relation: proplastid_gene ***
  3506. --- *** relation type: VIEW ***
  3507. --- *** ***
  3508. --- *** A gene from proplastid sequence. ***
  3509. --- ************************************************
  3510. ---
  3511. CREATE VIEW proplastid_gene AS
  3512. SELECT
  3513. feature_id AS proplastid_gene_id,
  3514. feature.*
  3515. FROM
  3516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3517. WHERE cvterm.name = 'proplastid_gene';
  3518. --- ************************************************
  3519. --- *** relation: nucleomorph_gene ***
  3520. --- *** relation type: VIEW ***
  3521. --- *** ***
  3522. --- *** A gene from nucleomorph sequence. ***
  3523. --- ************************************************
  3524. ---
  3525. CREATE VIEW nucleomorph_gene AS
  3526. SELECT
  3527. feature_id AS nucleomorph_gene_id,
  3528. feature.*
  3529. FROM
  3530. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3531. WHERE cvterm.name = 'nucleomorph_gene';
  3532. --- ************************************************
  3533. --- *** relation: plasmid_gene ***
  3534. --- *** relation type: VIEW ***
  3535. --- *** ***
  3536. --- *** A gene from plasmid sequence. ***
  3537. --- ************************************************
  3538. ---
  3539. CREATE VIEW plasmid_gene AS
  3540. SELECT
  3541. feature_id AS plasmid_gene_id,
  3542. feature.*
  3543. FROM
  3544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3545. WHERE cvterm.name = 'plasmid_gene';
  3546. --- ************************************************
  3547. --- *** relation: proviral_gene ***
  3548. --- *** relation type: VIEW ***
  3549. --- *** ***
  3550. --- *** A gene from proviral sequence. ***
  3551. --- ************************************************
  3552. ---
  3553. CREATE VIEW proviral_gene AS
  3554. SELECT
  3555. feature_id AS proviral_gene_id,
  3556. feature.*
  3557. FROM
  3558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3559. WHERE cvterm.name = 'endogenous_retroviral_gene' OR cvterm.name = 'proviral_gene';
  3560. --- ************************************************
  3561. --- *** relation: endogenous_retroviral_gene ***
  3562. --- *** relation type: VIEW ***
  3563. --- *** ***
  3564. --- *** A proviral gene with origin endogenous r ***
  3565. --- *** etrovirus. ***
  3566. --- ************************************************
  3567. ---
  3568. CREATE VIEW endogenous_retroviral_gene AS
  3569. SELECT
  3570. feature_id AS endogenous_retroviral_gene_id,
  3571. feature.*
  3572. FROM
  3573. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3574. WHERE cvterm.name = 'endogenous_retroviral_gene';
  3575. --- ************************************************
  3576. --- *** relation: transposable_element ***
  3577. --- *** relation type: VIEW ***
  3578. --- *** ***
  3579. --- *** A transposon or insertion sequence. An e ***
  3580. --- *** lement that can insert in a variety of D ***
  3581. --- *** NA sequences. ***
  3582. --- ************************************************
  3583. ---
  3584. CREATE VIEW transposable_element AS
  3585. SELECT
  3586. feature_id AS transposable_element_id,
  3587. feature.*
  3588. FROM
  3589. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3590. WHERE cvterm.name = 'retrotransposon' OR cvterm.name = 'DNA_transposon' OR cvterm.name = 'foreign_transposable_element' OR cvterm.name = 'transgenic_transposable_element' OR cvterm.name = 'natural_transposable_element' OR cvterm.name = 'engineered_transposable_element' OR cvterm.name = 'nested_transposon' OR cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'terminal_inverted_repeat_element' OR cvterm.name = 'foldback_element' OR cvterm.name = 'conjugative_transposon' OR cvterm.name = 'helitron' OR cvterm.name = 'p_element' OR cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'transposable_element';
  3591. --- ************************************************
  3592. --- *** relation: expressed_sequence_match ***
  3593. --- *** relation type: VIEW ***
  3594. --- *** ***
  3595. --- *** A match to an EST or cDNA sequence. ***
  3596. --- ************************************************
  3597. ---
  3598. CREATE VIEW expressed_sequence_match AS
  3599. SELECT
  3600. feature_id AS expressed_sequence_match_id,
  3601. feature.*
  3602. FROM
  3603. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3604. WHERE cvterm.name = 'EST_match' OR cvterm.name = 'cDNA_match' OR cvterm.name = 'UST_match' OR cvterm.name = 'RST_match' OR cvterm.name = 'expressed_sequence_match';
  3605. --- ************************************************
  3606. --- *** relation: clone_insert_end ***
  3607. --- *** relation type: VIEW ***
  3608. --- *** ***
  3609. --- *** The end of the clone insert. ***
  3610. --- ************************************************
  3611. ---
  3612. CREATE VIEW clone_insert_end AS
  3613. SELECT
  3614. feature_id AS clone_insert_end_id,
  3615. feature.*
  3616. FROM
  3617. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3618. WHERE cvterm.name = 'clone_insert_end';
  3619. --- ************************************************
  3620. --- *** relation: polypeptide ***
  3621. --- *** relation type: VIEW ***
  3622. --- *** ***
  3623. --- *** A sequence of amino acids linked by pept ***
  3624. --- *** ide bonds which may lack appreciable ter ***
  3625. --- *** tiary structure and may not be liable to ***
  3626. --- *** irreversible denaturation. ***
  3627. --- ************************************************
  3628. ---
  3629. CREATE VIEW polypeptide AS
  3630. SELECT
  3631. feature_id AS polypeptide_id,
  3632. feature.*
  3633. FROM
  3634. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3635. WHERE cvterm.name = 'polypeptide';
  3636. --- ************************************************
  3637. --- *** relation: chromosome_arm ***
  3638. --- *** relation type: VIEW ***
  3639. --- *** ***
  3640. --- *** A region of the chromosome between the c ***
  3641. --- *** entromere and the telomere. Human chromo ***
  3642. --- *** somes have two arms, the p arm (short) a ***
  3643. --- *** nd the q arm (long) which are separated ***
  3644. --- *** from each other by the centromere. ***
  3645. --- ************************************************
  3646. ---
  3647. CREATE VIEW chromosome_arm AS
  3648. SELECT
  3649. feature_id AS chromosome_arm_id,
  3650. feature.*
  3651. FROM
  3652. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3653. WHERE cvterm.name = 'chromosome_arm';
  3654. --- ************************************************
  3655. --- *** relation: sequencing_primer ***
  3656. --- *** relation type: VIEW ***
  3657. --- *** ***
  3658. --- ************************************************
  3659. ---
  3660. CREATE VIEW sequencing_primer AS
  3661. SELECT
  3662. feature_id AS sequencing_primer_id,
  3663. feature.*
  3664. FROM
  3665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3666. WHERE cvterm.name = 'sequencing_primer';
  3667. --- ************************************************
  3668. --- *** relation: mrna_with_frameshift ***
  3669. --- *** relation type: VIEW ***
  3670. --- *** ***
  3671. --- *** An mRNA with a frameshift. ***
  3672. --- ************************************************
  3673. ---
  3674. CREATE VIEW mrna_with_frameshift AS
  3675. SELECT
  3676. feature_id AS mrna_with_frameshift_id,
  3677. feature.*
  3678. FROM
  3679. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3680. WHERE cvterm.name = 'mRNA_with_minus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_2_frameshift' OR cvterm.name = 'mRNA_with_minus_2_frameshift' OR cvterm.name = 'mRNA_with_frameshift';
  3681. --- ************************************************
  3682. --- *** relation: sequence_feature ***
  3683. --- *** relation type: VIEW ***
  3684. --- *** ***
  3685. --- *** An extent of biological sequence. ***
  3686. --- ************************************************
  3687. ---
  3688. CREATE VIEW sequence_feature AS
  3689. SELECT
  3690. feature_id AS sequence_feature_id,
  3691. feature.*
  3692. FROM
  3693. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3694. WHERE cvterm.name = 'region' OR cvterm.name = 'junction' OR cvterm.name = 'sequence_alteration' OR cvterm.name = 'biomaterial_region' OR cvterm.name = 'experimental_feature' OR cvterm.name = 'biological_region' OR cvterm.name = 'topologically_defined_region' OR cvterm.name = 'reagent' OR cvterm.name = 'engineered_region' OR cvterm.name = 'PCR_product' OR cvterm.name = 'clone' OR cvterm.name = 'rescue_region' OR cvterm.name = 'oligo' OR cvterm.name = 'clone_insert' OR cvterm.name = 'cloned_region' OR cvterm.name = 'databank_entry' OR cvterm.name = 'RAPD' OR cvterm.name = 'genomic_clone' OR cvterm.name = 'cDNA_clone' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'validated_cDNA_clone' OR cvterm.name = 'invalidated_cDNA_clone' OR cvterm.name = 'three_prime_RACE_clone' OR cvterm.name = 'chimeric_cDNA_clone' OR cvterm.name = 'genomically_contaminated_cDNA_clone' OR cvterm.name = 'polyA_primed_cDNA_clone' OR cvterm.name = 'partially_processed_cDNA_clone' OR cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'aptamer' OR cvterm.name = 'probe' OR cvterm.name = 'tag' OR cvterm.name = 'ss_oligo' OR cvterm.name = 'ds_oligo' OR cvterm.name = 'DNAzyme' OR cvterm.name = 'synthetic_oligo' OR cvterm.name = 'DNA_aptamer' OR cvterm.name = 'RNA_aptamer' OR cvterm.name = 'microarray_oligo' OR cvterm.name = 'SAGE_tag' OR cvterm.name = 'STS' OR cvterm.name = 'EST' OR cvterm.name = 'engineered_tag' OR cvterm.name = 'five_prime_EST' OR cvterm.name = 'three_prime_EST' OR cvterm.name = 'UST' OR cvterm.name = 'RST' OR cvterm.name = 'three_prime_UST' OR cvterm.name = 'five_prime_UST' OR cvterm.name = 'three_prime_RST' OR cvterm.name = 'five_prime_RST' OR cvterm.name = 'primer' OR cvterm.name = 'sequencing_primer' OR cvterm.name = 'forward_primer' OR cvterm.name = 'reverse_primer' OR cvterm.name = 'ASPE_primer' OR cvterm.name = 'dCAPS_primer' OR cvterm.name = 'RNAi_reagent' OR cvterm.name = 'DNA_constraint_sequence' OR cvterm.name = 'morpholino_oligo' OR cvterm.name = 'PNA_oligo' OR cvterm.name = 'LNA_oligo' OR cvterm.name = 'TNA_oligo' OR cvterm.name = 'GNA_oligo' OR cvterm.name = 'R_GNA_oligo' OR cvterm.name = 'S_GNA_oligo' OR cvterm.name = 'cloned_cDNA_insert' OR cvterm.name = 'cloned_genomic_insert' OR cvterm.name = 'engineered_insert' OR cvterm.name = 'BAC_cloned_genomic_insert' OR cvterm.name = 'engineered_gene' OR cvterm.name = 'engineered_plasmid' OR cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'engineered_transposable_element' OR cvterm.name = 'engineered_foreign_region' OR cvterm.name = 'engineered_tag' OR cvterm.name = 'engineered_insert' OR cvterm.name = 'targeting_vector' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'gene_trap_construct' OR cvterm.name = 'promoter_trap_construct' OR cvterm.name = 'enhancer_trap_construct' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_repetitive_element' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'match_part' OR cvterm.name = 'assembly_component' OR cvterm.name = 'conserved_region' OR cvterm.name = 'match' OR cvterm.name = 'remark' OR cvterm.name = 'reading_frame' OR cvterm.name = 'consensus_region' OR cvterm.name = 'low_complexity_region' OR cvterm.name = 'assembly' OR cvterm.name = 'transcribed_fragment' OR cvterm.name = 'transcribed_cluster' OR cvterm.name = 'high_identity_region' OR cvterm.name = 'mathematically_defined_repeat' OR cvterm.name = 'experimentally_defined_binding_region' OR cvterm.name = 'contig' OR cvterm.name = 'read' OR cvterm.name = 'restriction_fragment' OR cvterm.name = 'golden_path_fragment' OR cvterm.name = 'tiling_path_fragment' OR cvterm.name = 'gap' OR cvterm.name = 'sonicate_fragment' OR cvterm.name = 'paired_end_fragment' OR cvterm.name = 'read_pair' OR cvterm.name = 'contig_read' OR cvterm.name = 'BAC_end' OR cvterm.name = 'dye_terminator_read' OR cvterm.name = 'pyrosequenced_read' OR cvterm.name = 'ligation_based_read' OR cvterm.name = 'polymerase_synthesis_read' OR cvterm.name = 'PAC_end' OR cvterm.name = 'YAC_end' OR cvterm.name = 'clone_end' OR cvterm.name = 'RFLP_fragment' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'coding_conserved_region' OR cvterm.name = 'nc_conserved_region' OR cvterm.name = 'RR_tract' OR cvterm.name = 'homologous_region' OR cvterm.name = 'centromere_DNA_Element_I' OR cvterm.name = 'centromere_DNA_Element_II' OR cvterm.name = 'centromere_DNA_Element_III' OR cvterm.name = 'X_element' OR cvterm.name = 'U_box' OR cvterm.name = 'regional_centromere_central_core' OR cvterm.name = 'syntenic_region' OR cvterm.name = 'paralogous_region' OR cvterm.name = 'orthologous_region' OR cvterm.name = 'nucleotide_match' OR cvterm.name = 'protein_match' OR cvterm.name = 'expressed_sequence_match' OR cvterm.name = 'cross_genome_match' OR cvterm.name = 'translated_nucleotide_match' OR cvterm.name = 'primer_match' OR cvterm.name = 'EST_match' OR cvterm.name = 'cDNA_match' OR cvterm.name = 'UST_match' OR cvterm.name = 'RST_match' OR cvterm.name = 'sequence_difference' OR cvterm.name = 'experimental_result_region' OR cvterm.name = 'polypeptide_sequencing_information' OR cvterm.name = 'possible_base_call_error' OR cvterm.name = 'possible_assembly_error' OR cvterm.name = 'assembly_error_correction' OR cvterm.name = 'base_call_error_correction' OR cvterm.name = 'overlapping_feature_set' OR cvterm.name = 'no_output' OR cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'non_adjacent_residues' OR cvterm.name = 'non_terminal_residue' OR cvterm.name = 'sequence_conflict' OR cvterm.name = 'sequence_uncertainty' OR cvterm.name = 'contig_collection' OR cvterm.name = 'ORF' OR cvterm.name = 'blocked_reading_frame' OR cvterm.name = 'mini_gene' OR cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'consensus_mRNA' OR cvterm.name = 'sequence_assembly' OR cvterm.name = 'fragment_assembly' OR cvterm.name = 'supercontig' OR cvterm.name = 'contig' OR cvterm.name = 'tiling_path' OR cvterm.name = 'virtual_sequence' OR cvterm.name = 'golden_path' OR cvterm.name = 'ultracontig' OR cvterm.name = 'expressed_sequence_assembly' OR cvterm.name = 'fingerprint_map' OR cvterm.name = 'STS_map' OR cvterm.name = 'RH_map' OR cvterm.name = 'unigene_cluster' OR cvterm.name = 'CHiP_seq_region' OR cvterm.name = 'sequence_secondary_structure' OR cvterm.name = 'linkage_group' OR cvterm.name = 'polypeptide' OR cvterm.name = 'deletion' OR cvterm.name = 'origin_of_replication' OR cvterm.name = 'recombination_feature' OR cvterm.name = 'CpG_island' OR cvterm.name = 'pseudogene' OR cvterm.name = 'binding_site' OR cvterm.name = 'pseudogenic_region' OR cvterm.name = 'cap' OR cvterm.name = 'intergenic_region' OR cvterm.name = 'oligo_U_tail' OR cvterm.name = 'polyA_sequence' OR cvterm.name = 'repeat_region' OR cvterm.name = 'insertion' OR cvterm.name = 'gene' OR cvterm.name = 'repeat_unit' OR cvterm.name = 'QTL' OR cvterm.name = 'chromosome_part' OR cvterm.name = 'gene_member_region' OR cvterm.name = 'transcript_region' OR cvterm.name = 'polypeptide_region' OR cvterm.name = 'gene_component_region' OR cvterm.name = 'mobile_genetic_element' OR cvterm.name = 'replicon' OR cvterm.name = 'base' OR cvterm.name = 'amino_acid' OR cvterm.name = 'genetic_marker' OR cvterm.name = 'sequence_motif' OR cvterm.name = 'restriction_enzyme_recognition_site' OR cvterm.name = 'restriction_enzyme_single_strand_overhang' OR cvterm.name = 'epigenetically_modified_region' OR cvterm.name = 'open_chromatin_region' OR cvterm.name = 'gene_group' OR cvterm.name = 'substitution' OR cvterm.name = 'inversion' OR cvterm.name = 'retron' OR cvterm.name = 'G_quartet' OR cvterm.name = 'base_pair' OR cvterm.name = 'RNA_sequence_secondary_structure' OR cvterm.name = 'DNA_sequence_secondary_structure' OR cvterm.name = 'pseudoknot' OR cvterm.name = 'WC_base_pair' OR cvterm.name = 'sugar_edge_base_pair' OR cvterm.name = 'Hoogsteen_base_pair' OR cvterm.name = 'reverse_Hoogsteen_base_pair' OR cvterm.name = 'wobble_base_pair' OR cvterm.name = 'stem_loop' OR cvterm.name = 'tetraloop' OR cvterm.name = 'i_motif' OR cvterm.name = 'recoding_pseudoknot' OR cvterm.name = 'H_pseudoknot' OR cvterm.name = 'D_loop' OR cvterm.name = 'ARS' OR cvterm.name = 'oriT' OR cvterm.name = 'amplification_origin' OR cvterm.name = 'oriV' OR cvterm.name = 'oriC' OR cvterm.name = 'recombination_hotspot' OR cvterm.name = 'haplotype_block' OR cvterm.name = 'sequence_rearrangement_feature' OR cvterm.name = 'iDNA' OR cvterm.name = 'specific_recombination_site' OR cvterm.name = 'chromosome_breakage_sequence' OR cvterm.name = 'internal_eliminated_sequence' OR cvterm.name = 'macronucleus_destined_segment' OR cvterm.name = 'recombination_feature_of_rearranged_gene' OR cvterm.name = 'site_specific_recombination_target_region' OR cvterm.name = 'recombination_signal_sequence' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_feature' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_spacer' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_signal_feature' OR cvterm.name = 'D_gene' OR cvterm.name = 'V_gene' OR cvterm.name = 'J_gene' OR cvterm.name = 'C_gene' OR cvterm.name = 'D_J_C_cluster' OR cvterm.name = 'J_C_cluster' OR cvterm.name = 'J_cluster' OR cvterm.name = 'V_cluster' OR cvterm.name = 'V_J_cluster' OR cvterm.name = 'V_J_C_cluster' OR cvterm.name = 'C_cluster' OR cvterm.name = 'D_cluster' OR cvterm.name = 'D_J_cluster' OR cvterm.name = 'three_prime_D_spacer' OR cvterm.name = 'five_prime_D_spacer' OR cvterm.name = 'J_spacer' OR cvterm.name = 'V_spacer' OR cvterm.name = 'VD_gene' OR cvterm.name = 'DJ_gene' OR cvterm.name = 'VDJ_gene' OR cvterm.name = 'VJ_gene' OR cvterm.name = 'DJ_J_cluster' OR cvterm.name = 'VDJ_J_C_cluster' OR cvterm.name = 'VDJ_J_cluster' OR cvterm.name = 'VJ_C_cluster' OR cvterm.name = 'VJ_J_C_cluster' OR cvterm.name = 'VJ_J_cluster' OR cvterm.name = 'D_DJ_C_cluster' OR cvterm.name = 'D_DJ_cluster' OR cvterm.name = 'D_DJ_J_C_cluster' OR cvterm.name = 'D_DJ_J_cluster' OR cvterm.name = 'V_DJ_cluster' OR cvterm.name = 'V_DJ_J_cluster' OR cvterm.name = 'V_VDJ_C_cluster' OR cvterm.name = 'V_VDJ_cluster' OR cvterm.name = 'V_VDJ_J_cluster' OR cvterm.name = 'V_VJ_C_cluster' OR cvterm.name = 'V_VJ_cluster' OR cvterm.name = 'V_VJ_J_cluster' OR cvterm.name = 'V_D_DJ_C_cluster' OR cvterm.name = 'V_D_DJ_cluster' OR cvterm.name = 'V_D_DJ_J_C_cluster' OR cvterm.name = 'V_D_DJ_J_cluster' OR cvterm.name = 'V_D_J_C_cluster' OR cvterm.name = 'V_D_J_cluster' OR cvterm.name = 'DJ_C_cluster' OR cvterm.name = 'DJ_J_C_cluster' OR cvterm.name = 'VDJ_C_cluster' OR cvterm.name = 'V_DJ_C_cluster' OR cvterm.name = 'V_DJ_J_C_cluster' OR cvterm.name = 'V_VDJ_J_C_cluster' OR cvterm.name = 'V_VJ_J_C_cluster' OR cvterm.name = 'J_gene_recombination_feature' OR cvterm.name = 'D_gene_recombination_feature' OR cvterm.name = 'V_gene_recombination_feature' OR cvterm.name = 'heptamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'nonamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'five_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_heptamer' OR cvterm.name = 'five_prime_D_heptamer' OR cvterm.name = 'J_heptamer' OR cvterm.name = 'V_heptamer' OR cvterm.name = 'three_prime_D_nonamer' OR cvterm.name = 'five_prime_D_nonamer' OR cvterm.name = 'J_nonamer' OR cvterm.name = 'V_nonamer' OR cvterm.name = 'integration_excision_site' OR cvterm.name = 'resolution_site' OR cvterm.name = 'inversion_site' OR cvterm.name = 'inversion_site_part' OR cvterm.name = 'attI_site' OR cvterm.name = 'attP_site' OR cvterm.name = 'attB_site' OR cvterm.name = 'attL_site' OR cvterm.name = 'attR_site' OR cvterm.name = 'attC_site' OR cvterm.name = 'attCtn_site' OR cvterm.name = 'loxP_site' OR cvterm.name = 'dif_site' OR cvterm.name = 'FRT_site' OR cvterm.name = 'IRLinv_site' OR cvterm.name = 'IRRinv_site' OR cvterm.name = 'processed_pseudogene' OR cvterm.name = 'non_processed_pseudogene' OR cvterm.name = 'pseudogene_by_unequal_crossing_over' OR cvterm.name = 'nuclear_mt_pseudogene' OR cvterm.name = 'cassette_pseudogene' OR cvterm.name = 'duplicated_pseudogene' OR cvterm.name = 'unitary_pseudogene' OR cvterm.name = 'protein_binding_site' OR cvterm.name = 'epitope' OR cvterm.name = 'nucleotide_binding_site' OR cvterm.name = 'metal_binding_site' OR cvterm.name = 'ligand_binding_site' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'nucleotide_to_protein_binding_site' OR cvterm.name = 'nuclease_binding_site' OR cvterm.name = 'TF_binding_site' OR cvterm.name = 'histone_binding_site' OR cvterm.name = 'insulator_binding_site' OR cvterm.name = 'enhancer_binding_site' OR cvterm.name = 'restriction_enzyme_binding_site' OR cvterm.name = 'nuclease_sensitive_site' OR cvterm.name = 'homing_endonuclease_binding_site' OR cvterm.name = 'nuclease_hypersensitive_site' OR cvterm.name = 'group_1_intron_homing_endonuclease_target_region' OR cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'miRNA_target_site' OR cvterm.name = 'DNA_binding_site' OR cvterm.name = 'primer_binding_site' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'decayed_exon' OR cvterm.name = 'pseudogenic_exon' OR cvterm.name = 'pseudogenic_transcript' OR cvterm.name = 'pseudogenic_rRNA' OR cvterm.name = 'pseudogenic_tRNA' OR cvterm.name = 'long_terminal_repeat' OR cvterm.name = 'engineered_foreign_repetitive_element' OR cvterm.name = 'inverted_repeat' OR cvterm.name = 'direct_repeat' OR cvterm.name = 'non_LTR_retrotransposon_polymeric_tract' OR cvterm.name = 'dispersed_repeat' OR cvterm.name = 'tandem_repeat' OR cvterm.name = 'X_element_combinatorial_repeat' OR cvterm.name = 'Y_prime_element' OR cvterm.name = 'telomeric_repeat' OR cvterm.name = 'nested_repeat' OR cvterm.name = 'centromeric_repeat' OR cvterm.name = 'five_prime_LTR' OR cvterm.name = 'three_prime_LTR' OR cvterm.name = 'solo_LTR' OR cvterm.name = 'terminal_inverted_repeat' OR cvterm.name = 'five_prime_terminal_inverted_repeat' OR cvterm.name = 'three_prime_terminal_inverted_repeat' OR cvterm.name = 'target_site_duplication' OR cvterm.name = 'CRISPR' OR cvterm.name = 'satellite_DNA' OR cvterm.name = 'microsatellite' OR cvterm.name = 'minisatellite' OR cvterm.name = 'dinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'trinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'tetranucleotide_repeat_microsatellite_feature' OR cvterm.name = 'nested_tandem_repeat' OR cvterm.name = 'regional_centromere_inner_repeat_region' OR cvterm.name = 'regional_centromere_outer_repeat_region' OR cvterm.name = 'transgenic_insertion' OR cvterm.name = 'duplication' OR cvterm.name = 'tandem_duplication' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'nuclear_gene' OR cvterm.name = 'mt_gene' OR cvterm.name = 'plastid_gene' OR cvterm.name = 'nucleomorph_gene' OR cvterm.name = 'plasmid_gene' OR cvterm.name = 'proviral_gene' OR cvterm.name = 'transposable_element_gene' OR cvterm.name = 'silenced_gene' OR cvterm.name = 'engineered_gene' OR cvterm.name = 'foreign_gene' OR cvterm.name = 'fusion_gene' OR cvterm.name = 'recombinationally_rearranged_gene' OR cvterm.name = 'gene_with_trans_spliced_transcript' OR cvterm.name = 'gene_with_polycistronic_transcript' OR cvterm.name = 'rescue_gene' OR cvterm.name = 'post_translationally_regulated_gene' OR cvterm.name = 'negatively_autoregulated_gene' OR cvterm.name = 'positively_autoregulated_gene' OR cvterm.name = 'translationally_regulated_gene' OR cvterm.name = 'epigenetically_modified_gene' OR cvterm.name = 'transgene' OR cvterm.name = 'predicted_gene' OR cvterm.name = 'protein_coding_gene' OR cvterm.name = 'retrogene' OR cvterm.name = 'ncRNA_gene' OR cvterm.name = 'cryptic_gene' OR cvterm.name = 'gene_with_non_canonical_start_codon' OR cvterm.name = 'gene_cassette' OR cvterm.name = 'kinetoplast_gene' OR cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'apicoplast_gene' OR cvterm.name = 'ct_gene' OR cvterm.name = 'chromoplast_gene' OR cvterm.name = 'cyanelle_gene' OR cvterm.name = 'leucoplast_gene' OR cvterm.name = 'proplastid_gene' OR cvterm.name = 'endogenous_retroviral_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'gene_silenced_by_DNA_modification' OR cvterm.name = 'gene_silenced_by_RNA_interference' OR cvterm.name = 'gene_silenced_by_histone_modification' OR cvterm.name = 'gene_silenced_by_DNA_methylation' OR cvterm.name = 'gene_silenced_by_histone_methylation' OR cvterm.name = 'gene_silenced_by_histone_deacetylation' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'recombinationally_inverted_gene' OR cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene' OR cvterm.name = 'gene_with_dicistronic_transcript' OR cvterm.name = 'gene_with_dicistronic_primary_transcript' OR cvterm.name = 'gene_with_dicistronic_mRNA' OR cvterm.name = 'wild_type_rescue_gene' OR cvterm.name = 'gene_rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted_gene' OR cvterm.name = 'paternally_imprinted_gene' OR cvterm.name = 'allelically_excluded_gene' OR cvterm.name = 'floxed_gene' OR cvterm.name = 'gene_with_polyadenylated_mRNA' OR cvterm.name = 'gene_with_mRNA_with_frameshift' OR cvterm.name = 'gene_with_edited_transcript' OR cvterm.name = 'gene_with_recoded_mRNA' OR cvterm.name = 'gene_with_stop_codon_read_through' OR cvterm.name = 'gene_with_mRNA_recoded_by_translational_bypass' OR cvterm.name = 'gene_with_transcript_with_translational_frameshift' OR cvterm.name = 'gene_with_stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'gene_with_stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'gRNA_gene' OR cvterm.name = 'miRNA_gene' OR cvterm.name = 'scRNA_gene' OR cvterm.name = 'snoRNA_gene' OR cvterm.name = 'snRNA_gene' OR cvterm.name = 'SRP_RNA_gene' OR cvterm.name = 'stRNA_gene' OR cvterm.name = 'tmRNA_gene' OR cvterm.name = 'tRNA_gene' OR cvterm.name = 'rRNA_gene' OR cvterm.name = 'piRNA_gene' OR cvterm.name = 'RNase_P_RNA_gene' OR cvterm.name = 'RNase_MRP_RNA_gene' OR cvterm.name = 'lincRNA_gene' OR cvterm.name = 'telomerase_RNA_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'gene_with_start_codon_CUG' OR cvterm.name = 'chromosome_arm' OR cvterm.name = 'chromosome_band' OR cvterm.name = 'interband' OR cvterm.name = 'chromosomal_regulatory_element' OR cvterm.name = 'chromosomal_structural_element' OR cvterm.name = 'introgressed_chromosome_region' OR cvterm.name = 'matrix_attachment_site' OR cvterm.name = 'centromere' OR cvterm.name = 'telomere' OR cvterm.name = 'point_centromere' OR cvterm.name = 'regional_centromere' OR cvterm.name = 'transcript' OR cvterm.name = 'regulatory_region' OR cvterm.name = 'polycistronic_transcript' OR cvterm.name = 'transcript_with_translational_frameshift' OR cvterm.name = 'primary_transcript' OR cvterm.name = 'mature_transcript' OR cvterm.name = 'transcript_bound_by_nucleic_acid' OR cvterm.name = 'transcript_bound_by_protein' OR cvterm.name = 'enzymatic_RNA' OR cvterm.name = 'trans_spliced_transcript' OR cvterm.name = 'monocistronic_transcript' OR cvterm.name = 'aberrant_processed_transcript' OR cvterm.name = 'edited_transcript' OR cvterm.name = 'processed_transcript' OR cvterm.name = 'alternatively_spliced_transcript' OR cvterm.name = 'dicistronic_transcript' OR cvterm.name = 'polycistronic_primary_transcript' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'protein_coding_primary_transcript' OR cvterm.name = 'nc_primary_transcript' OR cvterm.name = 'polycistronic_primary_transcript' OR cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'mini_exon_donor_RNA' OR cvterm.name = 'antisense_primary_transcript' OR cvterm.name = 'capped_primary_transcript' OR cvterm.name = 'pre_edited_mRNA' OR cvterm.name = 'scRNA_primary_transcript' OR cvterm.name = 'rRNA_primary_transcript' OR cvterm.name = 'tRNA_primary_transcript' OR cvterm.name = 'snRNA_primary_transcript' OR cvterm.name = 'snoRNA_primary_transcript' OR cvterm.name = 'tmRNA_primary_transcript' OR cvterm.name = 'SRP_RNA_primary_transcript' OR cvterm.name = 'miRNA_primary_transcript' OR cvterm.name = 'tasiRNA_primary_transcript' OR cvterm.name = 'rRNA_small_subunit_primary_transcript' OR cvterm.name = 'rRNA_large_subunit_primary_transcript' OR cvterm.name = 'alanine_tRNA_primary_transcript' OR cvterm.name = 'arginine_tRNA_primary_transcript' OR cvterm.name = 'asparagine_tRNA_primary_transcript' OR cvterm.name = 'aspartic_acid_tRNA_primary_transcript' OR cvterm.name = 'cysteine_tRNA_primary_transcript' OR cvterm.name = 'glutamic_acid_tRNA_primary_transcript' OR cvterm.name = 'glutamine_tRNA_primary_transcript' OR cvterm.name = 'glycine_tRNA_primary_transcript' OR cvterm.name = 'histidine_tRNA_primary_transcript' OR cvterm.name = 'isoleucine_tRNA_primary_transcript' OR cvterm.name = 'leucine_tRNA_primary_transcript' OR cvterm.name = 'lysine_tRNA_primary_transcript' OR cvterm.name = 'methionine_tRNA_primary_transcript' OR cvterm.name = 'phenylalanine_tRNA_primary_transcript' OR cvterm.name = 'proline_tRNA_primary_transcript' OR cvterm.name = 'serine_tRNA_primary_transcript' OR cvterm.name = 'threonine_tRNA_primary_transcript' OR cvterm.name = 'tryptophan_tRNA_primary_transcript' OR cvterm.name = 'tyrosine_tRNA_primary_transcript' OR cvterm.name = 'valine_tRNA_primary_transcript' OR cvterm.name = 'pyrrolysine_tRNA_primary_transcript' OR cvterm.name = 'selenocysteine_tRNA_primary_transcript' OR cvterm.name = 'methylation_guide_snoRNA_primary_transcript' OR cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript' OR cvterm.name = 'C_D_box_snoRNA_primary_transcript' OR cvterm.name = 'H_ACA_box_snoRNA_primary_transcript' OR cvterm.name = 'U14_snoRNA_primary_transcript' OR cvterm.name = 'stRNA_primary_transcript' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'mRNA' OR cvterm.name = 'ncRNA' OR cvterm.name = 'mRNA_with_frameshift' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'exemplar_mRNA' OR cvterm.name = 'capped_mRNA' OR cvterm.name = 'polyadenylated_mRNA' OR cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'consensus_mRNA' OR cvterm.name = 'recoded_mRNA' OR cvterm.name = 'mRNA_with_minus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_2_frameshift' OR cvterm.name = 'mRNA_with_minus_2_frameshift' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'mRNA_recoded_by_translational_bypass' OR cvterm.name = 'mRNA_recoded_by_codon_redefinition' OR cvterm.name = 'scRNA' OR cvterm.name = 'rRNA' OR cvterm.name = 'tRNA' OR cvterm.name = 'snRNA' OR cvterm.name = 'snoRNA' OR cvterm.name = 'small_regulatory_ncRNA' OR cvterm.name = 'RNase_MRP_RNA' OR cvterm.name = 'RNase_P_RNA' OR cvterm.name = 'telomerase_RNA' OR cvterm.name = 'vault_RNA' OR cvterm.name = 'Y_RNA' OR cvterm.name = 'rasiRNA' OR cvterm.name = 'SRP_RNA' OR cvterm.name = 'guide_RNA' OR cvterm.name = 'antisense_RNA' OR cvterm.name = 'siRNA' OR cvterm.name = 'stRNA' OR cvterm.name = 'class_II_RNA' OR cvterm.name = 'class_I_RNA' OR cvterm.name = 'piRNA' OR cvterm.name = 'lincRNA' OR cvterm.name = 'tasiRNA' OR cvterm.name = 'rRNA_cleavage_RNA' OR cvterm.name = 'small_subunit_rRNA' OR cvterm.name = 'large_subunit_rRNA' OR cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'rRNA_5_8S' OR cvterm.name = 'rRNA_5S' OR cvterm.name = 'rRNA_28S' OR cvterm.name = 'rRNA_23S' OR cvterm.name = 'rRNA_25S' OR cvterm.name = 'rRNA_21S' OR cvterm.name = 'alanyl_tRNA' OR cvterm.name = 'asparaginyl_tRNA' OR cvterm.name = 'aspartyl_tRNA' OR cvterm.name = 'cysteinyl_tRNA' OR cvterm.name = 'glutaminyl_tRNA' OR cvterm.name = 'glutamyl_tRNA' OR cvterm.name = 'glycyl_tRNA' OR cvterm.name = 'histidyl_tRNA' OR cvterm.name = 'isoleucyl_tRNA' OR cvterm.name = 'leucyl_tRNA' OR cvterm.name = 'lysyl_tRNA' OR cvterm.name = 'methionyl_tRNA' OR cvterm.name = 'phenylalanyl_tRNA' OR cvterm.name = 'prolyl_tRNA' OR cvterm.name = 'seryl_tRNA' OR cvterm.name = 'threonyl_tRNA' OR cvterm.name = 'tryptophanyl_tRNA' OR cvterm.name = 'tyrosyl_tRNA' OR cvterm.name = 'valyl_tRNA' OR cvterm.name = 'pyrrolysyl_tRNA' OR cvterm.name = 'arginyl_tRNA' OR cvterm.name = 'selenocysteinyl_tRNA' OR cvterm.name = 'U1_snRNA' OR cvterm.name = 'U2_snRNA' OR cvterm.name = 'U4_snRNA' OR cvterm.name = 'U4atac_snRNA' OR cvterm.name = 'U5_snRNA' OR cvterm.name = 'U6_snRNA' OR cvterm.name = 'U6atac_snRNA' OR cvterm.name = 'U11_snRNA' OR cvterm.name = 'U12_snRNA' OR cvterm.name = 'C_D_box_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA' OR cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'miRNA' OR cvterm.name = 'RNA_6S' OR cvterm.name = 'CsrB_RsmB_RNA' OR cvterm.name = 'DsrA_RNA' OR cvterm.name = 'OxyS_RNA' OR cvterm.name = 'RprA_RNA' OR cvterm.name = 'RRE_RNA' OR cvterm.name = 'spot_42_RNA' OR cvterm.name = 'tmRNA' OR cvterm.name = 'GcvB_RNA' OR cvterm.name = 'MicF_RNA' OR cvterm.name = 'ribozyme' OR cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'transcription_regulatory_region' OR cvterm.name = 'translation_regulatory_region' OR cvterm.name = 'recombination_regulatory_region' OR cvterm.name = 'replication_regulatory_region' OR cvterm.name = 'terminator' OR cvterm.name = 'TF_binding_site' OR cvterm.name = 'polyA_signal_sequence' OR cvterm.name = 'gene_group_regulatory_region' OR cvterm.name = 'transcriptional_cis_regulatory_region' OR cvterm.name = 'splicing_regulatory_region' OR cvterm.name = 'cis_regulatory_frameshift_element' OR cvterm.name = 'intronic_regulatory_region' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'eukaryotic_terminator' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'terminator_of_type_2_RNApol_III_promoter' OR cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'promoter' OR cvterm.name = 'insulator' OR cvterm.name = 'CRM' OR cvterm.name = 'promoter_targeting_sequence' OR cvterm.name = 'ISRE' OR cvterm.name = 'bidirectional_promoter' OR cvterm.name = 'RNA_polymerase_promoter' OR cvterm.name = 'RNApol_I_promoter' OR cvterm.name = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'Phage_RNA_Polymerase_Promoter' OR cvterm.name = 'RNApol_II_core_promoter' OR cvterm.name = 'RNApol_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'SP6_RNA_Polymerase_Promoter' OR cvterm.name = 'T3_RNA_Polymerase_Promoter' OR cvterm.name = 'T7_RNA_Polymerase_Promoter' OR cvterm.name = 'locus_control_region' OR cvterm.name = 'enhancer' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'attenuator' OR cvterm.name = 'exon' OR cvterm.name = 'edited_transcript_feature' OR cvterm.name = 'mature_transcript_region' OR cvterm.name = 'primary_transcript_region' OR cvterm.name = 'exon_region' OR cvterm.name = 'anchor_binding_site' OR cvterm.name = 'coding_exon' OR cvterm.name = 'noncoding_exon' OR cvterm.name = 'interior_exon' OR cvterm.name = 'exon_of_single_exon_gene' OR cvterm.name = 'interior_coding_exon' OR cvterm.name = 'five_prime_coding_exon' OR cvterm.name = 'three_prime_coding_exon' OR cvterm.name = 'three_prime_noncoding_exon' OR cvterm.name = 'five_prime_noncoding_exon' OR cvterm.name = 'pre_edited_region' OR cvterm.name = 'editing_block' OR cvterm.name = 'editing_domain' OR cvterm.name = 'unedited_region' OR cvterm.name = 'mRNA_region' OR cvterm.name = 'tmRNA_region' OR cvterm.name = 'guide_RNA_region' OR cvterm.name = 'tRNA_region' OR cvterm.name = 'riboswitch' OR cvterm.name = 'ribosome_entry_site' OR cvterm.name = 'UTR' OR cvterm.name = 'CDS' OR cvterm.name = 'five_prime_open_reading_frame' OR cvterm.name = 'UTR_region' OR cvterm.name = 'CDS_region' OR cvterm.name = 'translational_frameshift' OR cvterm.name = 'recoding_stimulatory_region' OR cvterm.name = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'kozak_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'five_prime_UTR' OR cvterm.name = 'three_prime_UTR' OR cvterm.name = 'internal_UTR' OR cvterm.name = 'untranslated_region_polycistronic_mRNA' OR cvterm.name = 'edited_CDS' OR cvterm.name = 'CDS_fragment' OR cvterm.name = 'CDS_independently_known' OR cvterm.name = 'CDS_predicted' OR cvterm.name = 'orphan_CDS' OR cvterm.name = 'CDS_supported_by_sequence_similarity_data' OR cvterm.name = 'CDS_supported_by_domain_match_data' OR cvterm.name = 'CDS_supported_by_EST_or_cDNA_data' OR cvterm.name = 'upstream_AUG_codon' OR cvterm.name = 'AU_rich_element' OR cvterm.name = 'Bruno_response_element' OR cvterm.name = 'iron_responsive_element' OR cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' OR cvterm.name = 'codon' OR cvterm.name = 'recoded_codon' OR cvterm.name = 'start_codon' OR cvterm.name = 'stop_codon' OR cvterm.name = 'stop_codon_read_through' OR cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'non_canonical_start_codon' OR cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'plus_1_translational_frameshift' OR cvterm.name = 'plus_2_translational_frameshift' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'SECIS_element' OR cvterm.name = 'three_prime_recoding_site' OR cvterm.name = 'five_prime_recoding_site' OR cvterm.name = 'stop_codon_signal' OR cvterm.name = 'three_prime_stem_loop_structure' OR cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal' OR cvterm.name = 'three_prime_repeat_recoding_signal' OR cvterm.name = 'distant_three_prime_recoding_signal' OR cvterm.name = 'UAG_stop_codon_signal' OR cvterm.name = 'UAA_stop_codon_signal' OR cvterm.name = 'UGA_stop_codon_signal' OR cvterm.name = 'tmRNA_coding_piece' OR cvterm.name = 'tmRNA_acceptor_piece' OR cvterm.name = 'anchor_region' OR cvterm.name = 'template_region' OR cvterm.name = 'anticodon_loop' OR cvterm.name = 'anticodon' OR cvterm.name = 'CCA_tail' OR cvterm.name = 'DHU_loop' OR cvterm.name = 'T_loop' OR cvterm.name = 'splice_site' OR cvterm.name = 'intron' OR cvterm.name = 'clip' OR cvterm.name = 'TSS' OR cvterm.name = 'transcription_end_site' OR cvterm.name = 'spliced_leader_RNA' OR cvterm.name = 'rRNA_primary_transcript_region' OR cvterm.name = 'spliceosomal_intron_region' OR cvterm.name = 'intron_domain' OR cvterm.name = 'miRNA_primary_transcript_region' OR cvterm.name = 'outron' OR cvterm.name = 'cis_splice_site' OR cvterm.name = 'trans_splice_site' OR cvterm.name = 'cryptic_splice_site' OR cvterm.name = 'five_prime_cis_splice_site' OR cvterm.name = 'three_prime_cis_splice_site' OR cvterm.name = 'recursive_splice_site' OR cvterm.name = 'canonical_five_prime_splice_site' OR cvterm.name = 'non_canonical_five_prime_splice_site' OR cvterm.name = 'canonical_three_prime_splice_site' OR cvterm.name = 'non_canonical_three_prime_splice_site' OR cvterm.name = 'trans_splice_acceptor_site' OR cvterm.name = 'trans_splice_donor_site' OR cvterm.name = 'SL1_acceptor_site' OR cvterm.name = 'SL2_acceptor_site' OR cvterm.name = 'SL3_acceptor_site' OR cvterm.name = 'SL4_acceptor_site' OR cvterm.name = 'SL5_acceptor_site' OR cvterm.name = 'SL6_acceptor_site' OR cvterm.name = 'SL7_acceptor_site' OR cvterm.name = 'SL8_acceptor_site' OR cvterm.name = 'SL9_acceptor_site' OR cvterm.name = 'SL10_accceptor_site' OR cvterm.name = 'SL11_acceptor_site' OR cvterm.name = 'SL12_acceptor_site' OR cvterm.name = 'five_prime_intron' OR cvterm.name = 'interior_intron' OR cvterm.name = 'three_prime_intron' OR cvterm.name = 'twintron' OR cvterm.name = 'UTR_intron' OR cvterm.name = 'autocatalytically_spliced_intron' OR cvterm.name = 'spliceosomal_intron' OR cvterm.name = 'mobile_intron' OR cvterm.name = 'endonuclease_spliced_intron' OR cvterm.name = 'five_prime_UTR_intron' OR cvterm.name = 'three_prime_UTR_intron' OR cvterm.name = 'group_I_intron' OR cvterm.name = 'group_II_intron' OR cvterm.name = 'group_III_intron' OR cvterm.name = 'group_IIA_intron' OR cvterm.name = 'group_IIB_intron' OR cvterm.name = 'U2_intron' OR cvterm.name = 'U12_intron' OR cvterm.name = 'archaeal_intron' OR cvterm.name = 'tRNA_intron' OR cvterm.name = 'five_prime_clip' OR cvterm.name = 'three_prime_clip' OR cvterm.name = 'major_TSS' OR cvterm.name = 'minor_TSS' OR cvterm.name = 'transcribed_spacer_region' OR cvterm.name = 'internal_transcribed_spacer_region' OR cvterm.name = 'external_transcribed_spacer_region' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'branch_site' OR cvterm.name = 'polypyrimidine_tract' OR cvterm.name = 'internal_guide_sequence' OR cvterm.name = 'mirtron' OR cvterm.name = 'pre_miRNA' OR cvterm.name = 'miRNA_stem' OR cvterm.name = 'miRNA_loop' OR cvterm.name = 'miRNA_antiguide' OR cvterm.name = 'noncoding_region_of_exon' OR cvterm.name = 'coding_region_of_exon' OR cvterm.name = 'three_prime_coding_exon_noncoding_region' OR cvterm.name = 'five_prime_coding_exon_noncoding_region' OR cvterm.name = 'five_prime_coding_exon_coding_region' OR cvterm.name = 'three_prime_coding_exon_coding_region' OR cvterm.name = 'mature_protein_region' OR cvterm.name = 'immature_peptide_region' OR cvterm.name = 'compositionally_biased_region_of_peptide' OR cvterm.name = 'polypeptide_structural_region' OR cvterm.name = 'polypeptide_variation_site' OR cvterm.name = 'peptide_localization_signal' OR cvterm.name = 'cleaved_peptide_region' OR cvterm.name = 'hydrophobic_region_of_peptide' OR cvterm.name = 'polypeptide_conserved_region' OR cvterm.name = 'active_peptide' OR cvterm.name = 'polypeptide_domain' OR cvterm.name = 'membrane_structure' OR cvterm.name = 'extramembrane_polypeptide_region' OR cvterm.name = 'intramembrane_polypeptide_region' OR cvterm.name = 'polypeptide_secondary_structure' OR cvterm.name = 'polypeptide_structural_motif' OR cvterm.name = 'intrinsically_unstructured_polypeptide_region' OR cvterm.name = 'cytoplasmic_polypeptide_region' OR cvterm.name = 'non_cytoplasmic_polypeptide_region' OR cvterm.name = 'membrane_peptide_loop' OR cvterm.name = 'transmembrane_polypeptide_region' OR cvterm.name = 'asx_motif' OR cvterm.name = 'beta_bulge' OR cvterm.name = 'beta_bulge_loop' OR cvterm.name = 'beta_strand' OR cvterm.name = 'peptide_helix' OR cvterm.name = 'polypeptide_nest_motif' OR cvterm.name = 'schellmann_loop' OR cvterm.name = 'serine_threonine_motif' OR cvterm.name = 'serine_threonine_staple_motif' OR cvterm.name = 'polypeptide_turn_motif' OR cvterm.name = 'catmat_left_handed_three' OR cvterm.name = 'catmat_left_handed_four' OR cvterm.name = 'catmat_right_handed_three' OR cvterm.name = 'catmat_right_handed_four' OR cvterm.name = 'alpha_beta_motif' OR cvterm.name = 'peptide_coil' OR cvterm.name = 'beta_bulge_loop_five' OR cvterm.name = 'beta_bulge_loop_six' OR cvterm.name = 'antiparallel_beta_strand' OR cvterm.name = 'parallel_beta_strand' OR cvterm.name = 'left_handed_peptide_helix' OR cvterm.name = 'right_handed_peptide_helix' OR cvterm.name = 'alpha_helix' OR cvterm.name = 'pi_helix' OR cvterm.name = 'three_ten_helix' OR cvterm.name = 'polypeptide_nest_left_right_motif' OR cvterm.name = 'polypeptide_nest_right_left_motif' OR cvterm.name = 'schellmann_loop_seven' OR cvterm.name = 'schellmann_loop_six' OR cvterm.name = 'asx_turn' OR cvterm.name = 'beta_turn' OR cvterm.name = 'gamma_turn' OR cvterm.name = 'serine_threonine_turn' OR cvterm.name = 'asx_turn_left_handed_type_one' OR cvterm.name = 'asx_turn_left_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_two' OR cvterm.name = 'beta_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_right_handed_type_two' OR cvterm.name = 'beta_turn_type_six' OR cvterm.name = 'beta_turn_type_eight' OR cvterm.name = 'beta_turn_type_six_a' OR cvterm.name = 'beta_turn_type_six_b' OR cvterm.name = 'beta_turn_type_six_a_one' OR cvterm.name = 'beta_turn_type_six_a_two' OR cvterm.name = 'gamma_turn_classic' OR cvterm.name = 'gamma_turn_inverse' OR cvterm.name = 'st_turn_left_handed_type_one' OR cvterm.name = 'st_turn_left_handed_type_two' OR cvterm.name = 'st_turn_right_handed_type_one' OR cvterm.name = 'st_turn_right_handed_type_two' OR cvterm.name = 'coiled_coil' OR cvterm.name = 'helix_turn_helix' OR cvterm.name = 'natural_variant_site' OR cvterm.name = 'mutated_variant_site' OR cvterm.name = 'alternate_sequence_site' OR cvterm.name = 'signal_peptide' OR cvterm.name = 'transit_peptide' OR cvterm.name = 'nuclear_localization_signal' OR cvterm.name = 'endosomal_localization_signal' OR cvterm.name = 'lysosomal_localization_signal' OR cvterm.name = 'nuclear_export_signal' OR cvterm.name = 'nuclear_rim_localization_signal' OR cvterm.name = 'cleaved_initiator_methionine' OR cvterm.name = 'intein' OR cvterm.name = 'propeptide_cleavage_site' OR cvterm.name = 'propeptide' OR cvterm.name = 'cleaved_for_gpi_anchor_region' OR cvterm.name = 'lipoprotein_signal_peptide' OR cvterm.name = 'n_terminal_region' OR cvterm.name = 'c_terminal_region' OR cvterm.name = 'central_hydrophobic_region_of_signal_peptide' OR cvterm.name = 'polypeptide_domain' OR cvterm.name = 'polypeptide_motif' OR cvterm.name = 'polypeptide_repeat' OR cvterm.name = 'biochemical_region_of_peptide' OR cvterm.name = 'polypeptide_conserved_motif' OR cvterm.name = 'post_translationally_modified_region' OR cvterm.name = 'conformational_switch' OR cvterm.name = 'molecular_contact_region' OR cvterm.name = 'polypeptide_binding_motif' OR cvterm.name = 'polypeptide_catalytic_motif' OR cvterm.name = 'histone_modification' OR cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'non_transcribed_region' OR cvterm.name = 'gene_fragment' OR cvterm.name = 'TSS_region' OR cvterm.name = 'gene_segment' OR cvterm.name = 'pseudogenic_gene_segment' OR cvterm.name = 'mobile_intron' OR cvterm.name = 'extrachromosomal_mobile_genetic_element' OR cvterm.name = 'integrated_mobile_genetic_element' OR cvterm.name = 'natural_transposable_element' OR cvterm.name = 'viral_sequence' OR cvterm.name = 'natural_plasmid' OR cvterm.name = 'phage_sequence' OR cvterm.name = 'ds_RNA_viral_sequence' OR cvterm.name = 'ds_DNA_viral_sequence' OR cvterm.name = 'ss_RNA_viral_sequence' OR cvterm.name = 'negative_sense_ssRNA_viral_sequence' OR cvterm.name = 'positive_sense_ssRNA_viral_sequence' OR cvterm.name = 'ambisense_ssRNA_viral_sequence' OR cvterm.name = 'transposable_element' OR cvterm.name = 'proviral_region' OR cvterm.name = 'integron' OR cvterm.name = 'genomic_island' OR cvterm.name = 'integrated_plasmid' OR cvterm.name = 'cointegrated_plasmid' OR cvterm.name = 'retrotransposon' OR cvterm.name = 'DNA_transposon' OR cvterm.name = 'foreign_transposable_element' OR cvterm.name = 'transgenic_transposable_element' OR cvterm.name = 'natural_transposable_element' OR cvterm.name = 'engineered_transposable_element' OR cvterm.name = 'nested_transposon' OR cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'terminal_inverted_repeat_element' OR cvterm.name = 'foldback_element' OR cvterm.name = 'conjugative_transposon' OR cvterm.name = 'helitron' OR cvterm.name = 'p_element' OR cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'prophage' OR cvterm.name = 'pathogenic_island' OR cvterm.name = 'metabolic_island' OR cvterm.name = 'adaptive_island' OR cvterm.name = 'symbiosis_island' OR cvterm.name = 'cryptic_prophage' OR cvterm.name = 'defective_conjugative_transposon' OR cvterm.name = 'plasmid' OR cvterm.name = 'chromosome' OR cvterm.name = 'vector_replicon' OR cvterm.name = 'maxicircle' OR cvterm.name = 'minicircle' OR cvterm.name = 'viral_sequence' OR cvterm.name = 'engineered_plasmid' OR cvterm.name = 'episome' OR cvterm.name = 'natural_plasmid' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'gene_trap_construct' OR cvterm.name = 'promoter_trap_construct' OR cvterm.name = 'enhancer_trap_construct' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'mitochondrial_chromosome' OR cvterm.name = 'chloroplast_chromosome' OR cvterm.name = 'chromoplast_chromosome' OR cvterm.name = 'cyanelle_chromosome' OR cvterm.name = 'leucoplast_chromosome' OR cvterm.name = 'macronuclear_chromosome' OR cvterm.name = 'micronuclear_chromosome' OR cvterm.name = 'nuclear_chromosome' OR cvterm.name = 'nucleomorphic_chromosome' OR cvterm.name = 'DNA_chromosome' OR cvterm.name = 'RNA_chromosome' OR cvterm.name = 'apicoplast_chromosome' OR cvterm.name = 'double_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_DNA_chromosome' OR cvterm.name = 'linear_double_stranded_DNA_chromosome' OR cvterm.name = 'circular_double_stranded_DNA_chromosome' OR cvterm.name = 'linear_single_stranded_DNA_chromosome' OR cvterm.name = 'circular_single_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_RNA_chromosome' OR cvterm.name = 'double_stranded_RNA_chromosome' OR cvterm.name = 'linear_single_stranded_RNA_chromosome' OR cvterm.name = 'circular_single_stranded_RNA_chromosome' OR cvterm.name = 'linear_double_stranded_RNA_chromosome' OR cvterm.name = 'circular_double_stranded_RNA_chromosome' OR cvterm.name = 'YAC' OR cvterm.name = 'BAC' OR cvterm.name = 'PAC' OR cvterm.name = 'cosmid' OR cvterm.name = 'phagemid' OR cvterm.name = 'fosmid' OR cvterm.name = 'lambda_vector' OR cvterm.name = 'plasmid_vector' OR cvterm.name = 'targeting_vector' OR cvterm.name = 'phage_sequence' OR cvterm.name = 'ds_RNA_viral_sequence' OR cvterm.name = 'ds_DNA_viral_sequence' OR cvterm.name = 'ss_RNA_viral_sequence' OR cvterm.name = 'negative_sense_ssRNA_viral_sequence' OR cvterm.name = 'positive_sense_ssRNA_viral_sequence' OR cvterm.name = 'ambisense_ssRNA_viral_sequence' OR cvterm.name = 'modified_RNA_base_feature' OR cvterm.name = 'inosine' OR cvterm.name = 'seven_methylguanine' OR cvterm.name = 'ribothymidine' OR cvterm.name = 'modified_adenosine' OR cvterm.name = 'modified_cytidine' OR cvterm.name = 'modified_guanosine' OR cvterm.name = 'modified_uridine' OR cvterm.name = 'modified_inosine' OR cvterm.name = 'methylinosine' OR cvterm.name = 'one_methylinosine' OR cvterm.name = 'one_two_prime_O_dimethylinosine' OR cvterm.name = 'two_prime_O_methylinosine' OR cvterm.name = 'one_methyladenosine' OR cvterm.name = 'two_methyladenosine' OR cvterm.name = 'N6_methyladenosine' OR cvterm.name = 'two_prime_O_methyladenosine' OR cvterm.name = 'two_methylthio_N6_methyladenosine' OR cvterm.name = 'N6_isopentenyladenosine' OR cvterm.name = 'two_methylthio_N6_isopentenyladenosine' OR cvterm.name = 'N6_cis_hydroxyisopentenyl_adenosine' OR cvterm.name = 'two_methylthio_N6_cis_hydroxyisopentenyl_adenosine' OR cvterm.name = 'N6_glycinylcarbamoyladenosine' OR cvterm.name = 'N6_threonylcarbamoyladenosine' OR cvterm.name = 'two_methylthio_N6_threonyl_carbamoyladenosine' OR cvterm.name = 'N6_methyl_N6_threonylcarbamoyladenosine' OR cvterm.name = 'N6_hydroxynorvalylcarbamoyladenosine' OR cvterm.name = 'two_methylthio_N6_hydroxynorvalyl_carbamoyladenosine' OR cvterm.name = 'two_prime_O_ribosyladenosine_phosphate' OR cvterm.name = 'N6_N6_dimethyladenosine' OR cvterm.name = 'N6_2_prime_O_dimethyladenosine' OR cvterm.name = 'N6_N6_2_prime_O_trimethyladenosine' OR cvterm.name = 'one_two_prime_O_dimethyladenosine' OR cvterm.name = 'N6_acetyladenosine' OR cvterm.name = 'three_methylcytidine' OR cvterm.name = 'five_methylcytidine' OR cvterm.name = 'two_prime_O_methylcytidine' OR cvterm.name = 'two_thiocytidine' OR cvterm.name = 'N4_acetylcytidine' OR cvterm.name = 'five_formylcytidine' OR cvterm.name = 'five_two_prime_O_dimethylcytidine' OR cvterm.name = 'N4_acetyl_2_prime_O_methylcytidine' OR cvterm.name = 'lysidine' OR cvterm.name = 'N4_methylcytidine' OR cvterm.name = 'N4_2_prime_O_dimethylcytidine' OR cvterm.name = 'five_hydroxymethylcytidine' OR cvterm.name = 'five_formyl_two_prime_O_methylcytidine' OR cvterm.name = 'N4_N4_2_prime_O_trimethylcytidine' OR cvterm.name = 'seven_deazaguanosine' OR cvterm.name = 'one_methylguanosine' OR cvterm.name = 'N2_methylguanosine' OR cvterm.name = 'seven_methylguanosine' OR cvterm.name = 'two_prime_O_methylguanosine' OR cvterm.name = 'N2_N2_dimethylguanosine' OR cvterm.name = 'N2_2_prime_O_dimethylguanosine' OR cvterm.name = 'N2_N2_2_prime_O_trimethylguanosine' OR cvterm.name = 'two_prime_O_ribosylguanosine_phosphate' OR cvterm.name = 'wybutosine' OR cvterm.name = 'peroxywybutosine' OR cvterm.name = 'hydroxywybutosine' OR cvterm.name = 'undermodified_hydroxywybutosine' OR cvterm.name = 'wyosine' OR cvterm.name = 'methylwyosine' OR cvterm.name = 'N2_7_dimethylguanosine' OR cvterm.name = 'N2_N2_7_trimethylguanosine' OR cvterm.name = 'one_two_prime_O_dimethylguanosine' OR cvterm.name = 'four_demethylwyosine' OR cvterm.name = 'isowyosine' OR cvterm.name = 'N2_7_2prirme_O_trimethylguanosine' OR cvterm.name = 'queuosine' OR cvterm.name = 'epoxyqueuosine' OR cvterm.name = 'galactosyl_queuosine' OR cvterm.name = 'mannosyl_queuosine' OR cvterm.name = 'seven_cyano_seven_deazaguanosine' OR cvterm.name = 'seven_aminomethyl_seven_deazaguanosine' OR cvterm.name = 'archaeosine' OR cvterm.name = 'dihydrouridine' OR cvterm.name = 'pseudouridine' OR cvterm.name = 'five_methyluridine' OR cvterm.name = 'two_prime_O_methyluridine' OR cvterm.name = 'five_two_prime_O_dimethyluridine' OR cvterm.name = 'one_methylpseudouridine' OR cvterm.name = 'two_prime_O_methylpseudouridine' OR cvterm.name = 'two_thiouridine' OR cvterm.name = 'four_thiouridine' OR cvterm.name = 'five_methyl_2_thiouridine' OR cvterm.name = 'two_thio_two_prime_O_methyluridine' OR cvterm.name = 'three_three_amino_three_carboxypropyl_uridine' OR cvterm.name = 'five_hydroxyuridine' OR cvterm.name = 'five_methoxyuridine' OR cvterm.name = 'uridine_five_oxyacetic_acid' OR cvterm.name = 'uridine_five_oxyacetic_acid_methyl_ester' OR cvterm.name = 'five_carboxyhydroxymethyl_uridine' OR cvterm.name = 'five_carboxyhydroxymethyl_uridine_methyl_ester' OR cvterm.name = 'five_methoxycarbonylmethyluridine' OR cvterm.name = 'five_methoxycarbonylmethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_methoxycarbonylmethyl_two_thiouridine' OR cvterm.name = 'five_aminomethyl_two_thiouridine' OR cvterm.name = 'five_methylaminomethyluridine' OR cvterm.name = 'five_methylaminomethyl_two_thiouridine' OR cvterm.name = 'five_methylaminomethyl_two_selenouridine' OR cvterm.name = 'five_carbamoylmethyluridine' OR cvterm.name = 'five_carbamoylmethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_carboxymethylaminomethyluridine' OR cvterm.name = 'five_carboxymethylaminomethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_carboxymethylaminomethyl_two_thiouridine' OR cvterm.name = 'three_methyluridine' OR cvterm.name = 'one_methyl_three_three_amino_three_carboxypropyl_pseudouridine' OR cvterm.name = 'five_carboxymethyluridine' OR cvterm.name = 'three_two_prime_O_dimethyluridine' OR cvterm.name = 'five_methyldihydrouridine' OR cvterm.name = 'three_methylpseudouridine' OR cvterm.name = 'five_taurinomethyluridine' OR cvterm.name = 'five_taurinomethyl_two_thiouridine' OR cvterm.name = 'five_isopentenylaminomethyl_uridine' OR cvterm.name = 'five_isopentenylaminomethyl_two_thiouridine' OR cvterm.name = 'five_isopentenylaminomethyl_two_prime_O_methyluridine' OR cvterm.name = 'catalytic_residue' OR cvterm.name = 'modified_amino_acid_feature' OR cvterm.name = 'alanine' OR cvterm.name = 'valine' OR cvterm.name = 'leucine' OR cvterm.name = 'isoleucine' OR cvterm.name = 'proline' OR cvterm.name = 'tryptophan' OR cvterm.name = 'phenylalanine' OR cvterm.name = 'methionine' OR cvterm.name = 'glycine' OR cvterm.name = 'serine' OR cvterm.name = 'threonine' OR cvterm.name = 'tyrosine' OR cvterm.name = 'cysteine' OR cvterm.name = 'glutamine' OR cvterm.name = 'asparagine' OR cvterm.name = 'lysine' OR cvterm.name = 'arginine' OR cvterm.name = 'histidine' OR cvterm.name = 'aspartic_acid' OR cvterm.name = 'glutamic_acid' OR cvterm.name = 'selenocysteine' OR cvterm.name = 'pyrrolysine' OR cvterm.name = 'modified_glycine' OR cvterm.name = 'modified_L_alanine' OR cvterm.name = 'modified_L_asparagine' OR cvterm.name = 'modified_L_aspartic_acid' OR cvterm.name = 'modified_L_cysteine' OR cvterm.name = 'modified_L_glutamic_acid' OR cvterm.name = 'modified_L_threonine' OR cvterm.name = 'modified_L_tryptophan' OR cvterm.name = 'modified_L_glutamine' OR cvterm.name = 'modified_L_methionine' OR cvterm.name = 'modified_L_isoleucine' OR cvterm.name = 'modified_L_phenylalanine' OR cvterm.name = 'modified_L_histidine' OR cvterm.name = 'modified_L_serine' OR cvterm.name = 'modified_L_lysine' OR cvterm.name = 'modified_L_leucine' OR cvterm.name = 'modified_L_selenocysteine' OR cvterm.name = 'modified_L_valine' OR cvterm.name = 'modified_L_proline' OR cvterm.name = 'modified_L_tyrosine' OR cvterm.name = 'modified_L_arginine' OR cvterm.name = 'heritable_phenotypic_marker' OR cvterm.name = 'DArT_marker' OR cvterm.name = 'nucleotide_motif' OR cvterm.name = 'DNA_motif' OR cvterm.name = 'RNA_motif' OR cvterm.name = 'PSE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'minus_10_signal' OR cvterm.name = 'minus_35_signal' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'retinoic_acid_responsive_element' OR cvterm.name = 'promoter_element' OR cvterm.name = 'DCE_SI' OR cvterm.name = 'DCE_SII' OR cvterm.name = 'DCE_SIII' OR cvterm.name = 'minus_12_signal' OR cvterm.name = 'minus_24_signal' OR cvterm.name = 'GC_rich_promoter_region' OR cvterm.name = 'DMv4_motif' OR cvterm.name = 'DMv5_motif' OR cvterm.name = 'DMv3_motif' OR cvterm.name = 'DMv2_motif' OR cvterm.name = 'DPE1_motif' OR cvterm.name = 'DMv1_motif' OR cvterm.name = 'NDM2_motif' OR cvterm.name = 'NDM3_motif' OR cvterm.name = 'core_promoter_element' OR cvterm.name = 'regulatory_promoter_element' OR cvterm.name = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BREu_motif' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'MTE' OR cvterm.name = 'BREd_motif' OR cvterm.name = 'DCE' OR cvterm.name = 'intermediate_element' OR cvterm.name = 'RNA_polymerase_II_TATA_box' OR cvterm.name = 'RNA_polymerase_III_TATA_box' OR cvterm.name = 'A_box_type_1' OR cvterm.name = 'A_box_type_2' OR cvterm.name = 'proximal_promoter_element' OR cvterm.name = 'distal_promoter_element' OR cvterm.name = 'RNA_internal_loop' OR cvterm.name = 'A_minor_RNA_motif' OR cvterm.name = 'RNA_junction_loop' OR cvterm.name = 'hammerhead_ribozyme' OR cvterm.name = 'asymmetric_RNA_internal_loop' OR cvterm.name = 'symmetric_RNA_internal_loop' OR cvterm.name = 'K_turn_RNA_motif' OR cvterm.name = 'sarcin_like_RNA_motif' OR cvterm.name = 'RNA_hook_turn' OR cvterm.name = 'blunt_end_restriction_enzyme_cleavage_site' OR cvterm.name = 'sticky_end_restriction_enzyme_cleavage_site' OR cvterm.name = 'modified_base' OR cvterm.name = 'epigenetically_modified_gene' OR cvterm.name = 'histone_modification' OR cvterm.name = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'gene_rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted_gene' OR cvterm.name = 'paternally_imprinted_gene' OR cvterm.name = 'allelically_excluded_gene' OR cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'operon' OR cvterm.name = 'mating_type_region' OR cvterm.name = 'gene_array' OR cvterm.name = 'gene_subarray' OR cvterm.name = 'gene_cassette_array' OR cvterm.name = 'regulon' OR cvterm.name = 'sequence_length_variation' OR cvterm.name = 'MNP' OR cvterm.name = 'SNV' OR cvterm.name = 'complex_substitution' OR cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'SNP' OR cvterm.name = 'point_mutation' OR cvterm.name = 'transition' OR cvterm.name = 'transversion' OR cvterm.name = 'pyrimidine_transition' OR cvterm.name = 'purine_transition' OR cvterm.name = 'C_to_T_transition' OR cvterm.name = 'T_to_C_transition' OR cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'pyrimidine_to_purine_transversion' OR cvterm.name = 'purine_to_pyrimidine_transversion' OR cvterm.name = 'C_to_A_transversion' OR cvterm.name = 'C_to_G_transversion' OR cvterm.name = 'T_to_A_transversion' OR cvterm.name = 'T_to_G_transversion' OR cvterm.name = 'A_to_C_transversion' OR cvterm.name = 'A_to_T_transversion' OR cvterm.name = 'G_to_C_transversion' OR cvterm.name = 'G_to_T_transversion' OR cvterm.name = 'flanking_region' OR cvterm.name = 'repeat_component' OR cvterm.name = 'transposable_element_flanking_region' OR cvterm.name = 'five_prime_flanking_region' OR cvterm.name = 'three_prime_flanking_region' OR cvterm.name = 'non_LTR_retrotransposon_polymeric_tract' OR cvterm.name = 'LTR_component' OR cvterm.name = 'repeat_fragment' OR cvterm.name = 'transposon_fragment' OR cvterm.name = 'U5_LTR_region' OR cvterm.name = 'R_LTR_region' OR cvterm.name = 'U3_LTR_region' OR cvterm.name = 'three_prime_LTR_component' OR cvterm.name = 'five_prime_LTR_component' OR cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'R_three_prime_LTR_region' OR cvterm.name = 'U3_three_prime_LTR_region' OR cvterm.name = 'U5_three_prime_LTR_region' OR cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'clone_insert_end' OR cvterm.name = 'clone_insert_start' OR cvterm.name = 'exon_junction' OR cvterm.name = 'insertion_site' OR cvterm.name = 'polyA_site' OR cvterm.name = 'deletion_junction' OR cvterm.name = 'chromosome_breakpoint' OR cvterm.name = 'splice_junction' OR cvterm.name = 'trans_splice_junction' OR cvterm.name = 'restriction_enzyme_cleavage_junction' OR cvterm.name = 'transposable_element_insertion_site' OR cvterm.name = 'inversion_breakpoint' OR cvterm.name = 'translocation_breakpoint' OR cvterm.name = 'insertion_breakpoint' OR cvterm.name = 'deletion_breakpoint' OR cvterm.name = 'blunt_end_restriction_enzyme_cleavage_junction' OR cvterm.name = 'single_strand_restriction_enzyme_cleavage_site' OR cvterm.name = 'five_prime_restriction_enzyme_junction' OR cvterm.name = 'three_prime_restriction_enzyme_junction' OR cvterm.name = 'deletion' OR cvterm.name = 'translocation' OR cvterm.name = 'insertion' OR cvterm.name = 'copy_number_variation' OR cvterm.name = 'UPD' OR cvterm.name = 'structural_alteration' OR cvterm.name = 'substitution' OR cvterm.name = 'indel' OR cvterm.name = 'inversion' OR cvterm.name = 'transgenic_insertion' OR cvterm.name = 'duplication' OR cvterm.name = 'tandem_duplication' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'copy_number_gain' OR cvterm.name = 'copy_number_loss' OR cvterm.name = 'maternal_uniparental_disomy' OR cvterm.name = 'paternal_uniparental_disomy' OR cvterm.name = 'complex_structural_alteration' OR cvterm.name = 'sequence_length_variation' OR cvterm.name = 'MNP' OR cvterm.name = 'SNV' OR cvterm.name = 'complex_substitution' OR cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'SNP' OR cvterm.name = 'point_mutation' OR cvterm.name = 'transition' OR cvterm.name = 'transversion' OR cvterm.name = 'pyrimidine_transition' OR cvterm.name = 'purine_transition' OR cvterm.name = 'C_to_T_transition' OR cvterm.name = 'T_to_C_transition' OR cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'pyrimidine_to_purine_transversion' OR cvterm.name = 'purine_to_pyrimidine_transversion' OR cvterm.name = 'C_to_A_transversion' OR cvterm.name = 'C_to_G_transversion' OR cvterm.name = 'T_to_A_transversion' OR cvterm.name = 'T_to_G_transversion' OR cvterm.name = 'A_to_C_transversion' OR cvterm.name = 'A_to_T_transversion' OR cvterm.name = 'G_to_C_transversion' OR cvterm.name = 'G_to_T_transversion' OR cvterm.name = 'sequence_feature';
  3695. --- ************************************************
  3696. --- *** relation: transposable_element_gene ***
  3697. --- *** relation type: VIEW ***
  3698. --- *** ***
  3699. --- *** A gene encoded within a transposable ele ***
  3700. --- *** ment. For example gag, int, env and pol ***
  3701. --- *** are the transposable element genes of th ***
  3702. --- *** e TY element in yeast. ***
  3703. --- ************************************************
  3704. ---
  3705. CREATE VIEW transposable_element_gene AS
  3706. SELECT
  3707. feature_id AS transposable_element_gene_id,
  3708. feature.*
  3709. FROM
  3710. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3711. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'transposable_element_gene';
  3712. --- ************************************************
  3713. --- *** relation: primer ***
  3714. --- *** relation type: VIEW ***
  3715. --- *** ***
  3716. --- *** An oligo to which new deoxyribonucleotid ***
  3717. --- *** es can be added by DNA polymerase. ***
  3718. --- ************************************************
  3719. ---
  3720. CREATE VIEW primer AS
  3721. SELECT
  3722. feature_id AS primer_id,
  3723. feature.*
  3724. FROM
  3725. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3726. WHERE cvterm.name = 'sequencing_primer' OR cvterm.name = 'forward_primer' OR cvterm.name = 'reverse_primer' OR cvterm.name = 'ASPE_primer' OR cvterm.name = 'dCAPS_primer' OR cvterm.name = 'primer';
  3727. --- ************************************************
  3728. --- *** relation: proviral_region ***
  3729. --- *** relation type: VIEW ***
  3730. --- *** ***
  3731. --- *** A viral sequence which has integrated in ***
  3732. --- *** to a host genome. ***
  3733. --- ************************************************
  3734. ---
  3735. CREATE VIEW proviral_region AS
  3736. SELECT
  3737. feature_id AS proviral_region_id,
  3738. feature.*
  3739. FROM
  3740. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3741. WHERE cvterm.name = 'prophage' OR cvterm.name = 'proviral_region';
  3742. --- ************************************************
  3743. --- *** relation: methylated_c ***
  3744. --- *** relation type: VIEW ***
  3745. --- *** ***
  3746. --- *** A methylated deoxy-cytosine. ***
  3747. --- ************************************************
  3748. ---
  3749. CREATE VIEW methylated_c AS
  3750. SELECT
  3751. feature_id AS methylated_c_id,
  3752. feature.*
  3753. FROM
  3754. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3755. WHERE cvterm.name = 'methylated_C';
  3756. --- ************************************************
  3757. --- *** relation: edited ***
  3758. --- *** relation type: VIEW ***
  3759. --- *** ***
  3760. --- *** An attribute describing a sequence that ***
  3761. --- *** is modified by editing. ***
  3762. --- ************************************************
  3763. ---
  3764. CREATE VIEW edited AS
  3765. SELECT
  3766. feature_id AS edited_id,
  3767. feature.*
  3768. FROM
  3769. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3770. WHERE cvterm.name = 'edited';
  3771. --- ************************************************
  3772. --- *** relation: transcript_with_translational_frameshift ***
  3773. --- *** relation type: VIEW ***
  3774. --- *** ***
  3775. --- *** A transcript with a translational frames ***
  3776. --- *** hift. ***
  3777. --- ************************************************
  3778. ---
  3779. CREATE VIEW transcript_with_translational_frameshift AS
  3780. SELECT
  3781. feature_id AS transcript_with_translational_frameshift_id,
  3782. feature.*
  3783. FROM
  3784. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3785. WHERE cvterm.name = 'transcript_with_translational_frameshift';
  3786. --- ************************************************
  3787. --- *** relation: regulated ***
  3788. --- *** relation type: VIEW ***
  3789. --- *** ***
  3790. --- *** An attribute to describe a sequence that ***
  3791. --- *** is regulated. ***
  3792. --- ************************************************
  3793. ---
  3794. CREATE VIEW regulated AS
  3795. SELECT
  3796. feature_id AS regulated_id,
  3797. feature.*
  3798. FROM
  3799. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3800. WHERE cvterm.name = 'transcriptionally_regulated' OR cvterm.name = 'post_translationally_regulated' OR cvterm.name = 'translationally_regulated' OR cvterm.name = 'imprinted' OR cvterm.name = 'transcriptionally_constitutive' OR cvterm.name = 'transcriptionally_induced' OR cvterm.name = 'transcriptionally_repressed' OR cvterm.name = 'autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'silenced' OR cvterm.name = 'silenced_by_DNA_modification' OR cvterm.name = 'silenced_by_RNA_interference' OR cvterm.name = 'silenced_by_histone_modification' OR cvterm.name = 'silenced_by_DNA_methylation' OR cvterm.name = 'silenced_by_histone_methylation' OR cvterm.name = 'silenced_by_histone_deacetylation' OR cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'post_translationally_regulated_by_protein_stability' OR cvterm.name = 'post_translationally_regulated_by_protein_modification' OR cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'regulated';
  3801. --- ************************************************
  3802. --- *** relation: protein_coding_primary_transcript ***
  3803. --- *** relation type: VIEW ***
  3804. --- *** ***
  3805. --- *** A primary transcript that, at least in p ***
  3806. --- *** art, encodes one or more proteins. ***
  3807. --- ************************************************
  3808. ---
  3809. CREATE VIEW protein_coding_primary_transcript AS
  3810. SELECT
  3811. feature_id AS protein_coding_primary_transcript_id,
  3812. feature.*
  3813. FROM
  3814. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3815. WHERE cvterm.name = 'pre_edited_mRNA' OR cvterm.name = 'protein_coding_primary_transcript';
  3816. --- ************************************************
  3817. --- *** relation: forward_primer ***
  3818. --- *** relation type: VIEW ***
  3819. --- *** ***
  3820. --- *** A single stranded oligo used for polymer ***
  3821. --- *** ase chain reaction. ***
  3822. --- ************************************************
  3823. ---
  3824. CREATE VIEW forward_primer AS
  3825. SELECT
  3826. feature_id AS forward_primer_id,
  3827. feature.*
  3828. FROM
  3829. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3830. WHERE cvterm.name = 'forward_primer';
  3831. --- ************************************************
  3832. --- *** relation: rna_sequence_secondary_structure ***
  3833. --- *** relation type: VIEW ***
  3834. --- *** ***
  3835. --- *** A folded RNA sequence. ***
  3836. --- ************************************************
  3837. ---
  3838. CREATE VIEW rna_sequence_secondary_structure AS
  3839. SELECT
  3840. feature_id AS rna_sequence_secondary_structure_id,
  3841. feature.*
  3842. FROM
  3843. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3844. WHERE cvterm.name = 'stem_loop' OR cvterm.name = 'tetraloop' OR cvterm.name = 'RNA_sequence_secondary_structure';
  3845. --- ************************************************
  3846. --- *** relation: transcriptionally_regulated ***
  3847. --- *** relation type: VIEW ***
  3848. --- *** ***
  3849. --- *** An attribute describing a gene that is r ***
  3850. --- *** egulated at transcription. ***
  3851. --- ************************************************
  3852. ---
  3853. CREATE VIEW transcriptionally_regulated AS
  3854. SELECT
  3855. feature_id AS transcriptionally_regulated_id,
  3856. feature.*
  3857. FROM
  3858. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3859. WHERE cvterm.name = 'transcriptionally_constitutive' OR cvterm.name = 'transcriptionally_induced' OR cvterm.name = 'transcriptionally_repressed' OR cvterm.name = 'autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'silenced' OR cvterm.name = 'silenced_by_DNA_modification' OR cvterm.name = 'silenced_by_RNA_interference' OR cvterm.name = 'silenced_by_histone_modification' OR cvterm.name = 'silenced_by_DNA_methylation' OR cvterm.name = 'silenced_by_histone_methylation' OR cvterm.name = 'silenced_by_histone_deacetylation' OR cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'transcriptionally_regulated';
  3860. --- ************************************************
  3861. --- *** relation: transcriptionally_constitutive ***
  3862. --- *** relation type: VIEW ***
  3863. --- *** ***
  3864. --- *** Expressed in relatively constant amounts ***
  3865. --- *** without regard to cellular environmenta ***
  3866. --- *** l conditions such as the concentration o ***
  3867. --- *** f a particular substrate. ***
  3868. --- ************************************************
  3869. ---
  3870. CREATE VIEW transcriptionally_constitutive AS
  3871. SELECT
  3872. feature_id AS transcriptionally_constitutive_id,
  3873. feature.*
  3874. FROM
  3875. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3876. WHERE cvterm.name = 'transcriptionally_constitutive';
  3877. --- ************************************************
  3878. --- *** relation: transcriptionally_induced ***
  3879. --- *** relation type: VIEW ***
  3880. --- *** ***
  3881. --- *** An inducer molecule is required for tran ***
  3882. --- *** scription to occur. ***
  3883. --- ************************************************
  3884. ---
  3885. CREATE VIEW transcriptionally_induced AS
  3886. SELECT
  3887. feature_id AS transcriptionally_induced_id,
  3888. feature.*
  3889. FROM
  3890. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3891. WHERE cvterm.name = 'positively_autoregulated' OR cvterm.name = 'transcriptionally_induced';
  3892. --- ************************************************
  3893. --- *** relation: transcriptionally_repressed ***
  3894. --- *** relation type: VIEW ***
  3895. --- *** ***
  3896. --- *** A repressor molecule is required for tra ***
  3897. --- *** nscription to stop. ***
  3898. --- ************************************************
  3899. ---
  3900. CREATE VIEW transcriptionally_repressed AS
  3901. SELECT
  3902. feature_id AS transcriptionally_repressed_id,
  3903. feature.*
  3904. FROM
  3905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3906. WHERE cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'silenced' OR cvterm.name = 'silenced_by_DNA_modification' OR cvterm.name = 'silenced_by_RNA_interference' OR cvterm.name = 'silenced_by_histone_modification' OR cvterm.name = 'silenced_by_DNA_methylation' OR cvterm.name = 'silenced_by_histone_methylation' OR cvterm.name = 'silenced_by_histone_deacetylation' OR cvterm.name = 'transcriptionally_repressed';
  3907. --- ************************************************
  3908. --- *** relation: silenced_gene ***
  3909. --- *** relation type: VIEW ***
  3910. --- *** ***
  3911. --- *** A gene that is silenced. ***
  3912. --- ************************************************
  3913. ---
  3914. CREATE VIEW silenced_gene AS
  3915. SELECT
  3916. feature_id AS silenced_gene_id,
  3917. feature.*
  3918. FROM
  3919. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3920. WHERE cvterm.name = 'gene_silenced_by_DNA_modification' OR cvterm.name = 'gene_silenced_by_RNA_interference' OR cvterm.name = 'gene_silenced_by_histone_modification' OR cvterm.name = 'gene_silenced_by_DNA_methylation' OR cvterm.name = 'gene_silenced_by_histone_methylation' OR cvterm.name = 'gene_silenced_by_histone_deacetylation' OR cvterm.name = 'silenced_gene';
  3921. --- ************************************************
  3922. --- *** relation: gene_silenced_by_dna_modification ***
  3923. --- *** relation type: VIEW ***
  3924. --- *** ***
  3925. --- *** A gene that is silenced by DNA modificat ***
  3926. --- *** ion. ***
  3927. --- ************************************************
  3928. ---
  3929. CREATE VIEW gene_silenced_by_dna_modification AS
  3930. SELECT
  3931. feature_id AS gene_silenced_by_dna_modification_id,
  3932. feature.*
  3933. FROM
  3934. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3935. WHERE cvterm.name = 'gene_silenced_by_DNA_methylation' OR cvterm.name = 'gene_silenced_by_DNA_modification';
  3936. --- ************************************************
  3937. --- *** relation: gene_silenced_by_dna_methylation ***
  3938. --- *** relation type: VIEW ***
  3939. --- *** ***
  3940. --- *** A gene that is silenced by DNA methylati ***
  3941. --- *** on. ***
  3942. --- ************************************************
  3943. ---
  3944. CREATE VIEW gene_silenced_by_dna_methylation AS
  3945. SELECT
  3946. feature_id AS gene_silenced_by_dna_methylation_id,
  3947. feature.*
  3948. FROM
  3949. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3950. WHERE cvterm.name = 'gene_silenced_by_DNA_methylation';
  3951. --- ************************************************
  3952. --- *** relation: post_translationally_regulated ***
  3953. --- *** relation type: VIEW ***
  3954. --- *** ***
  3955. --- *** An attribute describing a gene that is r ***
  3956. --- *** egulated after it has been translated. ***
  3957. --- ************************************************
  3958. ---
  3959. CREATE VIEW post_translationally_regulated AS
  3960. SELECT
  3961. feature_id AS post_translationally_regulated_id,
  3962. feature.*
  3963. FROM
  3964. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3965. WHERE cvterm.name = 'post_translationally_regulated_by_protein_stability' OR cvterm.name = 'post_translationally_regulated_by_protein_modification' OR cvterm.name = 'post_translationally_regulated';
  3966. --- ************************************************
  3967. --- *** relation: translationally_regulated ***
  3968. --- *** relation type: VIEW ***
  3969. --- *** ***
  3970. --- *** An attribute describing a gene that is r ***
  3971. --- *** egulated as it is translated. ***
  3972. --- ************************************************
  3973. ---
  3974. CREATE VIEW translationally_regulated AS
  3975. SELECT
  3976. feature_id AS translationally_regulated_id,
  3977. feature.*
  3978. FROM
  3979. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3980. WHERE cvterm.name = 'translationally_regulated';
  3981. --- ************************************************
  3982. --- *** relation: reverse_primer ***
  3983. --- *** relation type: VIEW ***
  3984. --- *** ***
  3985. --- *** A single stranded oligo used for polymer ***
  3986. --- *** ase chain reaction. ***
  3987. --- ************************************************
  3988. ---
  3989. CREATE VIEW reverse_primer AS
  3990. SELECT
  3991. feature_id AS reverse_primer_id,
  3992. feature.*
  3993. FROM
  3994. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3995. WHERE cvterm.name = 'reverse_primer';
  3996. --- ************************************************
  3997. --- *** relation: epigenetically_modified ***
  3998. --- *** relation type: VIEW ***
  3999. --- *** ***
  4000. --- *** This attribute describes a gene where he ***
  4001. --- *** ritable changes other than those in the ***
  4002. --- *** DNA sequence occur. These changes includ ***
  4003. --- *** e: modification to the DNA (such as DNA ***
  4004. --- *** methylation, the covalent modification o ***
  4005. --- *** f cytosine), and post-translational modi ***
  4006. --- *** fication of histones. ***
  4007. --- ************************************************
  4008. ---
  4009. CREATE VIEW epigenetically_modified AS
  4010. SELECT
  4011. feature_id AS epigenetically_modified_id,
  4012. feature.*
  4013. FROM
  4014. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4015. WHERE cvterm.name = 'imprinted' OR cvterm.name = 'allelically_excluded' OR cvterm.name = 'rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'epigenetically_modified';
  4016. --- ************************************************
  4017. --- *** relation: imprinted ***
  4018. --- *** relation type: VIEW ***
  4019. --- *** ***
  4020. --- *** Imprinted genes are epigenetically modif ***
  4021. --- *** ied genes that are expressed monoallelic ***
  4022. --- *** ally according to their parent of origin ***
  4023. --- *** . ***
  4024. --- ************************************************
  4025. ---
  4026. CREATE VIEW imprinted AS
  4027. SELECT
  4028. feature_id AS imprinted_id,
  4029. feature.*
  4030. FROM
  4031. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4032. WHERE cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'imprinted';
  4033. --- ************************************************
  4034. --- *** relation: maternally_imprinted ***
  4035. --- *** relation type: VIEW ***
  4036. --- *** ***
  4037. --- *** The maternal copy of the gene is modifie ***
  4038. --- *** d, rendering it transcriptionally silent ***
  4039. --- *** . ***
  4040. --- ************************************************
  4041. ---
  4042. CREATE VIEW maternally_imprinted AS
  4043. SELECT
  4044. feature_id AS maternally_imprinted_id,
  4045. feature.*
  4046. FROM
  4047. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4048. WHERE cvterm.name = 'maternally_imprinted';
  4049. --- ************************************************
  4050. --- *** relation: paternally_imprinted ***
  4051. --- *** relation type: VIEW ***
  4052. --- *** ***
  4053. --- *** The paternal copy of the gene is modifie ***
  4054. --- *** d, rendering it transcriptionally silent ***
  4055. --- *** . ***
  4056. --- ************************************************
  4057. ---
  4058. CREATE VIEW paternally_imprinted AS
  4059. SELECT
  4060. feature_id AS paternally_imprinted_id,
  4061. feature.*
  4062. FROM
  4063. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4064. WHERE cvterm.name = 'paternally_imprinted';
  4065. --- ************************************************
  4066. --- *** relation: allelically_excluded ***
  4067. --- *** relation type: VIEW ***
  4068. --- *** ***
  4069. --- *** Allelic exclusion is a process occurring ***
  4070. --- *** in diploid organisms, where a gene is i ***
  4071. --- *** nactivated and not expressed in that cel ***
  4072. --- *** l. ***
  4073. --- ************************************************
  4074. ---
  4075. CREATE VIEW allelically_excluded AS
  4076. SELECT
  4077. feature_id AS allelically_excluded_id,
  4078. feature.*
  4079. FROM
  4080. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4081. WHERE cvterm.name = 'allelically_excluded';
  4082. --- ************************************************
  4083. --- *** relation: gene_rearranged_at_dna_level ***
  4084. --- *** relation type: VIEW ***
  4085. --- *** ***
  4086. --- *** An epigenetically modified gene, rearran ***
  4087. --- *** ged at the DNA level. ***
  4088. --- ************************************************
  4089. ---
  4090. CREATE VIEW gene_rearranged_at_dna_level AS
  4091. SELECT
  4092. feature_id AS gene_rearranged_at_dna_level_id,
  4093. feature.*
  4094. FROM
  4095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4096. WHERE cvterm.name = 'gene_rearranged_at_DNA_level';
  4097. --- ************************************************
  4098. --- *** relation: ribosome_entry_site ***
  4099. --- *** relation type: VIEW ***
  4100. --- *** ***
  4101. --- *** Region in mRNA where ribosome assembles. ***
  4102. --- ************************************************
  4103. ---
  4104. CREATE VIEW ribosome_entry_site AS
  4105. SELECT
  4106. feature_id AS ribosome_entry_site_id,
  4107. feature.*
  4108. FROM
  4109. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4110. WHERE cvterm.name = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'kozak_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'ribosome_entry_site';
  4111. --- ************************************************
  4112. --- *** relation: attenuator ***
  4113. --- *** relation type: VIEW ***
  4114. --- *** ***
  4115. --- *** A sequence segment located within the fi ***
  4116. --- *** ve prime end of an mRNA that causes prem ***
  4117. --- *** ature termination of translation. ***
  4118. --- ************************************************
  4119. ---
  4120. CREATE VIEW attenuator AS
  4121. SELECT
  4122. feature_id AS attenuator_id,
  4123. feature.*
  4124. FROM
  4125. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4126. WHERE cvterm.name = 'attenuator';
  4127. --- ************************************************
  4128. --- *** relation: terminator ***
  4129. --- *** relation type: VIEW ***
  4130. --- *** ***
  4131. --- *** The sequence of DNA located either at th ***
  4132. --- *** e end of the transcript that causes RNA ***
  4133. --- *** polymerase to terminate transcription. ***
  4134. --- ************************************************
  4135. ---
  4136. CREATE VIEW terminator AS
  4137. SELECT
  4138. feature_id AS terminator_id,
  4139. feature.*
  4140. FROM
  4141. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4142. WHERE cvterm.name = 'bacterial_terminator' OR cvterm.name = 'eukaryotic_terminator' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'terminator_of_type_2_RNApol_III_promoter' OR cvterm.name = 'terminator';
  4143. --- ************************************************
  4144. --- *** relation: dna_sequence_secondary_structure ***
  4145. --- *** relation type: VIEW ***
  4146. --- *** ***
  4147. --- *** A folded DNA sequence. ***
  4148. --- ************************************************
  4149. ---
  4150. CREATE VIEW dna_sequence_secondary_structure AS
  4151. SELECT
  4152. feature_id AS dna_sequence_secondary_structure_id,
  4153. feature.*
  4154. FROM
  4155. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4156. WHERE cvterm.name = 'i_motif' OR cvterm.name = 'DNA_sequence_secondary_structure';
  4157. --- ************************************************
  4158. --- *** relation: assembly_component ***
  4159. --- *** relation type: VIEW ***
  4160. --- *** ***
  4161. --- *** A region of known length which may be us ***
  4162. --- *** ed to manufacture a longer region. ***
  4163. --- ************************************************
  4164. ---
  4165. CREATE VIEW assembly_component AS
  4166. SELECT
  4167. feature_id AS assembly_component_id,
  4168. feature.*
  4169. FROM
  4170. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4171. WHERE cvterm.name = 'contig' OR cvterm.name = 'read' OR cvterm.name = 'restriction_fragment' OR cvterm.name = 'golden_path_fragment' OR cvterm.name = 'tiling_path_fragment' OR cvterm.name = 'gap' OR cvterm.name = 'sonicate_fragment' OR cvterm.name = 'paired_end_fragment' OR cvterm.name = 'read_pair' OR cvterm.name = 'contig_read' OR cvterm.name = 'BAC_end' OR cvterm.name = 'dye_terminator_read' OR cvterm.name = 'pyrosequenced_read' OR cvterm.name = 'ligation_based_read' OR cvterm.name = 'polymerase_synthesis_read' OR cvterm.name = 'PAC_end' OR cvterm.name = 'YAC_end' OR cvterm.name = 'clone_end' OR cvterm.name = 'RFLP_fragment' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'assembly_component';
  4172. --- ************************************************
  4173. --- *** relation: recoded_codon ***
  4174. --- *** relation type: VIEW ***
  4175. --- *** ***
  4176. --- *** A codon that has been redefined at trans ***
  4177. --- *** lation. The redefinition may be as a res ***
  4178. --- *** ult of translational bypass, translation ***
  4179. --- *** al frameshifting or stop codon readthrou ***
  4180. --- *** gh. ***
  4181. --- ************************************************
  4182. ---
  4183. CREATE VIEW recoded_codon AS
  4184. SELECT
  4185. feature_id AS recoded_codon_id,
  4186. feature.*
  4187. FROM
  4188. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4189. WHERE cvterm.name = 'stop_codon_read_through' OR cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'recoded_codon';
  4190. --- ************************************************
  4191. --- *** relation: capped ***
  4192. --- *** relation type: VIEW ***
  4193. --- *** ***
  4194. --- *** An attribute describing when a sequence, ***
  4195. --- *** usually an mRNA is capped by the additi ***
  4196. --- *** on of a modified guanine nucleotide at t ***
  4197. --- *** he 5' end. ***
  4198. --- ************************************************
  4199. ---
  4200. CREATE VIEW capped AS
  4201. SELECT
  4202. feature_id AS capped_id,
  4203. feature.*
  4204. FROM
  4205. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4206. WHERE cvterm.name = 'capped';
  4207. --- ************************************************
  4208. --- *** relation: exon ***
  4209. --- *** relation type: VIEW ***
  4210. --- *** ***
  4211. --- *** A region of the transcript sequence with ***
  4212. --- *** in a gene which is not removed from the ***
  4213. --- *** primary RNA transcript by RNA splicing. ***
  4214. --- ************************************************
  4215. ---
  4216. CREATE VIEW exon AS
  4217. SELECT
  4218. feature_id AS exon_id,
  4219. feature.*
  4220. FROM
  4221. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4222. WHERE cvterm.name = 'coding_exon' OR cvterm.name = 'noncoding_exon' OR cvterm.name = 'interior_exon' OR cvterm.name = 'exon_of_single_exon_gene' OR cvterm.name = 'interior_coding_exon' OR cvterm.name = 'five_prime_coding_exon' OR cvterm.name = 'three_prime_coding_exon' OR cvterm.name = 'three_prime_noncoding_exon' OR cvterm.name = 'five_prime_noncoding_exon' OR cvterm.name = 'exon';
  4223. --- ************************************************
  4224. --- *** relation: supercontig ***
  4225. --- *** relation type: VIEW ***
  4226. --- *** ***
  4227. --- *** One or more contigs that have been order ***
  4228. --- *** ed and oriented using end-read informati ***
  4229. --- *** on. Contains gaps that are filled with N ***
  4230. --- *** 's. ***
  4231. --- ************************************************
  4232. ---
  4233. CREATE VIEW supercontig AS
  4234. SELECT
  4235. feature_id AS supercontig_id,
  4236. feature.*
  4237. FROM
  4238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4239. WHERE cvterm.name = 'supercontig';
  4240. --- ************************************************
  4241. --- *** relation: contig ***
  4242. --- *** relation type: VIEW ***
  4243. --- *** ***
  4244. --- *** A contiguous sequence derived from seque ***
  4245. --- *** nce assembly. Has no gaps, but may conta ***
  4246. --- *** in N's from unavailable bases. ***
  4247. --- ************************************************
  4248. ---
  4249. CREATE VIEW contig AS
  4250. SELECT
  4251. feature_id AS contig_id,
  4252. feature.*
  4253. FROM
  4254. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4255. WHERE cvterm.name = 'contig';
  4256. --- ************************************************
  4257. --- *** relation: read ***
  4258. --- *** relation type: VIEW ***
  4259. --- *** ***
  4260. --- *** A sequence obtained from a single sequen ***
  4261. --- *** cing experiment. Typically a read is pro ***
  4262. --- *** duced when a base calling program interp ***
  4263. --- *** rets information from a chromatogram tra ***
  4264. --- *** ce file produced from a sequencing machi ***
  4265. --- *** ne. ***
  4266. --- ************************************************
  4267. ---
  4268. CREATE VIEW read AS
  4269. SELECT
  4270. feature_id AS read_id,
  4271. feature.*
  4272. FROM
  4273. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4274. WHERE cvterm.name = 'read_pair' OR cvterm.name = 'contig_read' OR cvterm.name = 'BAC_end' OR cvterm.name = 'dye_terminator_read' OR cvterm.name = 'pyrosequenced_read' OR cvterm.name = 'ligation_based_read' OR cvterm.name = 'polymerase_synthesis_read' OR cvterm.name = 'PAC_end' OR cvterm.name = 'YAC_end' OR cvterm.name = 'clone_end' OR cvterm.name = 'read';
  4275. --- ************************************************
  4276. --- *** relation: clone ***
  4277. --- *** relation type: VIEW ***
  4278. --- *** ***
  4279. --- *** A piece of DNA that has been inserted in ***
  4280. --- *** a vector so that it can be propagated i ***
  4281. --- *** n a host bacterium or some other organis ***
  4282. --- *** m. ***
  4283. --- ************************************************
  4284. ---
  4285. CREATE VIEW clone AS
  4286. SELECT
  4287. feature_id AS clone_id,
  4288. feature.*
  4289. FROM
  4290. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4291. WHERE cvterm.name = 'genomic_clone' OR cvterm.name = 'cDNA_clone' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'validated_cDNA_clone' OR cvterm.name = 'invalidated_cDNA_clone' OR cvterm.name = 'three_prime_RACE_clone' OR cvterm.name = 'chimeric_cDNA_clone' OR cvterm.name = 'genomically_contaminated_cDNA_clone' OR cvterm.name = 'polyA_primed_cDNA_clone' OR cvterm.name = 'partially_processed_cDNA_clone' OR cvterm.name = 'clone';
  4292. --- ************************************************
  4293. --- *** relation: yac ***
  4294. --- *** relation type: VIEW ***
  4295. --- *** ***
  4296. --- *** Yeast Artificial Chromosome, a vector co ***
  4297. --- *** nstructed from the telomeric, centromeri ***
  4298. --- *** c, and replication origin sequences need ***
  4299. --- *** ed for replication in yeast cells. ***
  4300. --- ************************************************
  4301. ---
  4302. CREATE VIEW yac AS
  4303. SELECT
  4304. feature_id AS yac_id,
  4305. feature.*
  4306. FROM
  4307. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4308. WHERE cvterm.name = 'YAC';
  4309. --- ************************************************
  4310. --- *** relation: bac ***
  4311. --- *** relation type: VIEW ***
  4312. --- *** ***
  4313. --- *** Bacterial Artificial Chromosome, a cloni ***
  4314. --- *** ng vector that can be propagated as mini ***
  4315. --- *** -chromosomes in a bacterial host. ***
  4316. --- ************************************************
  4317. ---
  4318. CREATE VIEW bac AS
  4319. SELECT
  4320. feature_id AS bac_id,
  4321. feature.*
  4322. FROM
  4323. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4324. WHERE cvterm.name = 'BAC';
  4325. --- ************************************************
  4326. --- *** relation: pac ***
  4327. --- *** relation type: VIEW ***
  4328. --- *** ***
  4329. --- *** The P1-derived artificial chromosome are ***
  4330. --- *** DNA constructs that are derived from th ***
  4331. --- *** e DNA of P1 bacteriophage. They can carr ***
  4332. --- *** y large amounts (about 100-300 kilobases ***
  4333. --- *** ) of other sequences for a variety of bi ***
  4334. --- *** oengineering purposes. It is one type of ***
  4335. --- *** vector used to clone DNA fragments (100 ***
  4336. --- *** - to 300-kb insert size; average, 150 kb ***
  4337. --- *** ) in Escherichia coli cells. ***
  4338. --- ************************************************
  4339. ---
  4340. CREATE VIEW pac AS
  4341. SELECT
  4342. feature_id AS pac_id,
  4343. feature.*
  4344. FROM
  4345. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4346. WHERE cvterm.name = 'PAC';
  4347. --- ************************************************
  4348. --- *** relation: plasmid ***
  4349. --- *** relation type: VIEW ***
  4350. --- *** ***
  4351. --- *** A self replicating, using the hosts cell ***
  4352. --- *** ular machinery, often circular nucleic a ***
  4353. --- *** cid molecule that is distinct from a chr ***
  4354. --- *** omosome in the organism. ***
  4355. --- ************************************************
  4356. ---
  4357. CREATE VIEW plasmid AS
  4358. SELECT
  4359. feature_id AS plasmid_id,
  4360. feature.*
  4361. FROM
  4362. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4363. WHERE cvterm.name = 'engineered_plasmid' OR cvterm.name = 'episome' OR cvterm.name = 'natural_plasmid' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'gene_trap_construct' OR cvterm.name = 'promoter_trap_construct' OR cvterm.name = 'enhancer_trap_construct' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'plasmid';
  4364. --- ************************************************
  4365. --- *** relation: cosmid ***
  4366. --- *** relation type: VIEW ***
  4367. --- *** ***
  4368. --- *** A cloning vector that is a hybrid of lam ***
  4369. --- *** bda phages and a plasmid that can be pro ***
  4370. --- *** pagated as a plasmid or packaged as a ph ***
  4371. --- *** age,since they retain the lambda cos sit ***
  4372. --- *** es. ***
  4373. --- ************************************************
  4374. ---
  4375. CREATE VIEW cosmid AS
  4376. SELECT
  4377. feature_id AS cosmid_id,
  4378. feature.*
  4379. FROM
  4380. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4381. WHERE cvterm.name = 'cosmid';
  4382. --- ************************************************
  4383. --- *** relation: phagemid ***
  4384. --- *** relation type: VIEW ***
  4385. --- *** ***
  4386. --- *** A plasmid which carries within its seque ***
  4387. --- *** nce a bacteriophage replication origin. ***
  4388. --- *** When the host bacterium is infected with ***
  4389. --- *** "helper" phage, a phagemid is replicate ***
  4390. --- *** d along with the phage DNA and packaged ***
  4391. --- *** into phage capsids. ***
  4392. --- ************************************************
  4393. ---
  4394. CREATE VIEW phagemid AS
  4395. SELECT
  4396. feature_id AS phagemid_id,
  4397. feature.*
  4398. FROM
  4399. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4400. WHERE cvterm.name = 'phagemid';
  4401. --- ************************************************
  4402. --- *** relation: fosmid ***
  4403. --- *** relation type: VIEW ***
  4404. --- *** ***
  4405. --- *** A cloning vector that utilizes the E. co ***
  4406. --- *** li F factor. ***
  4407. --- ************************************************
  4408. ---
  4409. CREATE VIEW fosmid AS
  4410. SELECT
  4411. feature_id AS fosmid_id,
  4412. feature.*
  4413. FROM
  4414. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4415. WHERE cvterm.name = 'fosmid';
  4416. --- ************************************************
  4417. --- *** relation: deletion ***
  4418. --- *** relation type: VIEW ***
  4419. --- *** ***
  4420. --- *** The point at which one or more contiguou ***
  4421. --- *** s nucleotides were excised. ***
  4422. --- ************************************************
  4423. ---
  4424. CREATE VIEW deletion AS
  4425. SELECT
  4426. feature_id AS deletion_id,
  4427. feature.*
  4428. FROM
  4429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4430. WHERE cvterm.name = 'deletion';
  4431. --- ************************************************
  4432. --- *** relation: methylated_a ***
  4433. --- *** relation type: VIEW ***
  4434. --- *** ***
  4435. --- *** A modified RNA base in which adenine has ***
  4436. --- *** been methylated. ***
  4437. --- ************************************************
  4438. ---
  4439. CREATE VIEW methylated_a AS
  4440. SELECT
  4441. feature_id AS methylated_a_id,
  4442. feature.*
  4443. FROM
  4444. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4445. WHERE cvterm.name = 'methylated_A';
  4446. --- ************************************************
  4447. --- *** relation: splice_site ***
  4448. --- *** relation type: VIEW ***
  4449. --- *** ***
  4450. --- *** Consensus region of primary transcript b ***
  4451. --- *** ordering junction of splicing. A region ***
  4452. --- *** that overlaps exactly 2 base and adjacen ***
  4453. --- *** t_to splice_junction. ***
  4454. --- ************************************************
  4455. ---
  4456. CREATE VIEW splice_site AS
  4457. SELECT
  4458. feature_id AS splice_site_id,
  4459. feature.*
  4460. FROM
  4461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4462. WHERE cvterm.name = 'cis_splice_site' OR cvterm.name = 'trans_splice_site' OR cvterm.name = 'cryptic_splice_site' OR cvterm.name = 'five_prime_cis_splice_site' OR cvterm.name = 'three_prime_cis_splice_site' OR cvterm.name = 'recursive_splice_site' OR cvterm.name = 'canonical_five_prime_splice_site' OR cvterm.name = 'non_canonical_five_prime_splice_site' OR cvterm.name = 'canonical_three_prime_splice_site' OR cvterm.name = 'non_canonical_three_prime_splice_site' OR cvterm.name = 'trans_splice_acceptor_site' OR cvterm.name = 'trans_splice_donor_site' OR cvterm.name = 'SL1_acceptor_site' OR cvterm.name = 'SL2_acceptor_site' OR cvterm.name = 'SL3_acceptor_site' OR cvterm.name = 'SL4_acceptor_site' OR cvterm.name = 'SL5_acceptor_site' OR cvterm.name = 'SL6_acceptor_site' OR cvterm.name = 'SL7_acceptor_site' OR cvterm.name = 'SL8_acceptor_site' OR cvterm.name = 'SL9_acceptor_site' OR cvterm.name = 'SL10_accceptor_site' OR cvterm.name = 'SL11_acceptor_site' OR cvterm.name = 'SL12_acceptor_site' OR cvterm.name = 'splice_site';
  4463. --- ************************************************
  4464. --- *** relation: five_prime_cis_splice_site ***
  4465. --- *** relation type: VIEW ***
  4466. --- *** ***
  4467. --- *** Intronic 2 bp region bordering the exon, ***
  4468. --- *** at the 5' edge of the intron. A splice_ ***
  4469. --- *** site that is downstream_adjacent_to exon ***
  4470. --- *** and starts intron. ***
  4471. --- ************************************************
  4472. ---
  4473. CREATE VIEW five_prime_cis_splice_site AS
  4474. SELECT
  4475. feature_id AS five_prime_cis_splice_site_id,
  4476. feature.*
  4477. FROM
  4478. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4479. WHERE cvterm.name = 'canonical_five_prime_splice_site' OR cvterm.name = 'non_canonical_five_prime_splice_site' OR cvterm.name = 'five_prime_cis_splice_site';
  4480. --- ************************************************
  4481. --- *** relation: three_prime_cis_splice_site ***
  4482. --- *** relation type: VIEW ***
  4483. --- *** ***
  4484. --- *** Intronic 2 bp region bordering the exon, ***
  4485. --- *** at the 3' edge of the intron. A splice_ ***
  4486. --- *** site that is upstream_adjacent_to exon a ***
  4487. --- *** nd finishes intron. ***
  4488. --- ************************************************
  4489. ---
  4490. CREATE VIEW three_prime_cis_splice_site AS
  4491. SELECT
  4492. feature_id AS three_prime_cis_splice_site_id,
  4493. feature.*
  4494. FROM
  4495. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4496. WHERE cvterm.name = 'canonical_three_prime_splice_site' OR cvterm.name = 'non_canonical_three_prime_splice_site' OR cvterm.name = 'three_prime_cis_splice_site';
  4497. --- ************************************************
  4498. --- *** relation: enhancer ***
  4499. --- *** relation type: VIEW ***
  4500. --- *** ***
  4501. --- *** A cis-acting sequence that increases the ***
  4502. --- *** utilization of (some) eukaryotic promot ***
  4503. --- *** ers, and can function in either orientat ***
  4504. --- *** ion and in any location (upstream or dow ***
  4505. --- *** nstream) relative to the promoter. ***
  4506. --- ************************************************
  4507. ---
  4508. CREATE VIEW enhancer AS
  4509. SELECT
  4510. feature_id AS enhancer_id,
  4511. feature.*
  4512. FROM
  4513. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4514. WHERE cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'enhancer';
  4515. --- ************************************************
  4516. --- *** relation: enhancer_bound_by_factor ***
  4517. --- *** relation type: VIEW ***
  4518. --- *** ***
  4519. --- *** An enhancer bound by a factor. ***
  4520. --- ************************************************
  4521. ---
  4522. CREATE VIEW enhancer_bound_by_factor AS
  4523. SELECT
  4524. feature_id AS enhancer_bound_by_factor_id,
  4525. feature.*
  4526. FROM
  4527. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4528. WHERE cvterm.name = 'enhancer_bound_by_factor';
  4529. --- ************************************************
  4530. --- *** relation: promoter ***
  4531. --- *** relation type: VIEW ***
  4532. --- *** ***
  4533. --- *** A regulatory_region composed of the TSS( ***
  4534. --- *** s) and binding sites for TF_complexes of ***
  4535. --- *** the basal transcription machinery. ***
  4536. --- ************************************************
  4537. ---
  4538. CREATE VIEW promoter AS
  4539. SELECT
  4540. feature_id AS promoter_id,
  4541. feature.*
  4542. FROM
  4543. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4544. WHERE cvterm.name = 'bidirectional_promoter' OR cvterm.name = 'RNA_polymerase_promoter' OR cvterm.name = 'RNApol_I_promoter' OR cvterm.name = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'Phage_RNA_Polymerase_Promoter' OR cvterm.name = 'RNApol_II_core_promoter' OR cvterm.name = 'RNApol_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'SP6_RNA_Polymerase_Promoter' OR cvterm.name = 'T3_RNA_Polymerase_Promoter' OR cvterm.name = 'T7_RNA_Polymerase_Promoter' OR cvterm.name = 'promoter';
  4545. --- ************************************************
  4546. --- *** relation: rnapol_i_promoter ***
  4547. --- *** relation type: VIEW ***
  4548. --- *** ***
  4549. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4550. --- *** h RNA polymerase I binds, to begin trans ***
  4551. --- *** cription. ***
  4552. --- ************************************************
  4553. ---
  4554. CREATE VIEW rnapol_i_promoter AS
  4555. SELECT
  4556. feature_id AS rnapol_i_promoter_id,
  4557. feature.*
  4558. FROM
  4559. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4560. WHERE cvterm.name = 'RNApol_I_promoter';
  4561. --- ************************************************
  4562. --- *** relation: rnapol_ii_promoter ***
  4563. --- *** relation type: VIEW ***
  4564. --- *** ***
  4565. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4566. --- *** h RNA polymerase II binds, to begin tran ***
  4567. --- *** scription. ***
  4568. --- ************************************************
  4569. ---
  4570. CREATE VIEW rnapol_ii_promoter AS
  4571. SELECT
  4572. feature_id AS rnapol_ii_promoter_id,
  4573. feature.*
  4574. FROM
  4575. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4576. WHERE cvterm.name = 'RNApol_II_core_promoter' OR cvterm.name = 'RNApol_II_promoter';
  4577. --- ************************************************
  4578. --- *** relation: rnapol_iii_promoter ***
  4579. --- *** relation type: VIEW ***
  4580. --- *** ***
  4581. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4582. --- *** h RNA polymerase III binds, to begin tra ***
  4583. --- *** nscription. ***
  4584. --- ************************************************
  4585. ---
  4586. CREATE VIEW rnapol_iii_promoter AS
  4587. SELECT
  4588. feature_id AS rnapol_iii_promoter_id,
  4589. feature.*
  4590. FROM
  4591. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4592. WHERE cvterm.name = 'RNApol_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' OR cvterm.name = 'RNApol_III_promoter';
  4593. --- ************************************************
  4594. --- *** relation: caat_signal ***
  4595. --- *** relation type: VIEW ***
  4596. --- *** ***
  4597. --- *** Part of a conserved sequence located abo ***
  4598. --- *** ut 75-bp upstream of the start point of ***
  4599. --- *** eukaryotic transcription units which may ***
  4600. --- *** be involved in RNA polymerase binding; ***
  4601. --- *** consensus=GG(C|T)CAATCT. ***
  4602. --- ************************************************
  4603. ---
  4604. CREATE VIEW caat_signal AS
  4605. SELECT
  4606. feature_id AS caat_signal_id,
  4607. feature.*
  4608. FROM
  4609. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4610. WHERE cvterm.name = 'CAAT_signal';
  4611. --- ************************************************
  4612. --- *** relation: gc_rich_promoter_region ***
  4613. --- *** relation type: VIEW ***
  4614. --- *** ***
  4615. --- *** A conserved GC-rich region located upstr ***
  4616. --- *** eam of the start point of eukaryotic tra ***
  4617. --- *** nscription units which may occur in mult ***
  4618. --- *** iple copies or in either orientation; co ***
  4619. --- *** nsensus=GGGCGG. ***
  4620. --- ************************************************
  4621. ---
  4622. CREATE VIEW gc_rich_promoter_region AS
  4623. SELECT
  4624. feature_id AS gc_rich_promoter_region_id,
  4625. feature.*
  4626. FROM
  4627. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4628. WHERE cvterm.name = 'GC_rich_promoter_region';
  4629. --- ************************************************
  4630. --- *** relation: tata_box ***
  4631. --- *** relation type: VIEW ***
  4632. --- *** ***
  4633. --- *** A conserved AT-rich septamer found about ***
  4634. --- *** 25-bp before the start point of many eu ***
  4635. --- *** karyotic RNA polymerase II transcript un ***
  4636. --- *** its; may be involved in positioning the ***
  4637. --- *** enzyme for correct initiation; consensus ***
  4638. --- *** =TATA(A|T)A(A|T). ***
  4639. --- ************************************************
  4640. ---
  4641. CREATE VIEW tata_box AS
  4642. SELECT
  4643. feature_id AS tata_box_id,
  4644. feature.*
  4645. FROM
  4646. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4647. WHERE cvterm.name = 'RNA_polymerase_II_TATA_box' OR cvterm.name = 'RNA_polymerase_III_TATA_box' OR cvterm.name = 'TATA_box';
  4648. --- ************************************************
  4649. --- *** relation: minus_10_signal ***
  4650. --- *** relation type: VIEW ***
  4651. --- *** ***
  4652. --- *** A conserved region about 10-bp upstream ***
  4653. --- *** of the start point of bacterial transcri ***
  4654. --- *** ption units which may be involved in bin ***
  4655. --- *** ding RNA polymerase; consensus=TAtAaT. T ***
  4656. --- *** his region is associated with sigma fact ***
  4657. --- *** or 70. ***
  4658. --- ************************************************
  4659. ---
  4660. CREATE VIEW minus_10_signal AS
  4661. SELECT
  4662. feature_id AS minus_10_signal_id,
  4663. feature.*
  4664. FROM
  4665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4666. WHERE cvterm.name = 'minus_10_signal';
  4667. --- ************************************************
  4668. --- *** relation: minus_35_signal ***
  4669. --- *** relation type: VIEW ***
  4670. --- *** ***
  4671. --- *** A conserved hexamer about 35-bp upstream ***
  4672. --- *** of the start point of bacterial transcr ***
  4673. --- *** iption units; consensus=TTGACa or TGTTGA ***
  4674. --- *** CA. This region is associated with sigma ***
  4675. --- *** factor 70. ***
  4676. --- ************************************************
  4677. ---
  4678. CREATE VIEW minus_35_signal AS
  4679. SELECT
  4680. feature_id AS minus_35_signal_id,
  4681. feature.*
  4682. FROM
  4683. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4684. WHERE cvterm.name = 'minus_35_signal';
  4685. --- ************************************************
  4686. --- *** relation: cross_genome_match ***
  4687. --- *** relation type: VIEW ***
  4688. --- *** ***
  4689. --- *** A nucleotide match against a sequence fr ***
  4690. --- *** om another organism. ***
  4691. --- ************************************************
  4692. ---
  4693. CREATE VIEW cross_genome_match AS
  4694. SELECT
  4695. feature_id AS cross_genome_match_id,
  4696. feature.*
  4697. FROM
  4698. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4699. WHERE cvterm.name = 'cross_genome_match';
  4700. --- ************************************************
  4701. --- *** relation: operon ***
  4702. --- *** relation type: VIEW ***
  4703. --- *** ***
  4704. --- *** A group of contiguous genes transcribed ***
  4705. --- *** as a single (polycistronic) mRNA from a ***
  4706. --- *** single regulatory region. ***
  4707. --- ************************************************
  4708. ---
  4709. CREATE VIEW operon AS
  4710. SELECT
  4711. feature_id AS operon_id,
  4712. feature.*
  4713. FROM
  4714. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4715. WHERE cvterm.name = 'operon';
  4716. --- ************************************************
  4717. --- *** relation: clone_insert_start ***
  4718. --- *** relation type: VIEW ***
  4719. --- *** ***
  4720. --- *** The start of the clone insert. ***
  4721. --- ************************************************
  4722. ---
  4723. CREATE VIEW clone_insert_start AS
  4724. SELECT
  4725. feature_id AS clone_insert_start_id,
  4726. feature.*
  4727. FROM
  4728. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4729. WHERE cvterm.name = 'clone_insert_start';
  4730. --- ************************************************
  4731. --- *** relation: retrotransposon ***
  4732. --- *** relation type: VIEW ***
  4733. --- *** ***
  4734. --- *** A transposable element that is incorpora ***
  4735. --- *** ted into a chromosome by a mechanism tha ***
  4736. --- *** t requires reverse transcriptase. ***
  4737. --- ************************************************
  4738. ---
  4739. CREATE VIEW retrotransposon AS
  4740. SELECT
  4741. feature_id AS retrotransposon_id,
  4742. feature.*
  4743. FROM
  4744. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4745. WHERE cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'retrotransposon';
  4746. --- ************************************************
  4747. --- *** relation: translated_nucleotide_match ***
  4748. --- *** relation type: VIEW ***
  4749. --- *** ***
  4750. --- *** A match against a translated sequence. ***
  4751. --- ************************************************
  4752. ---
  4753. CREATE VIEW translated_nucleotide_match AS
  4754. SELECT
  4755. feature_id AS translated_nucleotide_match_id,
  4756. feature.*
  4757. FROM
  4758. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4759. WHERE cvterm.name = 'translated_nucleotide_match';
  4760. --- ************************************************
  4761. --- *** relation: dna_transposon ***
  4762. --- *** relation type: VIEW ***
  4763. --- *** ***
  4764. --- *** A transposon where the mechanism of tran ***
  4765. --- *** sposition is via a DNA intermediate. ***
  4766. --- ************************************************
  4767. ---
  4768. CREATE VIEW dna_transposon AS
  4769. SELECT
  4770. feature_id AS dna_transposon_id,
  4771. feature.*
  4772. FROM
  4773. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4774. WHERE cvterm.name = 'terminal_inverted_repeat_element' OR cvterm.name = 'foldback_element' OR cvterm.name = 'conjugative_transposon' OR cvterm.name = 'helitron' OR cvterm.name = 'p_element' OR cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'DNA_transposon';
  4775. --- ************************************************
  4776. --- *** relation: non_transcribed_region ***
  4777. --- *** relation type: VIEW ***
  4778. --- *** ***
  4779. --- *** A region of the gene which is not transc ***
  4780. --- *** ribed. ***
  4781. --- ************************************************
  4782. ---
  4783. CREATE VIEW non_transcribed_region AS
  4784. SELECT
  4785. feature_id AS non_transcribed_region_id,
  4786. feature.*
  4787. FROM
  4788. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4789. WHERE cvterm.name = 'non_transcribed_region';
  4790. --- ************************************************
  4791. --- *** relation: u2_intron ***
  4792. --- *** relation type: VIEW ***
  4793. --- *** ***
  4794. --- *** A major type of spliceosomal intron spli ***
  4795. --- *** ced by the U2 spliceosome, that includes ***
  4796. --- *** U1, U2, U4/U6 and U5 snRNAs. ***
  4797. --- ************************************************
  4798. ---
  4799. CREATE VIEW u2_intron AS
  4800. SELECT
  4801. feature_id AS u2_intron_id,
  4802. feature.*
  4803. FROM
  4804. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4805. WHERE cvterm.name = 'U2_intron';
  4806. --- ************************************************
  4807. --- *** relation: primary_transcript ***
  4808. --- *** relation type: VIEW ***
  4809. --- *** ***
  4810. --- *** A transcript that in its initial state r ***
  4811. --- *** equires modification to be functional. ***
  4812. --- ************************************************
  4813. ---
  4814. CREATE VIEW primary_transcript AS
  4815. SELECT
  4816. feature_id AS primary_transcript_id,
  4817. feature.*
  4818. FROM
  4819. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4820. WHERE cvterm.name = 'protein_coding_primary_transcript' OR cvterm.name = 'nc_primary_transcript' OR cvterm.name = 'polycistronic_primary_transcript' OR cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'mini_exon_donor_RNA' OR cvterm.name = 'antisense_primary_transcript' OR cvterm.name = 'capped_primary_transcript' OR cvterm.name = 'pre_edited_mRNA' OR cvterm.name = 'scRNA_primary_transcript' OR cvterm.name = 'rRNA_primary_transcript' OR cvterm.name = 'tRNA_primary_transcript' OR cvterm.name = 'snRNA_primary_transcript' OR cvterm.name = 'snoRNA_primary_transcript' OR cvterm.name = 'tmRNA_primary_transcript' OR cvterm.name = 'SRP_RNA_primary_transcript' OR cvterm.name = 'miRNA_primary_transcript' OR cvterm.name = 'tasiRNA_primary_transcript' OR cvterm.name = 'rRNA_small_subunit_primary_transcript' OR cvterm.name = 'rRNA_large_subunit_primary_transcript' OR cvterm.name = 'alanine_tRNA_primary_transcript' OR cvterm.name = 'arginine_tRNA_primary_transcript' OR cvterm.name = 'asparagine_tRNA_primary_transcript' OR cvterm.name = 'aspartic_acid_tRNA_primary_transcript' OR cvterm.name = 'cysteine_tRNA_primary_transcript' OR cvterm.name = 'glutamic_acid_tRNA_primary_transcript' OR cvterm.name = 'glutamine_tRNA_primary_transcript' OR cvterm.name = 'glycine_tRNA_primary_transcript' OR cvterm.name = 'histidine_tRNA_primary_transcript' OR cvterm.name = 'isoleucine_tRNA_primary_transcript' OR cvterm.name = 'leucine_tRNA_primary_transcript' OR cvterm.name = 'lysine_tRNA_primary_transcript' OR cvterm.name = 'methionine_tRNA_primary_transcript' OR cvterm.name = 'phenylalanine_tRNA_primary_transcript' OR cvterm.name = 'proline_tRNA_primary_transcript' OR cvterm.name = 'serine_tRNA_primary_transcript' OR cvterm.name = 'threonine_tRNA_primary_transcript' OR cvterm.name = 'tryptophan_tRNA_primary_transcript' OR cvterm.name = 'tyrosine_tRNA_primary_transcript' OR cvterm.name = 'valine_tRNA_primary_transcript' OR cvterm.name = 'pyrrolysine_tRNA_primary_transcript' OR cvterm.name = 'selenocysteine_tRNA_primary_transcript' OR cvterm.name = 'methylation_guide_snoRNA_primary_transcript' OR cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript' OR cvterm.name = 'C_D_box_snoRNA_primary_transcript' OR cvterm.name = 'H_ACA_box_snoRNA_primary_transcript' OR cvterm.name = 'U14_snoRNA_primary_transcript' OR cvterm.name = 'stRNA_primary_transcript' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'primary_transcript';
  4821. --- ************************************************
  4822. --- *** relation: ltr_retrotransposon ***
  4823. --- *** relation type: VIEW ***
  4824. --- *** ***
  4825. --- *** A retrotransposon flanked by long termin ***
  4826. --- *** al repeat sequences. ***
  4827. --- ************************************************
  4828. ---
  4829. CREATE VIEW ltr_retrotransposon AS
  4830. SELECT
  4831. feature_id AS ltr_retrotransposon_id,
  4832. feature.*
  4833. FROM
  4834. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4835. WHERE cvterm.name = 'LTR_retrotransposon';
  4836. --- ************************************************
  4837. --- *** relation: intron ***
  4838. --- *** relation type: VIEW ***
  4839. --- *** ***
  4840. --- *** A region of a primary transcript that is ***
  4841. --- *** transcribed, but removed from within th ***
  4842. --- *** e transcript by splicing together the se ***
  4843. --- *** quences (exons) on either side of it. ***
  4844. --- ************************************************
  4845. ---
  4846. CREATE VIEW intron AS
  4847. SELECT
  4848. feature_id AS intron_id,
  4849. feature.*
  4850. FROM
  4851. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4852. WHERE cvterm.name = 'five_prime_intron' OR cvterm.name = 'interior_intron' OR cvterm.name = 'three_prime_intron' OR cvterm.name = 'twintron' OR cvterm.name = 'UTR_intron' OR cvterm.name = 'autocatalytically_spliced_intron' OR cvterm.name = 'spliceosomal_intron' OR cvterm.name = 'mobile_intron' OR cvterm.name = 'endonuclease_spliced_intron' OR cvterm.name = 'five_prime_UTR_intron' OR cvterm.name = 'three_prime_UTR_intron' OR cvterm.name = 'group_I_intron' OR cvterm.name = 'group_II_intron' OR cvterm.name = 'group_III_intron' OR cvterm.name = 'group_IIA_intron' OR cvterm.name = 'group_IIB_intron' OR cvterm.name = 'U2_intron' OR cvterm.name = 'U12_intron' OR cvterm.name = 'archaeal_intron' OR cvterm.name = 'tRNA_intron' OR cvterm.name = 'intron';
  4853. --- ************************************************
  4854. --- *** relation: non_ltr_retrotransposon ***
  4855. --- *** relation type: VIEW ***
  4856. --- *** ***
  4857. --- *** A retrotransposon without long terminal ***
  4858. --- *** repeat sequences. ***
  4859. --- ************************************************
  4860. ---
  4861. CREATE VIEW non_ltr_retrotransposon AS
  4862. SELECT
  4863. feature_id AS non_ltr_retrotransposon_id,
  4864. feature.*
  4865. FROM
  4866. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4867. WHERE cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'non_LTR_retrotransposon';
  4868. --- ************************************************
  4869. --- *** relation: five_prime_intron ***
  4870. --- *** relation type: VIEW ***
  4871. --- *** ***
  4872. --- ************************************************
  4873. ---
  4874. CREATE VIEW five_prime_intron AS
  4875. SELECT
  4876. feature_id AS five_prime_intron_id,
  4877. feature.*
  4878. FROM
  4879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4880. WHERE cvterm.name = 'five_prime_intron';
  4881. --- ************************************************
  4882. --- *** relation: interior_intron ***
  4883. --- *** relation type: VIEW ***
  4884. --- *** ***
  4885. --- ************************************************
  4886. ---
  4887. CREATE VIEW interior_intron AS
  4888. SELECT
  4889. feature_id AS interior_intron_id,
  4890. feature.*
  4891. FROM
  4892. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4893. WHERE cvterm.name = 'interior_intron';
  4894. --- ************************************************
  4895. --- *** relation: three_prime_intron ***
  4896. --- *** relation type: VIEW ***
  4897. --- *** ***
  4898. --- ************************************************
  4899. ---
  4900. CREATE VIEW three_prime_intron AS
  4901. SELECT
  4902. feature_id AS three_prime_intron_id,
  4903. feature.*
  4904. FROM
  4905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4906. WHERE cvterm.name = 'three_prime_intron';
  4907. --- ************************************************
  4908. --- *** relation: rflp_fragment ***
  4909. --- *** relation type: VIEW ***
  4910. --- *** ***
  4911. --- *** A DNA fragment used as a reagent to dete ***
  4912. --- *** ct the polymorphic genomic loci by hybri ***
  4913. --- *** dizing against the genomic DNA digested ***
  4914. --- *** with a given restriction enzyme. ***
  4915. --- ************************************************
  4916. ---
  4917. CREATE VIEW rflp_fragment AS
  4918. SELECT
  4919. feature_id AS rflp_fragment_id,
  4920. feature.*
  4921. FROM
  4922. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4923. WHERE cvterm.name = 'RFLP_fragment';
  4924. --- ************************************************
  4925. --- *** relation: line_element ***
  4926. --- *** relation type: VIEW ***
  4927. --- *** ***
  4928. --- *** A dispersed repeat family with many copi ***
  4929. --- *** es, each from 1 to 6 kb long. New elemen ***
  4930. --- *** ts are generated by retroposition of a t ***
  4931. --- *** ranscribed copy. Typically the LINE cont ***
  4932. --- *** ains 2 ORF's one of which is reverse tra ***
  4933. --- *** nscriptase, and 3'and 5' direct repeats. ***
  4934. --- ************************************************
  4935. ---
  4936. CREATE VIEW line_element AS
  4937. SELECT
  4938. feature_id AS line_element_id,
  4939. feature.*
  4940. FROM
  4941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4942. WHERE cvterm.name = 'LINE_element';
  4943. --- ************************************************
  4944. --- *** relation: coding_exon ***
  4945. --- *** relation type: VIEW ***
  4946. --- *** ***
  4947. --- *** An exon whereby at least one base is par ***
  4948. --- *** t of a codon (here, 'codon' is inclusive ***
  4949. --- *** of the stop_codon). ***
  4950. --- ************************************************
  4951. ---
  4952. CREATE VIEW coding_exon AS
  4953. SELECT
  4954. feature_id AS coding_exon_id,
  4955. feature.*
  4956. FROM
  4957. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4958. WHERE cvterm.name = 'interior_coding_exon' OR cvterm.name = 'five_prime_coding_exon' OR cvterm.name = 'three_prime_coding_exon' OR cvterm.name = 'coding_exon';
  4959. --- ************************************************
  4960. --- *** relation: five_prime_coding_exon_coding_region ***
  4961. --- *** relation type: VIEW ***
  4962. --- *** ***
  4963. --- *** The sequence of the five_prime_coding_ex ***
  4964. --- *** on that codes for protein. ***
  4965. --- ************************************************
  4966. ---
  4967. CREATE VIEW five_prime_coding_exon_coding_region AS
  4968. SELECT
  4969. feature_id AS five_prime_coding_exon_coding_region_id,
  4970. feature.*
  4971. FROM
  4972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4973. WHERE cvterm.name = 'five_prime_coding_exon_coding_region';
  4974. --- ************************************************
  4975. --- *** relation: three_prime_coding_exon_coding_region ***
  4976. --- *** relation type: VIEW ***
  4977. --- *** ***
  4978. --- *** The sequence of the three_prime_coding_e ***
  4979. --- *** xon that codes for protein. ***
  4980. --- ************************************************
  4981. ---
  4982. CREATE VIEW three_prime_coding_exon_coding_region AS
  4983. SELECT
  4984. feature_id AS three_prime_coding_exon_coding_region_id,
  4985. feature.*
  4986. FROM
  4987. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4988. WHERE cvterm.name = 'three_prime_coding_exon_coding_region';
  4989. --- ************************************************
  4990. --- *** relation: noncoding_exon ***
  4991. --- *** relation type: VIEW ***
  4992. --- *** ***
  4993. --- *** An exon that does not contain any codons ***
  4994. --- *** . ***
  4995. --- ************************************************
  4996. ---
  4997. CREATE VIEW noncoding_exon AS
  4998. SELECT
  4999. feature_id AS noncoding_exon_id,
  5000. feature.*
  5001. FROM
  5002. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5003. WHERE cvterm.name = 'three_prime_noncoding_exon' OR cvterm.name = 'five_prime_noncoding_exon' OR cvterm.name = 'noncoding_exon';
  5004. --- ************************************************
  5005. --- *** relation: translocation ***
  5006. --- *** relation type: VIEW ***
  5007. --- *** ***
  5008. --- *** A region of nucleotide sequence that has ***
  5009. --- *** translocated to a new position. ***
  5010. --- ************************************************
  5011. ---
  5012. CREATE VIEW translocation AS
  5013. SELECT
  5014. feature_id AS translocation_id,
  5015. feature.*
  5016. FROM
  5017. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5018. WHERE cvterm.name = 'translocation';
  5019. --- ************************************************
  5020. --- *** relation: five_prime_coding_exon ***
  5021. --- *** relation type: VIEW ***
  5022. --- *** ***
  5023. --- *** The 5' most coding exon. ***
  5024. --- ************************************************
  5025. ---
  5026. CREATE VIEW five_prime_coding_exon AS
  5027. SELECT
  5028. feature_id AS five_prime_coding_exon_id,
  5029. feature.*
  5030. FROM
  5031. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5032. WHERE cvterm.name = 'five_prime_coding_exon';
  5033. --- ************************************************
  5034. --- *** relation: interior_exon ***
  5035. --- *** relation type: VIEW ***
  5036. --- *** ***
  5037. --- *** An exon that is bounded by 5' and 3' spl ***
  5038. --- *** ice sites. ***
  5039. --- ************************************************
  5040. ---
  5041. CREATE VIEW interior_exon AS
  5042. SELECT
  5043. feature_id AS interior_exon_id,
  5044. feature.*
  5045. FROM
  5046. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5047. WHERE cvterm.name = 'interior_exon';
  5048. --- ************************************************
  5049. --- *** relation: three_prime_coding_exon ***
  5050. --- *** relation type: VIEW ***
  5051. --- *** ***
  5052. --- *** The coding exon that is most 3-prime on ***
  5053. --- *** a given transcript. ***
  5054. --- ************************************************
  5055. ---
  5056. CREATE VIEW three_prime_coding_exon AS
  5057. SELECT
  5058. feature_id AS three_prime_coding_exon_id,
  5059. feature.*
  5060. FROM
  5061. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5062. WHERE cvterm.name = 'three_prime_coding_exon';
  5063. --- ************************************************
  5064. --- *** relation: utr ***
  5065. --- *** relation type: VIEW ***
  5066. --- *** ***
  5067. --- *** Messenger RNA sequences that are untrans ***
  5068. --- *** lated and lie five prime or three prime ***
  5069. --- *** to sequences which are translated. ***
  5070. --- ************************************************
  5071. ---
  5072. CREATE VIEW utr AS
  5073. SELECT
  5074. feature_id AS utr_id,
  5075. feature.*
  5076. FROM
  5077. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5078. WHERE cvterm.name = 'five_prime_UTR' OR cvterm.name = 'three_prime_UTR' OR cvterm.name = 'internal_UTR' OR cvterm.name = 'untranslated_region_polycistronic_mRNA' OR cvterm.name = 'UTR';
  5079. --- ************************************************
  5080. --- *** relation: five_prime_utr ***
  5081. --- *** relation type: VIEW ***
  5082. --- *** ***
  5083. --- *** A region at the 5' end of a mature trans ***
  5084. --- *** cript (preceding the initiation codon) t ***
  5085. --- *** hat is not translated into a protein. ***
  5086. --- ************************************************
  5087. ---
  5088. CREATE VIEW five_prime_utr AS
  5089. SELECT
  5090. feature_id AS five_prime_utr_id,
  5091. feature.*
  5092. FROM
  5093. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5094. WHERE cvterm.name = 'five_prime_UTR';
  5095. --- ************************************************
  5096. --- *** relation: three_prime_utr ***
  5097. --- *** relation type: VIEW ***
  5098. --- *** ***
  5099. --- *** A region at the 3' end of a mature trans ***
  5100. --- *** cript (following the stop codon) that is ***
  5101. --- *** not translated into a protein. ***
  5102. --- ************************************************
  5103. ---
  5104. CREATE VIEW three_prime_utr AS
  5105. SELECT
  5106. feature_id AS three_prime_utr_id,
  5107. feature.*
  5108. FROM
  5109. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5110. WHERE cvterm.name = 'three_prime_UTR';
  5111. --- ************************************************
  5112. --- *** relation: sine_element ***
  5113. --- *** relation type: VIEW ***
  5114. --- *** ***
  5115. --- *** A repetitive element, a few hundred base ***
  5116. --- *** pairs long, that is dispersed throughou ***
  5117. --- *** t the genome. A common human SINE is the ***
  5118. --- *** Alu element. ***
  5119. --- ************************************************
  5120. ---
  5121. CREATE VIEW sine_element AS
  5122. SELECT
  5123. feature_id AS sine_element_id,
  5124. feature.*
  5125. FROM
  5126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5127. WHERE cvterm.name = 'SINE_element';
  5128. --- ************************************************
  5129. --- *** relation: simple_sequence_length_variation ***
  5130. --- *** relation type: VIEW ***
  5131. --- *** ***
  5132. --- ************************************************
  5133. ---
  5134. CREATE VIEW simple_sequence_length_variation AS
  5135. SELECT
  5136. feature_id AS simple_sequence_length_variation_id,
  5137. feature.*
  5138. FROM
  5139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5140. WHERE cvterm.name = 'simple_sequence_length_variation';
  5141. --- ************************************************
  5142. --- *** relation: terminal_inverted_repeat_element ***
  5143. --- *** relation type: VIEW ***
  5144. --- *** ***
  5145. --- *** A DNA transposable element defined as ha ***
  5146. --- *** ving termini with perfect, or nearly per ***
  5147. --- *** fect short inverted repeats, generally 1 ***
  5148. --- *** 0 - 40 nucleotides long. ***
  5149. --- ************************************************
  5150. ---
  5151. CREATE VIEW terminal_inverted_repeat_element AS
  5152. SELECT
  5153. feature_id AS terminal_inverted_repeat_element_id,
  5154. feature.*
  5155. FROM
  5156. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5157. WHERE cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'terminal_inverted_repeat_element';
  5158. --- ************************************************
  5159. --- *** relation: rrna_primary_transcript ***
  5160. --- *** relation type: VIEW ***
  5161. --- *** ***
  5162. --- *** A primary transcript encoding a ribosoma ***
  5163. --- *** l RNA. ***
  5164. --- ************************************************
  5165. ---
  5166. CREATE VIEW rrna_primary_transcript AS
  5167. SELECT
  5168. feature_id AS rrna_primary_transcript_id,
  5169. feature.*
  5170. FROM
  5171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5172. WHERE cvterm.name = 'rRNA_small_subunit_primary_transcript' OR cvterm.name = 'rRNA_large_subunit_primary_transcript' OR cvterm.name = 'rRNA_primary_transcript';
  5173. --- ************************************************
  5174. --- *** relation: trna_primary_transcript ***
  5175. --- *** relation type: VIEW ***
  5176. --- *** ***
  5177. --- *** A primary transcript encoding a transfer ***
  5178. --- *** RNA (SO:0000253). ***
  5179. --- ************************************************
  5180. ---
  5181. CREATE VIEW trna_primary_transcript AS
  5182. SELECT
  5183. feature_id AS trna_primary_transcript_id,
  5184. feature.*
  5185. FROM
  5186. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5187. WHERE cvterm.name = 'alanine_tRNA_primary_transcript' OR cvterm.name = 'arginine_tRNA_primary_transcript' OR cvterm.name = 'asparagine_tRNA_primary_transcript' OR cvterm.name = 'aspartic_acid_tRNA_primary_transcript' OR cvterm.name = 'cysteine_tRNA_primary_transcript' OR cvterm.name = 'glutamic_acid_tRNA_primary_transcript' OR cvterm.name = 'glutamine_tRNA_primary_transcript' OR cvterm.name = 'glycine_tRNA_primary_transcript' OR cvterm.name = 'histidine_tRNA_primary_transcript' OR cvterm.name = 'isoleucine_tRNA_primary_transcript' OR cvterm.name = 'leucine_tRNA_primary_transcript' OR cvterm.name = 'lysine_tRNA_primary_transcript' OR cvterm.name = 'methionine_tRNA_primary_transcript' OR cvterm.name = 'phenylalanine_tRNA_primary_transcript' OR cvterm.name = 'proline_tRNA_primary_transcript' OR cvterm.name = 'serine_tRNA_primary_transcript' OR cvterm.name = 'threonine_tRNA_primary_transcript' OR cvterm.name = 'tryptophan_tRNA_primary_transcript' OR cvterm.name = 'tyrosine_tRNA_primary_transcript' OR cvterm.name = 'valine_tRNA_primary_transcript' OR cvterm.name = 'pyrrolysine_tRNA_primary_transcript' OR cvterm.name = 'selenocysteine_tRNA_primary_transcript' OR cvterm.name = 'tRNA_primary_transcript';
  5188. --- ************************************************
  5189. --- *** relation: alanine_trna_primary_transcript ***
  5190. --- *** relation type: VIEW ***
  5191. --- *** ***
  5192. --- *** A primary transcript encoding alanyl tRN ***
  5193. --- *** A. ***
  5194. --- ************************************************
  5195. ---
  5196. CREATE VIEW alanine_trna_primary_transcript AS
  5197. SELECT
  5198. feature_id AS alanine_trna_primary_transcript_id,
  5199. feature.*
  5200. FROM
  5201. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5202. WHERE cvterm.name = 'alanine_tRNA_primary_transcript';
  5203. --- ************************************************
  5204. --- *** relation: arg_trna_primary_transcript ***
  5205. --- *** relation type: VIEW ***
  5206. --- *** ***
  5207. --- *** A primary transcript encoding arginyl tR ***
  5208. --- *** NA (SO:0000255). ***
  5209. --- ************************************************
  5210. ---
  5211. CREATE VIEW arg_trna_primary_transcript AS
  5212. SELECT
  5213. feature_id AS arg_trna_primary_transcript_id,
  5214. feature.*
  5215. FROM
  5216. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5217. WHERE cvterm.name = 'arginine_tRNA_primary_transcript';
  5218. --- ************************************************
  5219. --- *** relation: asparagine_trna_primary_transcript ***
  5220. --- *** relation type: VIEW ***
  5221. --- *** ***
  5222. --- *** A primary transcript encoding asparaginy ***
  5223. --- *** l tRNA (SO:0000256). ***
  5224. --- ************************************************
  5225. ---
  5226. CREATE VIEW asparagine_trna_primary_transcript AS
  5227. SELECT
  5228. feature_id AS asparagine_trna_primary_transcript_id,
  5229. feature.*
  5230. FROM
  5231. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5232. WHERE cvterm.name = 'asparagine_tRNA_primary_transcript';
  5233. --- ************************************************
  5234. --- *** relation: aspartic_acid_trna_primary_transcript ***
  5235. --- *** relation type: VIEW ***
  5236. --- *** ***
  5237. --- *** A primary transcript encoding aspartyl t ***
  5238. --- *** RNA (SO:0000257). ***
  5239. --- ************************************************
  5240. ---
  5241. CREATE VIEW aspartic_acid_trna_primary_transcript AS
  5242. SELECT
  5243. feature_id AS aspartic_acid_trna_primary_transcript_id,
  5244. feature.*
  5245. FROM
  5246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5247. WHERE cvterm.name = 'aspartic_acid_tRNA_primary_transcript';
  5248. --- ************************************************
  5249. --- *** relation: cysteine_trna_primary_transcript ***
  5250. --- *** relation type: VIEW ***
  5251. --- *** ***
  5252. --- *** A primary transcript encoding cysteinyl ***
  5253. --- *** tRNA (SO:0000258). ***
  5254. --- ************************************************
  5255. ---
  5256. CREATE VIEW cysteine_trna_primary_transcript AS
  5257. SELECT
  5258. feature_id AS cysteine_trna_primary_transcript_id,
  5259. feature.*
  5260. FROM
  5261. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5262. WHERE cvterm.name = 'cysteine_tRNA_primary_transcript';
  5263. --- ************************************************
  5264. --- *** relation: glutamic_acid_trna_primary_transcript ***
  5265. --- *** relation type: VIEW ***
  5266. --- *** ***
  5267. --- *** A primary transcript encoding glutaminyl ***
  5268. --- *** tRNA (SO:0000260). ***
  5269. --- ************************************************
  5270. ---
  5271. CREATE VIEW glutamic_acid_trna_primary_transcript AS
  5272. SELECT
  5273. feature_id AS glutamic_acid_trna_primary_transcript_id,
  5274. feature.*
  5275. FROM
  5276. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5277. WHERE cvterm.name = 'glutamic_acid_tRNA_primary_transcript';
  5278. --- ************************************************
  5279. --- *** relation: glutamine_trna_primary_transcript ***
  5280. --- *** relation type: VIEW ***
  5281. --- *** ***
  5282. --- *** A primary transcript encoding glutamyl t ***
  5283. --- *** RNA (SO:0000260). ***
  5284. --- ************************************************
  5285. ---
  5286. CREATE VIEW glutamine_trna_primary_transcript AS
  5287. SELECT
  5288. feature_id AS glutamine_trna_primary_transcript_id,
  5289. feature.*
  5290. FROM
  5291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5292. WHERE cvterm.name = 'glutamine_tRNA_primary_transcript';
  5293. --- ************************************************
  5294. --- *** relation: glycine_trna_primary_transcript ***
  5295. --- *** relation type: VIEW ***
  5296. --- *** ***
  5297. --- *** A primary transcript encoding glycyl tRN ***
  5298. --- *** A (SO:0000263). ***
  5299. --- ************************************************
  5300. ---
  5301. CREATE VIEW glycine_trna_primary_transcript AS
  5302. SELECT
  5303. feature_id AS glycine_trna_primary_transcript_id,
  5304. feature.*
  5305. FROM
  5306. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5307. WHERE cvterm.name = 'glycine_tRNA_primary_transcript';
  5308. --- ************************************************
  5309. --- *** relation: histidine_trna_primary_transcript ***
  5310. --- *** relation type: VIEW ***
  5311. --- *** ***
  5312. --- *** A primary transcript encoding histidyl t ***
  5313. --- *** RNA (SO:0000262). ***
  5314. --- ************************************************
  5315. ---
  5316. CREATE VIEW histidine_trna_primary_transcript AS
  5317. SELECT
  5318. feature_id AS histidine_trna_primary_transcript_id,
  5319. feature.*
  5320. FROM
  5321. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5322. WHERE cvterm.name = 'histidine_tRNA_primary_transcript';
  5323. --- ************************************************
  5324. --- *** relation: isoleucine_trna_primary_transcript ***
  5325. --- *** relation type: VIEW ***
  5326. --- *** ***
  5327. --- *** A primary transcript encoding isoleucyl ***
  5328. --- *** tRNA (SO:0000263). ***
  5329. --- ************************************************
  5330. ---
  5331. CREATE VIEW isoleucine_trna_primary_transcript AS
  5332. SELECT
  5333. feature_id AS isoleucine_trna_primary_transcript_id,
  5334. feature.*
  5335. FROM
  5336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5337. WHERE cvterm.name = 'isoleucine_tRNA_primary_transcript';
  5338. --- ************************************************
  5339. --- *** relation: leucine_trna_primary_transcript ***
  5340. --- *** relation type: VIEW ***
  5341. --- *** ***
  5342. --- *** A primary transcript encoding leucyl tRN ***
  5343. --- *** A (SO:0000264). ***
  5344. --- ************************************************
  5345. ---
  5346. CREATE VIEW leucine_trna_primary_transcript AS
  5347. SELECT
  5348. feature_id AS leucine_trna_primary_transcript_id,
  5349. feature.*
  5350. FROM
  5351. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5352. WHERE cvterm.name = 'leucine_tRNA_primary_transcript';
  5353. --- ************************************************
  5354. --- *** relation: lysine_trna_primary_transcript ***
  5355. --- *** relation type: VIEW ***
  5356. --- *** ***
  5357. --- *** A primary transcript encoding lysyl tRNA ***
  5358. --- *** (SO:0000265). ***
  5359. --- ************************************************
  5360. ---
  5361. CREATE VIEW lysine_trna_primary_transcript AS
  5362. SELECT
  5363. feature_id AS lysine_trna_primary_transcript_id,
  5364. feature.*
  5365. FROM
  5366. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5367. WHERE cvterm.name = 'lysine_tRNA_primary_transcript';
  5368. --- ************************************************
  5369. --- *** relation: methionine_trna_primary_transcript ***
  5370. --- *** relation type: VIEW ***
  5371. --- *** ***
  5372. --- *** A primary transcript encoding methionyl ***
  5373. --- *** tRNA (SO:0000266). ***
  5374. --- ************************************************
  5375. ---
  5376. CREATE VIEW methionine_trna_primary_transcript AS
  5377. SELECT
  5378. feature_id AS methionine_trna_primary_transcript_id,
  5379. feature.*
  5380. FROM
  5381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5382. WHERE cvterm.name = 'methionine_tRNA_primary_transcript';
  5383. --- ************************************************
  5384. --- *** relation: phe_trna_primary_transcript ***
  5385. --- *** relation type: VIEW ***
  5386. --- *** ***
  5387. --- *** A primary transcript encoding phenylalan ***
  5388. --- *** yl tRNA (SO:0000267). ***
  5389. --- ************************************************
  5390. ---
  5391. CREATE VIEW phe_trna_primary_transcript AS
  5392. SELECT
  5393. feature_id AS phe_trna_primary_transcript_id,
  5394. feature.*
  5395. FROM
  5396. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5397. WHERE cvterm.name = 'phenylalanine_tRNA_primary_transcript';
  5398. --- ************************************************
  5399. --- *** relation: proline_trna_primary_transcript ***
  5400. --- *** relation type: VIEW ***
  5401. --- *** ***
  5402. --- *** A primary transcript encoding prolyl tRN ***
  5403. --- *** A (SO:0000268). ***
  5404. --- ************************************************
  5405. ---
  5406. CREATE VIEW proline_trna_primary_transcript AS
  5407. SELECT
  5408. feature_id AS proline_trna_primary_transcript_id,
  5409. feature.*
  5410. FROM
  5411. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5412. WHERE cvterm.name = 'proline_tRNA_primary_transcript';
  5413. --- ************************************************
  5414. --- *** relation: serine_trna_primary_transcript ***
  5415. --- *** relation type: VIEW ***
  5416. --- *** ***
  5417. --- *** A primary transcript encoding seryl tRNA ***
  5418. --- *** (SO:000269). ***
  5419. --- ************************************************
  5420. ---
  5421. CREATE VIEW serine_trna_primary_transcript AS
  5422. SELECT
  5423. feature_id AS serine_trna_primary_transcript_id,
  5424. feature.*
  5425. FROM
  5426. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5427. WHERE cvterm.name = 'serine_tRNA_primary_transcript';
  5428. --- ************************************************
  5429. --- *** relation: thr_trna_primary_transcript ***
  5430. --- *** relation type: VIEW ***
  5431. --- *** ***
  5432. --- *** A primary transcript encoding threonyl t ***
  5433. --- *** RNA (SO:000270). ***
  5434. --- ************************************************
  5435. ---
  5436. CREATE VIEW thr_trna_primary_transcript AS
  5437. SELECT
  5438. feature_id AS thr_trna_primary_transcript_id,
  5439. feature.*
  5440. FROM
  5441. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5442. WHERE cvterm.name = 'threonine_tRNA_primary_transcript';
  5443. --- ************************************************
  5444. --- *** relation: try_trna_primary_transcript ***
  5445. --- *** relation type: VIEW ***
  5446. --- *** ***
  5447. --- *** A primary transcript encoding tryptophan ***
  5448. --- *** yl tRNA (SO:000271). ***
  5449. --- ************************************************
  5450. ---
  5451. CREATE VIEW try_trna_primary_transcript AS
  5452. SELECT
  5453. feature_id AS try_trna_primary_transcript_id,
  5454. feature.*
  5455. FROM
  5456. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5457. WHERE cvterm.name = 'tryptophan_tRNA_primary_transcript';
  5458. --- ************************************************
  5459. --- *** relation: tyrosine_trna_primary_transcript ***
  5460. --- *** relation type: VIEW ***
  5461. --- *** ***
  5462. --- *** A primary transcript encoding tyrosyl tR ***
  5463. --- *** NA (SO:000272). ***
  5464. --- ************************************************
  5465. ---
  5466. CREATE VIEW tyrosine_trna_primary_transcript AS
  5467. SELECT
  5468. feature_id AS tyrosine_trna_primary_transcript_id,
  5469. feature.*
  5470. FROM
  5471. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5472. WHERE cvterm.name = 'tyrosine_tRNA_primary_transcript';
  5473. --- ************************************************
  5474. --- *** relation: valine_trna_primary_transcript ***
  5475. --- *** relation type: VIEW ***
  5476. --- *** ***
  5477. --- *** A primary transcript encoding valyl tRNA ***
  5478. --- *** (SO:000273). ***
  5479. --- ************************************************
  5480. ---
  5481. CREATE VIEW valine_trna_primary_transcript AS
  5482. SELECT
  5483. feature_id AS valine_trna_primary_transcript_id,
  5484. feature.*
  5485. FROM
  5486. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5487. WHERE cvterm.name = 'valine_tRNA_primary_transcript';
  5488. --- ************************************************
  5489. --- *** relation: snrna_primary_transcript ***
  5490. --- *** relation type: VIEW ***
  5491. --- *** ***
  5492. --- *** A primary transcript encoding a small nu ***
  5493. --- *** clear RNA (SO:0000274). ***
  5494. --- ************************************************
  5495. ---
  5496. CREATE VIEW snrna_primary_transcript AS
  5497. SELECT
  5498. feature_id AS snrna_primary_transcript_id,
  5499. feature.*
  5500. FROM
  5501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5502. WHERE cvterm.name = 'snRNA_primary_transcript';
  5503. --- ************************************************
  5504. --- *** relation: snorna_primary_transcript ***
  5505. --- *** relation type: VIEW ***
  5506. --- *** ***
  5507. --- *** A primary transcript encoding a small nu ***
  5508. --- *** cleolar mRNA (SO:0000275). ***
  5509. --- ************************************************
  5510. ---
  5511. CREATE VIEW snorna_primary_transcript AS
  5512. SELECT
  5513. feature_id AS snorna_primary_transcript_id,
  5514. feature.*
  5515. FROM
  5516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5517. WHERE cvterm.name = 'methylation_guide_snoRNA_primary_transcript' OR cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript' OR cvterm.name = 'C_D_box_snoRNA_primary_transcript' OR cvterm.name = 'H_ACA_box_snoRNA_primary_transcript' OR cvterm.name = 'U14_snoRNA_primary_transcript' OR cvterm.name = 'snoRNA_primary_transcript';
  5518. --- ************************************************
  5519. --- *** relation: mature_transcript ***
  5520. --- *** relation type: VIEW ***
  5521. --- *** ***
  5522. --- *** A transcript which has undergone the nec ***
  5523. --- *** essary modifications, if any, for its fu ***
  5524. --- *** nction. In eukaryotes this includes, for ***
  5525. --- *** example, processing of introns, cleavag ***
  5526. --- *** e, base modification, and modifications ***
  5527. --- *** to the 5' and/or the 3' ends, other than ***
  5528. --- *** addition of bases. In bacteria function ***
  5529. --- *** al mRNAs are usually not modified. ***
  5530. --- ************************************************
  5531. ---
  5532. CREATE VIEW mature_transcript AS
  5533. SELECT
  5534. feature_id AS mature_transcript_id,
  5535. feature.*
  5536. FROM
  5537. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5538. WHERE cvterm.name = 'mRNA' OR cvterm.name = 'ncRNA' OR cvterm.name = 'mRNA_with_frameshift' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'exemplar_mRNA' OR cvterm.name = 'capped_mRNA' OR cvterm.name = 'polyadenylated_mRNA' OR cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'consensus_mRNA' OR cvterm.name = 'recoded_mRNA' OR cvterm.name = 'mRNA_with_minus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_2_frameshift' OR cvterm.name = 'mRNA_with_minus_2_frameshift' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'mRNA_recoded_by_translational_bypass' OR cvterm.name = 'mRNA_recoded_by_codon_redefinition' OR cvterm.name = 'scRNA' OR cvterm.name = 'rRNA' OR cvterm.name = 'tRNA' OR cvterm.name = 'snRNA' OR cvterm.name = 'snoRNA' OR cvterm.name = 'small_regulatory_ncRNA' OR cvterm.name = 'RNase_MRP_RNA' OR cvterm.name = 'RNase_P_RNA' OR cvterm.name = 'telomerase_RNA' OR cvterm.name = 'vault_RNA' OR cvterm.name = 'Y_RNA' OR cvterm.name = 'rasiRNA' OR cvterm.name = 'SRP_RNA' OR cvterm.name = 'guide_RNA' OR cvterm.name = 'antisense_RNA' OR cvterm.name = 'siRNA' OR cvterm.name = 'stRNA' OR cvterm.name = 'class_II_RNA' OR cvterm.name = 'class_I_RNA' OR cvterm.name = 'piRNA' OR cvterm.name = 'lincRNA' OR cvterm.name = 'tasiRNA' OR cvterm.name = 'rRNA_cleavage_RNA' OR cvterm.name = 'small_subunit_rRNA' OR cvterm.name = 'large_subunit_rRNA' OR cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'rRNA_5_8S' OR cvterm.name = 'rRNA_5S' OR cvterm.name = 'rRNA_28S' OR cvterm.name = 'rRNA_23S' OR cvterm.name = 'rRNA_25S' OR cvterm.name = 'rRNA_21S' OR cvterm.name = 'alanyl_tRNA' OR cvterm.name = 'asparaginyl_tRNA' OR cvterm.name = 'aspartyl_tRNA' OR cvterm.name = 'cysteinyl_tRNA' OR cvterm.name = 'glutaminyl_tRNA' OR cvterm.name = 'glutamyl_tRNA' OR cvterm.name = 'glycyl_tRNA' OR cvterm.name = 'histidyl_tRNA' OR cvterm.name = 'isoleucyl_tRNA' OR cvterm.name = 'leucyl_tRNA' OR cvterm.name = 'lysyl_tRNA' OR cvterm.name = 'methionyl_tRNA' OR cvterm.name = 'phenylalanyl_tRNA' OR cvterm.name = 'prolyl_tRNA' OR cvterm.name = 'seryl_tRNA' OR cvterm.name = 'threonyl_tRNA' OR cvterm.name = 'tryptophanyl_tRNA' OR cvterm.name = 'tyrosyl_tRNA' OR cvterm.name = 'valyl_tRNA' OR cvterm.name = 'pyrrolysyl_tRNA' OR cvterm.name = 'arginyl_tRNA' OR cvterm.name = 'selenocysteinyl_tRNA' OR cvterm.name = 'U1_snRNA' OR cvterm.name = 'U2_snRNA' OR cvterm.name = 'U4_snRNA' OR cvterm.name = 'U4atac_snRNA' OR cvterm.name = 'U5_snRNA' OR cvterm.name = 'U6_snRNA' OR cvterm.name = 'U6atac_snRNA' OR cvterm.name = 'U11_snRNA' OR cvterm.name = 'U12_snRNA' OR cvterm.name = 'C_D_box_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA' OR cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'miRNA' OR cvterm.name = 'RNA_6S' OR cvterm.name = 'CsrB_RsmB_RNA' OR cvterm.name = 'DsrA_RNA' OR cvterm.name = 'OxyS_RNA' OR cvterm.name = 'RprA_RNA' OR cvterm.name = 'RRE_RNA' OR cvterm.name = 'spot_42_RNA' OR cvterm.name = 'tmRNA' OR cvterm.name = 'GcvB_RNA' OR cvterm.name = 'MicF_RNA' OR cvterm.name = 'mature_transcript';
  5539. --- ************************************************
  5540. --- *** relation: mrna ***
  5541. --- *** relation type: VIEW ***
  5542. --- *** ***
  5543. --- *** Messenger RNA is the intermediate molecu ***
  5544. --- *** le between DNA and protein. It includes ***
  5545. --- *** UTR and coding sequences. It does not co ***
  5546. --- *** ntain introns. ***
  5547. --- ************************************************
  5548. ---
  5549. CREATE VIEW mrna AS
  5550. SELECT
  5551. feature_id AS mrna_id,
  5552. feature.*
  5553. FROM
  5554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5555. WHERE cvterm.name = 'mRNA_with_frameshift' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'exemplar_mRNA' OR cvterm.name = 'capped_mRNA' OR cvterm.name = 'polyadenylated_mRNA' OR cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'consensus_mRNA' OR cvterm.name = 'recoded_mRNA' OR cvterm.name = 'mRNA_with_minus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_2_frameshift' OR cvterm.name = 'mRNA_with_minus_2_frameshift' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'mRNA_recoded_by_translational_bypass' OR cvterm.name = 'mRNA_recoded_by_codon_redefinition' OR cvterm.name = 'mRNA';
  5556. --- ************************************************
  5557. --- *** relation: tf_binding_site ***
  5558. --- *** relation type: VIEW ***
  5559. --- *** ***
  5560. --- *** A region of a nucleotide molecule that b ***
  5561. --- *** inds a Transcription Factor or Transcrip ***
  5562. --- *** tion Factor complex [GO:0005667]. ***
  5563. --- ************************************************
  5564. ---
  5565. CREATE VIEW tf_binding_site AS
  5566. SELECT
  5567. feature_id AS tf_binding_site_id,
  5568. feature.*
  5569. FROM
  5570. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5571. WHERE cvterm.name = 'TF_binding_site';
  5572. --- ************************************************
  5573. --- *** relation: orf ***
  5574. --- *** relation type: VIEW ***
  5575. --- *** ***
  5576. --- *** The in-frame interval between the stop c ***
  5577. --- *** odons of a reading frame which when read ***
  5578. --- *** as sequential triplets, has the potenti ***
  5579. --- *** al of encoding a sequential string of am ***
  5580. --- *** ino acids. TER(NNN)nTER. ***
  5581. --- ************************************************
  5582. ---
  5583. CREATE VIEW orf AS
  5584. SELECT
  5585. feature_id AS orf_id,
  5586. feature.*
  5587. FROM
  5588. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5589. WHERE cvterm.name = 'mini_gene' OR cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'ORF';
  5590. --- ************************************************
  5591. --- *** relation: transcript_attribute ***
  5592. --- *** relation type: VIEW ***
  5593. --- *** ***
  5594. --- ************************************************
  5595. ---
  5596. CREATE VIEW transcript_attribute AS
  5597. SELECT
  5598. feature_id AS transcript_attribute_id,
  5599. feature.*
  5600. FROM
  5601. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5602. WHERE cvterm.name = 'edited' OR cvterm.name = 'capped' OR cvterm.name = 'mRNA_attribute' OR cvterm.name = 'trans_spliced' OR cvterm.name = 'alternatively_spliced' OR cvterm.name = 'monocistronic' OR cvterm.name = 'polycistronic' OR cvterm.name = 'polyadenylated' OR cvterm.name = 'exemplar' OR cvterm.name = 'frameshift' OR cvterm.name = 'recoded' OR cvterm.name = 'minus_1_frameshift' OR cvterm.name = 'minus_2_frameshift' OR cvterm.name = 'plus_1_frameshift' OR cvterm.name = 'plus_2_framshift' OR cvterm.name = 'codon_redefined' OR cvterm.name = 'recoded_by_translational_bypass' OR cvterm.name = 'translationally_frameshifted' OR cvterm.name = 'minus_1_translationally_frameshifted' OR cvterm.name = 'plus_1_translationally_frameshifted' OR cvterm.name = 'dicistronic' OR cvterm.name = 'transcript_attribute';
  5603. --- ************************************************
  5604. --- *** relation: foldback_element ***
  5605. --- *** relation type: VIEW ***
  5606. --- *** ***
  5607. --- *** A transposable element with extensive se ***
  5608. --- *** condary structure, characterized by larg ***
  5609. --- *** e modular imperfect long inverted repeat ***
  5610. --- *** s. ***
  5611. --- ************************************************
  5612. ---
  5613. CREATE VIEW foldback_element AS
  5614. SELECT
  5615. feature_id AS foldback_element_id,
  5616. feature.*
  5617. FROM
  5618. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5619. WHERE cvterm.name = 'foldback_element';
  5620. --- ************************************************
  5621. --- *** relation: flanking_region ***
  5622. --- *** relation type: VIEW ***
  5623. --- *** ***
  5624. --- *** The sequences extending on either side o ***
  5625. --- *** f a specific region. ***
  5626. --- ************************************************
  5627. ---
  5628. CREATE VIEW flanking_region AS
  5629. SELECT
  5630. feature_id AS flanking_region_id,
  5631. feature.*
  5632. FROM
  5633. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5634. WHERE cvterm.name = 'transposable_element_flanking_region' OR cvterm.name = 'five_prime_flanking_region' OR cvterm.name = 'three_prime_flanking_region' OR cvterm.name = 'flanking_region';
  5635. --- ************************************************
  5636. --- *** relation: chromosome_variation ***
  5637. --- *** relation type: VIEW ***
  5638. --- *** ***
  5639. --- ************************************************
  5640. ---
  5641. CREATE VIEW chromosome_variation AS
  5642. SELECT
  5643. feature_id AS chromosome_variation_id,
  5644. feature.*
  5645. FROM
  5646. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5647. WHERE cvterm.name = 'assortment_derived_variation' OR cvterm.name = 'chromosome_number_variation' OR cvterm.name = 'chromosome_structure_variation' OR cvterm.name = 'assortment_derived_duplication' OR cvterm.name = 'assortment_derived_deficiency_plus_duplication' OR cvterm.name = 'assortment_derived_deficiency' OR cvterm.name = 'assortment_derived_aneuploid' OR cvterm.name = 'aneuploid' OR cvterm.name = 'polyploid' OR cvterm.name = 'hyperploid' OR cvterm.name = 'hypoploid' OR cvterm.name = 'autopolyploid' OR cvterm.name = 'allopolyploid' OR cvterm.name = 'free_chromosome_arm' OR cvterm.name = 'chromosomal_transposition' OR cvterm.name = 'aneuploid_chromosome' OR cvterm.name = 'intrachromosomal_mutation' OR cvterm.name = 'interchromosomal_mutation' OR cvterm.name = 'chromosomal_duplication' OR cvterm.name = 'compound_chromosome' OR cvterm.name = 'autosynaptic_chromosome' OR cvterm.name = 'complex_chromosomal_mutation' OR cvterm.name = 'uncharacterised_chromosomal_mutation' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'interchromosomal_transposition' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unoriented_interchromosomal_transposition' OR cvterm.name = 'inversion_derived_aneuploid_chromosome' OR cvterm.name = 'chromosomal_deletion' OR cvterm.name = 'chromosomal_inversion' OR cvterm.name = 'intrachromosomal_duplication' OR cvterm.name = 'ring_chromosome' OR cvterm.name = 'chromosome_fission' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inversion_derived_bipartite_deficiency' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_deficiency_plus_aneuploid' OR cvterm.name = 'deficient_translocation' OR cvterm.name = 'deficient_inversion' OR cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'pericentric_inversion' OR cvterm.name = 'paracentric_inversion' OR cvterm.name = 'inversion_cum_translocation' OR cvterm.name = 'bipartite_inversion' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'deficient_inversion' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_bipartite_duplication' OR cvterm.name = 'inversion_derived_duplication_plus_aneuploid' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'chromosomal_translocation' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'interchromosomal_transposition' OR cvterm.name = 'translocation_element' OR cvterm.name = 'Robertsonian_fusion' OR cvterm.name = 'reciprocal_chromosomal_translocation' OR cvterm.name = 'deficient_translocation' OR cvterm.name = 'inversion_cum_translocation' OR cvterm.name = 'cyclic_translocation' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unoriented_interchromosomal_transposition' OR cvterm.name = 'interchromosomal_duplication' OR cvterm.name = 'intrachromosomal_duplication' OR cvterm.name = 'free_duplication' OR cvterm.name = 'insertional_duplication' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_bipartite_duplication' OR cvterm.name = 'inversion_derived_duplication_plus_aneuploid' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'uninverted_insertional_duplication' OR cvterm.name = 'inverted_insertional_duplication' OR cvterm.name = 'unoriented_insertional_duplication' OR cvterm.name = 'compound_chromosome_arm' OR cvterm.name = 'homo_compound_chromosome' OR cvterm.name = 'hetero_compound_chromosome' OR cvterm.name = 'dexstrosynaptic_chromosome' OR cvterm.name = 'laevosynaptic_chromosome' OR cvterm.name = 'partially_characterised_chromosomal_mutation' OR cvterm.name = 'chromosome_variation';
  5648. --- ************************************************
  5649. --- *** relation: internal_utr ***
  5650. --- *** relation type: VIEW ***
  5651. --- *** ***
  5652. --- *** A UTR bordered by the terminal and initi ***
  5653. --- *** al codons of two CDSs in a polycistronic ***
  5654. --- *** transcript. Every UTR is either 5', 3' ***
  5655. --- *** or internal. ***
  5656. --- ************************************************
  5657. ---
  5658. CREATE VIEW internal_utr AS
  5659. SELECT
  5660. feature_id AS internal_utr_id,
  5661. feature.*
  5662. FROM
  5663. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5664. WHERE cvterm.name = 'internal_UTR';
  5665. --- ************************************************
  5666. --- *** relation: untranslated_region_polycistronic_mrna ***
  5667. --- *** relation type: VIEW ***
  5668. --- *** ***
  5669. --- *** The untranslated sequence separating the ***
  5670. --- *** 'cistrons' of multicistronic mRNA. ***
  5671. --- ************************************************
  5672. ---
  5673. CREATE VIEW untranslated_region_polycistronic_mrna AS
  5674. SELECT
  5675. feature_id AS untranslated_region_polycistronic_mrna_id,
  5676. feature.*
  5677. FROM
  5678. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5679. WHERE cvterm.name = 'untranslated_region_polycistronic_mRNA';
  5680. --- ************************************************
  5681. --- *** relation: internal_ribosome_entry_site ***
  5682. --- *** relation type: VIEW ***
  5683. --- *** ***
  5684. --- *** Sequence element that recruits a ribosom ***
  5685. --- *** al subunit to internal mRNA for translat ***
  5686. --- *** ion initiation. ***
  5687. --- ************************************************
  5688. ---
  5689. CREATE VIEW internal_ribosome_entry_site AS
  5690. SELECT
  5691. feature_id AS internal_ribosome_entry_site_id,
  5692. feature.*
  5693. FROM
  5694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5695. WHERE cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'internal_ribosome_entry_site';
  5696. --- ************************************************
  5697. --- *** relation: polyadenylated ***
  5698. --- *** relation type: VIEW ***
  5699. --- *** ***
  5700. --- *** A attribute describing the addition of a ***
  5701. --- *** poly A tail to the 3' end of a mRNA mol ***
  5702. --- *** ecule. ***
  5703. --- ************************************************
  5704. ---
  5705. CREATE VIEW polyadenylated AS
  5706. SELECT
  5707. feature_id AS polyadenylated_id,
  5708. feature.*
  5709. FROM
  5710. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5711. WHERE cvterm.name = 'polyadenylated';
  5712. --- ************************************************
  5713. --- *** relation: sequence_length_variation ***
  5714. --- *** relation type: VIEW ***
  5715. --- *** ***
  5716. --- ************************************************
  5717. ---
  5718. CREATE VIEW sequence_length_variation AS
  5719. SELECT
  5720. feature_id AS sequence_length_variation_id,
  5721. feature.*
  5722. FROM
  5723. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5724. WHERE cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'sequence_length_variation';
  5725. --- ************************************************
  5726. --- *** relation: modified_rna_base_feature ***
  5727. --- *** relation type: VIEW ***
  5728. --- *** ***
  5729. --- *** A post_transcriptionally modified base. ***
  5730. --- ************************************************
  5731. ---
  5732. CREATE VIEW modified_rna_base_feature AS
  5733. SELECT
  5734. feature_id AS modified_rna_base_feature_id,
  5735. feature.*
  5736. FROM
  5737. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5738. WHERE cvterm.name = 'inosine' OR cvterm.name = 'seven_methylguanine' OR cvterm.name = 'ribothymidine' OR cvterm.name = 'modified_adenosine' OR cvterm.name = 'modified_cytidine' OR cvterm.name = 'modified_guanosine' OR cvterm.name = 'modified_uridine' OR cvterm.name = 'modified_inosine' OR cvterm.name = 'methylinosine' OR cvterm.name = 'one_methylinosine' OR cvterm.name = 'one_two_prime_O_dimethylinosine' OR cvterm.name = 'two_prime_O_methylinosine' OR cvterm.name = 'one_methyladenosine' OR cvterm.name = 'two_methyladenosine' OR cvterm.name = 'N6_methyladenosine' OR cvterm.name = 'two_prime_O_methyladenosine' OR cvterm.name = 'two_methylthio_N6_methyladenosine' OR cvterm.name = 'N6_isopentenyladenosine' OR cvterm.name = 'two_methylthio_N6_isopentenyladenosine' OR cvterm.name = 'N6_cis_hydroxyisopentenyl_adenosine' OR cvterm.name = 'two_methylthio_N6_cis_hydroxyisopentenyl_adenosine' OR cvterm.name = 'N6_glycinylcarbamoyladenosine' OR cvterm.name = 'N6_threonylcarbamoyladenosine' OR cvterm.name = 'two_methylthio_N6_threonyl_carbamoyladenosine' OR cvterm.name = 'N6_methyl_N6_threonylcarbamoyladenosine' OR cvterm.name = 'N6_hydroxynorvalylcarbamoyladenosine' OR cvterm.name = 'two_methylthio_N6_hydroxynorvalyl_carbamoyladenosine' OR cvterm.name = 'two_prime_O_ribosyladenosine_phosphate' OR cvterm.name = 'N6_N6_dimethyladenosine' OR cvterm.name = 'N6_2_prime_O_dimethyladenosine' OR cvterm.name = 'N6_N6_2_prime_O_trimethyladenosine' OR cvterm.name = 'one_two_prime_O_dimethyladenosine' OR cvterm.name = 'N6_acetyladenosine' OR cvterm.name = 'three_methylcytidine' OR cvterm.name = 'five_methylcytidine' OR cvterm.name = 'two_prime_O_methylcytidine' OR cvterm.name = 'two_thiocytidine' OR cvterm.name = 'N4_acetylcytidine' OR cvterm.name = 'five_formylcytidine' OR cvterm.name = 'five_two_prime_O_dimethylcytidine' OR cvterm.name = 'N4_acetyl_2_prime_O_methylcytidine' OR cvterm.name = 'lysidine' OR cvterm.name = 'N4_methylcytidine' OR cvterm.name = 'N4_2_prime_O_dimethylcytidine' OR cvterm.name = 'five_hydroxymethylcytidine' OR cvterm.name = 'five_formyl_two_prime_O_methylcytidine' OR cvterm.name = 'N4_N4_2_prime_O_trimethylcytidine' OR cvterm.name = 'seven_deazaguanosine' OR cvterm.name = 'one_methylguanosine' OR cvterm.name = 'N2_methylguanosine' OR cvterm.name = 'seven_methylguanosine' OR cvterm.name = 'two_prime_O_methylguanosine' OR cvterm.name = 'N2_N2_dimethylguanosine' OR cvterm.name = 'N2_2_prime_O_dimethylguanosine' OR cvterm.name = 'N2_N2_2_prime_O_trimethylguanosine' OR cvterm.name = 'two_prime_O_ribosylguanosine_phosphate' OR cvterm.name = 'wybutosine' OR cvterm.name = 'peroxywybutosine' OR cvterm.name = 'hydroxywybutosine' OR cvterm.name = 'undermodified_hydroxywybutosine' OR cvterm.name = 'wyosine' OR cvterm.name = 'methylwyosine' OR cvterm.name = 'N2_7_dimethylguanosine' OR cvterm.name = 'N2_N2_7_trimethylguanosine' OR cvterm.name = 'one_two_prime_O_dimethylguanosine' OR cvterm.name = 'four_demethylwyosine' OR cvterm.name = 'isowyosine' OR cvterm.name = 'N2_7_2prirme_O_trimethylguanosine' OR cvterm.name = 'queuosine' OR cvterm.name = 'epoxyqueuosine' OR cvterm.name = 'galactosyl_queuosine' OR cvterm.name = 'mannosyl_queuosine' OR cvterm.name = 'seven_cyano_seven_deazaguanosine' OR cvterm.name = 'seven_aminomethyl_seven_deazaguanosine' OR cvterm.name = 'archaeosine' OR cvterm.name = 'dihydrouridine' OR cvterm.name = 'pseudouridine' OR cvterm.name = 'five_methyluridine' OR cvterm.name = 'two_prime_O_methyluridine' OR cvterm.name = 'five_two_prime_O_dimethyluridine' OR cvterm.name = 'one_methylpseudouridine' OR cvterm.name = 'two_prime_O_methylpseudouridine' OR cvterm.name = 'two_thiouridine' OR cvterm.name = 'four_thiouridine' OR cvterm.name = 'five_methyl_2_thiouridine' OR cvterm.name = 'two_thio_two_prime_O_methyluridine' OR cvterm.name = 'three_three_amino_three_carboxypropyl_uridine' OR cvterm.name = 'five_hydroxyuridine' OR cvterm.name = 'five_methoxyuridine' OR cvterm.name = 'uridine_five_oxyacetic_acid' OR cvterm.name = 'uridine_five_oxyacetic_acid_methyl_ester' OR cvterm.name = 'five_carboxyhydroxymethyl_uridine' OR cvterm.name = 'five_carboxyhydroxymethyl_uridine_methyl_ester' OR cvterm.name = 'five_methoxycarbonylmethyluridine' OR cvterm.name = 'five_methoxycarbonylmethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_methoxycarbonylmethyl_two_thiouridine' OR cvterm.name = 'five_aminomethyl_two_thiouridine' OR cvterm.name = 'five_methylaminomethyluridine' OR cvterm.name = 'five_methylaminomethyl_two_thiouridine' OR cvterm.name = 'five_methylaminomethyl_two_selenouridine' OR cvterm.name = 'five_carbamoylmethyluridine' OR cvterm.name = 'five_carbamoylmethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_carboxymethylaminomethyluridine' OR cvterm.name = 'five_carboxymethylaminomethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_carboxymethylaminomethyl_two_thiouridine' OR cvterm.name = 'three_methyluridine' OR cvterm.name = 'one_methyl_three_three_amino_three_carboxypropyl_pseudouridine' OR cvterm.name = 'five_carboxymethyluridine' OR cvterm.name = 'three_two_prime_O_dimethyluridine' OR cvterm.name = 'five_methyldihydrouridine' OR cvterm.name = 'three_methylpseudouridine' OR cvterm.name = 'five_taurinomethyluridine' OR cvterm.name = 'five_taurinomethyl_two_thiouridine' OR cvterm.name = 'five_isopentenylaminomethyl_uridine' OR cvterm.name = 'five_isopentenylaminomethyl_two_thiouridine' OR cvterm.name = 'five_isopentenylaminomethyl_two_prime_O_methyluridine' OR cvterm.name = 'modified_RNA_base_feature';
  5739. --- ************************************************
  5740. --- *** relation: rrna ***
  5741. --- *** relation type: VIEW ***
  5742. --- *** ***
  5743. --- *** RNA that comprises part of a ribosome, a ***
  5744. --- *** nd that can provide both structural scaf ***
  5745. --- *** folding and catalytic activity. ***
  5746. --- ************************************************
  5747. ---
  5748. CREATE VIEW rrna AS
  5749. SELECT
  5750. feature_id AS rrna_id,
  5751. feature.*
  5752. FROM
  5753. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5754. WHERE cvterm.name = 'small_subunit_rRNA' OR cvterm.name = 'large_subunit_rRNA' OR cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'rRNA_5_8S' OR cvterm.name = 'rRNA_5S' OR cvterm.name = 'rRNA_28S' OR cvterm.name = 'rRNA_23S' OR cvterm.name = 'rRNA_25S' OR cvterm.name = 'rRNA_21S' OR cvterm.name = 'rRNA';
  5755. --- ************************************************
  5756. --- *** relation: trna ***
  5757. --- *** relation type: VIEW ***
  5758. --- *** ***
  5759. --- *** Transfer RNA (tRNA) molecules are approx ***
  5760. --- *** imately 80 nucleotides in length. Their ***
  5761. --- *** secondary structure includes four short ***
  5762. --- *** double-helical elements and three loops ***
  5763. --- *** (D, anti-codon, and T loops). Further hy ***
  5764. --- *** drogen bonds mediate the characteristic ***
  5765. --- *** L-shaped molecular structure. Transfer R ***
  5766. --- *** NAs have two regions of fundamental func ***
  5767. --- *** tional importance: the anti-codon, which ***
  5768. --- *** is responsible for specific mRNA codon ***
  5769. --- *** recognition, and the 3' end, to which th ***
  5770. --- *** e tRNA's corresponding amino acid is att ***
  5771. --- *** ached (by aminoacyl-tRNA synthetases). T ***
  5772. --- *** ransfer RNAs cope with the degeneracy of ***
  5773. --- *** the genetic code in two manners: having ***
  5774. --- *** more than one tRNA (with a specific ant ***
  5775. --- *** i-codon) for a particular amino acid; an ***
  5776. --- *** d 'wobble' base-pairing, i.e. permitting ***
  5777. --- *** non-standard base-pairing at the 3rd an ***
  5778. --- *** ti-codon position. ***
  5779. --- ************************************************
  5780. ---
  5781. CREATE VIEW trna AS
  5782. SELECT
  5783. feature_id AS trna_id,
  5784. feature.*
  5785. FROM
  5786. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5787. WHERE cvterm.name = 'alanyl_tRNA' OR cvterm.name = 'asparaginyl_tRNA' OR cvterm.name = 'aspartyl_tRNA' OR cvterm.name = 'cysteinyl_tRNA' OR cvterm.name = 'glutaminyl_tRNA' OR cvterm.name = 'glutamyl_tRNA' OR cvterm.name = 'glycyl_tRNA' OR cvterm.name = 'histidyl_tRNA' OR cvterm.name = 'isoleucyl_tRNA' OR cvterm.name = 'leucyl_tRNA' OR cvterm.name = 'lysyl_tRNA' OR cvterm.name = 'methionyl_tRNA' OR cvterm.name = 'phenylalanyl_tRNA' OR cvterm.name = 'prolyl_tRNA' OR cvterm.name = 'seryl_tRNA' OR cvterm.name = 'threonyl_tRNA' OR cvterm.name = 'tryptophanyl_tRNA' OR cvterm.name = 'tyrosyl_tRNA' OR cvterm.name = 'valyl_tRNA' OR cvterm.name = 'pyrrolysyl_tRNA' OR cvterm.name = 'arginyl_tRNA' OR cvterm.name = 'selenocysteinyl_tRNA' OR cvterm.name = 'tRNA';
  5788. --- ************************************************
  5789. --- *** relation: alanyl_trna ***
  5790. --- *** relation type: VIEW ***
  5791. --- *** ***
  5792. --- *** A tRNA sequence that has an alanine anti ***
  5793. --- *** codon, and a 3' alanine binding region. ***
  5794. --- ************************************************
  5795. ---
  5796. CREATE VIEW alanyl_trna AS
  5797. SELECT
  5798. feature_id AS alanyl_trna_id,
  5799. feature.*
  5800. FROM
  5801. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5802. WHERE cvterm.name = 'alanyl_tRNA';
  5803. --- ************************************************
  5804. --- *** relation: rrna_small_subunit_primary_transcript ***
  5805. --- *** relation type: VIEW ***
  5806. --- *** ***
  5807. --- *** A primary transcript encoding a small ri ***
  5808. --- *** bosomal subunit RNA. ***
  5809. --- ************************************************
  5810. ---
  5811. CREATE VIEW rrna_small_subunit_primary_transcript AS
  5812. SELECT
  5813. feature_id AS rrna_small_subunit_primary_transcript_id,
  5814. feature.*
  5815. FROM
  5816. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5817. WHERE cvterm.name = 'rRNA_small_subunit_primary_transcript';
  5818. --- ************************************************
  5819. --- *** relation: asparaginyl_trna ***
  5820. --- *** relation type: VIEW ***
  5821. --- *** ***
  5822. --- *** A tRNA sequence that has an asparagine a ***
  5823. --- *** nticodon, and a 3' asparagine binding re ***
  5824. --- *** gion. ***
  5825. --- ************************************************
  5826. ---
  5827. CREATE VIEW asparaginyl_trna AS
  5828. SELECT
  5829. feature_id AS asparaginyl_trna_id,
  5830. feature.*
  5831. FROM
  5832. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5833. WHERE cvterm.name = 'asparaginyl_tRNA';
  5834. --- ************************************************
  5835. --- *** relation: aspartyl_trna ***
  5836. --- *** relation type: VIEW ***
  5837. --- *** ***
  5838. --- *** A tRNA sequence that has an aspartic aci ***
  5839. --- *** d anticodon, and a 3' aspartic acid bind ***
  5840. --- *** ing region. ***
  5841. --- ************************************************
  5842. ---
  5843. CREATE VIEW aspartyl_trna AS
  5844. SELECT
  5845. feature_id AS aspartyl_trna_id,
  5846. feature.*
  5847. FROM
  5848. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5849. WHERE cvterm.name = 'aspartyl_tRNA';
  5850. --- ************************************************
  5851. --- *** relation: cysteinyl_trna ***
  5852. --- *** relation type: VIEW ***
  5853. --- *** ***
  5854. --- *** A tRNA sequence that has a cysteine anti ***
  5855. --- *** codon, and a 3' cysteine binding region. ***
  5856. --- ************************************************
  5857. ---
  5858. CREATE VIEW cysteinyl_trna AS
  5859. SELECT
  5860. feature_id AS cysteinyl_trna_id,
  5861. feature.*
  5862. FROM
  5863. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5864. WHERE cvterm.name = 'cysteinyl_tRNA';
  5865. --- ************************************************
  5866. --- *** relation: glutaminyl_trna ***
  5867. --- *** relation type: VIEW ***
  5868. --- *** ***
  5869. --- *** A tRNA sequence that has a glutamine ant ***
  5870. --- *** icodon, and a 3' glutamine binding regio ***
  5871. --- *** n. ***
  5872. --- ************************************************
  5873. ---
  5874. CREATE VIEW glutaminyl_trna AS
  5875. SELECT
  5876. feature_id AS glutaminyl_trna_id,
  5877. feature.*
  5878. FROM
  5879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5880. WHERE cvterm.name = 'glutaminyl_tRNA';
  5881. --- ************************************************
  5882. --- *** relation: glutamyl_trna ***
  5883. --- *** relation type: VIEW ***
  5884. --- *** ***
  5885. --- *** A tRNA sequence that has a glutamic acid ***
  5886. --- *** anticodon, and a 3' glutamic acid bindi ***
  5887. --- *** ng region. ***
  5888. --- ************************************************
  5889. ---
  5890. CREATE VIEW glutamyl_trna AS
  5891. SELECT
  5892. feature_id AS glutamyl_trna_id,
  5893. feature.*
  5894. FROM
  5895. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5896. WHERE cvterm.name = 'glutamyl_tRNA';
  5897. --- ************************************************
  5898. --- *** relation: glycyl_trna ***
  5899. --- *** relation type: VIEW ***
  5900. --- *** ***
  5901. --- *** A tRNA sequence that has a glycine antic ***
  5902. --- *** odon, and a 3' glycine binding region. ***
  5903. --- ************************************************
  5904. ---
  5905. CREATE VIEW glycyl_trna AS
  5906. SELECT
  5907. feature_id AS glycyl_trna_id,
  5908. feature.*
  5909. FROM
  5910. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5911. WHERE cvterm.name = 'glycyl_tRNA';
  5912. --- ************************************************
  5913. --- *** relation: histidyl_trna ***
  5914. --- *** relation type: VIEW ***
  5915. --- *** ***
  5916. --- *** A tRNA sequence that has a histidine ant ***
  5917. --- *** icodon, and a 3' histidine binding regio ***
  5918. --- *** n. ***
  5919. --- ************************************************
  5920. ---
  5921. CREATE VIEW histidyl_trna AS
  5922. SELECT
  5923. feature_id AS histidyl_trna_id,
  5924. feature.*
  5925. FROM
  5926. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5927. WHERE cvterm.name = 'histidyl_tRNA';
  5928. --- ************************************************
  5929. --- *** relation: isoleucyl_trna ***
  5930. --- *** relation type: VIEW ***
  5931. --- *** ***
  5932. --- *** A tRNA sequence that has an isoleucine a ***
  5933. --- *** nticodon, and a 3' isoleucine binding re ***
  5934. --- *** gion. ***
  5935. --- ************************************************
  5936. ---
  5937. CREATE VIEW isoleucyl_trna AS
  5938. SELECT
  5939. feature_id AS isoleucyl_trna_id,
  5940. feature.*
  5941. FROM
  5942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5943. WHERE cvterm.name = 'isoleucyl_tRNA';
  5944. --- ************************************************
  5945. --- *** relation: leucyl_trna ***
  5946. --- *** relation type: VIEW ***
  5947. --- *** ***
  5948. --- *** A tRNA sequence that has a leucine antic ***
  5949. --- *** odon, and a 3' leucine binding region. ***
  5950. --- ************************************************
  5951. ---
  5952. CREATE VIEW leucyl_trna AS
  5953. SELECT
  5954. feature_id AS leucyl_trna_id,
  5955. feature.*
  5956. FROM
  5957. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5958. WHERE cvterm.name = 'leucyl_tRNA';
  5959. --- ************************************************
  5960. --- *** relation: lysyl_trna ***
  5961. --- *** relation type: VIEW ***
  5962. --- *** ***
  5963. --- *** A tRNA sequence that has a lysine antico ***
  5964. --- *** don, and a 3' lysine binding region. ***
  5965. --- ************************************************
  5966. ---
  5967. CREATE VIEW lysyl_trna AS
  5968. SELECT
  5969. feature_id AS lysyl_trna_id,
  5970. feature.*
  5971. FROM
  5972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5973. WHERE cvterm.name = 'lysyl_tRNA';
  5974. --- ************************************************
  5975. --- *** relation: methionyl_trna ***
  5976. --- *** relation type: VIEW ***
  5977. --- *** ***
  5978. --- *** A tRNA sequence that has a methionine an ***
  5979. --- *** ticodon, and a 3' methionine binding reg ***
  5980. --- *** ion. ***
  5981. --- ************************************************
  5982. ---
  5983. CREATE VIEW methionyl_trna AS
  5984. SELECT
  5985. feature_id AS methionyl_trna_id,
  5986. feature.*
  5987. FROM
  5988. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5989. WHERE cvterm.name = 'methionyl_tRNA';
  5990. --- ************************************************
  5991. --- *** relation: phenylalanyl_trna ***
  5992. --- *** relation type: VIEW ***
  5993. --- *** ***
  5994. --- *** A tRNA sequence that has a phenylalanine ***
  5995. --- *** anticodon, and a 3' phenylalanine bindi ***
  5996. --- *** ng region. ***
  5997. --- ************************************************
  5998. ---
  5999. CREATE VIEW phenylalanyl_trna AS
  6000. SELECT
  6001. feature_id AS phenylalanyl_trna_id,
  6002. feature.*
  6003. FROM
  6004. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6005. WHERE cvterm.name = 'phenylalanyl_tRNA';
  6006. --- ************************************************
  6007. --- *** relation: prolyl_trna ***
  6008. --- *** relation type: VIEW ***
  6009. --- *** ***
  6010. --- *** A tRNA sequence that has a proline antic ***
  6011. --- *** odon, and a 3' proline binding region. ***
  6012. --- ************************************************
  6013. ---
  6014. CREATE VIEW prolyl_trna AS
  6015. SELECT
  6016. feature_id AS prolyl_trna_id,
  6017. feature.*
  6018. FROM
  6019. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6020. WHERE cvterm.name = 'prolyl_tRNA';
  6021. --- ************************************************
  6022. --- *** relation: seryl_trna ***
  6023. --- *** relation type: VIEW ***
  6024. --- *** ***
  6025. --- *** A tRNA sequence that has a serine antico ***
  6026. --- *** don, and a 3' serine binding region. ***
  6027. --- ************************************************
  6028. ---
  6029. CREATE VIEW seryl_trna AS
  6030. SELECT
  6031. feature_id AS seryl_trna_id,
  6032. feature.*
  6033. FROM
  6034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6035. WHERE cvterm.name = 'seryl_tRNA';
  6036. --- ************************************************
  6037. --- *** relation: threonyl_trna ***
  6038. --- *** relation type: VIEW ***
  6039. --- *** ***
  6040. --- *** A tRNA sequence that has a threonine ant ***
  6041. --- *** icodon, and a 3' threonine binding regio ***
  6042. --- *** n. ***
  6043. --- ************************************************
  6044. ---
  6045. CREATE VIEW threonyl_trna AS
  6046. SELECT
  6047. feature_id AS threonyl_trna_id,
  6048. feature.*
  6049. FROM
  6050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6051. WHERE cvterm.name = 'threonyl_tRNA';
  6052. --- ************************************************
  6053. --- *** relation: tryptophanyl_trna ***
  6054. --- *** relation type: VIEW ***
  6055. --- *** ***
  6056. --- *** A tRNA sequence that has a tryptophan an ***
  6057. --- *** ticodon, and a 3' tryptophan binding reg ***
  6058. --- *** ion. ***
  6059. --- ************************************************
  6060. ---
  6061. CREATE VIEW tryptophanyl_trna AS
  6062. SELECT
  6063. feature_id AS tryptophanyl_trna_id,
  6064. feature.*
  6065. FROM
  6066. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6067. WHERE cvterm.name = 'tryptophanyl_tRNA';
  6068. --- ************************************************
  6069. --- *** relation: tyrosyl_trna ***
  6070. --- *** relation type: VIEW ***
  6071. --- *** ***
  6072. --- *** A tRNA sequence that has a tyrosine anti ***
  6073. --- *** codon, and a 3' tyrosine binding region. ***
  6074. --- ************************************************
  6075. ---
  6076. CREATE VIEW tyrosyl_trna AS
  6077. SELECT
  6078. feature_id AS tyrosyl_trna_id,
  6079. feature.*
  6080. FROM
  6081. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6082. WHERE cvterm.name = 'tyrosyl_tRNA';
  6083. --- ************************************************
  6084. --- *** relation: valyl_trna ***
  6085. --- *** relation type: VIEW ***
  6086. --- *** ***
  6087. --- *** A tRNA sequence that has a valine antico ***
  6088. --- *** don, and a 3' valine binding region. ***
  6089. --- ************************************************
  6090. ---
  6091. CREATE VIEW valyl_trna AS
  6092. SELECT
  6093. feature_id AS valyl_trna_id,
  6094. feature.*
  6095. FROM
  6096. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6097. WHERE cvterm.name = 'valyl_tRNA';
  6098. --- ************************************************
  6099. --- *** relation: snrna ***
  6100. --- *** relation type: VIEW ***
  6101. --- *** ***
  6102. --- *** A small nuclear RNA molecule involved in ***
  6103. --- *** pre-mRNA splicing and processing. ***
  6104. --- ************************************************
  6105. ---
  6106. CREATE VIEW snrna AS
  6107. SELECT
  6108. feature_id AS snrna_id,
  6109. feature.*
  6110. FROM
  6111. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6112. WHERE cvterm.name = 'U1_snRNA' OR cvterm.name = 'U2_snRNA' OR cvterm.name = 'U4_snRNA' OR cvterm.name = 'U4atac_snRNA' OR cvterm.name = 'U5_snRNA' OR cvterm.name = 'U6_snRNA' OR cvterm.name = 'U6atac_snRNA' OR cvterm.name = 'U11_snRNA' OR cvterm.name = 'U12_snRNA' OR cvterm.name = 'snRNA';
  6113. --- ************************************************
  6114. --- *** relation: snorna ***
  6115. --- *** relation type: VIEW ***
  6116. --- *** ***
  6117. --- *** A snoRNA (small nucleolar RNA) is any on ***
  6118. --- *** e of a class of small RNAs that are asso ***
  6119. --- *** ciated with the eukaryotic nucleus as co ***
  6120. --- *** mponents of small nucleolar ribonucleopr ***
  6121. --- *** oteins. They participate in the processi ***
  6122. --- *** ng or modifications of many RNAs, mostly ***
  6123. --- *** ribosomal RNAs (rRNAs) though snoRNAs a ***
  6124. --- *** re also known to target other classes of ***
  6125. --- *** RNA, including spliceosomal RNAs, tRNAs ***
  6126. --- *** , and mRNAs via a stretch of sequence th ***
  6127. --- *** at is complementary to a sequence in the ***
  6128. --- *** targeted RNA. ***
  6129. --- ************************************************
  6130. ---
  6131. CREATE VIEW snorna AS
  6132. SELECT
  6133. feature_id AS snorna_id,
  6134. feature.*
  6135. FROM
  6136. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6137. WHERE cvterm.name = 'C_D_box_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA' OR cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'snoRNA';
  6138. --- ************************************************
  6139. --- *** relation: mirna ***
  6140. --- *** relation type: VIEW ***
  6141. --- *** ***
  6142. --- *** Small, ~22-nt, RNA molecule that is the ***
  6143. --- *** endogenous transcript of a miRNA gene. M ***
  6144. --- *** icro RNAs are produced from precursor mo ***
  6145. --- *** lecules (SO:0000647) that can form local ***
  6146. --- *** hairpin structures, which ordinarily ar ***
  6147. --- *** e processed (via the Dicer pathway) such ***
  6148. --- *** that a single miRNA molecule accumulate ***
  6149. --- *** s from one arm of a hairpin precursor mo ***
  6150. --- *** lecule. Micro RNAs may trigger the cleav ***
  6151. --- *** age of their target molecules or act as ***
  6152. --- *** translational repressors. ***
  6153. --- ************************************************
  6154. ---
  6155. CREATE VIEW mirna AS
  6156. SELECT
  6157. feature_id AS mirna_id,
  6158. feature.*
  6159. FROM
  6160. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6161. WHERE cvterm.name = 'miRNA';
  6162. --- ************************************************
  6163. --- *** relation: bound_by_factor ***
  6164. --- *** relation type: VIEW ***
  6165. --- *** ***
  6166. --- *** An attribute describing a sequence that ***
  6167. --- *** is bound by another molecule. ***
  6168. --- ************************************************
  6169. ---
  6170. CREATE VIEW bound_by_factor AS
  6171. SELECT
  6172. feature_id AS bound_by_factor_id,
  6173. feature.*
  6174. FROM
  6175. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6176. WHERE cvterm.name = 'bound_by_protein' OR cvterm.name = 'bound_by_nucleic_acid' OR cvterm.name = 'bound_by_factor';
  6177. --- ************************************************
  6178. --- *** relation: transcript_bound_by_nucleic_acid ***
  6179. --- *** relation type: VIEW ***
  6180. --- *** ***
  6181. --- *** A transcript that is bound by a nucleic ***
  6182. --- *** acid. ***
  6183. --- ************************************************
  6184. ---
  6185. CREATE VIEW transcript_bound_by_nucleic_acid AS
  6186. SELECT
  6187. feature_id AS transcript_bound_by_nucleic_acid_id,
  6188. feature.*
  6189. FROM
  6190. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6191. WHERE cvterm.name = 'transcript_bound_by_nucleic_acid';
  6192. --- ************************************************
  6193. --- *** relation: transcript_bound_by_protein ***
  6194. --- *** relation type: VIEW ***
  6195. --- *** ***
  6196. --- *** A transcript that is bound by a protein. ***
  6197. --- ************************************************
  6198. ---
  6199. CREATE VIEW transcript_bound_by_protein AS
  6200. SELECT
  6201. feature_id AS transcript_bound_by_protein_id,
  6202. feature.*
  6203. FROM
  6204. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6205. WHERE cvterm.name = 'transcript_bound_by_protein';
  6206. --- ************************************************
  6207. --- *** relation: engineered_gene ***
  6208. --- *** relation type: VIEW ***
  6209. --- *** ***
  6210. --- *** A gene that is engineered. ***
  6211. --- ************************************************
  6212. ---
  6213. CREATE VIEW engineered_gene AS
  6214. SELECT
  6215. feature_id AS engineered_gene_id,
  6216. feature.*
  6217. FROM
  6218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6219. WHERE cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_gene';
  6220. --- ************************************************
  6221. --- *** relation: engineered_foreign_gene ***
  6222. --- *** relation type: VIEW ***
  6223. --- *** ***
  6224. --- *** A gene that is engineered and foreign. ***
  6225. --- ************************************************
  6226. ---
  6227. CREATE VIEW engineered_foreign_gene AS
  6228. SELECT
  6229. feature_id AS engineered_foreign_gene_id,
  6230. feature.*
  6231. FROM
  6232. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6233. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_foreign_gene';
  6234. --- ************************************************
  6235. --- *** relation: mrna_with_minus_1_frameshift ***
  6236. --- *** relation type: VIEW ***
  6237. --- *** ***
  6238. --- *** An mRNA with a minus 1 frameshift. ***
  6239. --- ************************************************
  6240. ---
  6241. CREATE VIEW mrna_with_minus_1_frameshift AS
  6242. SELECT
  6243. feature_id AS mrna_with_minus_1_frameshift_id,
  6244. feature.*
  6245. FROM
  6246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6247. WHERE cvterm.name = 'mRNA_with_minus_1_frameshift';
  6248. --- ************************************************
  6249. --- *** relation: engineered_foreign_transposable_element_gene ***
  6250. --- *** relation type: VIEW ***
  6251. --- *** ***
  6252. --- *** A transposable_element that is engineere ***
  6253. --- *** d and foreign. ***
  6254. --- ************************************************
  6255. ---
  6256. CREATE VIEW engineered_foreign_transposable_element_gene AS
  6257. SELECT
  6258. feature_id AS engineered_foreign_transposable_element_gene_id,
  6259. feature.*
  6260. FROM
  6261. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6262. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene';
  6263. --- ************************************************
  6264. --- *** relation: foreign_gene ***
  6265. --- *** relation type: VIEW ***
  6266. --- *** ***
  6267. --- *** A gene that is foreign. ***
  6268. --- ************************************************
  6269. ---
  6270. CREATE VIEW foreign_gene AS
  6271. SELECT
  6272. feature_id AS foreign_gene_id,
  6273. feature.*
  6274. FROM
  6275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6276. WHERE cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'foreign_gene';
  6277. --- ************************************************
  6278. --- *** relation: long_terminal_repeat ***
  6279. --- *** relation type: VIEW ***
  6280. --- *** ***
  6281. --- *** A sequence directly repeated at both end ***
  6282. --- *** s of a defined sequence, of the sort typ ***
  6283. --- *** ically found in retroviruses. ***
  6284. --- ************************************************
  6285. ---
  6286. CREATE VIEW long_terminal_repeat AS
  6287. SELECT
  6288. feature_id AS long_terminal_repeat_id,
  6289. feature.*
  6290. FROM
  6291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6292. WHERE cvterm.name = 'five_prime_LTR' OR cvterm.name = 'three_prime_LTR' OR cvterm.name = 'solo_LTR' OR cvterm.name = 'long_terminal_repeat';
  6293. --- ************************************************
  6294. --- *** relation: fusion_gene ***
  6295. --- *** relation type: VIEW ***
  6296. --- *** ***
  6297. --- *** A gene that is a fusion. ***
  6298. --- ************************************************
  6299. ---
  6300. CREATE VIEW fusion_gene AS
  6301. SELECT
  6302. feature_id AS fusion_gene_id,
  6303. feature.*
  6304. FROM
  6305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6306. WHERE cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'fusion_gene';
  6307. --- ************************************************
  6308. --- *** relation: engineered_fusion_gene ***
  6309. --- *** relation type: VIEW ***
  6310. --- *** ***
  6311. --- *** A fusion gene that is engineered. ***
  6312. --- ************************************************
  6313. ---
  6314. CREATE VIEW engineered_fusion_gene AS
  6315. SELECT
  6316. feature_id AS engineered_fusion_gene_id,
  6317. feature.*
  6318. FROM
  6319. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6320. WHERE cvterm.name = 'engineered_fusion_gene';
  6321. --- ************************************************
  6322. --- *** relation: microsatellite ***
  6323. --- *** relation type: VIEW ***
  6324. --- *** ***
  6325. --- *** A repeat_region containing repeat_units ***
  6326. --- *** (2 to 4 bp) that is repeated multiple ti ***
  6327. --- *** mes in tandem. ***
  6328. --- ************************************************
  6329. ---
  6330. CREATE VIEW microsatellite AS
  6331. SELECT
  6332. feature_id AS microsatellite_id,
  6333. feature.*
  6334. FROM
  6335. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6336. WHERE cvterm.name = 'dinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'trinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'tetranucleotide_repeat_microsatellite_feature' OR cvterm.name = 'microsatellite';
  6337. --- ************************************************
  6338. --- *** relation: dinucleotide_repeat_microsatellite_feature ***
  6339. --- *** relation type: VIEW ***
  6340. --- *** ***
  6341. --- ************************************************
  6342. ---
  6343. CREATE VIEW dinucleotide_repeat_microsatellite_feature AS
  6344. SELECT
  6345. feature_id AS dinucleotide_repeat_microsatellite_feature_id,
  6346. feature.*
  6347. FROM
  6348. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6349. WHERE cvterm.name = 'dinucleotide_repeat_microsatellite_feature';
  6350. --- ************************************************
  6351. --- *** relation: trinuc_repeat_microsat ***
  6352. --- *** relation type: VIEW ***
  6353. --- *** ***
  6354. --- ************************************************
  6355. ---
  6356. CREATE VIEW trinuc_repeat_microsat AS
  6357. SELECT
  6358. feature_id AS trinuc_repeat_microsat_id,
  6359. feature.*
  6360. FROM
  6361. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6362. WHERE cvterm.name = 'trinucleotide_repeat_microsatellite_feature';
  6363. --- ************************************************
  6364. --- *** relation: engineered_foreign_repetitive_element ***
  6365. --- *** relation type: VIEW ***
  6366. --- *** ***
  6367. --- *** A repetitive element that is engineered ***
  6368. --- *** and foreign. ***
  6369. --- ************************************************
  6370. ---
  6371. CREATE VIEW engineered_foreign_repetitive_element AS
  6372. SELECT
  6373. feature_id AS engineered_foreign_repetitive_element_id,
  6374. feature.*
  6375. FROM
  6376. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6377. WHERE cvterm.name = 'engineered_foreign_repetitive_element';
  6378. --- ************************************************
  6379. --- *** relation: inverted_repeat ***
  6380. --- *** relation type: VIEW ***
  6381. --- *** ***
  6382. --- *** The sequence is complementarily repeated ***
  6383. --- *** on the opposite strand. It is a palindr ***
  6384. --- *** ome, and it may, or may not be hyphenate ***
  6385. --- *** d. Examples: GCTGATCAGC, or GCTGA-----TC ***
  6386. --- *** AGC. ***
  6387. --- ************************************************
  6388. ---
  6389. CREATE VIEW inverted_repeat AS
  6390. SELECT
  6391. feature_id AS inverted_repeat_id,
  6392. feature.*
  6393. FROM
  6394. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6395. WHERE cvterm.name = 'terminal_inverted_repeat' OR cvterm.name = 'five_prime_terminal_inverted_repeat' OR cvterm.name = 'three_prime_terminal_inverted_repeat' OR cvterm.name = 'inverted_repeat';
  6396. --- ************************************************
  6397. --- *** relation: u12_intron ***
  6398. --- *** relation type: VIEW ***
  6399. --- *** ***
  6400. --- *** A type of spliceosomal intron spliced by ***
  6401. --- *** the U12 spliceosome, that includes U11, ***
  6402. --- *** U12, U4atac/U6atac and U5 snRNAs. ***
  6403. --- ************************************************
  6404. ---
  6405. CREATE VIEW u12_intron AS
  6406. SELECT
  6407. feature_id AS u12_intron_id,
  6408. feature.*
  6409. FROM
  6410. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6411. WHERE cvterm.name = 'U12_intron';
  6412. --- ************************************************
  6413. --- *** relation: origin_of_replication ***
  6414. --- *** relation type: VIEW ***
  6415. --- *** ***
  6416. --- *** The origin of replication; starting site ***
  6417. --- *** for duplication of a nucleic acid molec ***
  6418. --- *** ule to give two identical copies. ***
  6419. --- ************************************************
  6420. ---
  6421. CREATE VIEW origin_of_replication AS
  6422. SELECT
  6423. feature_id AS origin_of_replication_id,
  6424. feature.*
  6425. FROM
  6426. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6427. WHERE cvterm.name = 'D_loop' OR cvterm.name = 'ARS' OR cvterm.name = 'oriT' OR cvterm.name = 'amplification_origin' OR cvterm.name = 'oriV' OR cvterm.name = 'oriC' OR cvterm.name = 'origin_of_replication';
  6428. --- ************************************************
  6429. --- *** relation: d_loop ***
  6430. --- *** relation type: VIEW ***
  6431. --- *** ***
  6432. --- *** Displacement loop; a region within mitoc ***
  6433. --- *** hondrial DNA in which a short stretch of ***
  6434. --- *** RNA is paired with one strand of DNA, d ***
  6435. --- *** isplacing the original partner DNA stran ***
  6436. --- *** d in this region; also used to describe ***
  6437. --- *** the displacement of a region of one stra ***
  6438. --- *** nd of duplex DNA by a single stranded in ***
  6439. --- *** vader in the reaction catalyzed by RecA ***
  6440. --- *** protein. ***
  6441. --- ************************************************
  6442. ---
  6443. CREATE VIEW d_loop AS
  6444. SELECT
  6445. feature_id AS d_loop_id,
  6446. feature.*
  6447. FROM
  6448. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6449. WHERE cvterm.name = 'D_loop';
  6450. --- ************************************************
  6451. --- *** relation: recombination_feature ***
  6452. --- *** relation type: VIEW ***
  6453. --- *** ***
  6454. --- ************************************************
  6455. ---
  6456. CREATE VIEW recombination_feature AS
  6457. SELECT
  6458. feature_id AS recombination_feature_id,
  6459. feature.*
  6460. FROM
  6461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6462. WHERE cvterm.name = 'recombination_hotspot' OR cvterm.name = 'haplotype_block' OR cvterm.name = 'sequence_rearrangement_feature' OR cvterm.name = 'iDNA' OR cvterm.name = 'specific_recombination_site' OR cvterm.name = 'chromosome_breakage_sequence' OR cvterm.name = 'internal_eliminated_sequence' OR cvterm.name = 'macronucleus_destined_segment' OR cvterm.name = 'recombination_feature_of_rearranged_gene' OR cvterm.name = 'site_specific_recombination_target_region' OR cvterm.name = 'recombination_signal_sequence' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_feature' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_spacer' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_signal_feature' OR cvterm.name = 'D_gene' OR cvterm.name = 'V_gene' OR cvterm.name = 'J_gene' OR cvterm.name = 'C_gene' OR cvterm.name = 'D_J_C_cluster' OR cvterm.name = 'J_C_cluster' OR cvterm.name = 'J_cluster' OR cvterm.name = 'V_cluster' OR cvterm.name = 'V_J_cluster' OR cvterm.name = 'V_J_C_cluster' OR cvterm.name = 'C_cluster' OR cvterm.name = 'D_cluster' OR cvterm.name = 'D_J_cluster' OR cvterm.name = 'three_prime_D_spacer' OR cvterm.name = 'five_prime_D_spacer' OR cvterm.name = 'J_spacer' OR cvterm.name = 'V_spacer' OR cvterm.name = 'VD_gene' OR cvterm.name = 'DJ_gene' OR cvterm.name = 'VDJ_gene' OR cvterm.name = 'VJ_gene' OR cvterm.name = 'DJ_J_cluster' OR cvterm.name = 'VDJ_J_C_cluster' OR cvterm.name = 'VDJ_J_cluster' OR cvterm.name = 'VJ_C_cluster' OR cvterm.name = 'VJ_J_C_cluster' OR cvterm.name = 'VJ_J_cluster' OR cvterm.name = 'D_DJ_C_cluster' OR cvterm.name = 'D_DJ_cluster' OR cvterm.name = 'D_DJ_J_C_cluster' OR cvterm.name = 'D_DJ_J_cluster' OR cvterm.name = 'V_DJ_cluster' OR cvterm.name = 'V_DJ_J_cluster' OR cvterm.name = 'V_VDJ_C_cluster' OR cvterm.name = 'V_VDJ_cluster' OR cvterm.name = 'V_VDJ_J_cluster' OR cvterm.name = 'V_VJ_C_cluster' OR cvterm.name = 'V_VJ_cluster' OR cvterm.name = 'V_VJ_J_cluster' OR cvterm.name = 'V_D_DJ_C_cluster' OR cvterm.name = 'V_D_DJ_cluster' OR cvterm.name = 'V_D_DJ_J_C_cluster' OR cvterm.name = 'V_D_DJ_J_cluster' OR cvterm.name = 'V_D_J_C_cluster' OR cvterm.name = 'V_D_J_cluster' OR cvterm.name = 'DJ_C_cluster' OR cvterm.name = 'DJ_J_C_cluster' OR cvterm.name = 'VDJ_C_cluster' OR cvterm.name = 'V_DJ_C_cluster' OR cvterm.name = 'V_DJ_J_C_cluster' OR cvterm.name = 'V_VDJ_J_C_cluster' OR cvterm.name = 'V_VJ_J_C_cluster' OR cvterm.name = 'J_gene_recombination_feature' OR cvterm.name = 'D_gene_recombination_feature' OR cvterm.name = 'V_gene_recombination_feature' OR cvterm.name = 'heptamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'nonamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'five_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_heptamer' OR cvterm.name = 'five_prime_D_heptamer' OR cvterm.name = 'J_heptamer' OR cvterm.name = 'V_heptamer' OR cvterm.name = 'three_prime_D_nonamer' OR cvterm.name = 'five_prime_D_nonamer' OR cvterm.name = 'J_nonamer' OR cvterm.name = 'V_nonamer' OR cvterm.name = 'integration_excision_site' OR cvterm.name = 'resolution_site' OR cvterm.name = 'inversion_site' OR cvterm.name = 'inversion_site_part' OR cvterm.name = 'attI_site' OR cvterm.name = 'attP_site' OR cvterm.name = 'attB_site' OR cvterm.name = 'attL_site' OR cvterm.name = 'attR_site' OR cvterm.name = 'attC_site' OR cvterm.name = 'attCtn_site' OR cvterm.name = 'loxP_site' OR cvterm.name = 'dif_site' OR cvterm.name = 'FRT_site' OR cvterm.name = 'IRLinv_site' OR cvterm.name = 'IRRinv_site' OR cvterm.name = 'recombination_feature';
  6463. --- ************************************************
  6464. --- *** relation: specific_recombination_site ***
  6465. --- *** relation type: VIEW ***
  6466. --- *** ***
  6467. --- ************************************************
  6468. ---
  6469. CREATE VIEW specific_recombination_site AS
  6470. SELECT
  6471. feature_id AS specific_recombination_site_id,
  6472. feature.*
  6473. FROM
  6474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6475. WHERE cvterm.name = 'recombination_feature_of_rearranged_gene' OR cvterm.name = 'site_specific_recombination_target_region' OR cvterm.name = 'recombination_signal_sequence' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_feature' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_spacer' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_signal_feature' OR cvterm.name = 'D_gene' OR cvterm.name = 'V_gene' OR cvterm.name = 'J_gene' OR cvterm.name = 'C_gene' OR cvterm.name = 'D_J_C_cluster' OR cvterm.name = 'J_C_cluster' OR cvterm.name = 'J_cluster' OR cvterm.name = 'V_cluster' OR cvterm.name = 'V_J_cluster' OR cvterm.name = 'V_J_C_cluster' OR cvterm.name = 'C_cluster' OR cvterm.name = 'D_cluster' OR cvterm.name = 'D_J_cluster' OR cvterm.name = 'three_prime_D_spacer' OR cvterm.name = 'five_prime_D_spacer' OR cvterm.name = 'J_spacer' OR cvterm.name = 'V_spacer' OR cvterm.name = 'VD_gene' OR cvterm.name = 'DJ_gene' OR cvterm.name = 'VDJ_gene' OR cvterm.name = 'VJ_gene' OR cvterm.name = 'DJ_J_cluster' OR cvterm.name = 'VDJ_J_C_cluster' OR cvterm.name = 'VDJ_J_cluster' OR cvterm.name = 'VJ_C_cluster' OR cvterm.name = 'VJ_J_C_cluster' OR cvterm.name = 'VJ_J_cluster' OR cvterm.name = 'D_DJ_C_cluster' OR cvterm.name = 'D_DJ_cluster' OR cvterm.name = 'D_DJ_J_C_cluster' OR cvterm.name = 'D_DJ_J_cluster' OR cvterm.name = 'V_DJ_cluster' OR cvterm.name = 'V_DJ_J_cluster' OR cvterm.name = 'V_VDJ_C_cluster' OR cvterm.name = 'V_VDJ_cluster' OR cvterm.name = 'V_VDJ_J_cluster' OR cvterm.name = 'V_VJ_C_cluster' OR cvterm.name = 'V_VJ_cluster' OR cvterm.name = 'V_VJ_J_cluster' OR cvterm.name = 'V_D_DJ_C_cluster' OR cvterm.name = 'V_D_DJ_cluster' OR cvterm.name = 'V_D_DJ_J_C_cluster' OR cvterm.name = 'V_D_DJ_J_cluster' OR cvterm.name = 'V_D_J_C_cluster' OR cvterm.name = 'V_D_J_cluster' OR cvterm.name = 'DJ_C_cluster' OR cvterm.name = 'DJ_J_C_cluster' OR cvterm.name = 'VDJ_C_cluster' OR cvterm.name = 'V_DJ_C_cluster' OR cvterm.name = 'V_DJ_J_C_cluster' OR cvterm.name = 'V_VDJ_J_C_cluster' OR cvterm.name = 'V_VJ_J_C_cluster' OR cvterm.name = 'J_gene_recombination_feature' OR cvterm.name = 'D_gene_recombination_feature' OR cvterm.name = 'V_gene_recombination_feature' OR cvterm.name = 'heptamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'nonamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'five_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_heptamer' OR cvterm.name = 'five_prime_D_heptamer' OR cvterm.name = 'J_heptamer' OR cvterm.name = 'V_heptamer' OR cvterm.name = 'three_prime_D_nonamer' OR cvterm.name = 'five_prime_D_nonamer' OR cvterm.name = 'J_nonamer' OR cvterm.name = 'V_nonamer' OR cvterm.name = 'integration_excision_site' OR cvterm.name = 'resolution_site' OR cvterm.name = 'inversion_site' OR cvterm.name = 'inversion_site_part' OR cvterm.name = 'attI_site' OR cvterm.name = 'attP_site' OR cvterm.name = 'attB_site' OR cvterm.name = 'attL_site' OR cvterm.name = 'attR_site' OR cvterm.name = 'attC_site' OR cvterm.name = 'attCtn_site' OR cvterm.name = 'loxP_site' OR cvterm.name = 'dif_site' OR cvterm.name = 'FRT_site' OR cvterm.name = 'IRLinv_site' OR cvterm.name = 'IRRinv_site' OR cvterm.name = 'specific_recombination_site';
  6476. --- ************************************************
  6477. --- *** relation: recombination_feature_of_rearranged_gene ***
  6478. --- *** relation type: VIEW ***
  6479. --- *** ***
  6480. --- ************************************************
  6481. ---
  6482. CREATE VIEW recombination_feature_of_rearranged_gene AS
  6483. SELECT
  6484. feature_id AS recombination_feature_of_rearranged_gene_id,
  6485. feature.*
  6486. FROM
  6487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6488. WHERE cvterm.name = 'vertebrate_immune_system_gene_recombination_feature' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_spacer' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_signal_feature' OR cvterm.name = 'D_gene' OR cvterm.name = 'V_gene' OR cvterm.name = 'J_gene' OR cvterm.name = 'C_gene' OR cvterm.name = 'D_J_C_cluster' OR cvterm.name = 'J_C_cluster' OR cvterm.name = 'J_cluster' OR cvterm.name = 'V_cluster' OR cvterm.name = 'V_J_cluster' OR cvterm.name = 'V_J_C_cluster' OR cvterm.name = 'C_cluster' OR cvterm.name = 'D_cluster' OR cvterm.name = 'D_J_cluster' OR cvterm.name = 'three_prime_D_spacer' OR cvterm.name = 'five_prime_D_spacer' OR cvterm.name = 'J_spacer' OR cvterm.name = 'V_spacer' OR cvterm.name = 'VD_gene' OR cvterm.name = 'DJ_gene' OR cvterm.name = 'VDJ_gene' OR cvterm.name = 'VJ_gene' OR cvterm.name = 'DJ_J_cluster' OR cvterm.name = 'VDJ_J_C_cluster' OR cvterm.name = 'VDJ_J_cluster' OR cvterm.name = 'VJ_C_cluster' OR cvterm.name = 'VJ_J_C_cluster' OR cvterm.name = 'VJ_J_cluster' OR cvterm.name = 'D_DJ_C_cluster' OR cvterm.name = 'D_DJ_cluster' OR cvterm.name = 'D_DJ_J_C_cluster' OR cvterm.name = 'D_DJ_J_cluster' OR cvterm.name = 'V_DJ_cluster' OR cvterm.name = 'V_DJ_J_cluster' OR cvterm.name = 'V_VDJ_C_cluster' OR cvterm.name = 'V_VDJ_cluster' OR cvterm.name = 'V_VDJ_J_cluster' OR cvterm.name = 'V_VJ_C_cluster' OR cvterm.name = 'V_VJ_cluster' OR cvterm.name = 'V_VJ_J_cluster' OR cvterm.name = 'V_D_DJ_C_cluster' OR cvterm.name = 'V_D_DJ_cluster' OR cvterm.name = 'V_D_DJ_J_C_cluster' OR cvterm.name = 'V_D_DJ_J_cluster' OR cvterm.name = 'V_D_J_C_cluster' OR cvterm.name = 'V_D_J_cluster' OR cvterm.name = 'DJ_C_cluster' OR cvterm.name = 'DJ_J_C_cluster' OR cvterm.name = 'VDJ_C_cluster' OR cvterm.name = 'V_DJ_C_cluster' OR cvterm.name = 'V_DJ_J_C_cluster' OR cvterm.name = 'V_VDJ_J_C_cluster' OR cvterm.name = 'V_VJ_J_C_cluster' OR cvterm.name = 'J_gene_recombination_feature' OR cvterm.name = 'D_gene_recombination_feature' OR cvterm.name = 'V_gene_recombination_feature' OR cvterm.name = 'heptamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'nonamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'five_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_heptamer' OR cvterm.name = 'five_prime_D_heptamer' OR cvterm.name = 'J_heptamer' OR cvterm.name = 'V_heptamer' OR cvterm.name = 'three_prime_D_nonamer' OR cvterm.name = 'five_prime_D_nonamer' OR cvterm.name = 'J_nonamer' OR cvterm.name = 'V_nonamer' OR cvterm.name = 'recombination_feature_of_rearranged_gene';
  6489. --- ************************************************
  6490. --- *** relation: vertebrate_immune_system_gene_recombination_feature ***
  6491. --- *** relation type: VIEW ***
  6492. --- *** ***
  6493. --- ************************************************
  6494. ---
  6495. CREATE VIEW vertebrate_immune_system_gene_recombination_feature AS
  6496. SELECT
  6497. feature_id AS vertebrate_immune_system_gene_recombination_feature_id,
  6498. feature.*
  6499. FROM
  6500. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6501. WHERE cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_spacer' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_signal_feature' OR cvterm.name = 'D_gene' OR cvterm.name = 'V_gene' OR cvterm.name = 'J_gene' OR cvterm.name = 'C_gene' OR cvterm.name = 'D_J_C_cluster' OR cvterm.name = 'J_C_cluster' OR cvterm.name = 'J_cluster' OR cvterm.name = 'V_cluster' OR cvterm.name = 'V_J_cluster' OR cvterm.name = 'V_J_C_cluster' OR cvterm.name = 'C_cluster' OR cvterm.name = 'D_cluster' OR cvterm.name = 'D_J_cluster' OR cvterm.name = 'three_prime_D_spacer' OR cvterm.name = 'five_prime_D_spacer' OR cvterm.name = 'J_spacer' OR cvterm.name = 'V_spacer' OR cvterm.name = 'VD_gene' OR cvterm.name = 'DJ_gene' OR cvterm.name = 'VDJ_gene' OR cvterm.name = 'VJ_gene' OR cvterm.name = 'DJ_J_cluster' OR cvterm.name = 'VDJ_J_C_cluster' OR cvterm.name = 'VDJ_J_cluster' OR cvterm.name = 'VJ_C_cluster' OR cvterm.name = 'VJ_J_C_cluster' OR cvterm.name = 'VJ_J_cluster' OR cvterm.name = 'D_DJ_C_cluster' OR cvterm.name = 'D_DJ_cluster' OR cvterm.name = 'D_DJ_J_C_cluster' OR cvterm.name = 'D_DJ_J_cluster' OR cvterm.name = 'V_DJ_cluster' OR cvterm.name = 'V_DJ_J_cluster' OR cvterm.name = 'V_VDJ_C_cluster' OR cvterm.name = 'V_VDJ_cluster' OR cvterm.name = 'V_VDJ_J_cluster' OR cvterm.name = 'V_VJ_C_cluster' OR cvterm.name = 'V_VJ_cluster' OR cvterm.name = 'V_VJ_J_cluster' OR cvterm.name = 'V_D_DJ_C_cluster' OR cvterm.name = 'V_D_DJ_cluster' OR cvterm.name = 'V_D_DJ_J_C_cluster' OR cvterm.name = 'V_D_DJ_J_cluster' OR cvterm.name = 'V_D_J_C_cluster' OR cvterm.name = 'V_D_J_cluster' OR cvterm.name = 'DJ_C_cluster' OR cvterm.name = 'DJ_J_C_cluster' OR cvterm.name = 'VDJ_C_cluster' OR cvterm.name = 'V_DJ_C_cluster' OR cvterm.name = 'V_DJ_J_C_cluster' OR cvterm.name = 'V_VDJ_J_C_cluster' OR cvterm.name = 'V_VJ_J_C_cluster' OR cvterm.name = 'J_gene_recombination_feature' OR cvterm.name = 'D_gene_recombination_feature' OR cvterm.name = 'V_gene_recombination_feature' OR cvterm.name = 'heptamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'nonamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'five_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_heptamer' OR cvterm.name = 'five_prime_D_heptamer' OR cvterm.name = 'J_heptamer' OR cvterm.name = 'V_heptamer' OR cvterm.name = 'three_prime_D_nonamer' OR cvterm.name = 'five_prime_D_nonamer' OR cvterm.name = 'J_nonamer' OR cvterm.name = 'V_nonamer' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_feature';
  6502. --- ************************************************
  6503. --- *** relation: j_gene_recombination_feature ***
  6504. --- *** relation type: VIEW ***
  6505. --- *** ***
  6506. --- *** Recombination signal including J-heptame ***
  6507. --- *** r, J-spacer and J-nonamer in 5' of J-reg ***
  6508. --- *** ion of a J-gene or J-sequence. ***
  6509. --- ************************************************
  6510. ---
  6511. CREATE VIEW j_gene_recombination_feature AS
  6512. SELECT
  6513. feature_id AS j_gene_recombination_feature_id,
  6514. feature.*
  6515. FROM
  6516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6517. WHERE cvterm.name = 'J_gene_recombination_feature';
  6518. --- ************************************************
  6519. --- *** relation: clip ***
  6520. --- *** relation type: VIEW ***
  6521. --- *** ***
  6522. --- *** Part of the primary transcript that is c ***
  6523. --- *** lipped off during processing. ***
  6524. --- ************************************************
  6525. ---
  6526. CREATE VIEW clip AS
  6527. SELECT
  6528. feature_id AS clip_id,
  6529. feature.*
  6530. FROM
  6531. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6532. WHERE cvterm.name = 'five_prime_clip' OR cvterm.name = 'three_prime_clip' OR cvterm.name = 'clip';
  6533. --- ************************************************
  6534. --- *** relation: modified_base ***
  6535. --- *** relation type: VIEW ***
  6536. --- *** ***
  6537. --- *** A modified nucleotide, i.e. a nucleotide ***
  6538. --- *** other than A, T, C. G. ***
  6539. --- ************************************************
  6540. ---
  6541. CREATE VIEW modified_base AS
  6542. SELECT
  6543. feature_id AS modified_base_id,
  6544. feature.*
  6545. FROM
  6546. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6547. WHERE cvterm.name = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'modified_base';
  6548. --- ************************************************
  6549. --- *** relation: methylated_base_feature ***
  6550. --- *** relation type: VIEW ***
  6551. --- *** ***
  6552. --- *** A nucleotide modified by methylation. ***
  6553. --- ************************************************
  6554. ---
  6555. CREATE VIEW methylated_base_feature AS
  6556. SELECT
  6557. feature_id AS methylated_base_feature_id,
  6558. feature.*
  6559. FROM
  6560. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6561. WHERE cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'methylated_base_feature';
  6562. --- ************************************************
  6563. --- *** relation: cpg_island ***
  6564. --- *** relation type: VIEW ***
  6565. --- *** ***
  6566. --- *** Regions of a few hundred to a few thousa ***
  6567. --- *** nd bases in vertebrate genomes that are ***
  6568. --- *** relatively GC and CpG rich; they are typ ***
  6569. --- *** ically unmethylated and often found near ***
  6570. --- *** the 5' ends of genes. ***
  6571. --- ************************************************
  6572. ---
  6573. CREATE VIEW cpg_island AS
  6574. SELECT
  6575. feature_id AS cpg_island_id,
  6576. feature.*
  6577. FROM
  6578. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6579. WHERE cvterm.name = 'CpG_island';
  6580. --- ************************************************
  6581. --- *** relation: experimentally_determined ***
  6582. --- *** relation type: VIEW ***
  6583. --- *** ***
  6584. --- *** Attribute to describe a feature that has ***
  6585. --- *** been experimentally verified. ***
  6586. --- ************************************************
  6587. ---
  6588. CREATE VIEW experimentally_determined AS
  6589. SELECT
  6590. feature_id AS experimentally_determined_id,
  6591. feature.*
  6592. FROM
  6593. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6594. WHERE cvterm.name = 'experimentally_determined';
  6595. --- ************************************************
  6596. --- *** relation: stem_loop ***
  6597. --- *** relation type: VIEW ***
  6598. --- *** ***
  6599. --- *** A double-helical region of nucleic acid ***
  6600. --- *** formed by base-pairing between adjacent ***
  6601. --- *** (inverted) complementary sequences. ***
  6602. --- ************************************************
  6603. ---
  6604. CREATE VIEW stem_loop AS
  6605. SELECT
  6606. feature_id AS stem_loop_id,
  6607. feature.*
  6608. FROM
  6609. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6610. WHERE cvterm.name = 'tetraloop' OR cvterm.name = 'stem_loop';
  6611. --- ************************************************
  6612. --- *** relation: direct_repeat ***
  6613. --- *** relation type: VIEW ***
  6614. --- *** ***
  6615. --- *** A repeat where the same sequence is repe ***
  6616. --- *** ated in the same direction. Example: GCT ***
  6617. --- *** GA-----GCTGA. ***
  6618. --- ************************************************
  6619. ---
  6620. CREATE VIEW direct_repeat AS
  6621. SELECT
  6622. feature_id AS direct_repeat_id,
  6623. feature.*
  6624. FROM
  6625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6626. WHERE cvterm.name = 'target_site_duplication' OR cvterm.name = 'CRISPR' OR cvterm.name = 'direct_repeat';
  6627. --- ************************************************
  6628. --- *** relation: tss ***
  6629. --- *** relation type: VIEW ***
  6630. --- *** ***
  6631. --- *** The first base where RNA polymerase begi ***
  6632. --- *** ns to synthesize the RNA transcript. ***
  6633. --- ************************************************
  6634. ---
  6635. CREATE VIEW tss AS
  6636. SELECT
  6637. feature_id AS tss_id,
  6638. feature.*
  6639. FROM
  6640. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6641. WHERE cvterm.name = 'major_TSS' OR cvterm.name = 'minor_TSS' OR cvterm.name = 'TSS';
  6642. --- ************************************************
  6643. --- *** relation: cds ***
  6644. --- *** relation type: VIEW ***
  6645. --- *** ***
  6646. --- *** A contiguous sequence which begins with, ***
  6647. --- *** and includes, a start codon and ends wi ***
  6648. --- *** th, and includes, a stop codon. ***
  6649. --- ************************************************
  6650. ---
  6651. CREATE VIEW cds AS
  6652. SELECT
  6653. feature_id AS cds_id,
  6654. feature.*
  6655. FROM
  6656. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6657. WHERE cvterm.name = 'edited_CDS' OR cvterm.name = 'CDS_fragment' OR cvterm.name = 'CDS_independently_known' OR cvterm.name = 'CDS_predicted' OR cvterm.name = 'orphan_CDS' OR cvterm.name = 'CDS_supported_by_sequence_similarity_data' OR cvterm.name = 'CDS_supported_by_domain_match_data' OR cvterm.name = 'CDS_supported_by_EST_or_cDNA_data' OR cvterm.name = 'CDS';
  6658. --- ************************************************
  6659. --- *** relation: cdna_clone ***
  6660. --- *** relation type: VIEW ***
  6661. --- *** ***
  6662. --- *** Complementary DNA; A piece of DNA copied ***
  6663. --- *** from an mRNA and spliced into a vector ***
  6664. --- *** for propagation in a suitable host. ***
  6665. --- ************************************************
  6666. ---
  6667. CREATE VIEW cdna_clone AS
  6668. SELECT
  6669. feature_id AS cdna_clone_id,
  6670. feature.*
  6671. FROM
  6672. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6673. WHERE cvterm.name = 'validated_cDNA_clone' OR cvterm.name = 'invalidated_cDNA_clone' OR cvterm.name = 'three_prime_RACE_clone' OR cvterm.name = 'chimeric_cDNA_clone' OR cvterm.name = 'genomically_contaminated_cDNA_clone' OR cvterm.name = 'polyA_primed_cDNA_clone' OR cvterm.name = 'partially_processed_cDNA_clone' OR cvterm.name = 'cDNA_clone';
  6674. --- ************************************************
  6675. --- *** relation: start_codon ***
  6676. --- *** relation type: VIEW ***
  6677. --- *** ***
  6678. --- *** First codon to be translated by a riboso ***
  6679. --- *** me. ***
  6680. --- ************************************************
  6681. ---
  6682. CREATE VIEW start_codon AS
  6683. SELECT
  6684. feature_id AS start_codon_id,
  6685. feature.*
  6686. FROM
  6687. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6688. WHERE cvterm.name = 'non_canonical_start_codon' OR cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'start_codon';
  6689. --- ************************************************
  6690. --- *** relation: stop_codon ***
  6691. --- *** relation type: VIEW ***
  6692. --- *** ***
  6693. --- *** In mRNA, a set of three nucleotides that ***
  6694. --- *** indicates the end of information for pr ***
  6695. --- *** otein synthesis. ***
  6696. --- ************************************************
  6697. ---
  6698. CREATE VIEW stop_codon AS
  6699. SELECT
  6700. feature_id AS stop_codon_id,
  6701. feature.*
  6702. FROM
  6703. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6704. WHERE cvterm.name = 'stop_codon';
  6705. --- ************************************************
  6706. --- *** relation: intronic_splice_enhancer ***
  6707. --- *** relation type: VIEW ***
  6708. --- *** ***
  6709. --- *** Sequences within the intron that modulat ***
  6710. --- *** e splice site selection for some introns ***
  6711. --- *** . ***
  6712. --- ************************************************
  6713. ---
  6714. CREATE VIEW intronic_splice_enhancer AS
  6715. SELECT
  6716. feature_id AS intronic_splice_enhancer_id,
  6717. feature.*
  6718. FROM
  6719. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6720. WHERE cvterm.name = 'intronic_splice_enhancer';
  6721. --- ************************************************
  6722. --- *** relation: mrna_with_plus_1_frameshift ***
  6723. --- *** relation type: VIEW ***
  6724. --- *** ***
  6725. --- *** An mRNA with a plus 1 frameshift. ***
  6726. --- ************************************************
  6727. ---
  6728. CREATE VIEW mrna_with_plus_1_frameshift AS
  6729. SELECT
  6730. feature_id AS mrna_with_plus_1_frameshift_id,
  6731. feature.*
  6732. FROM
  6733. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6734. WHERE cvterm.name = 'mRNA_with_plus_1_frameshift';
  6735. --- ************************************************
  6736. --- *** relation: nuclease_hypersensitive_site ***
  6737. --- *** relation type: VIEW ***
  6738. --- *** ***
  6739. --- ************************************************
  6740. ---
  6741. CREATE VIEW nuclease_hypersensitive_site AS
  6742. SELECT
  6743. feature_id AS nuclease_hypersensitive_site_id,
  6744. feature.*
  6745. FROM
  6746. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6747. WHERE cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'nuclease_hypersensitive_site';
  6748. --- ************************************************
  6749. --- *** relation: coding_start ***
  6750. --- *** relation type: VIEW ***
  6751. --- *** ***
  6752. --- *** The first base to be translated into pro ***
  6753. --- *** tein. ***
  6754. --- ************************************************
  6755. ---
  6756. CREATE VIEW coding_start AS
  6757. SELECT
  6758. feature_id AS coding_start_id,
  6759. feature.*
  6760. FROM
  6761. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6762. WHERE cvterm.name = 'coding_start';
  6763. --- ************************************************
  6764. --- *** relation: tag ***
  6765. --- *** relation type: VIEW ***
  6766. --- *** ***
  6767. --- *** A nucleotide sequence that may be used t ***
  6768. --- *** o identify a larger sequence. ***
  6769. --- ************************************************
  6770. ---
  6771. CREATE VIEW tag AS
  6772. SELECT
  6773. feature_id AS tag_id,
  6774. feature.*
  6775. FROM
  6776. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6777. WHERE cvterm.name = 'SAGE_tag' OR cvterm.name = 'STS' OR cvterm.name = 'EST' OR cvterm.name = 'engineered_tag' OR cvterm.name = 'five_prime_EST' OR cvterm.name = 'three_prime_EST' OR cvterm.name = 'UST' OR cvterm.name = 'RST' OR cvterm.name = 'three_prime_UST' OR cvterm.name = 'five_prime_UST' OR cvterm.name = 'three_prime_RST' OR cvterm.name = 'five_prime_RST' OR cvterm.name = 'tag';
  6778. --- ************************************************
  6779. --- *** relation: rrna_large_subunit_primary_transcript ***
  6780. --- *** relation type: VIEW ***
  6781. --- *** ***
  6782. --- *** A primary transcript encoding a large ri ***
  6783. --- *** bosomal subunit RNA. ***
  6784. --- ************************************************
  6785. ---
  6786. CREATE VIEW rrna_large_subunit_primary_transcript AS
  6787. SELECT
  6788. feature_id AS rrna_large_subunit_primary_transcript_id,
  6789. feature.*
  6790. FROM
  6791. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6792. WHERE cvterm.name = 'rRNA_large_subunit_primary_transcript';
  6793. --- ************************************************
  6794. --- *** relation: sage_tag ***
  6795. --- *** relation type: VIEW ***
  6796. --- *** ***
  6797. --- *** A short diagnostic sequence tag, serial ***
  6798. --- *** analysis of gene expression (SAGE), that ***
  6799. --- *** allows the quantitative and simultaneou ***
  6800. --- *** s analysis of a large number of transcri ***
  6801. --- *** pts. ***
  6802. --- ************************************************
  6803. ---
  6804. CREATE VIEW sage_tag AS
  6805. SELECT
  6806. feature_id AS sage_tag_id,
  6807. feature.*
  6808. FROM
  6809. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6810. WHERE cvterm.name = 'SAGE_tag';
  6811. --- ************************************************
  6812. --- *** relation: coding_end ***
  6813. --- *** relation type: VIEW ***
  6814. --- *** ***
  6815. --- *** The last base to be translated into prot ***
  6816. --- *** ein. It does not include the stop codon. ***
  6817. --- ************************************************
  6818. ---
  6819. CREATE VIEW coding_end AS
  6820. SELECT
  6821. feature_id AS coding_end_id,
  6822. feature.*
  6823. FROM
  6824. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6825. WHERE cvterm.name = 'coding_end';
  6826. --- ************************************************
  6827. --- *** relation: microarray_oligo ***
  6828. --- *** relation type: VIEW ***
  6829. --- *** ***
  6830. --- ************************************************
  6831. ---
  6832. CREATE VIEW microarray_oligo AS
  6833. SELECT
  6834. feature_id AS microarray_oligo_id,
  6835. feature.*
  6836. FROM
  6837. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6838. WHERE cvterm.name = 'microarray_oligo';
  6839. --- ************************************************
  6840. --- *** relation: mrna_with_plus_2_frameshift ***
  6841. --- *** relation type: VIEW ***
  6842. --- *** ***
  6843. --- *** An mRNA with a plus 2 frameshift. ***
  6844. --- ************************************************
  6845. ---
  6846. CREATE VIEW mrna_with_plus_2_frameshift AS
  6847. SELECT
  6848. feature_id AS mrna_with_plus_2_frameshift_id,
  6849. feature.*
  6850. FROM
  6851. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6852. WHERE cvterm.name = 'mRNA_with_plus_2_frameshift';
  6853. --- ************************************************
  6854. --- *** relation: conserved_region ***
  6855. --- *** relation type: VIEW ***
  6856. --- *** ***
  6857. --- *** Region of sequence similarity by descent ***
  6858. --- *** from a common ancestor. ***
  6859. --- ************************************************
  6860. ---
  6861. CREATE VIEW conserved_region AS
  6862. SELECT
  6863. feature_id AS conserved_region_id,
  6864. feature.*
  6865. FROM
  6866. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6867. WHERE cvterm.name = 'coding_conserved_region' OR cvterm.name = 'nc_conserved_region' OR cvterm.name = 'RR_tract' OR cvterm.name = 'homologous_region' OR cvterm.name = 'centromere_DNA_Element_I' OR cvterm.name = 'centromere_DNA_Element_II' OR cvterm.name = 'centromere_DNA_Element_III' OR cvterm.name = 'X_element' OR cvterm.name = 'U_box' OR cvterm.name = 'regional_centromere_central_core' OR cvterm.name = 'syntenic_region' OR cvterm.name = 'paralogous_region' OR cvterm.name = 'orthologous_region' OR cvterm.name = 'conserved_region';
  6868. --- ************************************************
  6869. --- *** relation: sts ***
  6870. --- *** relation type: VIEW ***
  6871. --- *** ***
  6872. --- *** Short (typically a few hundred base pair ***
  6873. --- *** s) DNA sequence that has a single occurr ***
  6874. --- *** ence in a genome and whose location and ***
  6875. --- *** base sequence are known. ***
  6876. --- ************************************************
  6877. ---
  6878. CREATE VIEW sts AS
  6879. SELECT
  6880. feature_id AS sts_id,
  6881. feature.*
  6882. FROM
  6883. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6884. WHERE cvterm.name = 'STS';
  6885. --- ************************************************
  6886. --- *** relation: coding_conserved_region ***
  6887. --- *** relation type: VIEW ***
  6888. --- *** ***
  6889. --- *** Coding region of sequence similarity by ***
  6890. --- *** descent from a common ancestor. ***
  6891. --- ************************************************
  6892. ---
  6893. CREATE VIEW coding_conserved_region AS
  6894. SELECT
  6895. feature_id AS coding_conserved_region_id,
  6896. feature.*
  6897. FROM
  6898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6899. WHERE cvterm.name = 'coding_conserved_region';
  6900. --- ************************************************
  6901. --- *** relation: exon_junction ***
  6902. --- *** relation type: VIEW ***
  6903. --- *** ***
  6904. --- *** The boundary between two exons in a proc ***
  6905. --- *** essed transcript. ***
  6906. --- ************************************************
  6907. ---
  6908. CREATE VIEW exon_junction AS
  6909. SELECT
  6910. feature_id AS exon_junction_id,
  6911. feature.*
  6912. FROM
  6913. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6914. WHERE cvterm.name = 'exon_junction';
  6915. --- ************************************************
  6916. --- *** relation: nc_conserved_region ***
  6917. --- *** relation type: VIEW ***
  6918. --- *** ***
  6919. --- *** Non-coding region of sequence similarity ***
  6920. --- *** by descent from a common ancestor. ***
  6921. --- ************************************************
  6922. ---
  6923. CREATE VIEW nc_conserved_region AS
  6924. SELECT
  6925. feature_id AS nc_conserved_region_id,
  6926. feature.*
  6927. FROM
  6928. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6929. WHERE cvterm.name = 'nc_conserved_region';
  6930. --- ************************************************
  6931. --- *** relation: mrna_with_minus_2_frameshift ***
  6932. --- *** relation type: VIEW ***
  6933. --- *** ***
  6934. --- *** A mRNA with a minus 2 frameshift. ***
  6935. --- ************************************************
  6936. ---
  6937. CREATE VIEW mrna_with_minus_2_frameshift AS
  6938. SELECT
  6939. feature_id AS mrna_with_minus_2_frameshift_id,
  6940. feature.*
  6941. FROM
  6942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6943. WHERE cvterm.name = 'mRNA_with_minus_2_frameshift';
  6944. --- ************************************************
  6945. --- *** relation: pseudogene ***
  6946. --- *** relation type: VIEW ***
  6947. --- *** ***
  6948. --- *** A sequence that closely resembles a know ***
  6949. --- *** n functional gene, at another locus with ***
  6950. --- *** in a genome, that is non-functional as a ***
  6951. --- *** consequence of (usually several) mutati ***
  6952. --- *** ons that prevent either its transcriptio ***
  6953. --- *** n or translation (or both). In general, ***
  6954. --- *** pseudogenes result from either reverse t ***
  6955. --- *** ranscription of a transcript of their "n ***
  6956. --- *** ormal" paralog (SO:0000043) (in which ca ***
  6957. --- *** se the pseudogene typically lacks intron ***
  6958. --- *** s and includes a poly(A) tail) or from r ***
  6959. --- *** ecombination (SO:0000044) (in which case ***
  6960. --- *** the pseudogene is typically a tandem du ***
  6961. --- *** plication of its "normal" paralog). ***
  6962. --- ************************************************
  6963. ---
  6964. CREATE VIEW pseudogene AS
  6965. SELECT
  6966. feature_id AS pseudogene_id,
  6967. feature.*
  6968. FROM
  6969. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6970. WHERE cvterm.name = 'processed_pseudogene' OR cvterm.name = 'non_processed_pseudogene' OR cvterm.name = 'pseudogene_by_unequal_crossing_over' OR cvterm.name = 'nuclear_mt_pseudogene' OR cvterm.name = 'cassette_pseudogene' OR cvterm.name = 'duplicated_pseudogene' OR cvterm.name = 'unitary_pseudogene' OR cvterm.name = 'pseudogene';
  6971. --- ************************************************
  6972. --- *** relation: rnai_reagent ***
  6973. --- *** relation type: VIEW ***
  6974. --- *** ***
  6975. --- *** A double stranded RNA duplex, at least 2 ***
  6976. --- *** 0bp long, used experimentally to inhibit ***
  6977. --- *** gene function by RNA interference. ***
  6978. --- ************************************************
  6979. ---
  6980. CREATE VIEW rnai_reagent AS
  6981. SELECT
  6982. feature_id AS rnai_reagent_id,
  6983. feature.*
  6984. FROM
  6985. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6986. WHERE cvterm.name = 'RNAi_reagent';
  6987. --- ************************************************
  6988. --- *** relation: mite ***
  6989. --- *** relation type: VIEW ***
  6990. --- *** ***
  6991. --- *** A highly repetitive and short (100-500 b ***
  6992. --- *** ase pair) transposable element with term ***
  6993. --- *** inal inverted repeats (TIR) and target s ***
  6994. --- *** ite duplication (TSD). MITEs do not enco ***
  6995. --- *** de proteins. ***
  6996. --- ************************************************
  6997. ---
  6998. CREATE VIEW mite AS
  6999. SELECT
  7000. feature_id AS mite_id,
  7001. feature.*
  7002. FROM
  7003. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7004. WHERE cvterm.name = 'MITE';
  7005. --- ************************************************
  7006. --- *** relation: recombination_hotspot ***
  7007. --- *** relation type: VIEW ***
  7008. --- *** ***
  7009. --- *** A region in a genome which promotes reco ***
  7010. --- *** mbination. ***
  7011. --- ************************************************
  7012. ---
  7013. CREATE VIEW recombination_hotspot AS
  7014. SELECT
  7015. feature_id AS recombination_hotspot_id,
  7016. feature.*
  7017. FROM
  7018. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7019. WHERE cvterm.name = 'recombination_hotspot';
  7020. --- ************************************************
  7021. --- *** relation: chromosome ***
  7022. --- *** relation type: VIEW ***
  7023. --- *** ***
  7024. --- *** Structural unit composed of a nucleic ac ***
  7025. --- *** id molecule which controls its own repli ***
  7026. --- *** cation through the interaction of specif ***
  7027. --- *** ic proteins at one or more origins of re ***
  7028. --- *** plication. ***
  7029. --- ************************************************
  7030. ---
  7031. CREATE VIEW chromosome AS
  7032. SELECT
  7033. feature_id AS chromosome_id,
  7034. feature.*
  7035. FROM
  7036. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7037. WHERE cvterm.name = 'mitochondrial_chromosome' OR cvterm.name = 'chloroplast_chromosome' OR cvterm.name = 'chromoplast_chromosome' OR cvterm.name = 'cyanelle_chromosome' OR cvterm.name = 'leucoplast_chromosome' OR cvterm.name = 'macronuclear_chromosome' OR cvterm.name = 'micronuclear_chromosome' OR cvterm.name = 'nuclear_chromosome' OR cvterm.name = 'nucleomorphic_chromosome' OR cvterm.name = 'DNA_chromosome' OR cvterm.name = 'RNA_chromosome' OR cvterm.name = 'apicoplast_chromosome' OR cvterm.name = 'double_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_DNA_chromosome' OR cvterm.name = 'linear_double_stranded_DNA_chromosome' OR cvterm.name = 'circular_double_stranded_DNA_chromosome' OR cvterm.name = 'linear_single_stranded_DNA_chromosome' OR cvterm.name = 'circular_single_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_RNA_chromosome' OR cvterm.name = 'double_stranded_RNA_chromosome' OR cvterm.name = 'linear_single_stranded_RNA_chromosome' OR cvterm.name = 'circular_single_stranded_RNA_chromosome' OR cvterm.name = 'linear_double_stranded_RNA_chromosome' OR cvterm.name = 'circular_double_stranded_RNA_chromosome' OR cvterm.name = 'chromosome';
  7038. --- ************************************************
  7039. --- *** relation: chromosome_band ***
  7040. --- *** relation type: VIEW ***
  7041. --- *** ***
  7042. --- *** A cytologically distinguishable feature ***
  7043. --- *** of a chromosome, often made visible by s ***
  7044. --- *** taining, and usually alternating light a ***
  7045. --- *** nd dark. ***
  7046. --- ************************************************
  7047. ---
  7048. CREATE VIEW chromosome_band AS
  7049. SELECT
  7050. feature_id AS chromosome_band_id,
  7051. feature.*
  7052. FROM
  7053. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7054. WHERE cvterm.name = 'chromosome_band';
  7055. --- ************************************************
  7056. --- *** relation: site_specific_recombination_target_region ***
  7057. --- *** relation type: VIEW ***
  7058. --- *** ***
  7059. --- ************************************************
  7060. ---
  7061. CREATE VIEW site_specific_recombination_target_region AS
  7062. SELECT
  7063. feature_id AS site_specific_recombination_target_region_id,
  7064. feature.*
  7065. FROM
  7066. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7067. WHERE cvterm.name = 'integration_excision_site' OR cvterm.name = 'resolution_site' OR cvterm.name = 'inversion_site' OR cvterm.name = 'inversion_site_part' OR cvterm.name = 'attI_site' OR cvterm.name = 'attP_site' OR cvterm.name = 'attB_site' OR cvterm.name = 'attL_site' OR cvterm.name = 'attR_site' OR cvterm.name = 'attC_site' OR cvterm.name = 'attCtn_site' OR cvterm.name = 'loxP_site' OR cvterm.name = 'dif_site' OR cvterm.name = 'FRT_site' OR cvterm.name = 'IRLinv_site' OR cvterm.name = 'IRRinv_site' OR cvterm.name = 'site_specific_recombination_target_region';
  7068. --- ************************************************
  7069. --- *** relation: match ***
  7070. --- *** relation type: VIEW ***
  7071. --- *** ***
  7072. --- *** A region of sequence, aligned to another ***
  7073. --- *** sequence with some statistical signific ***
  7074. --- *** ance, using an algorithm such as BLAST o ***
  7075. --- *** r SIM4. ***
  7076. --- ************************************************
  7077. ---
  7078. CREATE VIEW match AS
  7079. SELECT
  7080. feature_id AS match_id,
  7081. feature.*
  7082. FROM
  7083. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7084. WHERE cvterm.name = 'nucleotide_match' OR cvterm.name = 'protein_match' OR cvterm.name = 'expressed_sequence_match' OR cvterm.name = 'cross_genome_match' OR cvterm.name = 'translated_nucleotide_match' OR cvterm.name = 'primer_match' OR cvterm.name = 'EST_match' OR cvterm.name = 'cDNA_match' OR cvterm.name = 'UST_match' OR cvterm.name = 'RST_match' OR cvterm.name = 'match';
  7085. --- ************************************************
  7086. --- *** relation: splice_enhancer ***
  7087. --- *** relation type: VIEW ***
  7088. --- *** ***
  7089. --- *** Region of a transcript that regulates sp ***
  7090. --- *** licing. ***
  7091. --- ************************************************
  7092. ---
  7093. CREATE VIEW splice_enhancer AS
  7094. SELECT
  7095. feature_id AS splice_enhancer_id,
  7096. feature.*
  7097. FROM
  7098. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7099. WHERE cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'splice_enhancer';
  7100. --- ************************************************
  7101. --- *** relation: est ***
  7102. --- *** relation type: VIEW ***
  7103. --- *** ***
  7104. --- *** A tag produced from a single sequencing ***
  7105. --- *** read from a cDNA clone or PCR product; t ***
  7106. --- *** ypically a few hundred base pairs long. ***
  7107. --- ************************************************
  7108. ---
  7109. CREATE VIEW est AS
  7110. SELECT
  7111. feature_id AS est_id,
  7112. feature.*
  7113. FROM
  7114. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7115. WHERE cvterm.name = 'five_prime_EST' OR cvterm.name = 'three_prime_EST' OR cvterm.name = 'UST' OR cvterm.name = 'RST' OR cvterm.name = 'three_prime_UST' OR cvterm.name = 'five_prime_UST' OR cvterm.name = 'three_prime_RST' OR cvterm.name = 'five_prime_RST' OR cvterm.name = 'EST';
  7116. --- ************************************************
  7117. --- *** relation: loxp_site ***
  7118. --- *** relation type: VIEW ***
  7119. --- *** ***
  7120. --- ************************************************
  7121. ---
  7122. CREATE VIEW loxp_site AS
  7123. SELECT
  7124. feature_id AS loxp_site_id,
  7125. feature.*
  7126. FROM
  7127. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7128. WHERE cvterm.name = 'loxP_site';
  7129. --- ************************************************
  7130. --- *** relation: nucleotide_match ***
  7131. --- *** relation type: VIEW ***
  7132. --- *** ***
  7133. --- *** A match against a nucleotide sequence. ***
  7134. --- ************************************************
  7135. ---
  7136. CREATE VIEW nucleotide_match AS
  7137. SELECT
  7138. feature_id AS nucleotide_match_id,
  7139. feature.*
  7140. FROM
  7141. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7142. WHERE cvterm.name = 'expressed_sequence_match' OR cvterm.name = 'cross_genome_match' OR cvterm.name = 'translated_nucleotide_match' OR cvterm.name = 'primer_match' OR cvterm.name = 'EST_match' OR cvterm.name = 'cDNA_match' OR cvterm.name = 'UST_match' OR cvterm.name = 'RST_match' OR cvterm.name = 'nucleotide_match';
  7143. --- ************************************************
  7144. --- *** relation: nucleic_acid ***
  7145. --- *** relation type: VIEW ***
  7146. --- *** ***
  7147. --- *** An attribute describing a sequence consi ***
  7148. --- *** sting of nucleobases bound to repeating ***
  7149. --- *** units. The forms found in nature are deo ***
  7150. --- *** xyribonucleic acid (DNA), where the repe ***
  7151. --- *** ating units are 2-deoxy-D-ribose rings c ***
  7152. --- *** onnected to a phosphate backbone, and ri ***
  7153. --- *** bonucleic acid (RNA), where the repeatin ***
  7154. --- *** g units are D-ribose rings connected to ***
  7155. --- *** a phosphate backbone. ***
  7156. --- ************************************************
  7157. ---
  7158. CREATE VIEW nucleic_acid AS
  7159. SELECT
  7160. feature_id AS nucleic_acid_id,
  7161. feature.*
  7162. FROM
  7163. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7164. WHERE cvterm.name = 'DNA' OR cvterm.name = 'RNA' OR cvterm.name = 'morpholino_backbone' OR cvterm.name = 'PNA' OR cvterm.name = 'LNA' OR cvterm.name = 'TNA' OR cvterm.name = 'GNA' OR cvterm.name = 'cDNA' OR cvterm.name = 'genomic_DNA' OR cvterm.name = 'single_stranded_cDNA' OR cvterm.name = 'double_stranded_cDNA' OR cvterm.name = 'R_GNA' OR cvterm.name = 'S_GNA' OR cvterm.name = 'nucleic_acid';
  7165. --- ************************************************
  7166. --- *** relation: protein_match ***
  7167. --- *** relation type: VIEW ***
  7168. --- *** ***
  7169. --- *** A match against a protein sequence. ***
  7170. --- ************************************************
  7171. ---
  7172. CREATE VIEW protein_match AS
  7173. SELECT
  7174. feature_id AS protein_match_id,
  7175. feature.*
  7176. FROM
  7177. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7178. WHERE cvterm.name = 'protein_match';
  7179. --- ************************************************
  7180. --- *** relation: frt_site ***
  7181. --- *** relation type: VIEW ***
  7182. --- *** ***
  7183. --- *** An inversion site found on the Saccharom ***
  7184. --- *** yces cerevisiae 2 micron plasmid. ***
  7185. --- ************************************************
  7186. ---
  7187. CREATE VIEW frt_site AS
  7188. SELECT
  7189. feature_id AS frt_site_id,
  7190. feature.*
  7191. FROM
  7192. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7193. WHERE cvterm.name = 'FRT_site';
  7194. --- ************************************************
  7195. --- *** relation: synthetic_sequence ***
  7196. --- *** relation type: VIEW ***
  7197. --- *** ***
  7198. --- *** An attribute to decide a sequence of nuc ***
  7199. --- *** leotides, nucleotide analogs, or amino a ***
  7200. --- *** cids that has been designed by an experi ***
  7201. --- *** menter and which may, or may not, corres ***
  7202. --- *** pond with any natural sequence. ***
  7203. --- ************************************************
  7204. ---
  7205. CREATE VIEW synthetic_sequence AS
  7206. SELECT
  7207. feature_id AS synthetic_sequence_id,
  7208. feature.*
  7209. FROM
  7210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7211. WHERE cvterm.name = 'random_sequence' OR cvterm.name = 'designed_sequence' OR cvterm.name = 'synthetic_sequence';
  7212. --- ************************************************
  7213. --- *** relation: dna ***
  7214. --- *** relation type: VIEW ***
  7215. --- *** ***
  7216. --- *** An attribute describing a sequence consi ***
  7217. --- *** sting of nucleobases bound to a repeatin ***
  7218. --- *** g unit made of a 2-deoxy-D-ribose ring c ***
  7219. --- *** onnected to a phosphate backbone. ***
  7220. --- ************************************************
  7221. ---
  7222. CREATE VIEW dna AS
  7223. SELECT
  7224. feature_id AS dna_id,
  7225. feature.*
  7226. FROM
  7227. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7228. WHERE cvterm.name = 'cDNA' OR cvterm.name = 'genomic_DNA' OR cvterm.name = 'single_stranded_cDNA' OR cvterm.name = 'double_stranded_cDNA' OR cvterm.name = 'DNA';
  7229. --- ************************************************
  7230. --- *** relation: sequence_assembly ***
  7231. --- *** relation type: VIEW ***
  7232. --- *** ***
  7233. --- *** A sequence of nucleotides that has been ***
  7234. --- *** algorithmically derived from an alignmen ***
  7235. --- *** t of two or more different sequences. ***
  7236. --- ************************************************
  7237. ---
  7238. CREATE VIEW sequence_assembly AS
  7239. SELECT
  7240. feature_id AS sequence_assembly_id,
  7241. feature.*
  7242. FROM
  7243. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7244. WHERE cvterm.name = 'supercontig' OR cvterm.name = 'contig' OR cvterm.name = 'tiling_path' OR cvterm.name = 'virtual_sequence' OR cvterm.name = 'golden_path' OR cvterm.name = 'ultracontig' OR cvterm.name = 'expressed_sequence_assembly' OR cvterm.name = 'sequence_assembly';
  7245. --- ************************************************
  7246. --- *** relation: group_1_intron_homing_endonuclease_target_region ***
  7247. --- *** relation type: VIEW ***
  7248. --- *** ***
  7249. --- *** A region of intronic nucleotide sequence ***
  7250. --- *** targeted by a nuclease enzyme. ***
  7251. --- ************************************************
  7252. ---
  7253. CREATE VIEW group_1_intron_homing_endonuclease_target_region AS
  7254. SELECT
  7255. feature_id AS group_1_intron_homing_endonuclease_target_region_id,
  7256. feature.*
  7257. FROM
  7258. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7259. WHERE cvterm.name = 'group_1_intron_homing_endonuclease_target_region';
  7260. --- ************************************************
  7261. --- *** relation: haplotype_block ***
  7262. --- *** relation type: VIEW ***
  7263. --- *** ***
  7264. --- *** A region of the genome which is co-inher ***
  7265. --- *** ited as the result of the lack of histor ***
  7266. --- *** ic recombination within it. ***
  7267. --- ************************************************
  7268. ---
  7269. CREATE VIEW haplotype_block AS
  7270. SELECT
  7271. feature_id AS haplotype_block_id,
  7272. feature.*
  7273. FROM
  7274. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7275. WHERE cvterm.name = 'haplotype_block';
  7276. --- ************************************************
  7277. --- *** relation: rna ***
  7278. --- *** relation type: VIEW ***
  7279. --- *** ***
  7280. --- *** An attribute describing a sequence consi ***
  7281. --- *** sting of nucleobases bound to a repeatin ***
  7282. --- *** g unit made of a D-ribose ring connected ***
  7283. --- *** to a phosphate backbone. ***
  7284. --- ************************************************
  7285. ---
  7286. CREATE VIEW rna AS
  7287. SELECT
  7288. feature_id AS rna_id,
  7289. feature.*
  7290. FROM
  7291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7292. WHERE cvterm.name = 'RNA';
  7293. --- ************************************************
  7294. --- *** relation: flanked ***
  7295. --- *** relation type: VIEW ***
  7296. --- *** ***
  7297. --- *** An attribute describing a region that is ***
  7298. --- *** bounded either side by a particular kin ***
  7299. --- *** d of region. ***
  7300. --- ************************************************
  7301. ---
  7302. CREATE VIEW flanked AS
  7303. SELECT
  7304. feature_id AS flanked_id,
  7305. feature.*
  7306. FROM
  7307. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7308. WHERE cvterm.name = 'floxed' OR cvterm.name = 'FRT_flanked' OR cvterm.name = 'flanked';
  7309. --- ************************************************
  7310. --- *** relation: floxed ***
  7311. --- *** relation type: VIEW ***
  7312. --- *** ***
  7313. --- *** An attribute describing sequence that is ***
  7314. --- *** flanked by Lox-P sites. ***
  7315. --- ************************************************
  7316. ---
  7317. CREATE VIEW floxed AS
  7318. SELECT
  7319. feature_id AS floxed_id,
  7320. feature.*
  7321. FROM
  7322. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7323. WHERE cvterm.name = 'floxed';
  7324. --- ************************************************
  7325. --- *** relation: codon ***
  7326. --- *** relation type: VIEW ***
  7327. --- *** ***
  7328. --- *** A set of (usually) three nucleotide base ***
  7329. --- *** s in a DNA or RNA sequence, which togeth ***
  7330. --- *** er code for a unique amino acid or the t ***
  7331. --- *** ermination of translation and are contai ***
  7332. --- *** ned within the CDS. ***
  7333. --- ************************************************
  7334. ---
  7335. CREATE VIEW codon AS
  7336. SELECT
  7337. feature_id AS codon_id,
  7338. feature.*
  7339. FROM
  7340. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7341. WHERE cvterm.name = 'recoded_codon' OR cvterm.name = 'start_codon' OR cvterm.name = 'stop_codon' OR cvterm.name = 'stop_codon_read_through' OR cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'non_canonical_start_codon' OR cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'codon';
  7342. --- ************************************************
  7343. --- *** relation: frt_flanked ***
  7344. --- *** relation type: VIEW ***
  7345. --- *** ***
  7346. --- *** An attribute to describe sequence that i ***
  7347. --- *** s flanked by the FLP recombinase recogni ***
  7348. --- *** tion site, FRT. ***
  7349. --- ************************************************
  7350. ---
  7351. CREATE VIEW frt_flanked AS
  7352. SELECT
  7353. feature_id AS frt_flanked_id,
  7354. feature.*
  7355. FROM
  7356. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7357. WHERE cvterm.name = 'FRT_flanked';
  7358. --- ************************************************
  7359. --- *** relation: invalidated_by_chimeric_cdna ***
  7360. --- *** relation type: VIEW ***
  7361. --- *** ***
  7362. --- *** A cDNA clone constructed from more than ***
  7363. --- *** one mRNA. Usually an experimental artifa ***
  7364. --- *** ct. ***
  7365. --- ************************************************
  7366. ---
  7367. CREATE VIEW invalidated_by_chimeric_cdna AS
  7368. SELECT
  7369. feature_id AS invalidated_by_chimeric_cdna_id,
  7370. feature.*
  7371. FROM
  7372. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7373. WHERE cvterm.name = 'invalidated_by_chimeric_cDNA';
  7374. --- ************************************************
  7375. --- *** relation: floxed_gene ***
  7376. --- *** relation type: VIEW ***
  7377. --- *** ***
  7378. --- *** A transgene that is floxed. ***
  7379. --- ************************************************
  7380. ---
  7381. CREATE VIEW floxed_gene AS
  7382. SELECT
  7383. feature_id AS floxed_gene_id,
  7384. feature.*
  7385. FROM
  7386. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7387. WHERE cvterm.name = 'floxed_gene';
  7388. --- ************************************************
  7389. --- *** relation: transposable_element_flanking_region ***
  7390. --- *** relation type: VIEW ***
  7391. --- *** ***
  7392. --- *** The region of sequence surrounding a tra ***
  7393. --- *** nsposable element. ***
  7394. --- ************************************************
  7395. ---
  7396. CREATE VIEW transposable_element_flanking_region AS
  7397. SELECT
  7398. feature_id AS transposable_element_flanking_region_id,
  7399. feature.*
  7400. FROM
  7401. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7402. WHERE cvterm.name = 'transposable_element_flanking_region';
  7403. --- ************************************************
  7404. --- *** relation: integron ***
  7405. --- *** relation type: VIEW ***
  7406. --- *** ***
  7407. --- *** A region encoding an integrase which act ***
  7408. --- *** s at a site adjacent to it (attI_site) t ***
  7409. --- *** o insert DNA which must include but is n ***
  7410. --- *** ot limited to an attC_site. ***
  7411. --- ************************************************
  7412. ---
  7413. CREATE VIEW integron AS
  7414. SELECT
  7415. feature_id AS integron_id,
  7416. feature.*
  7417. FROM
  7418. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7419. WHERE cvterm.name = 'integron';
  7420. --- ************************************************
  7421. --- *** relation: insertion_site ***
  7422. --- *** relation type: VIEW ***
  7423. --- *** ***
  7424. --- *** The junction where an insertion occurred ***
  7425. --- *** . ***
  7426. --- ************************************************
  7427. ---
  7428. CREATE VIEW insertion_site AS
  7429. SELECT
  7430. feature_id AS insertion_site_id,
  7431. feature.*
  7432. FROM
  7433. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7434. WHERE cvterm.name = 'transposable_element_insertion_site' OR cvterm.name = 'insertion_site';
  7435. --- ************************************************
  7436. --- *** relation: atti_site ***
  7437. --- *** relation type: VIEW ***
  7438. --- *** ***
  7439. --- *** A region within an integron, adjacent to ***
  7440. --- *** an integrase, at which site specific re ***
  7441. --- *** combination involving an attC_site takes ***
  7442. --- *** place. ***
  7443. --- ************************************************
  7444. ---
  7445. CREATE VIEW atti_site AS
  7446. SELECT
  7447. feature_id AS atti_site_id,
  7448. feature.*
  7449. FROM
  7450. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7451. WHERE cvterm.name = 'attI_site';
  7452. --- ************************************************
  7453. --- *** relation: transposable_element_insertion_site ***
  7454. --- *** relation type: VIEW ***
  7455. --- *** ***
  7456. --- *** The junction in a genome where a transpo ***
  7457. --- *** sable_element has inserted. ***
  7458. --- ************************************************
  7459. ---
  7460. CREATE VIEW transposable_element_insertion_site AS
  7461. SELECT
  7462. feature_id AS transposable_element_insertion_site_id,
  7463. feature.*
  7464. FROM
  7465. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7466. WHERE cvterm.name = 'transposable_element_insertion_site';
  7467. --- ************************************************
  7468. --- *** relation: small_regulatory_ncrna ***
  7469. --- *** relation type: VIEW ***
  7470. --- *** ***
  7471. --- *** A non-coding RNA, usually with a specifi ***
  7472. --- *** c secondary structure, that acts to regu ***
  7473. --- *** late gene expression. ***
  7474. --- ************************************************
  7475. ---
  7476. CREATE VIEW small_regulatory_ncrna AS
  7477. SELECT
  7478. feature_id AS small_regulatory_ncrna_id,
  7479. feature.*
  7480. FROM
  7481. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7482. WHERE cvterm.name = 'miRNA' OR cvterm.name = 'RNA_6S' OR cvterm.name = 'CsrB_RsmB_RNA' OR cvterm.name = 'DsrA_RNA' OR cvterm.name = 'OxyS_RNA' OR cvterm.name = 'RprA_RNA' OR cvterm.name = 'RRE_RNA' OR cvterm.name = 'spot_42_RNA' OR cvterm.name = 'tmRNA' OR cvterm.name = 'GcvB_RNA' OR cvterm.name = 'small_regulatory_ncRNA';
  7483. --- ************************************************
  7484. --- *** relation: conjugative_transposon ***
  7485. --- *** relation type: VIEW ***
  7486. --- *** ***
  7487. --- *** A transposon that encodes function requi ***
  7488. --- *** red for conjugation. ***
  7489. --- ************************************************
  7490. ---
  7491. CREATE VIEW conjugative_transposon AS
  7492. SELECT
  7493. feature_id AS conjugative_transposon_id,
  7494. feature.*
  7495. FROM
  7496. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7497. WHERE cvterm.name = 'conjugative_transposon';
  7498. --- ************************************************
  7499. --- *** relation: enzymatic_rna ***
  7500. --- *** relation type: VIEW ***
  7501. --- *** ***
  7502. --- *** An RNA sequence that has catalytic activ ***
  7503. --- *** ity with or without an associated ribonu ***
  7504. --- *** cleoprotein. ***
  7505. --- ************************************************
  7506. ---
  7507. CREATE VIEW enzymatic_rna AS
  7508. SELECT
  7509. feature_id AS enzymatic_rna_id,
  7510. feature.*
  7511. FROM
  7512. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7513. WHERE cvterm.name = 'ribozyme' OR cvterm.name = 'enzymatic_RNA';
  7514. --- ************************************************
  7515. --- *** relation: recombinationally_inverted_gene ***
  7516. --- *** relation type: VIEW ***
  7517. --- *** ***
  7518. --- *** A recombinationally rearranged gene by i ***
  7519. --- *** nversion. ***
  7520. --- ************************************************
  7521. ---
  7522. CREATE VIEW recombinationally_inverted_gene AS
  7523. SELECT
  7524. feature_id AS recombinationally_inverted_gene_id,
  7525. feature.*
  7526. FROM
  7527. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7528. WHERE cvterm.name = 'recombinationally_inverted_gene';
  7529. --- ************************************************
  7530. --- *** relation: ribozyme ***
  7531. --- *** relation type: VIEW ***
  7532. --- *** ***
  7533. --- *** An RNA with catalytic activity. ***
  7534. --- ************************************************
  7535. ---
  7536. CREATE VIEW ribozyme AS
  7537. SELECT
  7538. feature_id AS ribozyme_id,
  7539. feature.*
  7540. FROM
  7541. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7542. WHERE cvterm.name = 'ribozyme';
  7543. --- ************************************************
  7544. --- *** relation: rrna_5_8s ***
  7545. --- *** relation type: VIEW ***
  7546. --- *** ***
  7547. --- *** 5_8S ribosomal RNA (5. 8S rRNA) is a com ***
  7548. --- *** ponent of the large subunit of the eukar ***
  7549. --- *** yotic ribosome. It is transcribed by RNA ***
  7550. --- *** polymerase I as part of the 45S precurs ***
  7551. --- *** or that also contains 18S and 28S rRNA. ***
  7552. --- *** Functionally, it is thought that 5.8S rR ***
  7553. --- *** NA may be involved in ribosome transloca ***
  7554. --- *** tion. It is also known to form covalent ***
  7555. --- *** linkage to the p53 tumour suppressor pro ***
  7556. --- *** tein. 5_8S rRNA is also found in archaea ***
  7557. --- *** . ***
  7558. --- ************************************************
  7559. ---
  7560. CREATE VIEW rrna_5_8s AS
  7561. SELECT
  7562. feature_id AS rrna_5_8s_id,
  7563. feature.*
  7564. FROM
  7565. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7566. WHERE cvterm.name = 'rRNA_5_8S';
  7567. --- ************************************************
  7568. --- *** relation: rna_6s ***
  7569. --- *** relation type: VIEW ***
  7570. --- *** ***
  7571. --- *** A small (184-nt in E. coli) RNA that for ***
  7572. --- *** ms a hairpin type structure. 6S RNA asso ***
  7573. --- *** ciates with RNA polymerase in a highly s ***
  7574. --- *** pecific manner. 6S RNA represses express ***
  7575. --- *** ion from a sigma70-dependent promoter du ***
  7576. --- *** ring stationary phase. ***
  7577. --- ************************************************
  7578. ---
  7579. CREATE VIEW rna_6s AS
  7580. SELECT
  7581. feature_id AS rna_6s_id,
  7582. feature.*
  7583. FROM
  7584. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7585. WHERE cvterm.name = 'RNA_6S';
  7586. --- ************************************************
  7587. --- *** relation: csrb_rsmb_rna ***
  7588. --- *** relation type: VIEW ***
  7589. --- *** ***
  7590. --- *** An enterobacterial RNA that binds the Cs ***
  7591. --- *** rA protein. The CsrB RNAs contain a cons ***
  7592. --- *** erved motif CAGGXXG that is found in up ***
  7593. --- *** to 18 copies and has been suggested to b ***
  7594. --- *** ind CsrA. The Csr regulatory system has ***
  7595. --- *** a strong negative regulatory effect on g ***
  7596. --- *** lycogen biosynthesis, glyconeogenesis an ***
  7597. --- *** d glycogen catabolism and a positive reg ***
  7598. --- *** ulatory effect on glycolysis. In other b ***
  7599. --- *** acteria such as Erwinia caratovara the R ***
  7600. --- *** smA protein has been shown to regulate t ***
  7601. --- *** he production of virulence determinants, ***
  7602. --- *** such extracellular enzymes. RsmA binds ***
  7603. --- *** to RsmB regulatory RNA which is also a m ***
  7604. --- *** ember of this family. ***
  7605. --- ************************************************
  7606. ---
  7607. CREATE VIEW csrb_rsmb_rna AS
  7608. SELECT
  7609. feature_id AS csrb_rsmb_rna_id,
  7610. feature.*
  7611. FROM
  7612. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7613. WHERE cvterm.name = 'CsrB_RsmB_RNA';
  7614. --- ************************************************
  7615. --- *** relation: dsra_rna ***
  7616. --- *** relation type: VIEW ***
  7617. --- *** ***
  7618. --- *** DsrA RNA regulates both transcription, b ***
  7619. --- *** y overcoming transcriptional silencing b ***
  7620. --- *** y the nucleoid-associated H-NS protein, ***
  7621. --- *** and translation, by promoting efficient ***
  7622. --- *** translation of the stress sigma factor, ***
  7623. --- *** RpoS. These two activities of DsrA can b ***
  7624. --- *** e separated by mutation: the first of th ***
  7625. --- *** ree stem-loops of the 85 nucleotide RNA ***
  7626. --- *** is necessary for RpoS translation but no ***
  7627. --- *** t for anti-H-NS action, while the second ***
  7628. --- *** stem-loop is essential for antisilencin ***
  7629. --- *** g and less critical for RpoS translation ***
  7630. --- *** . The third stem-loop, which behaves as ***
  7631. --- *** a transcription terminator, can be subst ***
  7632. --- *** ituted by the trp transcription terminat ***
  7633. --- *** or without loss of either DsrA function. ***
  7634. --- *** The sequence of the first stem-loop of ***
  7635. --- *** DsrA is complementary with the upstream ***
  7636. --- *** leader portion of RpoS messenger RNA, su ***
  7637. --- *** ggesting that pairing of DsrA with the R ***
  7638. --- *** poS message might be important for trans ***
  7639. --- *** lational regulation. ***
  7640. --- ************************************************
  7641. ---
  7642. CREATE VIEW dsra_rna AS
  7643. SELECT
  7644. feature_id AS dsra_rna_id,
  7645. feature.*
  7646. FROM
  7647. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7648. WHERE cvterm.name = 'GcvB_RNA' OR cvterm.name = 'DsrA_RNA';
  7649. --- ************************************************
  7650. --- *** relation: gcvb_rna ***
  7651. --- *** relation type: VIEW ***
  7652. --- *** ***
  7653. --- *** A small untranslated RNA involved in exp ***
  7654. --- *** ression of the dipeptide and oligopeptid ***
  7655. --- *** e transport systems in Escherichia coli. ***
  7656. --- ************************************************
  7657. ---
  7658. CREATE VIEW gcvb_rna AS
  7659. SELECT
  7660. feature_id AS gcvb_rna_id,
  7661. feature.*
  7662. FROM
  7663. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7664. WHERE cvterm.name = 'GcvB_RNA';
  7665. --- ************************************************
  7666. --- *** relation: hammerhead_ribozyme ***
  7667. --- *** relation type: VIEW ***
  7668. --- *** ***
  7669. --- *** A small catalytic RNA motif that catalyz ***
  7670. --- *** es self-cleavage reaction. Its name come ***
  7671. --- *** s from its secondary structure which res ***
  7672. --- *** embles a carpenter's hammer. The hammerh ***
  7673. --- *** ead ribozyme is involved in the replicat ***
  7674. --- *** ion of some viroid and some satellite RN ***
  7675. --- *** As. ***
  7676. --- ************************************************
  7677. ---
  7678. CREATE VIEW hammerhead_ribozyme AS
  7679. SELECT
  7680. feature_id AS hammerhead_ribozyme_id,
  7681. feature.*
  7682. FROM
  7683. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7684. WHERE cvterm.name = 'hammerhead_ribozyme';
  7685. --- ************************************************
  7686. --- *** relation: group_iia_intron ***
  7687. --- *** relation type: VIEW ***
  7688. --- *** ***
  7689. --- ************************************************
  7690. ---
  7691. CREATE VIEW group_iia_intron AS
  7692. SELECT
  7693. feature_id AS group_iia_intron_id,
  7694. feature.*
  7695. FROM
  7696. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7697. WHERE cvterm.name = 'group_IIA_intron';
  7698. --- ************************************************
  7699. --- *** relation: group_iib_intron ***
  7700. --- *** relation type: VIEW ***
  7701. --- *** ***
  7702. --- ************************************************
  7703. ---
  7704. CREATE VIEW group_iib_intron AS
  7705. SELECT
  7706. feature_id AS group_iib_intron_id,
  7707. feature.*
  7708. FROM
  7709. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7710. WHERE cvterm.name = 'group_IIB_intron';
  7711. --- ************************************************
  7712. --- *** relation: micf_rna ***
  7713. --- *** relation type: VIEW ***
  7714. --- *** ***
  7715. --- *** A non-translated 93 nt antisense RNA tha ***
  7716. --- *** t binds its target ompF mRNA and regulat ***
  7717. --- *** es ompF expression by inhibiting transla ***
  7718. --- *** tion and inducing degradation of the mes ***
  7719. --- *** sage. ***
  7720. --- ************************************************
  7721. ---
  7722. CREATE VIEW micf_rna AS
  7723. SELECT
  7724. feature_id AS micf_rna_id,
  7725. feature.*
  7726. FROM
  7727. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7728. WHERE cvterm.name = 'MicF_RNA';
  7729. --- ************************************************
  7730. --- *** relation: oxys_rna ***
  7731. --- *** relation type: VIEW ***
  7732. --- *** ***
  7733. --- *** A small untranslated RNA which is induce ***
  7734. --- *** d in response to oxidative stress in Esc ***
  7735. --- *** herichia coli. Acts as a global regulato ***
  7736. --- *** r to activate or repress the expression ***
  7737. --- *** of as many as 40 genes, including the fh ***
  7738. --- *** lA-encoded transcriptional activator and ***
  7739. --- *** the rpoS-encoded sigma(s) subunit of RN ***
  7740. --- *** A polymerase. OxyS is bound by the Hfq p ***
  7741. --- *** rotein, that increases the OxyS RNA inte ***
  7742. --- *** raction with its target messages. ***
  7743. --- ************************************************
  7744. ---
  7745. CREATE VIEW oxys_rna AS
  7746. SELECT
  7747. feature_id AS oxys_rna_id,
  7748. feature.*
  7749. FROM
  7750. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7751. WHERE cvterm.name = 'OxyS_RNA';
  7752. --- ************************************************
  7753. --- *** relation: rnase_mrp_rna ***
  7754. --- *** relation type: VIEW ***
  7755. --- *** ***
  7756. --- *** The RNA molecule essential for the catal ***
  7757. --- *** ytic activity of RNase MRP, an enzymatic ***
  7758. --- *** ally active ribonucleoprotein with two d ***
  7759. --- *** istinct roles in eukaryotes. In mitochon ***
  7760. --- *** dria it plays a direct role in the initi ***
  7761. --- *** ation of mitochondrial DNA replication. ***
  7762. --- *** In the nucleus it is involved in precurs ***
  7763. --- *** or rRNA processing, where it cleaves the ***
  7764. --- *** internal transcribed spacer 1 between 1 ***
  7765. --- *** 8S and 5.8S rRNAs. ***
  7766. --- ************************************************
  7767. ---
  7768. CREATE VIEW rnase_mrp_rna AS
  7769. SELECT
  7770. feature_id AS rnase_mrp_rna_id,
  7771. feature.*
  7772. FROM
  7773. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7774. WHERE cvterm.name = 'RNase_MRP_RNA';
  7775. --- ************************************************
  7776. --- *** relation: rnase_p_rna ***
  7777. --- *** relation type: VIEW ***
  7778. --- *** ***
  7779. --- *** The RNA component of Ribonuclease P (RNa ***
  7780. --- *** se P), a ubiquitous endoribonuclease, fo ***
  7781. --- *** und in archaea, bacteria and eukarya as ***
  7782. --- *** well as chloroplasts and mitochondria. I ***
  7783. --- *** ts best characterized activity is the ge ***
  7784. --- *** neration of mature 5 prime ends of tRNAs ***
  7785. --- *** by cleaving the 5 prime leader elements ***
  7786. --- *** of precursor-tRNAs. Cellular RNase Ps a ***
  7787. --- *** re ribonucleoproteins. RNA from bacteria ***
  7788. --- *** l RNase Ps retains its catalytic activit ***
  7789. --- *** y in the absence of the protein subunit, ***
  7790. --- *** i.e. it is a ribozyme. Isolated eukaryo ***
  7791. --- *** tic and archaeal RNase P RNA has not bee ***
  7792. --- *** n shown to retain its catalytic function ***
  7793. --- *** , but is still essential for the catalyt ***
  7794. --- *** ic activity of the holoenzyme. Although ***
  7795. --- *** the archaeal and eukaryotic holoenzymes ***
  7796. --- *** have a much greater protein content than ***
  7797. --- *** the bacterial ones, the RNA cores from ***
  7798. --- *** all the three lineages are homologous. H ***
  7799. --- *** elices corresponding to P1, P2, P3, P4, ***
  7800. --- *** and P10/11 are common to all cellular RN ***
  7801. --- *** ase P RNAs. Yet, there is considerable s ***
  7802. --- *** equence variation, particularly among th ***
  7803. --- *** e eukaryotic RNAs. ***
  7804. --- ************************************************
  7805. ---
  7806. CREATE VIEW rnase_p_rna AS
  7807. SELECT
  7808. feature_id AS rnase_p_rna_id,
  7809. feature.*
  7810. FROM
  7811. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7812. WHERE cvterm.name = 'RNase_P_RNA';
  7813. --- ************************************************
  7814. --- *** relation: rpra_rna ***
  7815. --- *** relation type: VIEW ***
  7816. --- *** ***
  7817. --- *** Translational regulation of the stationa ***
  7818. --- *** ry phase sigma factor RpoS is mediated b ***
  7819. --- *** y the formation of a double-stranded RNA ***
  7820. --- *** stem-loop structure in the upstream reg ***
  7821. --- *** ion of the rpoS messenger RNA, occluding ***
  7822. --- *** the translation initiation site. Clones ***
  7823. --- *** carrying rprA (RpoS regulator RNA) incr ***
  7824. --- *** eased the translation of RpoS. The rprA ***
  7825. --- *** gene encodes a 106 nucleotide regulatory ***
  7826. --- *** RNA. As with DsrA Rfam:RF00014, RprA is ***
  7827. --- *** predicted to form three stem-loops. Thu ***
  7828. --- *** s, at least two small RNAs, DsrA and Rpr ***
  7829. --- *** A, participate in the positive regulatio ***
  7830. --- *** n of RpoS translation. Unlike DsrA, RprA ***
  7831. --- *** does not have an extensive region of co ***
  7832. --- *** mplementarity to the RpoS leader, leavin ***
  7833. --- *** g its mechanism of action unclear. RprA ***
  7834. --- *** is non-essential. ***
  7835. --- ************************************************
  7836. ---
  7837. CREATE VIEW rpra_rna AS
  7838. SELECT
  7839. feature_id AS rpra_rna_id,
  7840. feature.*
  7841. FROM
  7842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7843. WHERE cvterm.name = 'RprA_RNA';
  7844. --- ************************************************
  7845. --- *** relation: rre_rna ***
  7846. --- *** relation type: VIEW ***
  7847. --- *** ***
  7848. --- *** The Rev response element (RRE) is encode ***
  7849. --- *** d within the HIV-env gene. Rev is an ess ***
  7850. --- *** ential regulatory protein of HIV that bi ***
  7851. --- *** nds an internal loop of the RRE leading, ***
  7852. --- *** encouraging further Rev-RRE binding. Th ***
  7853. --- *** is RNP complex is critical for mRNA expo ***
  7854. --- *** rt and hence for expression of the HIV s ***
  7855. --- *** tructural proteins. ***
  7856. --- ************************************************
  7857. ---
  7858. CREATE VIEW rre_rna AS
  7859. SELECT
  7860. feature_id AS rre_rna_id,
  7861. feature.*
  7862. FROM
  7863. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7864. WHERE cvterm.name = 'RRE_RNA';
  7865. --- ************************************************
  7866. --- *** relation: spot_42_rna ***
  7867. --- *** relation type: VIEW ***
  7868. --- *** ***
  7869. --- *** A 109-nucleotide RNA of E. coli that see ***
  7870. --- *** ms to have a regulatory role on the gala ***
  7871. --- *** ctose operon. Changes in Spot 42 levels ***
  7872. --- *** are implicated in affecting DNA polymera ***
  7873. --- *** se I levels. ***
  7874. --- ************************************************
  7875. ---
  7876. CREATE VIEW spot_42_rna AS
  7877. SELECT
  7878. feature_id AS spot_42_rna_id,
  7879. feature.*
  7880. FROM
  7881. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7882. WHERE cvterm.name = 'spot_42_RNA';
  7883. --- ************************************************
  7884. --- *** relation: telomerase_rna ***
  7885. --- *** relation type: VIEW ***
  7886. --- *** ***
  7887. --- *** The RNA component of telomerase, a rever ***
  7888. --- *** se transcriptase that synthesizes telome ***
  7889. --- *** ric DNA. ***
  7890. --- ************************************************
  7891. ---
  7892. CREATE VIEW telomerase_rna AS
  7893. SELECT
  7894. feature_id AS telomerase_rna_id,
  7895. feature.*
  7896. FROM
  7897. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7898. WHERE cvterm.name = 'telomerase_RNA';
  7899. --- ************************************************
  7900. --- *** relation: u1_snrna ***
  7901. --- *** relation type: VIEW ***
  7902. --- *** ***
  7903. --- *** U1 is a small nuclear RNA (snRNA) compon ***
  7904. --- *** ent of the spliceosome (involved in pre- ***
  7905. --- *** mRNA splicing). Its 5' end forms complem ***
  7906. --- *** entary base pairs with the 5' splice jun ***
  7907. --- *** ction, thus defining the 5' donor site o ***
  7908. --- *** f an intron. There are significant diffe ***
  7909. --- *** rences in sequence and secondary structu ***
  7910. --- *** re between metazoan and yeast U1 snRNAs, ***
  7911. --- *** the latter being much longer (568 nucle ***
  7912. --- *** otides as compared to 164 nucleotides in ***
  7913. --- *** human). Nevertheless, secondary structu ***
  7914. --- *** re predictions suggest that all U1 snRNA ***
  7915. --- *** s share a 'common core' consisting of he ***
  7916. --- *** lices I, II, the proximal region of III, ***
  7917. --- *** and IV. ***
  7918. --- ************************************************
  7919. ---
  7920. CREATE VIEW u1_snrna AS
  7921. SELECT
  7922. feature_id AS u1_snrna_id,
  7923. feature.*
  7924. FROM
  7925. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7926. WHERE cvterm.name = 'U1_snRNA';
  7927. --- ************************************************
  7928. --- *** relation: u2_snrna ***
  7929. --- *** relation type: VIEW ***
  7930. --- *** ***
  7931. --- *** U2 is a small nuclear RNA (snRNA) compon ***
  7932. --- *** ent of the spliceosome (involved in pre- ***
  7933. --- *** mRNA splicing). Complementary binding be ***
  7934. --- *** tween U2 snRNA (in an area lying towards ***
  7935. --- *** the 5' end but 3' to hairpin I) and the ***
  7936. --- *** branchpoint sequence (BPS) of the intro ***
  7937. --- *** n results in the bulging out of an unpai ***
  7938. --- *** red adenine, on the BPS, which initiates ***
  7939. --- *** a nucleophilic attack at the intronic 5 ***
  7940. --- *** ' splice site, thus starting the first o ***
  7941. --- *** f two transesterification reactions that ***
  7942. --- *** mediate splicing. ***
  7943. --- ************************************************
  7944. ---
  7945. CREATE VIEW u2_snrna AS
  7946. SELECT
  7947. feature_id AS u2_snrna_id,
  7948. feature.*
  7949. FROM
  7950. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7951. WHERE cvterm.name = 'U2_snRNA';
  7952. --- ************************************************
  7953. --- *** relation: u4_snrna ***
  7954. --- *** relation type: VIEW ***
  7955. --- *** ***
  7956. --- *** U4 small nuclear RNA (U4 snRNA) is a com ***
  7957. --- *** ponent of the major U2-dependent spliceo ***
  7958. --- *** some. It forms a duplex with U6, and wit ***
  7959. --- *** h each splicing round, it is displaced f ***
  7960. --- *** rom U6 (and the spliceosome) in an ATP-d ***
  7961. --- *** ependent manner, allowing U6 to refold a ***
  7962. --- *** nd create the active site for splicing c ***
  7963. --- *** atalysis. A recycling process involving ***
  7964. --- *** protein Prp24 re-anneals U4 and U6. ***
  7965. --- ************************************************
  7966. ---
  7967. CREATE VIEW u4_snrna AS
  7968. SELECT
  7969. feature_id AS u4_snrna_id,
  7970. feature.*
  7971. FROM
  7972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7973. WHERE cvterm.name = 'U4_snRNA';
  7974. --- ************************************************
  7975. --- *** relation: u4atac_snrna ***
  7976. --- *** relation type: VIEW ***
  7977. --- *** ***
  7978. --- *** An snRNA required for the splicing of th ***
  7979. --- *** e minor U12-dependent class of eukaryoti ***
  7980. --- *** c nuclear introns. It forms a base paire ***
  7981. --- *** d complex with U6atac_snRNA (SO:0000397) ***
  7982. --- *** . ***
  7983. --- ************************************************
  7984. ---
  7985. CREATE VIEW u4atac_snrna AS
  7986. SELECT
  7987. feature_id AS u4atac_snrna_id,
  7988. feature.*
  7989. FROM
  7990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7991. WHERE cvterm.name = 'U4atac_snRNA';
  7992. --- ************************************************
  7993. --- *** relation: u5_snrna ***
  7994. --- *** relation type: VIEW ***
  7995. --- *** ***
  7996. --- *** U5 RNA is a component of both types of k ***
  7997. --- *** nown spliceosome. The precise function o ***
  7998. --- *** f this molecule is unknown, though it is ***
  7999. --- *** known that the 5' loop is required for ***
  8000. --- *** splice site selection and p220 binding, ***
  8001. --- *** and that both the 3' stem-loop and the S ***
  8002. --- *** m site are important for Sm protein bind ***
  8003. --- *** ing and cap methylation. ***
  8004. --- ************************************************
  8005. ---
  8006. CREATE VIEW u5_snrna AS
  8007. SELECT
  8008. feature_id AS u5_snrna_id,
  8009. feature.*
  8010. FROM
  8011. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8012. WHERE cvterm.name = 'U5_snRNA';
  8013. --- ************************************************
  8014. --- *** relation: u6_snrna ***
  8015. --- *** relation type: VIEW ***
  8016. --- *** ***
  8017. --- *** U6 snRNA is a component of the spliceoso ***
  8018. --- *** me which is involved in splicing pre-mRN ***
  8019. --- *** A. The putative secondary structure cons ***
  8020. --- *** ensus base pairing is confined to a shor ***
  8021. --- *** t 5' stem loop, but U6 snRNA is thought ***
  8022. --- *** to form extensive base-pair interactions ***
  8023. --- *** with U4 snRNA. ***
  8024. --- ************************************************
  8025. ---
  8026. CREATE VIEW u6_snrna AS
  8027. SELECT
  8028. feature_id AS u6_snrna_id,
  8029. feature.*
  8030. FROM
  8031. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8032. WHERE cvterm.name = 'U6_snRNA';
  8033. --- ************************************************
  8034. --- *** relation: u6atac_snrna ***
  8035. --- *** relation type: VIEW ***
  8036. --- *** ***
  8037. --- *** U6atac_snRNA is an snRNA required for th ***
  8038. --- *** e splicing of the minor U12-dependent cl ***
  8039. --- *** ass of eukaryotic nuclear introns. It fo ***
  8040. --- *** rms a base paired complex with U4atac_sn ***
  8041. --- *** RNA (SO:0000394). ***
  8042. --- ************************************************
  8043. ---
  8044. CREATE VIEW u6atac_snrna AS
  8045. SELECT
  8046. feature_id AS u6atac_snrna_id,
  8047. feature.*
  8048. FROM
  8049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8050. WHERE cvterm.name = 'U6atac_snRNA';
  8051. --- ************************************************
  8052. --- *** relation: u11_snrna ***
  8053. --- *** relation type: VIEW ***
  8054. --- *** ***
  8055. --- *** U11 snRNA plays a role in splicing of th ***
  8056. --- *** e minor U12-dependent class of eukaryoti ***
  8057. --- *** c nuclear introns, similar to U1 snRNA i ***
  8058. --- *** n the major class spliceosome it base pa ***
  8059. --- *** irs to the conserved 5' splice site sequ ***
  8060. --- *** ence. ***
  8061. --- ************************************************
  8062. ---
  8063. CREATE VIEW u11_snrna AS
  8064. SELECT
  8065. feature_id AS u11_snrna_id,
  8066. feature.*
  8067. FROM
  8068. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8069. WHERE cvterm.name = 'U11_snRNA';
  8070. --- ************************************************
  8071. --- *** relation: u12_snrna ***
  8072. --- *** relation type: VIEW ***
  8073. --- *** ***
  8074. --- *** The U12 small nuclear (snRNA), together ***
  8075. --- *** with U4atac/U6atac, U5, and U11 snRNAs a ***
  8076. --- *** nd associated proteins, forms a spliceos ***
  8077. --- *** ome that cleaves a divergent class of lo ***
  8078. --- *** w-abundance pre-mRNA introns. ***
  8079. --- ************************************************
  8080. ---
  8081. CREATE VIEW u12_snrna AS
  8082. SELECT
  8083. feature_id AS u12_snrna_id,
  8084. feature.*
  8085. FROM
  8086. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8087. WHERE cvterm.name = 'U12_snRNA';
  8088. --- ************************************************
  8089. --- *** relation: sequence_attribute ***
  8090. --- *** relation type: VIEW ***
  8091. --- *** ***
  8092. --- *** An attribute describes a quality of sequ ***
  8093. --- *** ence. ***
  8094. --- ************************************************
  8095. ---
  8096. CREATE VIEW sequence_attribute AS
  8097. SELECT
  8098. feature_id AS sequence_attribute_id,
  8099. feature.*
  8100. FROM
  8101. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8102. WHERE cvterm.name = 'polymer_attribute' OR cvterm.name = 'feature_attribute' OR cvterm.name = 'sequence_location' OR cvterm.name = 'variant_quality' OR cvterm.name = 'nucleic_acid' OR cvterm.name = 'synthetic_sequence' OR cvterm.name = 'topology_attribute' OR cvterm.name = 'peptidyl' OR cvterm.name = 'DNA' OR cvterm.name = 'RNA' OR cvterm.name = 'morpholino_backbone' OR cvterm.name = 'PNA' OR cvterm.name = 'LNA' OR cvterm.name = 'TNA' OR cvterm.name = 'GNA' OR cvterm.name = 'cDNA' OR cvterm.name = 'genomic_DNA' OR cvterm.name = 'single_stranded_cDNA' OR cvterm.name = 'double_stranded_cDNA' OR cvterm.name = 'R_GNA' OR cvterm.name = 'S_GNA' OR cvterm.name = 'random_sequence' OR cvterm.name = 'designed_sequence' OR cvterm.name = 'linear' OR cvterm.name = 'circular' OR cvterm.name = 'transcript_attribute' OR cvterm.name = 'bound_by_factor' OR cvterm.name = 'flanked' OR cvterm.name = 'gene_attribute' OR cvterm.name = 'retrotransposed' OR cvterm.name = 'transgenic' OR cvterm.name = 'natural' OR cvterm.name = 'engineered' OR cvterm.name = 'foreign' OR cvterm.name = 'fusion' OR cvterm.name = 'rescue' OR cvterm.name = 'wild_type' OR cvterm.name = 'conserved' OR cvterm.name = 'status' OR cvterm.name = 'intermediate' OR cvterm.name = 'recombinationally_rearranged' OR cvterm.name = 'cryptic' OR cvterm.name = 'strand_attribute' OR cvterm.name = 'direction_attribute' OR cvterm.name = 'enzymatic' OR cvterm.name = 'mobile' OR cvterm.name = 'alteration_attribute' OR cvterm.name = 'experimental_feature_attribute' OR cvterm.name = 'edited' OR cvterm.name = 'capped' OR cvterm.name = 'mRNA_attribute' OR cvterm.name = 'trans_spliced' OR cvterm.name = 'alternatively_spliced' OR cvterm.name = 'monocistronic' OR cvterm.name = 'polycistronic' OR cvterm.name = 'polyadenylated' OR cvterm.name = 'exemplar' OR cvterm.name = 'frameshift' OR cvterm.name = 'recoded' OR cvterm.name = 'minus_1_frameshift' OR cvterm.name = 'minus_2_frameshift' OR cvterm.name = 'plus_1_frameshift' OR cvterm.name = 'plus_2_framshift' OR cvterm.name = 'codon_redefined' OR cvterm.name = 'recoded_by_translational_bypass' OR cvterm.name = 'translationally_frameshifted' OR cvterm.name = 'minus_1_translationally_frameshifted' OR cvterm.name = 'plus_1_translationally_frameshifted' OR cvterm.name = 'dicistronic' OR cvterm.name = 'bound_by_protein' OR cvterm.name = 'bound_by_nucleic_acid' OR cvterm.name = 'floxed' OR cvterm.name = 'FRT_flanked' OR cvterm.name = 'protein_coding' OR cvterm.name = 'non_protein_coding' OR cvterm.name = 'gene_to_gene_feature' OR cvterm.name = 'gene_array_member' OR cvterm.name = 'regulated' OR cvterm.name = 'epigenetically_modified' OR cvterm.name = 'encodes_alternately_spliced_transcripts' OR cvterm.name = 'encodes_alternate_transcription_start_sites' OR cvterm.name = 'intein_containing' OR cvterm.name = 'miRNA_encoding' OR cvterm.name = 'rRNA_encoding' OR cvterm.name = 'scRNA_encoding' OR cvterm.name = 'snoRNA_encoding' OR cvterm.name = 'snRNA_encoding' OR cvterm.name = 'SRP_RNA_encoding' OR cvterm.name = 'stRNA_encoding' OR cvterm.name = 'tmRNA_encoding' OR cvterm.name = 'tRNA_encoding' OR cvterm.name = 'gRNA_encoding' OR cvterm.name = 'C_D_box_snoRNA_encoding' OR cvterm.name = 'H_ACA_box_snoRNA_encoding' OR cvterm.name = 'overlapping' OR cvterm.name = 'inside_intron' OR cvterm.name = 'five_prime_three_prime_overlap' OR cvterm.name = 'five_prime_five_prime_overlap' OR cvterm.name = 'three_prime_three_prime_overlap' OR cvterm.name = 'three_prime_five_prime_overlap' OR cvterm.name = 'antisense' OR cvterm.name = 'inside_intron_antiparallel' OR cvterm.name = 'inside_intron_parallel' OR cvterm.name = 'operon_member' OR cvterm.name = 'gene_cassette_member' OR cvterm.name = 'gene_subarray_member' OR cvterm.name = 'member_of_regulon' OR cvterm.name = 'cassette_array_member' OR cvterm.name = 'transcriptionally_regulated' OR cvterm.name = 'post_translationally_regulated' OR cvterm.name = 'translationally_regulated' OR cvterm.name = 'imprinted' OR cvterm.name = 'transcriptionally_constitutive' OR cvterm.name = 'transcriptionally_induced' OR cvterm.name = 'transcriptionally_repressed' OR cvterm.name = 'autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'silenced' OR cvterm.name = 'silenced_by_DNA_modification' OR cvterm.name = 'silenced_by_RNA_interference' OR cvterm.name = 'silenced_by_histone_modification' OR cvterm.name = 'silenced_by_DNA_methylation' OR cvterm.name = 'silenced_by_histone_methylation' OR cvterm.name = 'silenced_by_histone_deacetylation' OR cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'post_translationally_regulated_by_protein_stability' OR cvterm.name = 'post_translationally_regulated_by_protein_modification' OR cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'imprinted' OR cvterm.name = 'allelically_excluded' OR cvterm.name = 'rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'encodes_1_polypeptide' OR cvterm.name = 'encodes_greater_than_1_polypeptide' OR cvterm.name = 'encodes_disjoint_polypeptides' OR cvterm.name = 'encodes_overlapping_peptides' OR cvterm.name = 'encodes_different_polypeptides_different_stop' OR cvterm.name = 'encodes_overlapping_peptides_different_start' OR cvterm.name = 'encodes_overlapping_polypeptides_different_start_and_stop' OR cvterm.name = 'homologous' OR cvterm.name = 'syntenic' OR cvterm.name = 'orthologous' OR cvterm.name = 'paralogous' OR cvterm.name = 'fragmentary' OR cvterm.name = 'predicted' OR cvterm.name = 'validated' OR cvterm.name = 'invalidated' OR cvterm.name = 'independently_known' OR cvterm.name = 'consensus' OR cvterm.name = 'low_complexity' OR cvterm.name = 'whole_genome_sequence_status' OR cvterm.name = 'supported_by_sequence_similarity' OR cvterm.name = 'orphan' OR cvterm.name = 'predicted_by_ab_initio_computation' OR cvterm.name = 'supported_by_domain_match' OR cvterm.name = 'supported_by_EST_or_cDNA' OR cvterm.name = 'experimentally_determined' OR cvterm.name = 'invalidated_by_chimeric_cDNA' OR cvterm.name = 'invalidated_by_genomic_contamination' OR cvterm.name = 'invalidated_by_genomic_polyA_primed_cDNA' OR cvterm.name = 'invalidated_by_partial_processing' OR cvterm.name = 'standard_draft' OR cvterm.name = 'high_quality_draft' OR cvterm.name = 'improved_high_quality_draft' OR cvterm.name = 'annotation_directed_improved_draft' OR cvterm.name = 'noncontiguous_finished' OR cvterm.name = 'finished_genome' OR cvterm.name = 'single' OR cvterm.name = 'double' OR cvterm.name = 'forward' OR cvterm.name = 'reverse' OR cvterm.name = 'ribozymic' OR cvterm.name = 'chromosomal_variation_attribute' OR cvterm.name = 'insertion_attribute' OR cvterm.name = 'inversion_attribute' OR cvterm.name = 'translocaton_attribute' OR cvterm.name = 'duplication_attribute' OR cvterm.name = 'intrachromosomal' OR cvterm.name = 'interchromosomal' OR cvterm.name = 'tandem' OR cvterm.name = 'direct' OR cvterm.name = 'inverted' OR cvterm.name = 'pericentric' OR cvterm.name = 'paracentric' OR cvterm.name = 'reciprocal' OR cvterm.name = 'insertional' OR cvterm.name = 'free' OR cvterm.name = 'score' OR cvterm.name = 'quality_value' OR cvterm.name = 'organelle_sequence' OR cvterm.name = 'plasmid_location' OR cvterm.name = 'proviral_location' OR cvterm.name = 'macronuclear_sequence' OR cvterm.name = 'micronuclear_sequence' OR cvterm.name = 'mitochondrial_sequence' OR cvterm.name = 'nuclear_sequence' OR cvterm.name = 'nucleomorphic_sequence' OR cvterm.name = 'plastid_sequence' OR cvterm.name = 'mitochondrial_DNA' OR cvterm.name = 'apicoplast_sequence' OR cvterm.name = 'chromoplast_sequence' OR cvterm.name = 'chloroplast_sequence' OR cvterm.name = 'cyanelle_sequence' OR cvterm.name = 'leucoplast_sequence' OR cvterm.name = 'proplastid_sequence' OR cvterm.name = 'chloroplast_DNA' OR cvterm.name = 'endogenous_retroviral_sequence' OR cvterm.name = 'variant_origin' OR cvterm.name = 'variant_frequency' OR cvterm.name = 'variant_phenotype' OR cvterm.name = 'maternal_variant' OR cvterm.name = 'paternal_variant' OR cvterm.name = 'somatic_variant' OR cvterm.name = 'germline_variant' OR cvterm.name = 'pedigree_specific_variant' OR cvterm.name = 'population_specific_variant' OR cvterm.name = 'de_novo_variant' OR cvterm.name = 'unique_variant' OR cvterm.name = 'rare_variant' OR cvterm.name = 'polymorphic_variant' OR cvterm.name = 'common_variant' OR cvterm.name = 'fixed_variant' OR cvterm.name = 'benign_variant' OR cvterm.name = 'disease_associated_variant' OR cvterm.name = 'disease_causing_variant' OR cvterm.name = 'lethal_variant' OR cvterm.name = 'quantitative_variant' OR cvterm.name = 'sequence_attribute';
  8103. --- ************************************************
  8104. --- *** relation: gene_attribute ***
  8105. --- *** relation type: VIEW ***
  8106. --- *** ***
  8107. --- ************************************************
  8108. ---
  8109. CREATE VIEW gene_attribute AS
  8110. SELECT
  8111. feature_id AS gene_attribute_id,
  8112. feature.*
  8113. FROM
  8114. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8115. WHERE cvterm.name = 'protein_coding' OR cvterm.name = 'non_protein_coding' OR cvterm.name = 'gene_to_gene_feature' OR cvterm.name = 'gene_array_member' OR cvterm.name = 'regulated' OR cvterm.name = 'epigenetically_modified' OR cvterm.name = 'encodes_alternately_spliced_transcripts' OR cvterm.name = 'encodes_alternate_transcription_start_sites' OR cvterm.name = 'intein_containing' OR cvterm.name = 'miRNA_encoding' OR cvterm.name = 'rRNA_encoding' OR cvterm.name = 'scRNA_encoding' OR cvterm.name = 'snoRNA_encoding' OR cvterm.name = 'snRNA_encoding' OR cvterm.name = 'SRP_RNA_encoding' OR cvterm.name = 'stRNA_encoding' OR cvterm.name = 'tmRNA_encoding' OR cvterm.name = 'tRNA_encoding' OR cvterm.name = 'gRNA_encoding' OR cvterm.name = 'C_D_box_snoRNA_encoding' OR cvterm.name = 'H_ACA_box_snoRNA_encoding' OR cvterm.name = 'overlapping' OR cvterm.name = 'inside_intron' OR cvterm.name = 'five_prime_three_prime_overlap' OR cvterm.name = 'five_prime_five_prime_overlap' OR cvterm.name = 'three_prime_three_prime_overlap' OR cvterm.name = 'three_prime_five_prime_overlap' OR cvterm.name = 'antisense' OR cvterm.name = 'inside_intron_antiparallel' OR cvterm.name = 'inside_intron_parallel' OR cvterm.name = 'operon_member' OR cvterm.name = 'gene_cassette_member' OR cvterm.name = 'gene_subarray_member' OR cvterm.name = 'member_of_regulon' OR cvterm.name = 'cassette_array_member' OR cvterm.name = 'transcriptionally_regulated' OR cvterm.name = 'post_translationally_regulated' OR cvterm.name = 'translationally_regulated' OR cvterm.name = 'imprinted' OR cvterm.name = 'transcriptionally_constitutive' OR cvterm.name = 'transcriptionally_induced' OR cvterm.name = 'transcriptionally_repressed' OR cvterm.name = 'autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'silenced' OR cvterm.name = 'silenced_by_DNA_modification' OR cvterm.name = 'silenced_by_RNA_interference' OR cvterm.name = 'silenced_by_histone_modification' OR cvterm.name = 'silenced_by_DNA_methylation' OR cvterm.name = 'silenced_by_histone_methylation' OR cvterm.name = 'silenced_by_histone_deacetylation' OR cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'post_translationally_regulated_by_protein_stability' OR cvterm.name = 'post_translationally_regulated_by_protein_modification' OR cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'imprinted' OR cvterm.name = 'allelically_excluded' OR cvterm.name = 'rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'encodes_1_polypeptide' OR cvterm.name = 'encodes_greater_than_1_polypeptide' OR cvterm.name = 'encodes_disjoint_polypeptides' OR cvterm.name = 'encodes_overlapping_peptides' OR cvterm.name = 'encodes_different_polypeptides_different_stop' OR cvterm.name = 'encodes_overlapping_peptides_different_start' OR cvterm.name = 'encodes_overlapping_polypeptides_different_start_and_stop' OR cvterm.name = 'gene_attribute';
  8116. --- ************************************************
  8117. --- *** relation: u14_snorna ***
  8118. --- *** relation type: VIEW ***
  8119. --- *** ***
  8120. --- *** U14 small nucleolar RNA (U14 snoRNA) is ***
  8121. --- *** required for early cleavages of eukaryot ***
  8122. --- *** ic precursor rRNAs. In yeasts, this mole ***
  8123. --- *** cule possess a stem-loop region (known a ***
  8124. --- *** s the Y-domain) which is essential for f ***
  8125. --- *** unction. A similar structure, but with a ***
  8126. --- *** different consensus sequence, is found ***
  8127. --- *** in plants, but is absent in vertebrates. ***
  8128. --- ************************************************
  8129. ---
  8130. CREATE VIEW u14_snorna AS
  8131. SELECT
  8132. feature_id AS u14_snorna_id,
  8133. feature.*
  8134. FROM
  8135. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8136. WHERE cvterm.name = 'U14_snoRNA';
  8137. --- ************************************************
  8138. --- *** relation: vault_rna ***
  8139. --- *** relation type: VIEW ***
  8140. --- *** ***
  8141. --- *** A family of RNAs are found as part of th ***
  8142. --- *** e enigmatic vault ribonucleoprotein comp ***
  8143. --- *** lex. The complex consists of a major vau ***
  8144. --- *** lt protein (MVP), two minor vault protei ***
  8145. --- *** ns (VPARP and TEP1), and several small u ***
  8146. --- *** ntranslated RNA molecules. It has been s ***
  8147. --- *** uggested that the vault complex is invol ***
  8148. --- *** ved in drug resistance. ***
  8149. --- ************************************************
  8150. ---
  8151. CREATE VIEW vault_rna AS
  8152. SELECT
  8153. feature_id AS vault_rna_id,
  8154. feature.*
  8155. FROM
  8156. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8157. WHERE cvterm.name = 'vault_RNA';
  8158. --- ************************************************
  8159. --- *** relation: y_rna ***
  8160. --- *** relation type: VIEW ***
  8161. --- *** ***
  8162. --- *** Y RNAs are components of the Ro ribonucl ***
  8163. --- *** eoprotein particle (Ro RNP), in associat ***
  8164. --- *** ion with Ro60 and La proteins. The Y RNA ***
  8165. --- *** s and Ro60 and La proteins are well cons ***
  8166. --- *** erved, but the function of the Ro RNP is ***
  8167. --- *** not known. In humans the RNA component ***
  8168. --- *** can be one of four small RNAs: hY1, hY3, ***
  8169. --- *** hY4 and hY5. These small RNAs are predi ***
  8170. --- *** cted to fold into a conserved secondary ***
  8171. --- *** structure containing three stem structur ***
  8172. --- *** es. The largest of the four, hY1, contai ***
  8173. --- *** ns an additional hairpin. ***
  8174. --- ************************************************
  8175. ---
  8176. CREATE VIEW y_rna AS
  8177. SELECT
  8178. feature_id AS y_rna_id,
  8179. feature.*
  8180. FROM
  8181. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8182. WHERE cvterm.name = 'Y_RNA';
  8183. --- ************************************************
  8184. --- *** relation: twintron ***
  8185. --- *** relation type: VIEW ***
  8186. --- *** ***
  8187. --- *** An intron within an intron. Twintrons ar ***
  8188. --- *** e group II or III introns, into which an ***
  8189. --- *** other group II or III intron has been tr ***
  8190. --- *** ansposed. ***
  8191. --- ************************************************
  8192. ---
  8193. CREATE VIEW twintron AS
  8194. SELECT
  8195. feature_id AS twintron_id,
  8196. feature.*
  8197. FROM
  8198. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8199. WHERE cvterm.name = 'twintron';
  8200. --- ************************************************
  8201. --- *** relation: rrna_18s ***
  8202. --- *** relation type: VIEW ***
  8203. --- *** ***
  8204. --- *** A large polynucleotide in eukaryotes, wh ***
  8205. --- *** ich functions as the small subunit of th ***
  8206. --- *** e ribosome. ***
  8207. --- ************************************************
  8208. ---
  8209. CREATE VIEW rrna_18s AS
  8210. SELECT
  8211. feature_id AS rrna_18s_id,
  8212. feature.*
  8213. FROM
  8214. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8215. WHERE cvterm.name = 'rRNA_18S';
  8216. --- ************************************************
  8217. --- *** relation: binding_site ***
  8218. --- *** relation type: VIEW ***
  8219. --- *** ***
  8220. --- *** A biological_region of sequence that, in ***
  8221. --- *** the molecule, interacts selectively and ***
  8222. --- *** non-covalently with other molecules. A ***
  8223. --- *** region on the surface of a molecule that ***
  8224. --- *** may interact with another molecule. Whe ***
  8225. --- *** n applied to polypeptides: Amino acids i ***
  8226. --- *** nvolved in binding or interactions. It c ***
  8227. --- *** an also apply to an amino acid bond whic ***
  8228. --- *** h is represented by the positions of the ***
  8229. --- *** two flanking amino acids. ***
  8230. --- ************************************************
  8231. ---
  8232. CREATE VIEW binding_site AS
  8233. SELECT
  8234. feature_id AS binding_site_id,
  8235. feature.*
  8236. FROM
  8237. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8238. WHERE cvterm.name = 'protein_binding_site' OR cvterm.name = 'epitope' OR cvterm.name = 'nucleotide_binding_site' OR cvterm.name = 'metal_binding_site' OR cvterm.name = 'ligand_binding_site' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'nucleotide_to_protein_binding_site' OR cvterm.name = 'nuclease_binding_site' OR cvterm.name = 'TF_binding_site' OR cvterm.name = 'histone_binding_site' OR cvterm.name = 'insulator_binding_site' OR cvterm.name = 'enhancer_binding_site' OR cvterm.name = 'restriction_enzyme_binding_site' OR cvterm.name = 'nuclease_sensitive_site' OR cvterm.name = 'homing_endonuclease_binding_site' OR cvterm.name = 'nuclease_hypersensitive_site' OR cvterm.name = 'group_1_intron_homing_endonuclease_target_region' OR cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'miRNA_target_site' OR cvterm.name = 'DNA_binding_site' OR cvterm.name = 'primer_binding_site' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'binding_site';
  8239. --- ************************************************
  8240. --- *** relation: protein_binding_site ***
  8241. --- *** relation type: VIEW ***
  8242. --- *** ***
  8243. --- *** A binding site that, in the molecule, in ***
  8244. --- *** teracts selectively and non-covalently w ***
  8245. --- *** ith polypeptide molecules. ***
  8246. --- ************************************************
  8247. ---
  8248. CREATE VIEW protein_binding_site AS
  8249. SELECT
  8250. feature_id AS protein_binding_site_id,
  8251. feature.*
  8252. FROM
  8253. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8254. WHERE cvterm.name = 'protein_protein_contact' OR cvterm.name = 'nucleotide_to_protein_binding_site' OR cvterm.name = 'nuclease_binding_site' OR cvterm.name = 'TF_binding_site' OR cvterm.name = 'histone_binding_site' OR cvterm.name = 'insulator_binding_site' OR cvterm.name = 'enhancer_binding_site' OR cvterm.name = 'restriction_enzyme_binding_site' OR cvterm.name = 'nuclease_sensitive_site' OR cvterm.name = 'homing_endonuclease_binding_site' OR cvterm.name = 'nuclease_hypersensitive_site' OR cvterm.name = 'group_1_intron_homing_endonuclease_target_region' OR cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'protein_binding_site';
  8255. --- ************************************************
  8256. --- *** relation: rescue_region ***
  8257. --- *** relation type: VIEW ***
  8258. --- *** ***
  8259. --- *** A region that rescues. ***
  8260. --- ************************************************
  8261. ---
  8262. CREATE VIEW rescue_region AS
  8263. SELECT
  8264. feature_id AS rescue_region_id,
  8265. feature.*
  8266. FROM
  8267. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8268. WHERE cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'rescue_region';
  8269. --- ************************************************
  8270. --- *** relation: restriction_fragment ***
  8271. --- *** relation type: VIEW ***
  8272. --- *** ***
  8273. --- *** A region of polynucleotide sequence prod ***
  8274. --- *** uced by digestion with a restriction end ***
  8275. --- *** onuclease. ***
  8276. --- ************************************************
  8277. ---
  8278. CREATE VIEW restriction_fragment AS
  8279. SELECT
  8280. feature_id AS restriction_fragment_id,
  8281. feature.*
  8282. FROM
  8283. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8284. WHERE cvterm.name = 'RFLP_fragment' OR cvterm.name = 'restriction_fragment';
  8285. --- ************************************************
  8286. --- *** relation: sequence_difference ***
  8287. --- *** relation type: VIEW ***
  8288. --- *** ***
  8289. --- *** A region where the sequence differs from ***
  8290. --- *** that of a specified sequence. ***
  8291. --- ************************************************
  8292. ---
  8293. CREATE VIEW sequence_difference AS
  8294. SELECT
  8295. feature_id AS sequence_difference_id,
  8296. feature.*
  8297. FROM
  8298. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8299. WHERE cvterm.name = 'possible_base_call_error' OR cvterm.name = 'possible_assembly_error' OR cvterm.name = 'assembly_error_correction' OR cvterm.name = 'base_call_error_correction' OR cvterm.name = 'sequence_difference';
  8300. --- ************************************************
  8301. --- *** relation: invalidated_by_genomic_contamination ***
  8302. --- *** relation type: VIEW ***
  8303. --- *** ***
  8304. --- *** An attribute to describe a feature that ***
  8305. --- *** is invalidated due to genomic contaminat ***
  8306. --- *** ion. ***
  8307. --- ************************************************
  8308. ---
  8309. CREATE VIEW invalidated_by_genomic_contamination AS
  8310. SELECT
  8311. feature_id AS invalidated_by_genomic_contamination_id,
  8312. feature.*
  8313. FROM
  8314. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8315. WHERE cvterm.name = 'invalidated_by_genomic_contamination';
  8316. --- ************************************************
  8317. --- *** relation: invalidated_by_genomic_polya_primed_cdna ***
  8318. --- *** relation type: VIEW ***
  8319. --- *** ***
  8320. --- *** An attribute to describe a feature that ***
  8321. --- *** is invalidated due to polyA priming. ***
  8322. --- ************************************************
  8323. ---
  8324. CREATE VIEW invalidated_by_genomic_polya_primed_cdna AS
  8325. SELECT
  8326. feature_id AS invalidated_by_genomic_polya_primed_cdna_id,
  8327. feature.*
  8328. FROM
  8329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8330. WHERE cvterm.name = 'invalidated_by_genomic_polyA_primed_cDNA';
  8331. --- ************************************************
  8332. --- *** relation: invalidated_by_partial_processing ***
  8333. --- *** relation type: VIEW ***
  8334. --- *** ***
  8335. --- *** An attribute to describe a feature that ***
  8336. --- *** is invalidated due to partial processing ***
  8337. --- *** . ***
  8338. --- ************************************************
  8339. ---
  8340. CREATE VIEW invalidated_by_partial_processing AS
  8341. SELECT
  8342. feature_id AS invalidated_by_partial_processing_id,
  8343. feature.*
  8344. FROM
  8345. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8346. WHERE cvterm.name = 'invalidated_by_partial_processing';
  8347. --- ************************************************
  8348. --- *** relation: polypeptide_domain ***
  8349. --- *** relation type: VIEW ***
  8350. --- *** ***
  8351. --- *** A structurally or functionally defined p ***
  8352. --- *** rotein region. In proteins with multiple ***
  8353. --- *** domains, the combination of the domains ***
  8354. --- *** determines the function of the protein. ***
  8355. --- *** A region which has been shown to recur ***
  8356. --- *** throughout evolution. ***
  8357. --- ************************************************
  8358. ---
  8359. CREATE VIEW polypeptide_domain AS
  8360. SELECT
  8361. feature_id AS polypeptide_domain_id,
  8362. feature.*
  8363. FROM
  8364. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8365. WHERE cvterm.name = 'polypeptide_domain';
  8366. --- ************************************************
  8367. --- *** relation: signal_peptide ***
  8368. --- *** relation type: VIEW ***
  8369. --- *** ***
  8370. --- *** The signal_peptide is a short region of ***
  8371. --- *** the peptide located at the N-terminus th ***
  8372. --- *** at directs the protein to be secreted or ***
  8373. --- *** part of membrane components. ***
  8374. --- ************************************************
  8375. ---
  8376. CREATE VIEW signal_peptide AS
  8377. SELECT
  8378. feature_id AS signal_peptide_id,
  8379. feature.*
  8380. FROM
  8381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8382. WHERE cvterm.name = 'signal_peptide';
  8383. --- ************************************************
  8384. --- *** relation: mature_protein_region ***
  8385. --- *** relation type: VIEW ***
  8386. --- *** ***
  8387. --- *** The polypeptide sequence that remains wh ***
  8388. --- *** en the cleaved peptide regions have been ***
  8389. --- *** cleaved from the immature peptide. ***
  8390. --- ************************************************
  8391. ---
  8392. CREATE VIEW mature_protein_region AS
  8393. SELECT
  8394. feature_id AS mature_protein_region_id,
  8395. feature.*
  8396. FROM
  8397. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8398. WHERE cvterm.name = 'active_peptide' OR cvterm.name = 'mature_protein_region';
  8399. --- ************************************************
  8400. --- *** relation: five_prime_terminal_inverted_repeat ***
  8401. --- *** relation type: VIEW ***
  8402. --- *** ***
  8403. --- ************************************************
  8404. ---
  8405. CREATE VIEW five_prime_terminal_inverted_repeat AS
  8406. SELECT
  8407. feature_id AS five_prime_terminal_inverted_repeat_id,
  8408. feature.*
  8409. FROM
  8410. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8411. WHERE cvterm.name = 'five_prime_terminal_inverted_repeat';
  8412. --- ************************************************
  8413. --- *** relation: three_prime_terminal_inverted_repeat ***
  8414. --- *** relation type: VIEW ***
  8415. --- *** ***
  8416. --- ************************************************
  8417. ---
  8418. CREATE VIEW three_prime_terminal_inverted_repeat AS
  8419. SELECT
  8420. feature_id AS three_prime_terminal_inverted_repeat_id,
  8421. feature.*
  8422. FROM
  8423. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8424. WHERE cvterm.name = 'three_prime_terminal_inverted_repeat';
  8425. --- ************************************************
  8426. --- *** relation: u5_ltr_region ***
  8427. --- *** relation type: VIEW ***
  8428. --- *** ***
  8429. --- ************************************************
  8430. ---
  8431. CREATE VIEW u5_ltr_region AS
  8432. SELECT
  8433. feature_id AS u5_ltr_region_id,
  8434. feature.*
  8435. FROM
  8436. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8437. WHERE cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'U5_LTR_region';
  8438. --- ************************************************
  8439. --- *** relation: r_ltr_region ***
  8440. --- *** relation type: VIEW ***
  8441. --- *** ***
  8442. --- ************************************************
  8443. ---
  8444. CREATE VIEW r_ltr_region AS
  8445. SELECT
  8446. feature_id AS r_ltr_region_id,
  8447. feature.*
  8448. FROM
  8449. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8450. WHERE cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'R_LTR_region';
  8451. --- ************************************************
  8452. --- *** relation: u3_ltr_region ***
  8453. --- *** relation type: VIEW ***
  8454. --- *** ***
  8455. --- ************************************************
  8456. ---
  8457. CREATE VIEW u3_ltr_region AS
  8458. SELECT
  8459. feature_id AS u3_ltr_region_id,
  8460. feature.*
  8461. FROM
  8462. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8463. WHERE cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'U3_LTR_region';
  8464. --- ************************************************
  8465. --- *** relation: five_prime_ltr ***
  8466. --- *** relation type: VIEW ***
  8467. --- *** ***
  8468. --- ************************************************
  8469. ---
  8470. CREATE VIEW five_prime_ltr AS
  8471. SELECT
  8472. feature_id AS five_prime_ltr_id,
  8473. feature.*
  8474. FROM
  8475. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8476. WHERE cvterm.name = 'five_prime_LTR';
  8477. --- ************************************************
  8478. --- *** relation: three_prime_ltr ***
  8479. --- *** relation type: VIEW ***
  8480. --- *** ***
  8481. --- ************************************************
  8482. ---
  8483. CREATE VIEW three_prime_ltr AS
  8484. SELECT
  8485. feature_id AS three_prime_ltr_id,
  8486. feature.*
  8487. FROM
  8488. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8489. WHERE cvterm.name = 'three_prime_LTR';
  8490. --- ************************************************
  8491. --- *** relation: r_five_prime_ltr_region ***
  8492. --- *** relation type: VIEW ***
  8493. --- *** ***
  8494. --- ************************************************
  8495. ---
  8496. CREATE VIEW r_five_prime_ltr_region AS
  8497. SELECT
  8498. feature_id AS r_five_prime_ltr_region_id,
  8499. feature.*
  8500. FROM
  8501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8502. WHERE cvterm.name = 'R_five_prime_LTR_region';
  8503. --- ************************************************
  8504. --- *** relation: u5_five_prime_ltr_region ***
  8505. --- *** relation type: VIEW ***
  8506. --- *** ***
  8507. --- ************************************************
  8508. ---
  8509. CREATE VIEW u5_five_prime_ltr_region AS
  8510. SELECT
  8511. feature_id AS u5_five_prime_ltr_region_id,
  8512. feature.*
  8513. FROM
  8514. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8515. WHERE cvterm.name = 'U5_five_prime_LTR_region';
  8516. --- ************************************************
  8517. --- *** relation: u3_five_prime_ltr_region ***
  8518. --- *** relation type: VIEW ***
  8519. --- *** ***
  8520. --- ************************************************
  8521. ---
  8522. CREATE VIEW u3_five_prime_ltr_region AS
  8523. SELECT
  8524. feature_id AS u3_five_prime_ltr_region_id,
  8525. feature.*
  8526. FROM
  8527. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8528. WHERE cvterm.name = 'U3_five_prime_LTR_region';
  8529. --- ************************************************
  8530. --- *** relation: r_three_prime_ltr_region ***
  8531. --- *** relation type: VIEW ***
  8532. --- *** ***
  8533. --- ************************************************
  8534. ---
  8535. CREATE VIEW r_three_prime_ltr_region AS
  8536. SELECT
  8537. feature_id AS r_three_prime_ltr_region_id,
  8538. feature.*
  8539. FROM
  8540. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8541. WHERE cvterm.name = 'R_three_prime_LTR_region';
  8542. --- ************************************************
  8543. --- *** relation: u3_three_prime_ltr_region ***
  8544. --- *** relation type: VIEW ***
  8545. --- *** ***
  8546. --- ************************************************
  8547. ---
  8548. CREATE VIEW u3_three_prime_ltr_region AS
  8549. SELECT
  8550. feature_id AS u3_three_prime_ltr_region_id,
  8551. feature.*
  8552. FROM
  8553. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8554. WHERE cvterm.name = 'U3_three_prime_LTR_region';
  8555. --- ************************************************
  8556. --- *** relation: u5_three_prime_ltr_region ***
  8557. --- *** relation type: VIEW ***
  8558. --- *** ***
  8559. --- ************************************************
  8560. ---
  8561. CREATE VIEW u5_three_prime_ltr_region AS
  8562. SELECT
  8563. feature_id AS u5_three_prime_ltr_region_id,
  8564. feature.*
  8565. FROM
  8566. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8567. WHERE cvterm.name = 'U5_three_prime_LTR_region';
  8568. --- ************************************************
  8569. --- *** relation: non_ltr_retrotransposon_polymeric_tract ***
  8570. --- *** relation type: VIEW ***
  8571. --- *** ***
  8572. --- *** A polymeric tract, such as poly(dA), wit ***
  8573. --- *** hin a non_LTR_retrotransposon. ***
  8574. --- ************************************************
  8575. ---
  8576. CREATE VIEW non_ltr_retrotransposon_polymeric_tract AS
  8577. SELECT
  8578. feature_id AS non_ltr_retrotransposon_polymeric_tract_id,
  8579. feature.*
  8580. FROM
  8581. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8582. WHERE cvterm.name = 'non_LTR_retrotransposon_polymeric_tract';
  8583. --- ************************************************
  8584. --- *** relation: target_site_duplication ***
  8585. --- *** relation type: VIEW ***
  8586. --- *** ***
  8587. --- *** A sequence of the target DNA that is dup ***
  8588. --- *** licated when a transposable element or p ***
  8589. --- *** hage inserts; usually found at each end ***
  8590. --- *** the insertion. ***
  8591. --- ************************************************
  8592. ---
  8593. CREATE VIEW target_site_duplication AS
  8594. SELECT
  8595. feature_id AS target_site_duplication_id,
  8596. feature.*
  8597. FROM
  8598. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8599. WHERE cvterm.name = 'target_site_duplication';
  8600. --- ************************************************
  8601. --- *** relation: rr_tract ***
  8602. --- *** relation type: VIEW ***
  8603. --- *** ***
  8604. --- *** A polypurine tract within an LTR_retrotr ***
  8605. --- *** ansposon. ***
  8606. --- ************************************************
  8607. ---
  8608. CREATE VIEW rr_tract AS
  8609. SELECT
  8610. feature_id AS rr_tract_id,
  8611. feature.*
  8612. FROM
  8613. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8614. WHERE cvterm.name = 'RR_tract';
  8615. --- ************************************************
  8616. --- *** relation: ars ***
  8617. --- *** relation type: VIEW ***
  8618. --- *** ***
  8619. --- *** A sequence that can autonomously replica ***
  8620. --- *** te, as a plasmid, when transformed into ***
  8621. --- *** a bacterial host. ***
  8622. --- ************************************************
  8623. ---
  8624. CREATE VIEW ars AS
  8625. SELECT
  8626. feature_id AS ars_id,
  8627. feature.*
  8628. FROM
  8629. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8630. WHERE cvterm.name = 'ARS';
  8631. --- ************************************************
  8632. --- *** relation: inverted_ring_chromosome ***
  8633. --- *** relation type: VIEW ***
  8634. --- *** ***
  8635. --- ************************************************
  8636. ---
  8637. CREATE VIEW inverted_ring_chromosome AS
  8638. SELECT
  8639. feature_id AS inverted_ring_chromosome_id,
  8640. feature.*
  8641. FROM
  8642. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8643. WHERE cvterm.name = 'inverted_ring_chromosome';
  8644. --- ************************************************
  8645. --- *** relation: vector_replicon ***
  8646. --- *** relation type: VIEW ***
  8647. --- *** ***
  8648. --- *** A replicon that has been modified to act ***
  8649. --- *** as a vector for foreign sequence. ***
  8650. --- ************************************************
  8651. ---
  8652. CREATE VIEW vector_replicon AS
  8653. SELECT
  8654. feature_id AS vector_replicon_id,
  8655. feature.*
  8656. FROM
  8657. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8658. WHERE cvterm.name = 'YAC' OR cvterm.name = 'BAC' OR cvterm.name = 'PAC' OR cvterm.name = 'cosmid' OR cvterm.name = 'phagemid' OR cvterm.name = 'fosmid' OR cvterm.name = 'lambda_vector' OR cvterm.name = 'plasmid_vector' OR cvterm.name = 'targeting_vector' OR cvterm.name = 'vector_replicon';
  8659. --- ************************************************
  8660. --- *** relation: ss_oligo ***
  8661. --- *** relation type: VIEW ***
  8662. --- *** ***
  8663. --- *** A single stranded oligonucleotide. ***
  8664. --- ************************************************
  8665. ---
  8666. CREATE VIEW ss_oligo AS
  8667. SELECT
  8668. feature_id AS ss_oligo_id,
  8669. feature.*
  8670. FROM
  8671. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8672. WHERE cvterm.name = 'primer' OR cvterm.name = 'sequencing_primer' OR cvterm.name = 'forward_primer' OR cvterm.name = 'reverse_primer' OR cvterm.name = 'ASPE_primer' OR cvterm.name = 'dCAPS_primer' OR cvterm.name = 'ss_oligo';
  8673. --- ************************************************
  8674. --- *** relation: ds_oligo ***
  8675. --- *** relation type: VIEW ***
  8676. --- *** ***
  8677. --- *** A double stranded oligonucleotide. ***
  8678. --- ************************************************
  8679. ---
  8680. CREATE VIEW ds_oligo AS
  8681. SELECT
  8682. feature_id AS ds_oligo_id,
  8683. feature.*
  8684. FROM
  8685. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8686. WHERE cvterm.name = 'RNAi_reagent' OR cvterm.name = 'DNA_constraint_sequence' OR cvterm.name = 'ds_oligo';
  8687. --- ************************************************
  8688. --- *** relation: polymer_attribute ***
  8689. --- *** relation type: VIEW ***
  8690. --- *** ***
  8691. --- *** An attribute to describe the kind of bio ***
  8692. --- *** logical sequence. ***
  8693. --- ************************************************
  8694. ---
  8695. CREATE VIEW polymer_attribute AS
  8696. SELECT
  8697. feature_id AS polymer_attribute_id,
  8698. feature.*
  8699. FROM
  8700. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8701. WHERE cvterm.name = 'nucleic_acid' OR cvterm.name = 'synthetic_sequence' OR cvterm.name = 'topology_attribute' OR cvterm.name = 'peptidyl' OR cvterm.name = 'DNA' OR cvterm.name = 'RNA' OR cvterm.name = 'morpholino_backbone' OR cvterm.name = 'PNA' OR cvterm.name = 'LNA' OR cvterm.name = 'TNA' OR cvterm.name = 'GNA' OR cvterm.name = 'cDNA' OR cvterm.name = 'genomic_DNA' OR cvterm.name = 'single_stranded_cDNA' OR cvterm.name = 'double_stranded_cDNA' OR cvterm.name = 'R_GNA' OR cvterm.name = 'S_GNA' OR cvterm.name = 'random_sequence' OR cvterm.name = 'designed_sequence' OR cvterm.name = 'linear' OR cvterm.name = 'circular' OR cvterm.name = 'polymer_attribute';
  8702. --- ************************************************
  8703. --- *** relation: three_prime_noncoding_exon ***
  8704. --- *** relation type: VIEW ***
  8705. --- *** ***
  8706. --- *** Non-coding exon in the 3' UTR. ***
  8707. --- ************************************************
  8708. ---
  8709. CREATE VIEW three_prime_noncoding_exon AS
  8710. SELECT
  8711. feature_id AS three_prime_noncoding_exon_id,
  8712. feature.*
  8713. FROM
  8714. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8715. WHERE cvterm.name = 'three_prime_noncoding_exon';
  8716. --- ************************************************
  8717. --- *** relation: five_prime_noncoding_exon ***
  8718. --- *** relation type: VIEW ***
  8719. --- *** ***
  8720. --- *** Non-coding exon in the 5' UTR. ***
  8721. --- ************************************************
  8722. ---
  8723. CREATE VIEW five_prime_noncoding_exon AS
  8724. SELECT
  8725. feature_id AS five_prime_noncoding_exon_id,
  8726. feature.*
  8727. FROM
  8728. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8729. WHERE cvterm.name = 'five_prime_noncoding_exon';
  8730. --- ************************************************
  8731. --- *** relation: utr_intron ***
  8732. --- *** relation type: VIEW ***
  8733. --- *** ***
  8734. --- *** Intron located in the untranslated regio ***
  8735. --- *** n. ***
  8736. --- ************************************************
  8737. ---
  8738. CREATE VIEW utr_intron AS
  8739. SELECT
  8740. feature_id AS utr_intron_id,
  8741. feature.*
  8742. FROM
  8743. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8744. WHERE cvterm.name = 'five_prime_UTR_intron' OR cvterm.name = 'three_prime_UTR_intron' OR cvterm.name = 'UTR_intron';
  8745. --- ************************************************
  8746. --- *** relation: five_prime_utr_intron ***
  8747. --- *** relation type: VIEW ***
  8748. --- *** ***
  8749. --- *** An intron located in the 5' UTR. ***
  8750. --- ************************************************
  8751. ---
  8752. CREATE VIEW five_prime_utr_intron AS
  8753. SELECT
  8754. feature_id AS five_prime_utr_intron_id,
  8755. feature.*
  8756. FROM
  8757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8758. WHERE cvterm.name = 'five_prime_UTR_intron';
  8759. --- ************************************************
  8760. --- *** relation: three_prime_utr_intron ***
  8761. --- *** relation type: VIEW ***
  8762. --- *** ***
  8763. --- *** An intron located in the 3' UTR. ***
  8764. --- ************************************************
  8765. ---
  8766. CREATE VIEW three_prime_utr_intron AS
  8767. SELECT
  8768. feature_id AS three_prime_utr_intron_id,
  8769. feature.*
  8770. FROM
  8771. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8772. WHERE cvterm.name = 'three_prime_UTR_intron';
  8773. --- ************************************************
  8774. --- *** relation: random_sequence ***
  8775. --- *** relation type: VIEW ***
  8776. --- *** ***
  8777. --- *** A sequence of nucleotides or amino acids ***
  8778. --- *** which, by design, has a "random" order ***
  8779. --- *** of components, given a predetermined inp ***
  8780. --- *** ut frequency of these components. ***
  8781. --- ************************************************
  8782. ---
  8783. CREATE VIEW random_sequence AS
  8784. SELECT
  8785. feature_id AS random_sequence_id,
  8786. feature.*
  8787. FROM
  8788. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8789. WHERE cvterm.name = 'random_sequence';
  8790. --- ************************************************
  8791. --- *** relation: interband ***
  8792. --- *** relation type: VIEW ***
  8793. --- *** ***
  8794. --- *** A light region between two darkly staini ***
  8795. --- *** ng bands in a polytene chromosome. ***
  8796. --- ************************************************
  8797. ---
  8798. CREATE VIEW interband AS
  8799. SELECT
  8800. feature_id AS interband_id,
  8801. feature.*
  8802. FROM
  8803. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8804. WHERE cvterm.name = 'interband';
  8805. --- ************************************************
  8806. --- *** relation: gene_with_polyadenylated_mrna ***
  8807. --- *** relation type: VIEW ***
  8808. --- *** ***
  8809. --- *** A gene that encodes a polyadenylated mRN ***
  8810. --- *** A. ***
  8811. --- ************************************************
  8812. ---
  8813. CREATE VIEW gene_with_polyadenylated_mrna AS
  8814. SELECT
  8815. feature_id AS gene_with_polyadenylated_mrna_id,
  8816. feature.*
  8817. FROM
  8818. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8819. WHERE cvterm.name = 'gene_with_polyadenylated_mRNA';
  8820. --- ************************************************
  8821. --- *** relation: chromosomal_transposition ***
  8822. --- *** relation type: VIEW ***
  8823. --- *** ***
  8824. --- *** A chromosome structure variant whereby a ***
  8825. --- *** region of a chromosome has been transfe ***
  8826. --- *** rred to another position. Among interchr ***
  8827. --- *** omosomal rearrangements, the term transp ***
  8828. --- *** osition is reserved for that class in wh ***
  8829. --- *** ich the telomeres of the chromosomes inv ***
  8830. --- *** olved are coupled (that is to say, form ***
  8831. --- *** the two ends of a single DNA molecule) a ***
  8832. --- *** s in wild-type. ***
  8833. --- ************************************************
  8834. ---
  8835. CREATE VIEW chromosomal_transposition AS
  8836. SELECT
  8837. feature_id AS chromosomal_transposition_id,
  8838. feature.*
  8839. FROM
  8840. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8841. WHERE cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'interchromosomal_transposition' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unoriented_interchromosomal_transposition' OR cvterm.name = 'chromosomal_transposition';
  8842. --- ************************************************
  8843. --- *** relation: rasirna ***
  8844. --- *** relation type: VIEW ***
  8845. --- *** ***
  8846. --- *** A 17-28-nt, small interfering RNA derive ***
  8847. --- *** d from transcripts of repetitive element ***
  8848. --- *** s. ***
  8849. --- ************************************************
  8850. ---
  8851. CREATE VIEW rasirna AS
  8852. SELECT
  8853. feature_id AS rasirna_id,
  8854. feature.*
  8855. FROM
  8856. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8857. WHERE cvterm.name = 'rasiRNA';
  8858. --- ************************************************
  8859. --- *** relation: gene_with_mrna_with_frameshift ***
  8860. --- *** relation type: VIEW ***
  8861. --- *** ***
  8862. --- *** A gene that encodes an mRNA with a frame ***
  8863. --- *** shift. ***
  8864. --- ************************************************
  8865. ---
  8866. CREATE VIEW gene_with_mrna_with_frameshift AS
  8867. SELECT
  8868. feature_id AS gene_with_mrna_with_frameshift_id,
  8869. feature.*
  8870. FROM
  8871. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8872. WHERE cvterm.name = 'gene_with_mRNA_with_frameshift';
  8873. --- ************************************************
  8874. --- *** relation: recombinationally_rearranged_gene ***
  8875. --- *** relation type: VIEW ***
  8876. --- *** ***
  8877. --- *** A gene that is recombinationally rearran ***
  8878. --- *** ged. ***
  8879. --- ************************************************
  8880. ---
  8881. CREATE VIEW recombinationally_rearranged_gene AS
  8882. SELECT
  8883. feature_id AS recombinationally_rearranged_gene_id,
  8884. feature.*
  8885. FROM
  8886. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8887. WHERE cvterm.name = 'recombinationally_inverted_gene' OR cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene' OR cvterm.name = 'recombinationally_rearranged_gene';
  8888. --- ************************************************
  8889. --- *** relation: interchromosomal_duplication ***
  8890. --- *** relation type: VIEW ***
  8891. --- *** ***
  8892. --- *** A chromosome duplication involving an in ***
  8893. --- *** sertion from another chromosome. ***
  8894. --- ************************************************
  8895. ---
  8896. CREATE VIEW interchromosomal_duplication AS
  8897. SELECT
  8898. feature_id AS interchromosomal_duplication_id,
  8899. feature.*
  8900. FROM
  8901. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8902. WHERE cvterm.name = 'interchromosomal_duplication';
  8903. --- ************************************************
  8904. --- *** relation: d_gene ***
  8905. --- *** relation type: VIEW ***
  8906. --- *** ***
  8907. --- *** Germline genomic DNA including D-region ***
  8908. --- *** with 5' UTR and 3' UTR, also designated ***
  8909. --- *** as D-segment. ***
  8910. --- ************************************************
  8911. ---
  8912. CREATE VIEW d_gene AS
  8913. SELECT
  8914. feature_id AS d_gene_id,
  8915. feature.*
  8916. FROM
  8917. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8918. WHERE cvterm.name = 'D_gene';
  8919. --- ************************************************
  8920. --- *** relation: gene_with_trans_spliced_transcript ***
  8921. --- *** relation type: VIEW ***
  8922. --- *** ***
  8923. --- *** A gene with a transcript that is trans-s ***
  8924. --- *** pliced. ***
  8925. --- ************************************************
  8926. ---
  8927. CREATE VIEW gene_with_trans_spliced_transcript AS
  8928. SELECT
  8929. feature_id AS gene_with_trans_spliced_transcript_id,
  8930. feature.*
  8931. FROM
  8932. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8933. WHERE cvterm.name = 'gene_with_trans_spliced_transcript';
  8934. --- ************************************************
  8935. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_segment ***
  8936. --- *** relation type: VIEW ***
  8937. --- *** ***
  8938. --- ************************************************
  8939. ---
  8940. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_segment AS
  8941. SELECT
  8942. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_segment_id,
  8943. feature.*
  8944. FROM
  8945. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8946. WHERE cvterm.name = 'D_gene' OR cvterm.name = 'V_gene' OR cvterm.name = 'J_gene' OR cvterm.name = 'C_gene' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_segment';
  8947. --- ************************************************
  8948. --- *** relation: inversion_derived_bipartite_deficiency ***
  8949. --- *** relation type: VIEW ***
  8950. --- *** ***
  8951. --- *** A chromosomal deletion whereby a chromos ***
  8952. --- *** ome generated by recombination between t ***
  8953. --- *** wo inversions; has a deficiency at each ***
  8954. --- *** end of the inversion. ***
  8955. --- ************************************************
  8956. ---
  8957. CREATE VIEW inversion_derived_bipartite_deficiency AS
  8958. SELECT
  8959. feature_id AS inversion_derived_bipartite_deficiency_id,
  8960. feature.*
  8961. FROM
  8962. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8963. WHERE cvterm.name = 'inversion_derived_bipartite_deficiency';
  8964. --- ************************************************
  8965. --- *** relation: pseudogenic_region ***
  8966. --- *** relation type: VIEW ***
  8967. --- *** ***
  8968. --- *** A non-functional descendent of a functio ***
  8969. --- *** nal entity. ***
  8970. --- ************************************************
  8971. ---
  8972. CREATE VIEW pseudogenic_region AS
  8973. SELECT
  8974. feature_id AS pseudogenic_region_id,
  8975. feature.*
  8976. FROM
  8977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8978. WHERE cvterm.name = 'decayed_exon' OR cvterm.name = 'pseudogenic_exon' OR cvterm.name = 'pseudogenic_transcript' OR cvterm.name = 'pseudogenic_rRNA' OR cvterm.name = 'pseudogenic_tRNA' OR cvterm.name = 'pseudogenic_region';
  8979. --- ************************************************
  8980. --- *** relation: encodes_alternately_spliced_transcripts ***
  8981. --- *** relation type: VIEW ***
  8982. --- *** ***
  8983. --- *** A gene that encodes more than one transc ***
  8984. --- *** ript. ***
  8985. --- ************************************************
  8986. ---
  8987. CREATE VIEW encodes_alternately_spliced_transcripts AS
  8988. SELECT
  8989. feature_id AS encodes_alternately_spliced_transcripts_id,
  8990. feature.*
  8991. FROM
  8992. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8993. WHERE cvterm.name = 'encodes_1_polypeptide' OR cvterm.name = 'encodes_greater_than_1_polypeptide' OR cvterm.name = 'encodes_disjoint_polypeptides' OR cvterm.name = 'encodes_overlapping_peptides' OR cvterm.name = 'encodes_different_polypeptides_different_stop' OR cvterm.name = 'encodes_overlapping_peptides_different_start' OR cvterm.name = 'encodes_overlapping_polypeptides_different_start_and_stop' OR cvterm.name = 'encodes_alternately_spliced_transcripts';
  8994. --- ************************************************
  8995. --- *** relation: decayed_exon ***
  8996. --- *** relation type: VIEW ***
  8997. --- *** ***
  8998. --- *** A non-functional descendant of an exon. ***
  8999. --- ************************************************
  9000. ---
  9001. CREATE VIEW decayed_exon AS
  9002. SELECT
  9003. feature_id AS decayed_exon_id,
  9004. feature.*
  9005. FROM
  9006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9007. WHERE cvterm.name = 'decayed_exon';
  9008. --- ************************************************
  9009. --- *** relation: inversion_derived_deficiency_plus_duplication ***
  9010. --- *** relation type: VIEW ***
  9011. --- *** ***
  9012. --- *** A chromosome deletion whereby a chromoso ***
  9013. --- *** me is generated by recombination between ***
  9014. --- *** two inversions; there is a deficiency a ***
  9015. --- *** t one end of the inversion and a duplica ***
  9016. --- *** tion at the other end of the inversion. ***
  9017. --- ************************************************
  9018. ---
  9019. CREATE VIEW inversion_derived_deficiency_plus_duplication AS
  9020. SELECT
  9021. feature_id AS inversion_derived_deficiency_plus_duplication_id,
  9022. feature.*
  9023. FROM
  9024. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9025. WHERE cvterm.name = 'inversion_derived_deficiency_plus_duplication';
  9026. --- ************************************************
  9027. --- *** relation: v_gene ***
  9028. --- *** relation type: VIEW ***
  9029. --- *** ***
  9030. --- *** Germline genomic DNA including L-part1, ***
  9031. --- *** V-intron and V-exon, with the 5' UTR and ***
  9032. --- *** 3' UTR. ***
  9033. --- ************************************************
  9034. ---
  9035. CREATE VIEW v_gene AS
  9036. SELECT
  9037. feature_id AS v_gene_id,
  9038. feature.*
  9039. FROM
  9040. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9041. WHERE cvterm.name = 'V_gene';
  9042. --- ************************************************
  9043. --- *** relation: post_translationally_regulated_by_protein_stability ***
  9044. --- *** relation type: VIEW ***
  9045. --- *** ***
  9046. --- *** An attribute describing a gene sequence ***
  9047. --- *** where the resulting protein is regulated ***
  9048. --- *** by the stability of the resulting prote ***
  9049. --- *** in. ***
  9050. --- ************************************************
  9051. ---
  9052. CREATE VIEW post_translationally_regulated_by_protein_stability AS
  9053. SELECT
  9054. feature_id AS post_translationally_regulated_by_protein_stability_id,
  9055. feature.*
  9056. FROM
  9057. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9058. WHERE cvterm.name = 'post_translationally_regulated_by_protein_stability';
  9059. --- ************************************************
  9060. --- *** relation: golden_path_fragment ***
  9061. --- *** relation type: VIEW ***
  9062. --- *** ***
  9063. --- *** One of the pieces of sequence that make ***
  9064. --- *** up a golden path. ***
  9065. --- ************************************************
  9066. ---
  9067. CREATE VIEW golden_path_fragment AS
  9068. SELECT
  9069. feature_id AS golden_path_fragment_id,
  9070. feature.*
  9071. FROM
  9072. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9073. WHERE cvterm.name = 'golden_path_fragment';
  9074. --- ************************************************
  9075. --- *** relation: post_translationally_regulated_by_protein_modification ***
  9076. --- *** relation type: VIEW ***
  9077. --- *** ***
  9078. --- *** An attribute describing a gene sequence ***
  9079. --- *** where the resulting protein is modified ***
  9080. --- *** to regulate it. ***
  9081. --- ************************************************
  9082. ---
  9083. CREATE VIEW post_translationally_regulated_by_protein_modification AS
  9084. SELECT
  9085. feature_id AS post_translationally_regulated_by_protein_modification_id,
  9086. feature.*
  9087. FROM
  9088. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9089. WHERE cvterm.name = 'post_translationally_regulated_by_protein_modification';
  9090. --- ************************************************
  9091. --- *** relation: j_gene ***
  9092. --- *** relation type: VIEW ***
  9093. --- *** ***
  9094. --- *** Germline genomic DNA of an immunoglobuli ***
  9095. --- *** n/T-cell receptor gene including J-regio ***
  9096. --- *** n with 5' UTR (SO:0000204) and 3' UTR (S ***
  9097. --- *** O:0000205), also designated as J-segment ***
  9098. --- *** . ***
  9099. --- ************************************************
  9100. ---
  9101. CREATE VIEW j_gene AS
  9102. SELECT
  9103. feature_id AS j_gene_id,
  9104. feature.*
  9105. FROM
  9106. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9107. WHERE cvterm.name = 'J_gene';
  9108. --- ************************************************
  9109. --- *** relation: autoregulated ***
  9110. --- *** relation type: VIEW ***
  9111. --- *** ***
  9112. --- *** The gene product is involved in its own ***
  9113. --- *** transcriptional regulation. ***
  9114. --- ************************************************
  9115. ---
  9116. CREATE VIEW autoregulated AS
  9117. SELECT
  9118. feature_id AS autoregulated_id,
  9119. feature.*
  9120. FROM
  9121. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9122. WHERE cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'autoregulated';
  9123. --- ************************************************
  9124. --- *** relation: tiling_path ***
  9125. --- *** relation type: VIEW ***
  9126. --- *** ***
  9127. --- *** A set of regions which overlap with mini ***
  9128. --- *** mal polymorphism to form a linear sequen ***
  9129. --- *** ce. ***
  9130. --- ************************************************
  9131. ---
  9132. CREATE VIEW tiling_path AS
  9133. SELECT
  9134. feature_id AS tiling_path_id,
  9135. feature.*
  9136. FROM
  9137. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9138. WHERE cvterm.name = 'tiling_path';
  9139. --- ************************************************
  9140. --- *** relation: negatively_autoregulated ***
  9141. --- *** relation type: VIEW ***
  9142. --- *** ***
  9143. --- *** The gene product is involved in its own ***
  9144. --- *** transcriptional regulation where it decr ***
  9145. --- *** eases transcription. ***
  9146. --- ************************************************
  9147. ---
  9148. CREATE VIEW negatively_autoregulated AS
  9149. SELECT
  9150. feature_id AS negatively_autoregulated_id,
  9151. feature.*
  9152. FROM
  9153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9154. WHERE cvterm.name = 'negatively_autoregulated';
  9155. --- ************************************************
  9156. --- *** relation: tiling_path_fragment ***
  9157. --- *** relation type: VIEW ***
  9158. --- *** ***
  9159. --- *** A piece of sequence that makes up a tili ***
  9160. --- *** ng_path (SO:0000472). ***
  9161. --- ************************************************
  9162. ---
  9163. CREATE VIEW tiling_path_fragment AS
  9164. SELECT
  9165. feature_id AS tiling_path_fragment_id,
  9166. feature.*
  9167. FROM
  9168. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9169. WHERE cvterm.name = 'tiling_path_clone' OR cvterm.name = 'tiling_path_fragment';
  9170. --- ************************************************
  9171. --- *** relation: positively_autoregulated ***
  9172. --- *** relation type: VIEW ***
  9173. --- *** ***
  9174. --- *** The gene product is involved in its own ***
  9175. --- *** transcriptional regulation, where it inc ***
  9176. --- *** reases transcription. ***
  9177. --- ************************************************
  9178. ---
  9179. CREATE VIEW positively_autoregulated AS
  9180. SELECT
  9181. feature_id AS positively_autoregulated_id,
  9182. feature.*
  9183. FROM
  9184. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9185. WHERE cvterm.name = 'positively_autoregulated';
  9186. --- ************************************************
  9187. --- *** relation: contig_read ***
  9188. --- *** relation type: VIEW ***
  9189. --- *** ***
  9190. --- *** A DNA sequencer read which is part of a ***
  9191. --- *** contig. ***
  9192. --- ************************************************
  9193. ---
  9194. CREATE VIEW contig_read AS
  9195. SELECT
  9196. feature_id AS contig_read_id,
  9197. feature.*
  9198. FROM
  9199. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9200. WHERE cvterm.name = 'contig_read';
  9201. --- ************************************************
  9202. --- *** relation: c_gene ***
  9203. --- *** relation type: VIEW ***
  9204. --- *** ***
  9205. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9206. --- *** eptor gene including C-region (and intro ***
  9207. --- *** ns if present) with 5' UTR (SO:0000204) ***
  9208. --- *** and 3' UTR (SO:0000205). ***
  9209. --- ************************************************
  9210. ---
  9211. CREATE VIEW c_gene AS
  9212. SELECT
  9213. feature_id AS c_gene_id,
  9214. feature.*
  9215. FROM
  9216. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9217. WHERE cvterm.name = 'C_gene';
  9218. --- ************************************************
  9219. --- *** relation: trans_spliced_transcript ***
  9220. --- *** relation type: VIEW ***
  9221. --- *** ***
  9222. --- *** A transcript that is trans-spliced. ***
  9223. --- ************************************************
  9224. ---
  9225. CREATE VIEW trans_spliced_transcript AS
  9226. SELECT
  9227. feature_id AS trans_spliced_transcript_id,
  9228. feature.*
  9229. FROM
  9230. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9231. WHERE cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'trans_spliced_transcript';
  9232. --- ************************************************
  9233. --- *** relation: tiling_path_clone ***
  9234. --- *** relation type: VIEW ***
  9235. --- *** ***
  9236. --- *** A clone which is part of a tiling path. ***
  9237. --- *** A tiling path is a set of sequencing sub ***
  9238. --- *** strates, typically clones, which have be ***
  9239. --- *** en selected in order to efficiently cove ***
  9240. --- *** r a region of the genome in preparation ***
  9241. --- *** for sequencing and assembly. ***
  9242. --- ************************************************
  9243. ---
  9244. CREATE VIEW tiling_path_clone AS
  9245. SELECT
  9246. feature_id AS tiling_path_clone_id,
  9247. feature.*
  9248. FROM
  9249. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9250. WHERE cvterm.name = 'tiling_path_clone';
  9251. --- ************************************************
  9252. --- *** relation: terminal_inverted_repeat ***
  9253. --- *** relation type: VIEW ***
  9254. --- *** ***
  9255. --- *** An inverted repeat (SO:0000294) occurrin ***
  9256. --- *** g at the termini of a DNA transposon. ***
  9257. --- ************************************************
  9258. ---
  9259. CREATE VIEW terminal_inverted_repeat AS
  9260. SELECT
  9261. feature_id AS terminal_inverted_repeat_id,
  9262. feature.*
  9263. FROM
  9264. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9265. WHERE cvterm.name = 'five_prime_terminal_inverted_repeat' OR cvterm.name = 'three_prime_terminal_inverted_repeat' OR cvterm.name = 'terminal_inverted_repeat';
  9266. --- ************************************************
  9267. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_gene_cluster ***
  9268. --- *** relation type: VIEW ***
  9269. --- *** ***
  9270. --- ************************************************
  9271. ---
  9272. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_gene_cluster AS
  9273. SELECT
  9274. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_gene_cluster_id,
  9275. feature.*
  9276. FROM
  9277. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9278. WHERE cvterm.name = 'D_J_C_cluster' OR cvterm.name = 'J_C_cluster' OR cvterm.name = 'J_cluster' OR cvterm.name = 'V_cluster' OR cvterm.name = 'V_J_cluster' OR cvterm.name = 'V_J_C_cluster' OR cvterm.name = 'C_cluster' OR cvterm.name = 'D_cluster' OR cvterm.name = 'D_J_cluster' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_gene_cluster';
  9279. --- ************************************************
  9280. --- *** relation: nc_primary_transcript ***
  9281. --- *** relation type: VIEW ***
  9282. --- *** ***
  9283. --- *** A primary transcript that is never trans ***
  9284. --- *** lated into a protein. ***
  9285. --- ************************************************
  9286. ---
  9287. CREATE VIEW nc_primary_transcript AS
  9288. SELECT
  9289. feature_id AS nc_primary_transcript_id,
  9290. feature.*
  9291. FROM
  9292. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9293. WHERE cvterm.name = 'scRNA_primary_transcript' OR cvterm.name = 'rRNA_primary_transcript' OR cvterm.name = 'tRNA_primary_transcript' OR cvterm.name = 'snRNA_primary_transcript' OR cvterm.name = 'snoRNA_primary_transcript' OR cvterm.name = 'tmRNA_primary_transcript' OR cvterm.name = 'SRP_RNA_primary_transcript' OR cvterm.name = 'miRNA_primary_transcript' OR cvterm.name = 'tasiRNA_primary_transcript' OR cvterm.name = 'rRNA_small_subunit_primary_transcript' OR cvterm.name = 'rRNA_large_subunit_primary_transcript' OR cvterm.name = 'alanine_tRNA_primary_transcript' OR cvterm.name = 'arginine_tRNA_primary_transcript' OR cvterm.name = 'asparagine_tRNA_primary_transcript' OR cvterm.name = 'aspartic_acid_tRNA_primary_transcript' OR cvterm.name = 'cysteine_tRNA_primary_transcript' OR cvterm.name = 'glutamic_acid_tRNA_primary_transcript' OR cvterm.name = 'glutamine_tRNA_primary_transcript' OR cvterm.name = 'glycine_tRNA_primary_transcript' OR cvterm.name = 'histidine_tRNA_primary_transcript' OR cvterm.name = 'isoleucine_tRNA_primary_transcript' OR cvterm.name = 'leucine_tRNA_primary_transcript' OR cvterm.name = 'lysine_tRNA_primary_transcript' OR cvterm.name = 'methionine_tRNA_primary_transcript' OR cvterm.name = 'phenylalanine_tRNA_primary_transcript' OR cvterm.name = 'proline_tRNA_primary_transcript' OR cvterm.name = 'serine_tRNA_primary_transcript' OR cvterm.name = 'threonine_tRNA_primary_transcript' OR cvterm.name = 'tryptophan_tRNA_primary_transcript' OR cvterm.name = 'tyrosine_tRNA_primary_transcript' OR cvterm.name = 'valine_tRNA_primary_transcript' OR cvterm.name = 'pyrrolysine_tRNA_primary_transcript' OR cvterm.name = 'selenocysteine_tRNA_primary_transcript' OR cvterm.name = 'methylation_guide_snoRNA_primary_transcript' OR cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript' OR cvterm.name = 'C_D_box_snoRNA_primary_transcript' OR cvterm.name = 'H_ACA_box_snoRNA_primary_transcript' OR cvterm.name = 'U14_snoRNA_primary_transcript' OR cvterm.name = 'stRNA_primary_transcript' OR cvterm.name = 'nc_primary_transcript';
  9294. --- ************************************************
  9295. --- *** relation: three_prime_coding_exon_noncoding_region ***
  9296. --- *** relation type: VIEW ***
  9297. --- *** ***
  9298. --- *** The sequence of the 3' exon that is not ***
  9299. --- *** coding. ***
  9300. --- ************************************************
  9301. ---
  9302. CREATE VIEW three_prime_coding_exon_noncoding_region AS
  9303. SELECT
  9304. feature_id AS three_prime_coding_exon_noncoding_region_id,
  9305. feature.*
  9306. FROM
  9307. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9308. WHERE cvterm.name = 'three_prime_coding_exon_noncoding_region';
  9309. --- ************************************************
  9310. --- *** relation: dj_j_cluster ***
  9311. --- *** relation type: VIEW ***
  9312. --- *** ***
  9313. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9314. --- *** eptor gene in rearranged configuration i ***
  9315. --- *** ncluding at least one DJ-gene, and one J ***
  9316. --- *** -gene. ***
  9317. --- ************************************************
  9318. ---
  9319. CREATE VIEW dj_j_cluster AS
  9320. SELECT
  9321. feature_id AS dj_j_cluster_id,
  9322. feature.*
  9323. FROM
  9324. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9325. WHERE cvterm.name = 'DJ_J_cluster';
  9326. --- ************************************************
  9327. --- *** relation: five_prime_coding_exon_noncoding_region ***
  9328. --- *** relation type: VIEW ***
  9329. --- *** ***
  9330. --- *** The sequence of the 5' exon preceding th ***
  9331. --- *** e start codon. ***
  9332. --- ************************************************
  9333. ---
  9334. CREATE VIEW five_prime_coding_exon_noncoding_region AS
  9335. SELECT
  9336. feature_id AS five_prime_coding_exon_noncoding_region_id,
  9337. feature.*
  9338. FROM
  9339. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9340. WHERE cvterm.name = 'five_prime_coding_exon_noncoding_region';
  9341. --- ************************************************
  9342. --- *** relation: vdj_j_c_cluster ***
  9343. --- *** relation type: VIEW ***
  9344. --- *** ***
  9345. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9346. --- *** eptor gene in rearranged configuration i ***
  9347. --- *** ncluding at least one VDJ-gene, one J-ge ***
  9348. --- *** ne and one C-gene. ***
  9349. --- ************************************************
  9350. ---
  9351. CREATE VIEW vdj_j_c_cluster AS
  9352. SELECT
  9353. feature_id AS vdj_j_c_cluster_id,
  9354. feature.*
  9355. FROM
  9356. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9357. WHERE cvterm.name = 'VDJ_J_C_cluster';
  9358. --- ************************************************
  9359. --- *** relation: vdj_j_cluster ***
  9360. --- *** relation type: VIEW ***
  9361. --- *** ***
  9362. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9363. --- *** eptor gene in rearranged configuration i ***
  9364. --- *** ncluding at least one VDJ-gene and one J ***
  9365. --- *** -gene. ***
  9366. --- ************************************************
  9367. ---
  9368. CREATE VIEW vdj_j_cluster AS
  9369. SELECT
  9370. feature_id AS vdj_j_cluster_id,
  9371. feature.*
  9372. FROM
  9373. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9374. WHERE cvterm.name = 'VDJ_J_cluster';
  9375. --- ************************************************
  9376. --- *** relation: vj_c_cluster ***
  9377. --- *** relation type: VIEW ***
  9378. --- *** ***
  9379. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9380. --- *** eptor gene in rearranged configuration i ***
  9381. --- *** ncluding at least one VJ-gene and one C- ***
  9382. --- *** gene. ***
  9383. --- ************************************************
  9384. ---
  9385. CREATE VIEW vj_c_cluster AS
  9386. SELECT
  9387. feature_id AS vj_c_cluster_id,
  9388. feature.*
  9389. FROM
  9390. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9391. WHERE cvterm.name = 'VJ_C_cluster';
  9392. --- ************************************************
  9393. --- *** relation: vj_j_c_cluster ***
  9394. --- *** relation type: VIEW ***
  9395. --- *** ***
  9396. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9397. --- *** eptor gene in rearranged configuration i ***
  9398. --- *** ncluding at least one VJ-gene, one J-gen ***
  9399. --- *** e and one C-gene. ***
  9400. --- ************************************************
  9401. ---
  9402. CREATE VIEW vj_j_c_cluster AS
  9403. SELECT
  9404. feature_id AS vj_j_c_cluster_id,
  9405. feature.*
  9406. FROM
  9407. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9408. WHERE cvterm.name = 'VJ_J_C_cluster';
  9409. --- ************************************************
  9410. --- *** relation: vj_j_cluster ***
  9411. --- *** relation type: VIEW ***
  9412. --- *** ***
  9413. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9414. --- *** eptor gene in rearranged configuration i ***
  9415. --- *** ncluding at least one VJ-gene and one J- ***
  9416. --- *** gene. ***
  9417. --- ************************************************
  9418. ---
  9419. CREATE VIEW vj_j_cluster AS
  9420. SELECT
  9421. feature_id AS vj_j_cluster_id,
  9422. feature.*
  9423. FROM
  9424. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9425. WHERE cvterm.name = 'VJ_J_cluster';
  9426. --- ************************************************
  9427. --- *** relation: d_gene_recombination_feature ***
  9428. --- *** relation type: VIEW ***
  9429. --- *** ***
  9430. --- ************************************************
  9431. ---
  9432. CREATE VIEW d_gene_recombination_feature AS
  9433. SELECT
  9434. feature_id AS d_gene_recombination_feature_id,
  9435. feature.*
  9436. FROM
  9437. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9438. WHERE cvterm.name = 'five_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_recombination_signal_sequence' OR cvterm.name = 'D_gene_recombination_feature';
  9439. --- ************************************************
  9440. --- *** relation: three_prime_d_heptamer ***
  9441. --- *** relation type: VIEW ***
  9442. --- *** ***
  9443. --- *** 7 nucleotide recombination site like CAC ***
  9444. --- *** AGTG, part of a 3' D-recombination signa ***
  9445. --- *** l sequence of an immunoglobulin/T-cell r ***
  9446. --- *** eceptor gene. ***
  9447. --- ************************************************
  9448. ---
  9449. CREATE VIEW three_prime_d_heptamer AS
  9450. SELECT
  9451. feature_id AS three_prime_d_heptamer_id,
  9452. feature.*
  9453. FROM
  9454. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9455. WHERE cvterm.name = 'three_prime_D_heptamer';
  9456. --- ************************************************
  9457. --- *** relation: three_prime_d_nonamer ***
  9458. --- *** relation type: VIEW ***
  9459. --- *** ***
  9460. --- *** A 9 nucleotide recombination site (e.g. ***
  9461. --- *** ACAAAAACC), part of a 3' D-recombination ***
  9462. --- *** signal sequence of an immunoglobulin/T- ***
  9463. --- *** cell receptor gene. ***
  9464. --- ************************************************
  9465. ---
  9466. CREATE VIEW three_prime_d_nonamer AS
  9467. SELECT
  9468. feature_id AS three_prime_d_nonamer_id,
  9469. feature.*
  9470. FROM
  9471. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9472. WHERE cvterm.name = 'three_prime_D_nonamer';
  9473. --- ************************************************
  9474. --- *** relation: three_prime_d_spacer ***
  9475. --- *** relation type: VIEW ***
  9476. --- *** ***
  9477. --- *** A 12 or 23 nucleotide spacer between the ***
  9478. --- *** 3'D-HEPTAMER and 3'D-NONAMER of a 3'D-R ***
  9479. --- *** S. ***
  9480. --- ************************************************
  9481. ---
  9482. CREATE VIEW three_prime_d_spacer AS
  9483. SELECT
  9484. feature_id AS three_prime_d_spacer_id,
  9485. feature.*
  9486. FROM
  9487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9488. WHERE cvterm.name = 'three_prime_D_spacer';
  9489. --- ************************************************
  9490. --- *** relation: five_prime_d_heptamer ***
  9491. --- *** relation type: VIEW ***
  9492. --- *** ***
  9493. --- *** 7 nucleotide recombination site (e.g. CA ***
  9494. --- *** CTGTG), part of a 5' D-recombination sig ***
  9495. --- *** nal sequence (SO:0000556) of an immunogl ***
  9496. --- *** obulin/T-cell receptor gene. ***
  9497. --- ************************************************
  9498. ---
  9499. CREATE VIEW five_prime_d_heptamer AS
  9500. SELECT
  9501. feature_id AS five_prime_d_heptamer_id,
  9502. feature.*
  9503. FROM
  9504. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9505. WHERE cvterm.name = 'five_prime_D_heptamer';
  9506. --- ************************************************
  9507. --- *** relation: five_prime_d_nonamer ***
  9508. --- *** relation type: VIEW ***
  9509. --- *** ***
  9510. --- *** 9 nucleotide recombination site (e.g. GG ***
  9511. --- *** TTTTTGT), part of a five_prime_D-recombi ***
  9512. --- *** nation signal sequence (SO:0000556) of a ***
  9513. --- *** n immunoglobulin/T-cell receptor gene. ***
  9514. --- ************************************************
  9515. ---
  9516. CREATE VIEW five_prime_d_nonamer AS
  9517. SELECT
  9518. feature_id AS five_prime_d_nonamer_id,
  9519. feature.*
  9520. FROM
  9521. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9522. WHERE cvterm.name = 'five_prime_D_nonamer';
  9523. --- ************************************************
  9524. --- *** relation: five_prime_d_spacer ***
  9525. --- *** relation type: VIEW ***
  9526. --- *** ***
  9527. --- *** 12 or 23 nucleotide spacer between the 5 ***
  9528. --- *** ' D-heptamer (SO:0000496) and 5' D-nonam ***
  9529. --- *** er (SO:0000497) of a 5' D-recombination ***
  9530. --- *** signal sequence (SO:0000556) of an immun ***
  9531. --- *** oglobulin/T-cell receptor gene. ***
  9532. --- ************************************************
  9533. ---
  9534. CREATE VIEW five_prime_d_spacer AS
  9535. SELECT
  9536. feature_id AS five_prime_d_spacer_id,
  9537. feature.*
  9538. FROM
  9539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9540. WHERE cvterm.name = 'five_prime_D_spacer';
  9541. --- ************************************************
  9542. --- *** relation: virtual_sequence ***
  9543. --- *** relation type: VIEW ***
  9544. --- *** ***
  9545. --- *** A continuous piece of sequence similar t ***
  9546. --- *** o the 'virtual contig' concept of the En ***
  9547. --- *** sembl database. ***
  9548. --- ************************************************
  9549. ---
  9550. CREATE VIEW virtual_sequence AS
  9551. SELECT
  9552. feature_id AS virtual_sequence_id,
  9553. feature.*
  9554. FROM
  9555. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9556. WHERE cvterm.name = 'virtual_sequence';
  9557. --- ************************************************
  9558. --- *** relation: hoogsteen_base_pair ***
  9559. --- *** relation type: VIEW ***
  9560. --- *** ***
  9561. --- *** A type of non-canonical base-pairing. Th ***
  9562. --- *** is is less energetically favourable than ***
  9563. --- *** watson crick base pairing. Hoogsteen GC ***
  9564. --- *** base pairs only have two hydrogen bonds ***
  9565. --- *** . ***
  9566. --- ************************************************
  9567. ---
  9568. CREATE VIEW hoogsteen_base_pair AS
  9569. SELECT
  9570. feature_id AS hoogsteen_base_pair_id,
  9571. feature.*
  9572. FROM
  9573. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9574. WHERE cvterm.name = 'Hoogsteen_base_pair';
  9575. --- ************************************************
  9576. --- *** relation: reverse_hoogsteen_base_pair ***
  9577. --- *** relation type: VIEW ***
  9578. --- *** ***
  9579. --- *** A type of non-canonical base-pairing. ***
  9580. --- ************************************************
  9581. ---
  9582. CREATE VIEW reverse_hoogsteen_base_pair AS
  9583. SELECT
  9584. feature_id AS reverse_hoogsteen_base_pair_id,
  9585. feature.*
  9586. FROM
  9587. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9588. WHERE cvterm.name = 'reverse_Hoogsteen_base_pair';
  9589. --- ************************************************
  9590. --- *** relation: d_dj_c_cluster ***
  9591. --- *** relation type: VIEW ***
  9592. --- *** ***
  9593. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9594. --- *** eptor gene in rearranged configuration i ***
  9595. --- *** ncluding at least one D-gene, one DJ-gen ***
  9596. --- *** e and one C-gene. ***
  9597. --- ************************************************
  9598. ---
  9599. CREATE VIEW d_dj_c_cluster AS
  9600. SELECT
  9601. feature_id AS d_dj_c_cluster_id,
  9602. feature.*
  9603. FROM
  9604. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9605. WHERE cvterm.name = 'D_DJ_C_cluster';
  9606. --- ************************************************
  9607. --- *** relation: d_dj_cluster ***
  9608. --- *** relation type: VIEW ***
  9609. --- *** ***
  9610. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9611. --- *** eptor gene in rearranged configuration i ***
  9612. --- *** ncluding at least one D-gene and one DJ- ***
  9613. --- *** gene. ***
  9614. --- ************************************************
  9615. ---
  9616. CREATE VIEW d_dj_cluster AS
  9617. SELECT
  9618. feature_id AS d_dj_cluster_id,
  9619. feature.*
  9620. FROM
  9621. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9622. WHERE cvterm.name = 'D_DJ_cluster';
  9623. --- ************************************************
  9624. --- *** relation: d_dj_j_c_cluster ***
  9625. --- *** relation type: VIEW ***
  9626. --- *** ***
  9627. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9628. --- *** eptor gene in rearranged configuration i ***
  9629. --- *** ncluding at least one D-gene, one DJ-gen ***
  9630. --- *** e, one J-gene and one C-gene. ***
  9631. --- ************************************************
  9632. ---
  9633. CREATE VIEW d_dj_j_c_cluster AS
  9634. SELECT
  9635. feature_id AS d_dj_j_c_cluster_id,
  9636. feature.*
  9637. FROM
  9638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9639. WHERE cvterm.name = 'D_DJ_J_C_cluster';
  9640. --- ************************************************
  9641. --- *** relation: pseudogenic_exon ***
  9642. --- *** relation type: VIEW ***
  9643. --- *** ***
  9644. --- *** A non functional descendant of an exon, ***
  9645. --- *** part of a pseudogene. ***
  9646. --- ************************************************
  9647. ---
  9648. CREATE VIEW pseudogenic_exon AS
  9649. SELECT
  9650. feature_id AS pseudogenic_exon_id,
  9651. feature.*
  9652. FROM
  9653. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9654. WHERE cvterm.name = 'pseudogenic_exon';
  9655. --- ************************************************
  9656. --- *** relation: d_dj_j_cluster ***
  9657. --- *** relation type: VIEW ***
  9658. --- *** ***
  9659. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9660. --- *** eptor gene in rearranged configuration i ***
  9661. --- *** ncluding at least one D-gene, one DJ-gen ***
  9662. --- *** e, and one J-gene. ***
  9663. --- ************************************************
  9664. ---
  9665. CREATE VIEW d_dj_j_cluster AS
  9666. SELECT
  9667. feature_id AS d_dj_j_cluster_id,
  9668. feature.*
  9669. FROM
  9670. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9671. WHERE cvterm.name = 'D_DJ_J_cluster';
  9672. --- ************************************************
  9673. --- *** relation: d_j_c_cluster ***
  9674. --- *** relation type: VIEW ***
  9675. --- *** ***
  9676. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9677. --- *** eptor gene in germline configuration inc ***
  9678. --- *** luding at least one D-gene, one J-gene a ***
  9679. --- *** nd one C-gene. ***
  9680. --- ************************************************
  9681. ---
  9682. CREATE VIEW d_j_c_cluster AS
  9683. SELECT
  9684. feature_id AS d_j_c_cluster_id,
  9685. feature.*
  9686. FROM
  9687. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9688. WHERE cvterm.name = 'D_J_C_cluster';
  9689. --- ************************************************
  9690. --- *** relation: vd_gene ***
  9691. --- *** relation type: VIEW ***
  9692. --- *** ***
  9693. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9694. --- *** eptor gene in partially rearranged genom ***
  9695. --- *** ic DNA including L-part1, V-intron and V ***
  9696. --- *** -D-exon, with the 5' UTR (SO:0000204) an ***
  9697. --- *** d 3' UTR (SO:0000205). ***
  9698. --- ************************************************
  9699. ---
  9700. CREATE VIEW vd_gene AS
  9701. SELECT
  9702. feature_id AS vd_gene_id,
  9703. feature.*
  9704. FROM
  9705. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9706. WHERE cvterm.name = 'VD_gene';
  9707. --- ************************************************
  9708. --- *** relation: j_c_cluster ***
  9709. --- *** relation type: VIEW ***
  9710. --- *** ***
  9711. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9712. --- *** eptor gene in germline configuration inc ***
  9713. --- *** luding at least one J-gene and one C-gen ***
  9714. --- *** e. ***
  9715. --- ************************************************
  9716. ---
  9717. CREATE VIEW j_c_cluster AS
  9718. SELECT
  9719. feature_id AS j_c_cluster_id,
  9720. feature.*
  9721. FROM
  9722. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9723. WHERE cvterm.name = 'J_C_cluster';
  9724. --- ************************************************
  9725. --- *** relation: inversion_derived_deficiency_plus_aneuploid ***
  9726. --- *** relation type: VIEW ***
  9727. --- *** ***
  9728. --- *** A chromosomal deletion whereby a chromos ***
  9729. --- *** ome generated by recombination between t ***
  9730. --- *** wo inversions; has a deficiency at one e ***
  9731. --- *** nd and presumed to have a deficiency or ***
  9732. --- *** duplication at the other end of the inve ***
  9733. --- *** rsion. ***
  9734. --- ************************************************
  9735. ---
  9736. CREATE VIEW inversion_derived_deficiency_plus_aneuploid AS
  9737. SELECT
  9738. feature_id AS inversion_derived_deficiency_plus_aneuploid_id,
  9739. feature.*
  9740. FROM
  9741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9742. WHERE cvterm.name = 'inversion_derived_deficiency_plus_aneuploid';
  9743. --- ************************************************
  9744. --- *** relation: j_cluster ***
  9745. --- *** relation type: VIEW ***
  9746. --- *** ***
  9747. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9748. --- *** eptor gene in germline configuration inc ***
  9749. --- *** luding more than one J-gene. ***
  9750. --- ************************************************
  9751. ---
  9752. CREATE VIEW j_cluster AS
  9753. SELECT
  9754. feature_id AS j_cluster_id,
  9755. feature.*
  9756. FROM
  9757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9758. WHERE cvterm.name = 'J_cluster';
  9759. --- ************************************************
  9760. --- *** relation: j_nonamer ***
  9761. --- *** relation type: VIEW ***
  9762. --- *** ***
  9763. --- *** 9 nucleotide recombination site (e.g. GG ***
  9764. --- *** TTTTTGT), part of a J-gene recombination ***
  9765. --- *** feature of an immunoglobulin/T-cell rec ***
  9766. --- *** eptor gene. ***
  9767. --- ************************************************
  9768. ---
  9769. CREATE VIEW j_nonamer AS
  9770. SELECT
  9771. feature_id AS j_nonamer_id,
  9772. feature.*
  9773. FROM
  9774. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9775. WHERE cvterm.name = 'J_nonamer';
  9776. --- ************************************************
  9777. --- *** relation: j_heptamer ***
  9778. --- *** relation type: VIEW ***
  9779. --- *** ***
  9780. --- *** 7 nucleotide recombination site (e.g. CA ***
  9781. --- *** CAGTG), part of a J-gene recombination f ***
  9782. --- *** eature of an immunoglobulin/T-cell recep ***
  9783. --- *** tor gene. ***
  9784. --- ************************************************
  9785. ---
  9786. CREATE VIEW j_heptamer AS
  9787. SELECT
  9788. feature_id AS j_heptamer_id,
  9789. feature.*
  9790. FROM
  9791. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9792. WHERE cvterm.name = 'J_heptamer';
  9793. --- ************************************************
  9794. --- *** relation: pseudogenic_transcript ***
  9795. --- *** relation type: VIEW ***
  9796. --- *** ***
  9797. --- *** A non functional descendant of a transcr ***
  9798. --- *** ipt, part of a pseudogene. ***
  9799. --- ************************************************
  9800. ---
  9801. CREATE VIEW pseudogenic_transcript AS
  9802. SELECT
  9803. feature_id AS pseudogenic_transcript_id,
  9804. feature.*
  9805. FROM
  9806. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9807. WHERE cvterm.name = 'pseudogenic_transcript';
  9808. --- ************************************************
  9809. --- *** relation: j_spacer ***
  9810. --- *** relation type: VIEW ***
  9811. --- *** ***
  9812. --- *** 12 or 23 nucleotide spacer between the J ***
  9813. --- *** -nonamer and the J-heptamer of a J-gene ***
  9814. --- *** recombination feature of an immunoglobul ***
  9815. --- *** in/T-cell receptor gene. ***
  9816. --- ************************************************
  9817. ---
  9818. CREATE VIEW j_spacer AS
  9819. SELECT
  9820. feature_id AS j_spacer_id,
  9821. feature.*
  9822. FROM
  9823. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9824. WHERE cvterm.name = 'J_spacer';
  9825. --- ************************************************
  9826. --- *** relation: v_dj_cluster ***
  9827. --- *** relation type: VIEW ***
  9828. --- *** ***
  9829. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9830. --- *** eptor gene in rearranged configuration i ***
  9831. --- *** ncluding at least one V-gene and one DJ- ***
  9832. --- *** gene. ***
  9833. --- ************************************************
  9834. ---
  9835. CREATE VIEW v_dj_cluster AS
  9836. SELECT
  9837. feature_id AS v_dj_cluster_id,
  9838. feature.*
  9839. FROM
  9840. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9841. WHERE cvterm.name = 'V_DJ_cluster';
  9842. --- ************************************************
  9843. --- *** relation: v_dj_j_cluster ***
  9844. --- *** relation type: VIEW ***
  9845. --- *** ***
  9846. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9847. --- *** eptor gene in rearranged configuration i ***
  9848. --- *** ncluding at least one V-gene, one DJ-gen ***
  9849. --- *** e and one J-gene. ***
  9850. --- ************************************************
  9851. ---
  9852. CREATE VIEW v_dj_j_cluster AS
  9853. SELECT
  9854. feature_id AS v_dj_j_cluster_id,
  9855. feature.*
  9856. FROM
  9857. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9858. WHERE cvterm.name = 'V_DJ_J_cluster';
  9859. --- ************************************************
  9860. --- *** relation: v_vdj_c_cluster ***
  9861. --- *** relation type: VIEW ***
  9862. --- *** ***
  9863. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9864. --- *** eptor gene in rearranged configuration i ***
  9865. --- *** ncluding at least one V-gene, one VDJ-ge ***
  9866. --- *** ne and one C-gene. ***
  9867. --- ************************************************
  9868. ---
  9869. CREATE VIEW v_vdj_c_cluster AS
  9870. SELECT
  9871. feature_id AS v_vdj_c_cluster_id,
  9872. feature.*
  9873. FROM
  9874. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9875. WHERE cvterm.name = 'V_VDJ_C_cluster';
  9876. --- ************************************************
  9877. --- *** relation: v_vdj_cluster ***
  9878. --- *** relation type: VIEW ***
  9879. --- *** ***
  9880. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9881. --- *** eptor gene in rearranged configuration i ***
  9882. --- *** ncluding at least one V-gene and one VDJ ***
  9883. --- *** -gene. ***
  9884. --- ************************************************
  9885. ---
  9886. CREATE VIEW v_vdj_cluster AS
  9887. SELECT
  9888. feature_id AS v_vdj_cluster_id,
  9889. feature.*
  9890. FROM
  9891. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9892. WHERE cvterm.name = 'V_VDJ_cluster';
  9893. --- ************************************************
  9894. --- *** relation: v_vdj_j_cluster ***
  9895. --- *** relation type: VIEW ***
  9896. --- *** ***
  9897. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9898. --- *** eptor gene in rearranged configuration i ***
  9899. --- *** ncluding at least one V-gene, one VDJ-ge ***
  9900. --- *** ne and one J-gene. ***
  9901. --- ************************************************
  9902. ---
  9903. CREATE VIEW v_vdj_j_cluster AS
  9904. SELECT
  9905. feature_id AS v_vdj_j_cluster_id,
  9906. feature.*
  9907. FROM
  9908. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9909. WHERE cvterm.name = 'V_VDJ_J_cluster';
  9910. --- ************************************************
  9911. --- *** relation: v_vj_c_cluster ***
  9912. --- *** relation type: VIEW ***
  9913. --- *** ***
  9914. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9915. --- *** eptor gene in rearranged configuration i ***
  9916. --- *** ncluding at least one V-gene, one VJ-gen ***
  9917. --- *** e and one C-gene. ***
  9918. --- ************************************************
  9919. ---
  9920. CREATE VIEW v_vj_c_cluster AS
  9921. SELECT
  9922. feature_id AS v_vj_c_cluster_id,
  9923. feature.*
  9924. FROM
  9925. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9926. WHERE cvterm.name = 'V_VJ_C_cluster';
  9927. --- ************************************************
  9928. --- *** relation: v_vj_cluster ***
  9929. --- *** relation type: VIEW ***
  9930. --- *** ***
  9931. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9932. --- *** eptor gene in rearranged configuration i ***
  9933. --- *** ncluding at least one V-gene and one VJ- ***
  9934. --- *** gene. ***
  9935. --- ************************************************
  9936. ---
  9937. CREATE VIEW v_vj_cluster AS
  9938. SELECT
  9939. feature_id AS v_vj_cluster_id,
  9940. feature.*
  9941. FROM
  9942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9943. WHERE cvterm.name = 'V_VJ_cluster';
  9944. --- ************************************************
  9945. --- *** relation: v_vj_j_cluster ***
  9946. --- *** relation type: VIEW ***
  9947. --- *** ***
  9948. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9949. --- *** eptor gene in rearranged configuration i ***
  9950. --- *** ncluding at least one V-gene, one VJ-gen ***
  9951. --- *** e and one J-gene. ***
  9952. --- ************************************************
  9953. ---
  9954. CREATE VIEW v_vj_j_cluster AS
  9955. SELECT
  9956. feature_id AS v_vj_j_cluster_id,
  9957. feature.*
  9958. FROM
  9959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9960. WHERE cvterm.name = 'V_VJ_J_cluster';
  9961. --- ************************************************
  9962. --- *** relation: v_cluster ***
  9963. --- *** relation type: VIEW ***
  9964. --- *** ***
  9965. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9966. --- *** eptor gene in germline configuration inc ***
  9967. --- *** luding more than one V-gene. ***
  9968. --- ************************************************
  9969. ---
  9970. CREATE VIEW v_cluster AS
  9971. SELECT
  9972. feature_id AS v_cluster_id,
  9973. feature.*
  9974. FROM
  9975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9976. WHERE cvterm.name = 'V_cluster';
  9977. --- ************************************************
  9978. --- *** relation: v_d_dj_c_cluster ***
  9979. --- *** relation type: VIEW ***
  9980. --- *** ***
  9981. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9982. --- *** eptor gene in rearranged configuration i ***
  9983. --- *** ncluding at least one V-gene, one D-gene ***
  9984. --- *** , one DJ-gene and one C-gene. ***
  9985. --- ************************************************
  9986. ---
  9987. CREATE VIEW v_d_dj_c_cluster AS
  9988. SELECT
  9989. feature_id AS v_d_dj_c_cluster_id,
  9990. feature.*
  9991. FROM
  9992. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9993. WHERE cvterm.name = 'V_D_DJ_C_cluster';
  9994. --- ************************************************
  9995. --- *** relation: v_d_dj_cluster ***
  9996. --- *** relation type: VIEW ***
  9997. --- *** ***
  9998. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9999. --- *** eptor gene in rearranged configuration i ***
  10000. --- *** ncluding at least one V-gene, one D-gene ***
  10001. --- *** , one DJ-gene. ***
  10002. --- ************************************************
  10003. ---
  10004. CREATE VIEW v_d_dj_cluster AS
  10005. SELECT
  10006. feature_id AS v_d_dj_cluster_id,
  10007. feature.*
  10008. FROM
  10009. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10010. WHERE cvterm.name = 'V_D_DJ_cluster';
  10011. --- ************************************************
  10012. --- *** relation: v_d_dj_j_c_cluster ***
  10013. --- *** relation type: VIEW ***
  10014. --- *** ***
  10015. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10016. --- *** eptor gene in rearranged configuration i ***
  10017. --- *** ncluding at least one V-gene, one D-gene ***
  10018. --- *** , one DJ-gene, one J-gene and one C-gene ***
  10019. --- *** . ***
  10020. --- ************************************************
  10021. ---
  10022. CREATE VIEW v_d_dj_j_c_cluster AS
  10023. SELECT
  10024. feature_id AS v_d_dj_j_c_cluster_id,
  10025. feature.*
  10026. FROM
  10027. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10028. WHERE cvterm.name = 'V_D_DJ_J_C_cluster';
  10029. --- ************************************************
  10030. --- *** relation: v_d_dj_j_cluster ***
  10031. --- *** relation type: VIEW ***
  10032. --- *** ***
  10033. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10034. --- *** eptor gene in rearranged configuration i ***
  10035. --- *** ncluding at least one V-gene, one D-gene ***
  10036. --- *** , one DJ-gene and one J-gene. ***
  10037. --- ************************************************
  10038. ---
  10039. CREATE VIEW v_d_dj_j_cluster AS
  10040. SELECT
  10041. feature_id AS v_d_dj_j_cluster_id,
  10042. feature.*
  10043. FROM
  10044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10045. WHERE cvterm.name = 'V_D_DJ_J_cluster';
  10046. --- ************************************************
  10047. --- *** relation: v_d_j_c_cluster ***
  10048. --- *** relation type: VIEW ***
  10049. --- *** ***
  10050. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10051. --- *** eptor gene in germline configuration inc ***
  10052. --- *** luding at least one V-gene, one D-gene a ***
  10053. --- *** nd one J-gene and one C-gene. ***
  10054. --- ************************************************
  10055. ---
  10056. CREATE VIEW v_d_j_c_cluster AS
  10057. SELECT
  10058. feature_id AS v_d_j_c_cluster_id,
  10059. feature.*
  10060. FROM
  10061. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10062. WHERE cvterm.name = 'V_D_J_C_cluster';
  10063. --- ************************************************
  10064. --- *** relation: v_d_j_cluster ***
  10065. --- *** relation type: VIEW ***
  10066. --- *** ***
  10067. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10068. --- *** eptor gene in germline configuration inc ***
  10069. --- *** luding at least one V-gene, one D-gene a ***
  10070. --- *** nd one J-gene. ***
  10071. --- ************************************************
  10072. ---
  10073. CREATE VIEW v_d_j_cluster AS
  10074. SELECT
  10075. feature_id AS v_d_j_cluster_id,
  10076. feature.*
  10077. FROM
  10078. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10079. WHERE cvterm.name = 'V_D_J_cluster';
  10080. --- ************************************************
  10081. --- *** relation: v_heptamer ***
  10082. --- *** relation type: VIEW ***
  10083. --- *** ***
  10084. --- *** 7 nucleotide recombination site (e.g. CA ***
  10085. --- *** CAGTG), part of V-gene recombination fea ***
  10086. --- *** ture of an immunoglobulin/T-cell recepto ***
  10087. --- *** r gene. ***
  10088. --- ************************************************
  10089. ---
  10090. CREATE VIEW v_heptamer AS
  10091. SELECT
  10092. feature_id AS v_heptamer_id,
  10093. feature.*
  10094. FROM
  10095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10096. WHERE cvterm.name = 'V_heptamer';
  10097. --- ************************************************
  10098. --- *** relation: v_j_cluster ***
  10099. --- *** relation type: VIEW ***
  10100. --- *** ***
  10101. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10102. --- *** eptor gene in germline configuration inc ***
  10103. --- *** luding at least one V-gene and one J-gen ***
  10104. --- *** e. ***
  10105. --- ************************************************
  10106. ---
  10107. CREATE VIEW v_j_cluster AS
  10108. SELECT
  10109. feature_id AS v_j_cluster_id,
  10110. feature.*
  10111. FROM
  10112. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10113. WHERE cvterm.name = 'V_J_cluster';
  10114. --- ************************************************
  10115. --- *** relation: v_j_c_cluster ***
  10116. --- *** relation type: VIEW ***
  10117. --- *** ***
  10118. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10119. --- *** eptor gene in germline configuration inc ***
  10120. --- *** luding at least one V-gene, one J-gene a ***
  10121. --- *** nd one C-gene. ***
  10122. --- ************************************************
  10123. ---
  10124. CREATE VIEW v_j_c_cluster AS
  10125. SELECT
  10126. feature_id AS v_j_c_cluster_id,
  10127. feature.*
  10128. FROM
  10129. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10130. WHERE cvterm.name = 'V_J_C_cluster';
  10131. --- ************************************************
  10132. --- *** relation: v_nonamer ***
  10133. --- *** relation type: VIEW ***
  10134. --- *** ***
  10135. --- *** 9 nucleotide recombination site (e.g. AC ***
  10136. --- *** AAAAACC), part of V-gene recombination f ***
  10137. --- *** eature of an immunoglobulin/T-cell recep ***
  10138. --- *** tor gene. ***
  10139. --- ************************************************
  10140. ---
  10141. CREATE VIEW v_nonamer AS
  10142. SELECT
  10143. feature_id AS v_nonamer_id,
  10144. feature.*
  10145. FROM
  10146. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10147. WHERE cvterm.name = 'V_nonamer';
  10148. --- ************************************************
  10149. --- *** relation: v_spacer ***
  10150. --- *** relation type: VIEW ***
  10151. --- *** ***
  10152. --- *** 12 or 23 nucleotide spacer between the V ***
  10153. --- *** -heptamer and the V-nonamer of a V-gene ***
  10154. --- *** recombination feature of an immunoglobul ***
  10155. --- *** in/T-cell receptor gene. ***
  10156. --- ************************************************
  10157. ---
  10158. CREATE VIEW v_spacer AS
  10159. SELECT
  10160. feature_id AS v_spacer_id,
  10161. feature.*
  10162. FROM
  10163. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10164. WHERE cvterm.name = 'V_spacer';
  10165. --- ************************************************
  10166. --- *** relation: v_gene_recombination_feature ***
  10167. --- *** relation type: VIEW ***
  10168. --- *** ***
  10169. --- *** Recombination signal including V-heptame ***
  10170. --- *** r, V-spacer and V-nonamer in 3' of V-reg ***
  10171. --- *** ion of a V-gene or V-sequence of an immu ***
  10172. --- *** noglobulin/T-cell receptor gene. ***
  10173. --- ************************************************
  10174. ---
  10175. CREATE VIEW v_gene_recombination_feature AS
  10176. SELECT
  10177. feature_id AS v_gene_recombination_feature_id,
  10178. feature.*
  10179. FROM
  10180. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10181. WHERE cvterm.name = 'V_gene_recombination_feature';
  10182. --- ************************************************
  10183. --- *** relation: dj_c_cluster ***
  10184. --- *** relation type: VIEW ***
  10185. --- *** ***
  10186. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10187. --- *** eptor gene in rearranged configuration i ***
  10188. --- *** ncluding at least one DJ-gene and one C- ***
  10189. --- *** gene. ***
  10190. --- ************************************************
  10191. ---
  10192. CREATE VIEW dj_c_cluster AS
  10193. SELECT
  10194. feature_id AS dj_c_cluster_id,
  10195. feature.*
  10196. FROM
  10197. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10198. WHERE cvterm.name = 'DJ_C_cluster';
  10199. --- ************************************************
  10200. --- *** relation: dj_j_c_cluster ***
  10201. --- *** relation type: VIEW ***
  10202. --- *** ***
  10203. --- *** Genomic DNA in rearranged configuration ***
  10204. --- *** including at least one D-J-GENE, one J-G ***
  10205. --- *** ENE and one C-GENE. ***
  10206. --- ************************************************
  10207. ---
  10208. CREATE VIEW dj_j_c_cluster AS
  10209. SELECT
  10210. feature_id AS dj_j_c_cluster_id,
  10211. feature.*
  10212. FROM
  10213. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10214. WHERE cvterm.name = 'DJ_J_C_cluster';
  10215. --- ************************************************
  10216. --- *** relation: vdj_c_cluster ***
  10217. --- *** relation type: VIEW ***
  10218. --- *** ***
  10219. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10220. --- *** eptor gene in rearranged configuration i ***
  10221. --- *** ncluding at least one VDJ-gene and one C ***
  10222. --- *** -gene. ***
  10223. --- ************************************************
  10224. ---
  10225. CREATE VIEW vdj_c_cluster AS
  10226. SELECT
  10227. feature_id AS vdj_c_cluster_id,
  10228. feature.*
  10229. FROM
  10230. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10231. WHERE cvterm.name = 'VDJ_C_cluster';
  10232. --- ************************************************
  10233. --- *** relation: v_dj_c_cluster ***
  10234. --- *** relation type: VIEW ***
  10235. --- *** ***
  10236. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10237. --- *** eptor gene in rearranged configuration i ***
  10238. --- *** ncluding at least one V-gene, one DJ-gen ***
  10239. --- *** e and one C-gene. ***
  10240. --- ************************************************
  10241. ---
  10242. CREATE VIEW v_dj_c_cluster AS
  10243. SELECT
  10244. feature_id AS v_dj_c_cluster_id,
  10245. feature.*
  10246. FROM
  10247. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10248. WHERE cvterm.name = 'V_DJ_C_cluster';
  10249. --- ************************************************
  10250. --- *** relation: helitron ***
  10251. --- *** relation type: VIEW ***
  10252. --- *** ***
  10253. --- *** A rolling circle transposon. Autonomous ***
  10254. --- *** helitrons encode a 5'-to-3' DNA helicase ***
  10255. --- *** and nuclease/ligase similar to those en ***
  10256. --- *** coded by known rolling-circle replicons. ***
  10257. --- ************************************************
  10258. ---
  10259. CREATE VIEW helitron AS
  10260. SELECT
  10261. feature_id AS helitron_id,
  10262. feature.*
  10263. FROM
  10264. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10265. WHERE cvterm.name = 'helitron';
  10266. --- ************************************************
  10267. --- *** relation: recoding_pseudoknot ***
  10268. --- *** relation type: VIEW ***
  10269. --- *** ***
  10270. --- *** The pseudoknots involved in recoding are ***
  10271. --- *** unique in that, as they play their role ***
  10272. --- *** as a structure, they are immediately un ***
  10273. --- *** folded and their now linear sequence ser ***
  10274. --- *** ves as a template for decoding. ***
  10275. --- ************************************************
  10276. ---
  10277. CREATE VIEW recoding_pseudoknot AS
  10278. SELECT
  10279. feature_id AS recoding_pseudoknot_id,
  10280. feature.*
  10281. FROM
  10282. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10283. WHERE cvterm.name = 'recoding_pseudoknot';
  10284. --- ************************************************
  10285. --- *** relation: designed_sequence ***
  10286. --- *** relation type: VIEW ***
  10287. --- *** ***
  10288. --- ************************************************
  10289. ---
  10290. CREATE VIEW designed_sequence AS
  10291. SELECT
  10292. feature_id AS designed_sequence_id,
  10293. feature.*
  10294. FROM
  10295. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10296. WHERE cvterm.name = 'designed_sequence';
  10297. --- ************************************************
  10298. --- *** relation: inversion_derived_bipartite_duplication ***
  10299. --- *** relation type: VIEW ***
  10300. --- *** ***
  10301. --- *** A chromosome generated by recombination ***
  10302. --- *** between two inversions; there is a dupli ***
  10303. --- *** cation at each end of the inversion. ***
  10304. --- ************************************************
  10305. ---
  10306. CREATE VIEW inversion_derived_bipartite_duplication AS
  10307. SELECT
  10308. feature_id AS inversion_derived_bipartite_duplication_id,
  10309. feature.*
  10310. FROM
  10311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10312. WHERE cvterm.name = 'inversion_derived_bipartite_duplication';
  10313. --- ************************************************
  10314. --- *** relation: gene_with_edited_transcript ***
  10315. --- *** relation type: VIEW ***
  10316. --- *** ***
  10317. --- *** A gene that encodes a transcript that is ***
  10318. --- *** edited. ***
  10319. --- ************************************************
  10320. ---
  10321. CREATE VIEW gene_with_edited_transcript AS
  10322. SELECT
  10323. feature_id AS gene_with_edited_transcript_id,
  10324. feature.*
  10325. FROM
  10326. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10327. WHERE cvterm.name = 'gene_with_edited_transcript';
  10328. --- ************************************************
  10329. --- *** relation: inversion_derived_duplication_plus_aneuploid ***
  10330. --- *** relation type: VIEW ***
  10331. --- *** ***
  10332. --- *** A chromosome generated by recombination ***
  10333. --- *** between two inversions; has a duplicatio ***
  10334. --- *** n at one end and presumed to have a defi ***
  10335. --- *** ciency or duplication at the other end o ***
  10336. --- *** f the inversion. ***
  10337. --- ************************************************
  10338. ---
  10339. CREATE VIEW inversion_derived_duplication_plus_aneuploid AS
  10340. SELECT
  10341. feature_id AS inversion_derived_duplication_plus_aneuploid_id,
  10342. feature.*
  10343. FROM
  10344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10345. WHERE cvterm.name = 'inversion_derived_duplication_plus_aneuploid';
  10346. --- ************************************************
  10347. --- *** relation: aneuploid_chromosome ***
  10348. --- *** relation type: VIEW ***
  10349. --- *** ***
  10350. --- *** A chromosome structural variation whereb ***
  10351. --- *** y either a chromosome exists in addition ***
  10352. --- *** to the normal chromosome complement or ***
  10353. --- *** is lacking. ***
  10354. --- ************************************************
  10355. ---
  10356. CREATE VIEW aneuploid_chromosome AS
  10357. SELECT
  10358. feature_id AS aneuploid_chromosome_id,
  10359. feature.*
  10360. FROM
  10361. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10362. WHERE cvterm.name = 'inversion_derived_aneuploid_chromosome' OR cvterm.name = 'aneuploid_chromosome';
  10363. --- ************************************************
  10364. --- *** relation: polya_signal_sequence ***
  10365. --- *** relation type: VIEW ***
  10366. --- *** ***
  10367. --- *** The recognition sequence necessary for e ***
  10368. --- *** ndonuclease cleavage of an RNA transcrip ***
  10369. --- *** t that is followed by polyadenylation; c ***
  10370. --- *** onsensus=AATAAA. ***
  10371. --- ************************************************
  10372. ---
  10373. CREATE VIEW polya_signal_sequence AS
  10374. SELECT
  10375. feature_id AS polya_signal_sequence_id,
  10376. feature.*
  10377. FROM
  10378. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10379. WHERE cvterm.name = 'polyA_signal_sequence';
  10380. --- ************************************************
  10381. --- *** relation: shine_dalgarno_sequence ***
  10382. --- *** relation type: VIEW ***
  10383. --- *** ***
  10384. --- *** A region in the 5' UTR that pairs with t ***
  10385. --- *** he 16S rRNA during formation of the prei ***
  10386. --- *** nitiation complex. ***
  10387. --- ************************************************
  10388. ---
  10389. CREATE VIEW shine_dalgarno_sequence AS
  10390. SELECT
  10391. feature_id AS shine_dalgarno_sequence_id,
  10392. feature.*
  10393. FROM
  10394. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10395. WHERE cvterm.name = 'Shine_Dalgarno_sequence';
  10396. --- ************************************************
  10397. --- *** relation: polya_site ***
  10398. --- *** relation type: VIEW ***
  10399. --- *** ***
  10400. --- *** The site on an RNA transcript to which w ***
  10401. --- *** ill be added adenine residues by post-tr ***
  10402. --- *** anscriptional polyadenylation. The bound ***
  10403. --- *** ary between the UTR and the polyA sequen ***
  10404. --- *** ce. ***
  10405. --- ************************************************
  10406. ---
  10407. CREATE VIEW polya_site AS
  10408. SELECT
  10409. feature_id AS polya_site_id,
  10410. feature.*
  10411. FROM
  10412. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10413. WHERE cvterm.name = 'polyA_site';
  10414. --- ************************************************
  10415. --- *** relation: five_prime_clip ***
  10416. --- *** relation type: VIEW ***
  10417. --- *** ***
  10418. --- *** 5' most region of a precursor transcript ***
  10419. --- *** that is clipped off during processing. ***
  10420. --- ************************************************
  10421. ---
  10422. CREATE VIEW five_prime_clip AS
  10423. SELECT
  10424. feature_id AS five_prime_clip_id,
  10425. feature.*
  10426. FROM
  10427. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10428. WHERE cvterm.name = 'five_prime_clip';
  10429. --- ************************************************
  10430. --- *** relation: five_prime_d_recombination_signal_sequence ***
  10431. --- *** relation type: VIEW ***
  10432. --- *** ***
  10433. --- *** Recombination signal of an immunoglobuli ***
  10434. --- *** n/T-cell receptor gene, including the 5' ***
  10435. --- *** D-nonamer (SO:0000497), 5' D-spacer (SO ***
  10436. --- *** :0000498), and 5' D-heptamer (SO:0000396 ***
  10437. --- *** ) in 5' of the D-region of a D-gene, or ***
  10438. --- *** in 5' of the D-region of DJ-gene. ***
  10439. --- ************************************************
  10440. ---
  10441. CREATE VIEW five_prime_d_recombination_signal_sequence AS
  10442. SELECT
  10443. feature_id AS five_prime_d_recombination_signal_sequence_id,
  10444. feature.*
  10445. FROM
  10446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10447. WHERE cvterm.name = 'five_prime_D_recombination_signal_sequence';
  10448. --- ************************************************
  10449. --- *** relation: three_prime_clip ***
  10450. --- *** relation type: VIEW ***
  10451. --- *** ***
  10452. --- *** 3'-most region of a precursor transcript ***
  10453. --- *** that is clipped off during processing. ***
  10454. --- ************************************************
  10455. ---
  10456. CREATE VIEW three_prime_clip AS
  10457. SELECT
  10458. feature_id AS three_prime_clip_id,
  10459. feature.*
  10460. FROM
  10461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10462. WHERE cvterm.name = 'three_prime_clip';
  10463. --- ************************************************
  10464. --- *** relation: c_cluster ***
  10465. --- *** relation type: VIEW ***
  10466. --- *** ***
  10467. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10468. --- *** eptor gene including more than one C-gen ***
  10469. --- *** e. ***
  10470. --- ************************************************
  10471. ---
  10472. CREATE VIEW c_cluster AS
  10473. SELECT
  10474. feature_id AS c_cluster_id,
  10475. feature.*
  10476. FROM
  10477. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10478. WHERE cvterm.name = 'C_cluster';
  10479. --- ************************************************
  10480. --- *** relation: d_cluster ***
  10481. --- *** relation type: VIEW ***
  10482. --- *** ***
  10483. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10484. --- *** eptor gene in germline configuration inc ***
  10485. --- *** luding more than one D-gene. ***
  10486. --- ************************************************
  10487. ---
  10488. CREATE VIEW d_cluster AS
  10489. SELECT
  10490. feature_id AS d_cluster_id,
  10491. feature.*
  10492. FROM
  10493. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10494. WHERE cvterm.name = 'D_cluster';
  10495. --- ************************************************
  10496. --- *** relation: d_j_cluster ***
  10497. --- *** relation type: VIEW ***
  10498. --- *** ***
  10499. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10500. --- *** eptor gene in germline configuration inc ***
  10501. --- *** luding at least one D-gene and one J-gen ***
  10502. --- *** e. ***
  10503. --- ************************************************
  10504. ---
  10505. CREATE VIEW d_j_cluster AS
  10506. SELECT
  10507. feature_id AS d_j_cluster_id,
  10508. feature.*
  10509. FROM
  10510. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10511. WHERE cvterm.name = 'D_J_cluster';
  10512. --- ************************************************
  10513. --- *** relation: heptamer_of_recombination_feature_of_vertebrate_im_sys_gene ***
  10514. --- *** relation type: VIEW ***
  10515. --- *** ***
  10516. --- *** Seven nucleotide recombination site (e.g ***
  10517. --- *** . CACAGTG), part of V-gene, D-gene or J- ***
  10518. --- *** gene recombination feature of an immunog ***
  10519. --- *** lobulin or T-cell receptor gene. ***
  10520. --- ************************************************
  10521. ---
  10522. CREATE VIEW heptamer_of_recombination_feature_of_vertebrate_im_sys_gene AS
  10523. SELECT
  10524. feature_id AS heptamer_of_recombination_feature_of_vertebrate_im_sys_gene_id,
  10525. feature.*
  10526. FROM
  10527. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10528. WHERE cvterm.name = 'three_prime_D_heptamer' OR cvterm.name = 'five_prime_D_heptamer' OR cvterm.name = 'J_heptamer' OR cvterm.name = 'V_heptamer' OR cvterm.name = 'heptamer_of_recombination_feature_of_vertebrate_immune_system_gene';
  10529. --- ************************************************
  10530. --- *** relation: nonamer_of_recombination_feature_of_vertebrate_im_sys_gene ***
  10531. --- *** relation type: VIEW ***
  10532. --- *** ***
  10533. --- ************************************************
  10534. ---
  10535. CREATE VIEW nonamer_of_recombination_feature_of_vertebrate_im_sys_gene AS
  10536. SELECT
  10537. feature_id AS nonamer_of_recombination_feature_of_vertebrate_im_sys_gene_id,
  10538. feature.*
  10539. FROM
  10540. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10541. WHERE cvterm.name = 'three_prime_D_nonamer' OR cvterm.name = 'five_prime_D_nonamer' OR cvterm.name = 'J_nonamer' OR cvterm.name = 'V_nonamer' OR cvterm.name = 'nonamer_of_recombination_feature_of_vertebrate_immune_system_gene';
  10542. --- ************************************************
  10543. --- *** relation: vertebrate_immune_system_gene_recombination_spacer ***
  10544. --- *** relation type: VIEW ***
  10545. --- *** ***
  10546. --- ************************************************
  10547. ---
  10548. CREATE VIEW vertebrate_immune_system_gene_recombination_spacer AS
  10549. SELECT
  10550. feature_id AS vertebrate_immune_system_gene_recombination_spacer_id,
  10551. feature.*
  10552. FROM
  10553. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10554. WHERE cvterm.name = 'three_prime_D_spacer' OR cvterm.name = 'five_prime_D_spacer' OR cvterm.name = 'J_spacer' OR cvterm.name = 'V_spacer' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_spacer';
  10555. --- ************************************************
  10556. --- *** relation: v_dj_j_c_cluster ***
  10557. --- *** relation type: VIEW ***
  10558. --- *** ***
  10559. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10560. --- *** eptor gene in rearranged configuration i ***
  10561. --- *** ncluding at least one V-gene, one DJ-gen ***
  10562. --- *** e, one J-gene and one C-gene. ***
  10563. --- ************************************************
  10564. ---
  10565. CREATE VIEW v_dj_j_c_cluster AS
  10566. SELECT
  10567. feature_id AS v_dj_j_c_cluster_id,
  10568. feature.*
  10569. FROM
  10570. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10571. WHERE cvterm.name = 'V_DJ_J_C_cluster';
  10572. --- ************************************************
  10573. --- *** relation: v_vdj_j_c_cluster ***
  10574. --- *** relation type: VIEW ***
  10575. --- *** ***
  10576. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10577. --- *** eptor gene in rearranged configuration i ***
  10578. --- *** ncluding at least one V-gene, one VDJ-ge ***
  10579. --- *** ne, one J-gene and one C-gene. ***
  10580. --- ************************************************
  10581. ---
  10582. CREATE VIEW v_vdj_j_c_cluster AS
  10583. SELECT
  10584. feature_id AS v_vdj_j_c_cluster_id,
  10585. feature.*
  10586. FROM
  10587. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10588. WHERE cvterm.name = 'V_VDJ_J_C_cluster';
  10589. --- ************************************************
  10590. --- *** relation: v_vj_j_c_cluster ***
  10591. --- *** relation type: VIEW ***
  10592. --- *** ***
  10593. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10594. --- *** eptor gene in rearranged configuration i ***
  10595. --- *** ncluding at least one V-gene, one VJ-gen ***
  10596. --- *** e, one J-gene and one C-gene. ***
  10597. --- ************************************************
  10598. ---
  10599. CREATE VIEW v_vj_j_c_cluster AS
  10600. SELECT
  10601. feature_id AS v_vj_j_c_cluster_id,
  10602. feature.*
  10603. FROM
  10604. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10605. WHERE cvterm.name = 'V_VJ_J_C_cluster';
  10606. --- ************************************************
  10607. --- *** relation: inversion_derived_aneuploid_chromosome ***
  10608. --- *** relation type: VIEW ***
  10609. --- *** ***
  10610. --- *** A chromosome may be generated by recombi ***
  10611. --- *** nation between two inversions; presumed ***
  10612. --- *** to have a deficiency or duplication at e ***
  10613. --- *** ach end of the inversion. ***
  10614. --- ************************************************
  10615. ---
  10616. CREATE VIEW inversion_derived_aneuploid_chromosome AS
  10617. SELECT
  10618. feature_id AS inversion_derived_aneuploid_chromosome_id,
  10619. feature.*
  10620. FROM
  10621. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10622. WHERE cvterm.name = 'inversion_derived_aneuploid_chromosome';
  10623. --- ************************************************
  10624. --- *** relation: bidirectional_promoter ***
  10625. --- *** relation type: VIEW ***
  10626. --- *** ***
  10627. --- ************************************************
  10628. ---
  10629. CREATE VIEW bidirectional_promoter AS
  10630. SELECT
  10631. feature_id AS bidirectional_promoter_id,
  10632. feature.*
  10633. FROM
  10634. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10635. WHERE cvterm.name = 'bidirectional_promoter';
  10636. --- ************************************************
  10637. --- *** relation: retrotransposed ***
  10638. --- *** relation type: VIEW ***
  10639. --- *** ***
  10640. --- *** An attribute of a feature that occurred ***
  10641. --- *** as the product of a reverse transcriptas ***
  10642. --- *** e mediated event. ***
  10643. --- ************************************************
  10644. ---
  10645. CREATE VIEW retrotransposed AS
  10646. SELECT
  10647. feature_id AS retrotransposed_id,
  10648. feature.*
  10649. FROM
  10650. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10651. WHERE cvterm.name = 'retrotransposed';
  10652. --- ************************************************
  10653. --- *** relation: three_prime_d_recombination_signal_sequence ***
  10654. --- *** relation type: VIEW ***
  10655. --- *** ***
  10656. --- *** Recombination signal of an immunoglobuli ***
  10657. --- *** n/T-cell receptor gene, including the 3' ***
  10658. --- *** D-heptamer (SO:0000493), 3' D-spacer, a ***
  10659. --- *** nd 3' D-nonamer (SO:0000494) in 3' of th ***
  10660. --- *** e D-region of a D-gene. ***
  10661. --- ************************************************
  10662. ---
  10663. CREATE VIEW three_prime_d_recombination_signal_sequence AS
  10664. SELECT
  10665. feature_id AS three_prime_d_recombination_signal_sequence_id,
  10666. feature.*
  10667. FROM
  10668. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10669. WHERE cvterm.name = 'three_prime_D_recombination_signal_sequence';
  10670. --- ************************************************
  10671. --- *** relation: mirna_encoding ***
  10672. --- *** relation type: VIEW ***
  10673. --- *** ***
  10674. --- ************************************************
  10675. ---
  10676. CREATE VIEW mirna_encoding AS
  10677. SELECT
  10678. feature_id AS mirna_encoding_id,
  10679. feature.*
  10680. FROM
  10681. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10682. WHERE cvterm.name = 'miRNA_encoding';
  10683. --- ************************************************
  10684. --- *** relation: dj_gene ***
  10685. --- *** relation type: VIEW ***
  10686. --- *** ***
  10687. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10688. --- *** eptor gene in partially rearranged genom ***
  10689. --- *** ic DNA including D-J-region with 5' UTR ***
  10690. --- *** and 3' UTR, also designated as D-J-segme ***
  10691. --- *** nt. ***
  10692. --- ************************************************
  10693. ---
  10694. CREATE VIEW dj_gene AS
  10695. SELECT
  10696. feature_id AS dj_gene_id,
  10697. feature.*
  10698. FROM
  10699. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10700. WHERE cvterm.name = 'DJ_gene';
  10701. --- ************************************************
  10702. --- *** relation: rrna_encoding ***
  10703. --- *** relation type: VIEW ***
  10704. --- *** ***
  10705. --- ************************************************
  10706. ---
  10707. CREATE VIEW rrna_encoding AS
  10708. SELECT
  10709. feature_id AS rrna_encoding_id,
  10710. feature.*
  10711. FROM
  10712. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10713. WHERE cvterm.name = 'rRNA_encoding';
  10714. --- ************************************************
  10715. --- *** relation: vdj_gene ***
  10716. --- *** relation type: VIEW ***
  10717. --- *** ***
  10718. --- *** Rearranged genomic DNA of immunoglobulin ***
  10719. --- *** /T-cell receptor gene including L-part1, ***
  10720. --- *** V-intron and V-D-J-exon, with the 5'UTR ***
  10721. --- *** (SO:0000204) and 3'UTR (SO:0000205). ***
  10722. --- ************************************************
  10723. ---
  10724. CREATE VIEW vdj_gene AS
  10725. SELECT
  10726. feature_id AS vdj_gene_id,
  10727. feature.*
  10728. FROM
  10729. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10730. WHERE cvterm.name = 'VDJ_gene';
  10731. --- ************************************************
  10732. --- *** relation: scrna_encoding ***
  10733. --- *** relation type: VIEW ***
  10734. --- *** ***
  10735. --- ************************************************
  10736. ---
  10737. CREATE VIEW scrna_encoding AS
  10738. SELECT
  10739. feature_id AS scrna_encoding_id,
  10740. feature.*
  10741. FROM
  10742. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10743. WHERE cvterm.name = 'scRNA_encoding';
  10744. --- ************************************************
  10745. --- *** relation: vj_gene ***
  10746. --- *** relation type: VIEW ***
  10747. --- *** ***
  10748. --- *** Rearranged genomic DNA of immunoglobulin ***
  10749. --- *** /T-cell receptor gene including L-part1, ***
  10750. --- *** V-intron and V-J-exon, with the 5'UTR ( ***
  10751. --- *** SO:0000204) and 3'UTR (SO:0000205). ***
  10752. --- ************************************************
  10753. ---
  10754. CREATE VIEW vj_gene AS
  10755. SELECT
  10756. feature_id AS vj_gene_id,
  10757. feature.*
  10758. FROM
  10759. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10760. WHERE cvterm.name = 'VJ_gene';
  10761. --- ************************************************
  10762. --- *** relation: centromere ***
  10763. --- *** relation type: VIEW ***
  10764. --- *** ***
  10765. --- *** A region of chromosome where the spindle ***
  10766. --- *** fibers attach during mitosis and meiosi ***
  10767. --- *** s. ***
  10768. --- ************************************************
  10769. ---
  10770. CREATE VIEW centromere AS
  10771. SELECT
  10772. feature_id AS centromere_id,
  10773. feature.*
  10774. FROM
  10775. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10776. WHERE cvterm.name = 'point_centromere' OR cvterm.name = 'regional_centromere' OR cvterm.name = 'centromere';
  10777. --- ************************************************
  10778. --- *** relation: snorna_encoding ***
  10779. --- *** relation type: VIEW ***
  10780. --- *** ***
  10781. --- ************************************************
  10782. ---
  10783. CREATE VIEW snorna_encoding AS
  10784. SELECT
  10785. feature_id AS snorna_encoding_id,
  10786. feature.*
  10787. FROM
  10788. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10789. WHERE cvterm.name = 'C_D_box_snoRNA_encoding' OR cvterm.name = 'H_ACA_box_snoRNA_encoding' OR cvterm.name = 'snoRNA_encoding';
  10790. --- ************************************************
  10791. --- *** relation: edited_transcript_feature ***
  10792. --- *** relation type: VIEW ***
  10793. --- *** ***
  10794. --- *** A locatable feature on a transcript that ***
  10795. --- *** is edited. ***
  10796. --- ************************************************
  10797. ---
  10798. CREATE VIEW edited_transcript_feature AS
  10799. SELECT
  10800. feature_id AS edited_transcript_feature_id,
  10801. feature.*
  10802. FROM
  10803. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10804. WHERE cvterm.name = 'pre_edited_region' OR cvterm.name = 'editing_block' OR cvterm.name = 'editing_domain' OR cvterm.name = 'unedited_region' OR cvterm.name = 'edited_transcript_feature';
  10805. --- ************************************************
  10806. --- *** relation: methylation_guide_snorna_primary_transcript ***
  10807. --- *** relation type: VIEW ***
  10808. --- *** ***
  10809. --- *** A primary transcript encoding a methylat ***
  10810. --- *** ion guide small nucleolar RNA. ***
  10811. --- ************************************************
  10812. ---
  10813. CREATE VIEW methylation_guide_snorna_primary_transcript AS
  10814. SELECT
  10815. feature_id AS methylation_guide_snorna_primary_transcript_id,
  10816. feature.*
  10817. FROM
  10818. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10819. WHERE cvterm.name = 'methylation_guide_snoRNA_primary_transcript';
  10820. --- ************************************************
  10821. --- *** relation: cap ***
  10822. --- *** relation type: VIEW ***
  10823. --- *** ***
  10824. --- *** A structure consisting of a 7-methylguan ***
  10825. --- *** osine in 5'-5' triphosphate linkage with ***
  10826. --- *** the first nucleotide of an mRNA. It is ***
  10827. --- *** added post-transcriptionally, and is not ***
  10828. --- *** encoded in the DNA. ***
  10829. --- ************************************************
  10830. ---
  10831. CREATE VIEW cap AS
  10832. SELECT
  10833. feature_id AS cap_id,
  10834. feature.*
  10835. FROM
  10836. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10837. WHERE cvterm.name = 'cap';
  10838. --- ************************************************
  10839. --- *** relation: rrna_cleavage_snorna_primary_transcript ***
  10840. --- *** relation type: VIEW ***
  10841. --- *** ***
  10842. --- *** A primary transcript encoding an rRNA cl ***
  10843. --- *** eavage snoRNA. ***
  10844. --- ************************************************
  10845. ---
  10846. CREATE VIEW rrna_cleavage_snorna_primary_transcript AS
  10847. SELECT
  10848. feature_id AS rrna_cleavage_snorna_primary_transcript_id,
  10849. feature.*
  10850. FROM
  10851. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10852. WHERE cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript';
  10853. --- ************************************************
  10854. --- *** relation: pre_edited_region ***
  10855. --- *** relation type: VIEW ***
  10856. --- *** ***
  10857. --- *** The region of a transcript that will be ***
  10858. --- *** edited. ***
  10859. --- ************************************************
  10860. ---
  10861. CREATE VIEW pre_edited_region AS
  10862. SELECT
  10863. feature_id AS pre_edited_region_id,
  10864. feature.*
  10865. FROM
  10866. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10867. WHERE cvterm.name = 'pre_edited_region';
  10868. --- ************************************************
  10869. --- *** relation: tmrna ***
  10870. --- *** relation type: VIEW ***
  10871. --- *** ***
  10872. --- *** A tmRNA liberates a mRNA from a stalled ***
  10873. --- *** ribosome. To accomplish this part of the ***
  10874. --- *** tmRNA is used as a reading frame that e ***
  10875. --- *** nds in a translation stop signal. The br ***
  10876. --- *** oken mRNA is replaced in the ribosome by ***
  10877. --- *** the tmRNA and translation of the tmRNA ***
  10878. --- *** leads to addition of a proteolysis tag t ***
  10879. --- *** o the incomplete protein enabling recogn ***
  10880. --- *** ition by a protease. Recently a number o ***
  10881. --- *** f permuted tmRNAs genes have been found ***
  10882. --- *** encoded in two parts. TmRNAs have been i ***
  10883. --- *** dentified in eubacteria and some chlorop ***
  10884. --- *** lasts but are absent from archeal and Eu ***
  10885. --- *** karyote nuclear genomes. ***
  10886. --- ************************************************
  10887. ---
  10888. CREATE VIEW tmrna AS
  10889. SELECT
  10890. feature_id AS tmrna_id,
  10891. feature.*
  10892. FROM
  10893. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10894. WHERE cvterm.name = 'tmRNA';
  10895. --- ************************************************
  10896. --- *** relation: c_d_box_snorna_encoding ***
  10897. --- *** relation type: VIEW ***
  10898. --- *** ***
  10899. --- ************************************************
  10900. ---
  10901. CREATE VIEW c_d_box_snorna_encoding AS
  10902. SELECT
  10903. feature_id AS c_d_box_snorna_encoding_id,
  10904. feature.*
  10905. FROM
  10906. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10907. WHERE cvterm.name = 'C_D_box_snoRNA_encoding';
  10908. --- ************************************************
  10909. --- *** relation: tmrna_primary_transcript ***
  10910. --- *** relation type: VIEW ***
  10911. --- *** ***
  10912. --- *** A primary transcript encoding a tmRNA (S ***
  10913. --- *** O:0000584). ***
  10914. --- ************************************************
  10915. ---
  10916. CREATE VIEW tmrna_primary_transcript AS
  10917. SELECT
  10918. feature_id AS tmrna_primary_transcript_id,
  10919. feature.*
  10920. FROM
  10921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10922. WHERE cvterm.name = 'tmRNA_primary_transcript';
  10923. --- ************************************************
  10924. --- *** relation: group_i_intron ***
  10925. --- *** relation type: VIEW ***
  10926. --- *** ***
  10927. --- *** Group I catalytic introns are large self ***
  10928. --- *** -splicing ribozymes. They catalyze their ***
  10929. --- *** own excision from mRNA, tRNA and rRNA p ***
  10930. --- *** recursors in a wide range of organisms. ***
  10931. --- *** The core secondary structure consists of ***
  10932. --- *** 9 paired regions (P1-P9). These fold to ***
  10933. --- *** essentially two domains, the P4-P6 doma ***
  10934. --- *** in (formed from the stacking of P5, P4, ***
  10935. --- *** P6 and P6a helices) and the P3-P9 domain ***
  10936. --- *** (formed from the P8, P3, P7 and P9 heli ***
  10937. --- *** ces). Group I catalytic introns often ha ***
  10938. --- *** ve long ORFs inserted in loop regions. ***
  10939. --- ************************************************
  10940. ---
  10941. CREATE VIEW group_i_intron AS
  10942. SELECT
  10943. feature_id AS group_i_intron_id,
  10944. feature.*
  10945. FROM
  10946. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10947. WHERE cvterm.name = 'group_I_intron';
  10948. --- ************************************************
  10949. --- *** relation: autocatalytically_spliced_intron ***
  10950. --- *** relation type: VIEW ***
  10951. --- *** ***
  10952. --- *** A self spliced intron. ***
  10953. --- ************************************************
  10954. ---
  10955. CREATE VIEW autocatalytically_spliced_intron AS
  10956. SELECT
  10957. feature_id AS autocatalytically_spliced_intron_id,
  10958. feature.*
  10959. FROM
  10960. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10961. WHERE cvterm.name = 'group_I_intron' OR cvterm.name = 'group_II_intron' OR cvterm.name = 'group_III_intron' OR cvterm.name = 'group_IIA_intron' OR cvterm.name = 'group_IIB_intron' OR cvterm.name = 'autocatalytically_spliced_intron';
  10962. --- ************************************************
  10963. --- *** relation: srp_rna_primary_transcript ***
  10964. --- *** relation type: VIEW ***
  10965. --- *** ***
  10966. --- *** A primary transcript encoding a signal r ***
  10967. --- *** ecognition particle RNA. ***
  10968. --- ************************************************
  10969. ---
  10970. CREATE VIEW srp_rna_primary_transcript AS
  10971. SELECT
  10972. feature_id AS srp_rna_primary_transcript_id,
  10973. feature.*
  10974. FROM
  10975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10976. WHERE cvterm.name = 'SRP_RNA_primary_transcript';
  10977. --- ************************************************
  10978. --- *** relation: srp_rna ***
  10979. --- *** relation type: VIEW ***
  10980. --- *** ***
  10981. --- *** The signal recognition particle (SRP) is ***
  10982. --- *** a universally conserved ribonucleoprote ***
  10983. --- *** in. It is involved in the co-translation ***
  10984. --- *** al targeting of proteins to membranes. T ***
  10985. --- *** he eukaryotic SRP consists of a 300-nucl ***
  10986. --- *** eotide 7S RNA and six proteins: SRPs 72, ***
  10987. --- *** 68, 54, 19, 14, and 9. Archaeal SRP con ***
  10988. --- *** sists of a 7S RNA and homologues of the ***
  10989. --- *** eukaryotic SRP19 and SRP54 proteins. In ***
  10990. --- *** most eubacteria, the SRP consists of a 4 ***
  10991. --- *** .5S RNA and the Ffh protein (a homologue ***
  10992. --- *** of the eukaryotic SRP54 protein). Eukar ***
  10993. --- *** yotic and archaeal 7S RNAs have very sim ***
  10994. --- *** ilar secondary structures, with eight he ***
  10995. --- *** lical elements. These fold into the Alu ***
  10996. --- *** and S domains, separated by a long linke ***
  10997. --- *** r region. Eubacterial SRP is generally a ***
  10998. --- *** simpler structure, with the M domain of ***
  10999. --- *** Ffh bound to a region of the 4.5S RNA t ***
  11000. --- *** hat corresponds to helix 8 of the eukary ***
  11001. --- *** otic and archaeal SRP S domain. Some Gra ***
  11002. --- *** m-positive bacteria (e.g. Bacillus subti ***
  11003. --- *** lis), however, have a larger SRP RNA tha ***
  11004. --- *** t also has an Alu domain. The Alu domain ***
  11005. --- *** is thought to mediate the peptide chain ***
  11006. --- *** elongation retardation function of the ***
  11007. --- *** SRP. The universally conserved helix whi ***
  11008. --- *** ch interacts with the SRP54/Ffh M domain ***
  11009. --- *** mediates signal sequence recognition. I ***
  11010. --- *** n eukaryotes and archaea, the SRP19-heli ***
  11011. --- *** x 6 complex is thought to be involved in ***
  11012. --- *** SRP assembly and stabilizes helix 8 for ***
  11013. --- *** SRP54 binding. ***
  11014. --- ************************************************
  11015. ---
  11016. CREATE VIEW srp_rna AS
  11017. SELECT
  11018. feature_id AS srp_rna_id,
  11019. feature.*
  11020. FROM
  11021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11022. WHERE cvterm.name = 'SRP_RNA';
  11023. --- ************************************************
  11024. --- *** relation: pseudoknot ***
  11025. --- *** relation type: VIEW ***
  11026. --- *** ***
  11027. --- *** A tertiary structure in RNA where nucleo ***
  11028. --- *** tides in a loop form base pairs with a r ***
  11029. --- *** egion of RNA downstream of the loop. ***
  11030. --- ************************************************
  11031. ---
  11032. CREATE VIEW pseudoknot AS
  11033. SELECT
  11034. feature_id AS pseudoknot_id,
  11035. feature.*
  11036. FROM
  11037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11038. WHERE cvterm.name = 'recoding_pseudoknot' OR cvterm.name = 'H_pseudoknot' OR cvterm.name = 'pseudoknot';
  11039. --- ************************************************
  11040. --- *** relation: h_pseudoknot ***
  11041. --- *** relation type: VIEW ***
  11042. --- *** ***
  11043. --- *** A pseudoknot which contains two stems an ***
  11044. --- *** d at least two loops. ***
  11045. --- ************************************************
  11046. ---
  11047. CREATE VIEW h_pseudoknot AS
  11048. SELECT
  11049. feature_id AS h_pseudoknot_id,
  11050. feature.*
  11051. FROM
  11052. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11053. WHERE cvterm.name = 'H_pseudoknot';
  11054. --- ************************************************
  11055. --- *** relation: c_d_box_snorna ***
  11056. --- *** relation type: VIEW ***
  11057. --- *** ***
  11058. --- *** Most box C/D snoRNAs also contain long ( ***
  11059. --- *** >10 nt) sequences complementary to rRNA. ***
  11060. --- *** Boxes C and D, as well as boxes C' and ***
  11061. --- *** D', are usually located in close proximi ***
  11062. --- *** ty, and form a structure known as the bo ***
  11063. --- *** x C/D motif. This motif is important for ***
  11064. --- *** snoRNA stability, processing, nucleolar ***
  11065. --- *** targeting and function. A small number ***
  11066. --- *** of box C/D snoRNAs are involved in rRNA ***
  11067. --- *** processing; most, however, are known or ***
  11068. --- *** predicted to serve as guide RNAs in ribo ***
  11069. --- *** se methylation of rRNA. Targeting involv ***
  11070. --- *** es direct base pairing of the snoRNA at ***
  11071. --- *** the rRNA site to be modified and selecti ***
  11072. --- *** on of a rRNA nucleotide a fixed distance ***
  11073. --- *** from box D or D'. ***
  11074. --- ************************************************
  11075. ---
  11076. CREATE VIEW c_d_box_snorna AS
  11077. SELECT
  11078. feature_id AS c_d_box_snorna_id,
  11079. feature.*
  11080. FROM
  11081. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11082. WHERE cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'C_D_box_snoRNA';
  11083. --- ************************************************
  11084. --- *** relation: h_aca_box_snorna ***
  11085. --- *** relation type: VIEW ***
  11086. --- *** ***
  11087. --- *** Members of the box H/ACA family contain ***
  11088. --- *** an ACA triplet, exactly 3 nt upstream fr ***
  11089. --- *** om the 3' end and an H-box in a hinge re ***
  11090. --- *** gion that links two structurally similar ***
  11091. --- *** functional domains of the molecule. Bot ***
  11092. --- *** h boxes are important for snoRNA biosynt ***
  11093. --- *** hesis and function. A few box H/ACA snoR ***
  11094. --- *** NAs are involved in rRNA processing; mos ***
  11095. --- *** t others are known or predicted to parti ***
  11096. --- *** cipate in selection of uridine nucleosid ***
  11097. --- *** es in rRNA to be converted to pseudourid ***
  11098. --- *** ines. Site selection is mediated by dire ***
  11099. --- *** ct base pairing of the snoRNA with rRNA ***
  11100. --- *** through one or both targeting domains. ***
  11101. --- ************************************************
  11102. ---
  11103. CREATE VIEW h_aca_box_snorna AS
  11104. SELECT
  11105. feature_id AS h_aca_box_snorna_id,
  11106. feature.*
  11107. FROM
  11108. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11109. WHERE cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA';
  11110. --- ************************************************
  11111. --- *** relation: c_d_box_snorna_primary_transcript ***
  11112. --- *** relation type: VIEW ***
  11113. --- *** ***
  11114. --- *** A primary transcript encoding a small nu ***
  11115. --- *** cleolar RNA of the box C/D family. ***
  11116. --- ************************************************
  11117. ---
  11118. CREATE VIEW c_d_box_snorna_primary_transcript AS
  11119. SELECT
  11120. feature_id AS c_d_box_snorna_primary_transcript_id,
  11121. feature.*
  11122. FROM
  11123. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11124. WHERE cvterm.name = 'C_D_box_snoRNA_primary_transcript';
  11125. --- ************************************************
  11126. --- *** relation: h_aca_box_snorna_primary_transcript ***
  11127. --- *** relation type: VIEW ***
  11128. --- *** ***
  11129. --- *** A primary transcript encoding a small nu ***
  11130. --- *** cleolar RNA of the box H/ACA family. ***
  11131. --- ************************************************
  11132. ---
  11133. CREATE VIEW h_aca_box_snorna_primary_transcript AS
  11134. SELECT
  11135. feature_id AS h_aca_box_snorna_primary_transcript_id,
  11136. feature.*
  11137. FROM
  11138. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11139. WHERE cvterm.name = 'H_ACA_box_snoRNA_primary_transcript';
  11140. --- ************************************************
  11141. --- *** relation: guide_rna ***
  11142. --- *** relation type: VIEW ***
  11143. --- *** ***
  11144. --- *** A short 3'-uridylated RNA that can form ***
  11145. --- *** a duplex (except for its post-transcript ***
  11146. --- *** ionally added oligo_U tail (SO:0000609)) ***
  11147. --- *** with a stretch of mature edited mRNA. ***
  11148. --- ************************************************
  11149. ---
  11150. CREATE VIEW guide_rna AS
  11151. SELECT
  11152. feature_id AS guide_rna_id,
  11153. feature.*
  11154. FROM
  11155. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11156. WHERE cvterm.name = 'guide_RNA';
  11157. --- ************************************************
  11158. --- *** relation: group_ii_intron ***
  11159. --- *** relation type: VIEW ***
  11160. --- *** ***
  11161. --- *** Group II introns are found in rRNA, tRNA ***
  11162. --- *** and mRNA of organelles in fungi, plants ***
  11163. --- *** and protists, and also in mRNA in bacte ***
  11164. --- *** ria. They are large self-splicing ribozy ***
  11165. --- *** mes and have 6 structural domains (usual ***
  11166. --- *** ly designated dI to dVI). A subset of gr ***
  11167. --- *** oup II introns also encode essential spl ***
  11168. --- *** icing proteins in intronic ORFs. The len ***
  11169. --- *** gth of these introns can therefore be up ***
  11170. --- *** to 3kb. Splicing occurs in almost ident ***
  11171. --- *** ical fashion to nuclear pre-mRNA splicin ***
  11172. --- *** g with two transesterification steps. Th ***
  11173. --- *** e 2' hydroxyl of a bulged adenosine in d ***
  11174. --- *** omain VI attacks the 5' splice site, fol ***
  11175. --- *** lowed by nucleophilic attack on the 3' s ***
  11176. --- *** plice site by the 3' OH of the upstream ***
  11177. --- *** exon. Protein machinery is required for ***
  11178. --- *** splicing in vivo, and long range intron- ***
  11179. --- *** intron and intron-exon interactions are ***
  11180. --- *** important for splice site positioning. G ***
  11181. --- *** roup II introns are further sub-classifi ***
  11182. --- *** ed into groups IIA and IIB which differ ***
  11183. --- *** in splice site consensus, distance of bu ***
  11184. --- *** lged A from 3' splice site, some tertiar ***
  11185. --- *** y interactions, and intronic ORF phyloge ***
  11186. --- *** ny. ***
  11187. --- ************************************************
  11188. ---
  11189. CREATE VIEW group_ii_intron AS
  11190. SELECT
  11191. feature_id AS group_ii_intron_id,
  11192. feature.*
  11193. FROM
  11194. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11195. WHERE cvterm.name = 'group_IIA_intron' OR cvterm.name = 'group_IIB_intron' OR cvterm.name = 'group_II_intron';
  11196. --- ************************************************
  11197. --- *** relation: editing_block ***
  11198. --- *** relation type: VIEW ***
  11199. --- *** ***
  11200. --- *** Edited mRNA sequence mediated by a singl ***
  11201. --- *** e guide RNA (SO:0000602). ***
  11202. --- ************************************************
  11203. ---
  11204. CREATE VIEW editing_block AS
  11205. SELECT
  11206. feature_id AS editing_block_id,
  11207. feature.*
  11208. FROM
  11209. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11210. WHERE cvterm.name = 'editing_block';
  11211. --- ************************************************
  11212. --- *** relation: intergenic_region ***
  11213. --- *** relation type: VIEW ***
  11214. --- *** ***
  11215. --- *** A region containing or overlapping no ge ***
  11216. --- *** nes that is bounded on either side by a ***
  11217. --- *** gene, or bounded by a gene and the end o ***
  11218. --- *** f the chromosome. ***
  11219. --- ************************************************
  11220. ---
  11221. CREATE VIEW intergenic_region AS
  11222. SELECT
  11223. feature_id AS intergenic_region_id,
  11224. feature.*
  11225. FROM
  11226. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11227. WHERE cvterm.name = 'intergenic_region';
  11228. --- ************************************************
  11229. --- *** relation: editing_domain ***
  11230. --- *** relation type: VIEW ***
  11231. --- *** ***
  11232. --- *** Edited mRNA sequence mediated by two or ***
  11233. --- *** more overlapping guide RNAs (SO:0000602) ***
  11234. --- *** . ***
  11235. --- ************************************************
  11236. ---
  11237. CREATE VIEW editing_domain AS
  11238. SELECT
  11239. feature_id AS editing_domain_id,
  11240. feature.*
  11241. FROM
  11242. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11243. WHERE cvterm.name = 'editing_domain';
  11244. --- ************************************************
  11245. --- *** relation: unedited_region ***
  11246. --- *** relation type: VIEW ***
  11247. --- *** ***
  11248. --- *** The region of an edited transcript that ***
  11249. --- *** will not be edited. ***
  11250. --- ************************************************
  11251. ---
  11252. CREATE VIEW unedited_region AS
  11253. SELECT
  11254. feature_id AS unedited_region_id,
  11255. feature.*
  11256. FROM
  11257. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11258. WHERE cvterm.name = 'unedited_region';
  11259. --- ************************************************
  11260. --- *** relation: h_aca_box_snorna_encoding ***
  11261. --- *** relation type: VIEW ***
  11262. --- *** ***
  11263. --- ************************************************
  11264. ---
  11265. CREATE VIEW h_aca_box_snorna_encoding AS
  11266. SELECT
  11267. feature_id AS h_aca_box_snorna_encoding_id,
  11268. feature.*
  11269. FROM
  11270. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11271. WHERE cvterm.name = 'H_ACA_box_snoRNA_encoding';
  11272. --- ************************************************
  11273. --- *** relation: oligo_u_tail ***
  11274. --- *** relation type: VIEW ***
  11275. --- *** ***
  11276. --- *** The string of non-encoded U's at the 3' ***
  11277. --- *** end of a guide RNA (SO:0000602). ***
  11278. --- ************************************************
  11279. ---
  11280. CREATE VIEW oligo_u_tail AS
  11281. SELECT
  11282. feature_id AS oligo_u_tail_id,
  11283. feature.*
  11284. FROM
  11285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11286. WHERE cvterm.name = 'oligo_U_tail';
  11287. --- ************************************************
  11288. --- *** relation: polya_sequence ***
  11289. --- *** relation type: VIEW ***
  11290. --- *** ***
  11291. --- *** Sequence of about 100 nucleotides of A a ***
  11292. --- *** dded to the 3' end of most eukaryotic mR ***
  11293. --- *** NAs. ***
  11294. --- ************************************************
  11295. ---
  11296. CREATE VIEW polya_sequence AS
  11297. SELECT
  11298. feature_id AS polya_sequence_id,
  11299. feature.*
  11300. FROM
  11301. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11302. WHERE cvterm.name = 'polyA_sequence';
  11303. --- ************************************************
  11304. --- *** relation: branch_site ***
  11305. --- *** relation type: VIEW ***
  11306. --- *** ***
  11307. --- *** A pyrimidine rich sequence near the 3' e ***
  11308. --- *** nd of an intron to which the 5'end becom ***
  11309. --- *** es covalently bound during nuclear splic ***
  11310. --- *** ing. The resulting structure resembles a ***
  11311. --- *** lariat. ***
  11312. --- ************************************************
  11313. ---
  11314. CREATE VIEW branch_site AS
  11315. SELECT
  11316. feature_id AS branch_site_id,
  11317. feature.*
  11318. FROM
  11319. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11320. WHERE cvterm.name = 'branch_site';
  11321. --- ************************************************
  11322. --- *** relation: polypyrimidine_tract ***
  11323. --- *** relation type: VIEW ***
  11324. --- *** ***
  11325. --- *** The polypyrimidine tract is one of the c ***
  11326. --- *** is-acting sequence elements directing in ***
  11327. --- *** tron removal in pre-mRNA splicing. ***
  11328. --- ************************************************
  11329. ---
  11330. CREATE VIEW polypyrimidine_tract AS
  11331. SELECT
  11332. feature_id AS polypyrimidine_tract_id,
  11333. feature.*
  11334. FROM
  11335. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11336. WHERE cvterm.name = 'polypyrimidine_tract';
  11337. --- ************************************************
  11338. --- *** relation: bacterial_rnapol_promoter ***
  11339. --- *** relation type: VIEW ***
  11340. --- *** ***
  11341. --- *** A DNA sequence to which bacterial RNA po ***
  11342. --- *** lymerase binds, to begin transcription. ***
  11343. --- ************************************************
  11344. ---
  11345. CREATE VIEW bacterial_rnapol_promoter AS
  11346. SELECT
  11347. feature_id AS bacterial_rnapol_promoter_id,
  11348. feature.*
  11349. FROM
  11350. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11351. WHERE cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'bacterial_RNApol_promoter';
  11352. --- ************************************************
  11353. --- *** relation: bacterial_terminator ***
  11354. --- *** relation type: VIEW ***
  11355. --- *** ***
  11356. --- *** A terminator signal for bacterial transc ***
  11357. --- *** ription. ***
  11358. --- ************************************************
  11359. ---
  11360. CREATE VIEW bacterial_terminator AS
  11361. SELECT
  11362. feature_id AS bacterial_terminator_id,
  11363. feature.*
  11364. FROM
  11365. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11366. WHERE cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'bacterial_terminator';
  11367. --- ************************************************
  11368. --- *** relation: terminator_of_type_2_rnapol_iii_promoter ***
  11369. --- *** relation type: VIEW ***
  11370. --- *** ***
  11371. --- *** A terminator signal for RNA polymerase I ***
  11372. --- *** II transcription. ***
  11373. --- ************************************************
  11374. ---
  11375. CREATE VIEW terminator_of_type_2_rnapol_iii_promoter AS
  11376. SELECT
  11377. feature_id AS terminator_of_type_2_rnapol_iii_promoter_id,
  11378. feature.*
  11379. FROM
  11380. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11381. WHERE cvterm.name = 'terminator_of_type_2_RNApol_III_promoter';
  11382. --- ************************************************
  11383. --- *** relation: transcription_end_site ***
  11384. --- *** relation type: VIEW ***
  11385. --- *** ***
  11386. --- *** The base where transcription ends. ***
  11387. --- ************************************************
  11388. ---
  11389. CREATE VIEW transcription_end_site AS
  11390. SELECT
  11391. feature_id AS transcription_end_site_id,
  11392. feature.*
  11393. FROM
  11394. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11395. WHERE cvterm.name = 'transcription_end_site';
  11396. --- ************************************************
  11397. --- *** relation: rnapol_iii_promoter_type_1 ***
  11398. --- *** relation type: VIEW ***
  11399. --- *** ***
  11400. --- ************************************************
  11401. ---
  11402. CREATE VIEW rnapol_iii_promoter_type_1 AS
  11403. SELECT
  11404. feature_id AS rnapol_iii_promoter_type_1_id,
  11405. feature.*
  11406. FROM
  11407. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11408. WHERE cvterm.name = 'RNApol_III_promoter_type_1';
  11409. --- ************************************************
  11410. --- *** relation: rnapol_iii_promoter_type_2 ***
  11411. --- *** relation type: VIEW ***
  11412. --- *** ***
  11413. --- ************************************************
  11414. ---
  11415. CREATE VIEW rnapol_iii_promoter_type_2 AS
  11416. SELECT
  11417. feature_id AS rnapol_iii_promoter_type_2_id,
  11418. feature.*
  11419. FROM
  11420. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11421. WHERE cvterm.name = 'RNApol_III_promoter_type_2';
  11422. --- ************************************************
  11423. --- *** relation: a_box ***
  11424. --- *** relation type: VIEW ***
  11425. --- *** ***
  11426. --- *** A variably distant linear promoter regio ***
  11427. --- *** n recognized by TFIIIC, with consensus s ***
  11428. --- *** equence TGGCnnAGTGG. ***
  11429. --- ************************************************
  11430. ---
  11431. CREATE VIEW a_box AS
  11432. SELECT
  11433. feature_id AS a_box_id,
  11434. feature.*
  11435. FROM
  11436. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11437. WHERE cvterm.name = 'A_box_type_1' OR cvterm.name = 'A_box_type_2' OR cvterm.name = 'A_box';
  11438. --- ************************************************
  11439. --- *** relation: b_box ***
  11440. --- *** relation type: VIEW ***
  11441. --- *** ***
  11442. --- *** A variably distant linear promoter regio ***
  11443. --- *** n recognized by TFIIIC, with consensus s ***
  11444. --- *** equence AGGTTCCAnnCC. ***
  11445. --- ************************************************
  11446. ---
  11447. CREATE VIEW b_box AS
  11448. SELECT
  11449. feature_id AS b_box_id,
  11450. feature.*
  11451. FROM
  11452. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11453. WHERE cvterm.name = 'B_box';
  11454. --- ************************************************
  11455. --- *** relation: rnapol_iii_promoter_type_3 ***
  11456. --- *** relation type: VIEW ***
  11457. --- *** ***
  11458. --- ************************************************
  11459. ---
  11460. CREATE VIEW rnapol_iii_promoter_type_3 AS
  11461. SELECT
  11462. feature_id AS rnapol_iii_promoter_type_3_id,
  11463. feature.*
  11464. FROM
  11465. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11466. WHERE cvterm.name = 'RNApol_III_promoter_type_3';
  11467. --- ************************************************
  11468. --- *** relation: c_box ***
  11469. --- *** relation type: VIEW ***
  11470. --- *** ***
  11471. --- *** An RNA polymerase III type 1 promoter wi ***
  11472. --- *** th consensus sequence CAnnCCn. ***
  11473. --- ************************************************
  11474. ---
  11475. CREATE VIEW c_box AS
  11476. SELECT
  11477. feature_id AS c_box_id,
  11478. feature.*
  11479. FROM
  11480. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11481. WHERE cvterm.name = 'C_box';
  11482. --- ************************************************
  11483. --- *** relation: snrna_encoding ***
  11484. --- *** relation type: VIEW ***
  11485. --- *** ***
  11486. --- ************************************************
  11487. ---
  11488. CREATE VIEW snrna_encoding AS
  11489. SELECT
  11490. feature_id AS snrna_encoding_id,
  11491. feature.*
  11492. FROM
  11493. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11494. WHERE cvterm.name = 'snRNA_encoding';
  11495. --- ************************************************
  11496. --- *** relation: telomere ***
  11497. --- *** relation type: VIEW ***
  11498. --- *** ***
  11499. --- *** A specific structure at the end of a lin ***
  11500. --- *** ear chromosome, required for the integri ***
  11501. --- *** ty and maintenance of the end. ***
  11502. --- ************************************************
  11503. ---
  11504. CREATE VIEW telomere AS
  11505. SELECT
  11506. feature_id AS telomere_id,
  11507. feature.*
  11508. FROM
  11509. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11510. WHERE cvterm.name = 'telomere';
  11511. --- ************************************************
  11512. --- *** relation: silencer ***
  11513. --- *** relation type: VIEW ***
  11514. --- *** ***
  11515. --- *** A regulatory region which upon binding o ***
  11516. --- *** f transcription factors, suppress the tr ***
  11517. --- *** anscription of the gene or genes they co ***
  11518. --- *** ntrol. ***
  11519. --- ************************************************
  11520. ---
  11521. CREATE VIEW silencer AS
  11522. SELECT
  11523. feature_id AS silencer_id,
  11524. feature.*
  11525. FROM
  11526. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11527. WHERE cvterm.name = 'silencer';
  11528. --- ************************************************
  11529. --- *** relation: chromosomal_regulatory_element ***
  11530. --- *** relation type: VIEW ***
  11531. --- *** ***
  11532. --- ************************************************
  11533. ---
  11534. CREATE VIEW chromosomal_regulatory_element AS
  11535. SELECT
  11536. feature_id AS chromosomal_regulatory_element_id,
  11537. feature.*
  11538. FROM
  11539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11540. WHERE cvterm.name = 'matrix_attachment_site' OR cvterm.name = 'chromosomal_regulatory_element';
  11541. --- ************************************************
  11542. --- *** relation: insulator ***
  11543. --- *** relation type: VIEW ***
  11544. --- *** ***
  11545. --- *** A transcriptional cis regulatory region ***
  11546. --- *** that when located between a CM and a gen ***
  11547. --- *** e's promoter prevents the CRM from modul ***
  11548. --- *** ating that genes expression. ***
  11549. --- ************************************************
  11550. ---
  11551. CREATE VIEW insulator AS
  11552. SELECT
  11553. feature_id AS insulator_id,
  11554. feature.*
  11555. FROM
  11556. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11557. WHERE cvterm.name = 'insulator';
  11558. --- ************************************************
  11559. --- *** relation: chromosomal_structural_element ***
  11560. --- *** relation type: VIEW ***
  11561. --- *** ***
  11562. --- ************************************************
  11563. ---
  11564. CREATE VIEW chromosomal_structural_element AS
  11565. SELECT
  11566. feature_id AS chromosomal_structural_element_id,
  11567. feature.*
  11568. FROM
  11569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11570. WHERE cvterm.name = 'centromere' OR cvterm.name = 'telomere' OR cvterm.name = 'point_centromere' OR cvterm.name = 'regional_centromere' OR cvterm.name = 'chromosomal_structural_element';
  11571. --- ************************************************
  11572. --- *** relation: five_prime_open_reading_frame ***
  11573. --- *** relation type: VIEW ***
  11574. --- *** ***
  11575. --- ************************************************
  11576. ---
  11577. CREATE VIEW five_prime_open_reading_frame AS
  11578. SELECT
  11579. feature_id AS five_prime_open_reading_frame_id,
  11580. feature.*
  11581. FROM
  11582. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11583. WHERE cvterm.name = 'five_prime_open_reading_frame';
  11584. --- ************************************************
  11585. --- *** relation: upstream_aug_codon ***
  11586. --- *** relation type: VIEW ***
  11587. --- *** ***
  11588. --- *** A start codon upstream of the ORF. ***
  11589. --- ************************************************
  11590. ---
  11591. CREATE VIEW upstream_aug_codon AS
  11592. SELECT
  11593. feature_id AS upstream_aug_codon_id,
  11594. feature.*
  11595. FROM
  11596. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11597. WHERE cvterm.name = 'upstream_AUG_codon';
  11598. --- ************************************************
  11599. --- *** relation: polycistronic_primary_transcript ***
  11600. --- *** relation type: VIEW ***
  11601. --- *** ***
  11602. --- *** A primary transcript encoding for more t ***
  11603. --- *** han one gene product. ***
  11604. --- ************************************************
  11605. ---
  11606. CREATE VIEW polycistronic_primary_transcript AS
  11607. SELECT
  11608. feature_id AS polycistronic_primary_transcript_id,
  11609. feature.*
  11610. FROM
  11611. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11612. WHERE cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'polycistronic_primary_transcript';
  11613. --- ************************************************
  11614. --- *** relation: monocistronic_primary_transcript ***
  11615. --- *** relation type: VIEW ***
  11616. --- *** ***
  11617. --- *** A primary transcript encoding for one ge ***
  11618. --- *** ne product. ***
  11619. --- ************************************************
  11620. ---
  11621. CREATE VIEW monocistronic_primary_transcript AS
  11622. SELECT
  11623. feature_id AS monocistronic_primary_transcript_id,
  11624. feature.*
  11625. FROM
  11626. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11627. WHERE cvterm.name = 'monocistronic_primary_transcript';
  11628. --- ************************************************
  11629. --- *** relation: monocistronic_mrna ***
  11630. --- *** relation type: VIEW ***
  11631. --- *** ***
  11632. --- *** An mRNA with either a single protein pro ***
  11633. --- *** duct, or for which the regions encoding ***
  11634. --- *** all its protein products overlap. ***
  11635. --- ************************************************
  11636. ---
  11637. CREATE VIEW monocistronic_mrna AS
  11638. SELECT
  11639. feature_id AS monocistronic_mrna_id,
  11640. feature.*
  11641. FROM
  11642. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11643. WHERE cvterm.name = 'monocistronic_mRNA';
  11644. --- ************************************************
  11645. --- *** relation: polycistronic_mrna ***
  11646. --- *** relation type: VIEW ***
  11647. --- *** ***
  11648. --- *** An mRNA that encodes multiple proteins f ***
  11649. --- *** rom at least two non-overlapping regions ***
  11650. --- *** . ***
  11651. --- ************************************************
  11652. ---
  11653. CREATE VIEW polycistronic_mrna AS
  11654. SELECT
  11655. feature_id AS polycistronic_mrna_id,
  11656. feature.*
  11657. FROM
  11658. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11659. WHERE cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'polycistronic_mRNA';
  11660. --- ************************************************
  11661. --- *** relation: mini_exon_donor_rna ***
  11662. --- *** relation type: VIEW ***
  11663. --- *** ***
  11664. --- *** A primary transcript that donates the sp ***
  11665. --- *** liced leader to other mRNA. ***
  11666. --- ************************************************
  11667. ---
  11668. CREATE VIEW mini_exon_donor_rna AS
  11669. SELECT
  11670. feature_id AS mini_exon_donor_rna_id,
  11671. feature.*
  11672. FROM
  11673. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11674. WHERE cvterm.name = 'mini_exon_donor_RNA';
  11675. --- ************************************************
  11676. --- *** relation: spliced_leader_rna ***
  11677. --- *** relation type: VIEW ***
  11678. --- *** ***
  11679. --- ************************************************
  11680. ---
  11681. CREATE VIEW spliced_leader_rna AS
  11682. SELECT
  11683. feature_id AS spliced_leader_rna_id,
  11684. feature.*
  11685. FROM
  11686. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11687. WHERE cvterm.name = 'spliced_leader_RNA';
  11688. --- ************************************************
  11689. --- *** relation: engineered_plasmid ***
  11690. --- *** relation type: VIEW ***
  11691. --- *** ***
  11692. --- *** A plasmid that is engineered. ***
  11693. --- ************************************************
  11694. ---
  11695. CREATE VIEW engineered_plasmid AS
  11696. SELECT
  11697. feature_id AS engineered_plasmid_id,
  11698. feature.*
  11699. FROM
  11700. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11701. WHERE cvterm.name = 'engineered_episome' OR cvterm.name = 'gene_trap_construct' OR cvterm.name = 'promoter_trap_construct' OR cvterm.name = 'enhancer_trap_construct' OR cvterm.name = 'engineered_plasmid';
  11702. --- ************************************************
  11703. --- *** relation: transcribed_spacer_region ***
  11704. --- *** relation type: VIEW ***
  11705. --- *** ***
  11706. --- *** Part of an rRNA transcription unit that ***
  11707. --- *** is transcribed but discarded during matu ***
  11708. --- *** ration, not giving rise to any part of r ***
  11709. --- *** RNA. ***
  11710. --- ************************************************
  11711. ---
  11712. CREATE VIEW transcribed_spacer_region AS
  11713. SELECT
  11714. feature_id AS transcribed_spacer_region_id,
  11715. feature.*
  11716. FROM
  11717. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11718. WHERE cvterm.name = 'internal_transcribed_spacer_region' OR cvterm.name = 'external_transcribed_spacer_region' OR cvterm.name = 'transcribed_spacer_region';
  11719. --- ************************************************
  11720. --- *** relation: internal_transcribed_spacer_region ***
  11721. --- *** relation type: VIEW ***
  11722. --- *** ***
  11723. --- *** Non-coding regions of DNA sequence that ***
  11724. --- *** separate genes coding for the 28S, 5.8S, ***
  11725. --- *** and 18S ribosomal RNAs. ***
  11726. --- ************************************************
  11727. ---
  11728. CREATE VIEW internal_transcribed_spacer_region AS
  11729. SELECT
  11730. feature_id AS internal_transcribed_spacer_region_id,
  11731. feature.*
  11732. FROM
  11733. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11734. WHERE cvterm.name = 'internal_transcribed_spacer_region';
  11735. --- ************************************************
  11736. --- *** relation: external_transcribed_spacer_region ***
  11737. --- *** relation type: VIEW ***
  11738. --- *** ***
  11739. --- *** Non-coding regions of DNA that precede t ***
  11740. --- *** he sequence that codes for the ribosomal ***
  11741. --- *** RNA. ***
  11742. --- ************************************************
  11743. ---
  11744. CREATE VIEW external_transcribed_spacer_region AS
  11745. SELECT
  11746. feature_id AS external_transcribed_spacer_region_id,
  11747. feature.*
  11748. FROM
  11749. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11750. WHERE cvterm.name = 'external_transcribed_spacer_region';
  11751. --- ************************************************
  11752. --- *** relation: tetranuc_repeat_microsat ***
  11753. --- *** relation type: VIEW ***
  11754. --- *** ***
  11755. --- ************************************************
  11756. ---
  11757. CREATE VIEW tetranuc_repeat_microsat AS
  11758. SELECT
  11759. feature_id AS tetranuc_repeat_microsat_id,
  11760. feature.*
  11761. FROM
  11762. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11763. WHERE cvterm.name = 'tetranucleotide_repeat_microsatellite_feature';
  11764. --- ************************************************
  11765. --- *** relation: srp_rna_encoding ***
  11766. --- *** relation type: VIEW ***
  11767. --- *** ***
  11768. --- ************************************************
  11769. ---
  11770. CREATE VIEW srp_rna_encoding AS
  11771. SELECT
  11772. feature_id AS srp_rna_encoding_id,
  11773. feature.*
  11774. FROM
  11775. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11776. WHERE cvterm.name = 'SRP_RNA_encoding';
  11777. --- ************************************************
  11778. --- *** relation: minisatellite ***
  11779. --- *** relation type: VIEW ***
  11780. --- *** ***
  11781. --- *** A repeat region containing tandemly repe ***
  11782. --- *** ated sequences having a unit length of 1 ***
  11783. --- *** 0 to 40 bp. ***
  11784. --- ************************************************
  11785. ---
  11786. CREATE VIEW minisatellite AS
  11787. SELECT
  11788. feature_id AS minisatellite_id,
  11789. feature.*
  11790. FROM
  11791. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11792. WHERE cvterm.name = 'minisatellite';
  11793. --- ************************************************
  11794. --- *** relation: antisense_rna ***
  11795. --- *** relation type: VIEW ***
  11796. --- *** ***
  11797. --- *** Antisense RNA is RNA that is transcribed ***
  11798. --- *** from the coding, rather than the templa ***
  11799. --- *** te, strand of DNA. It is therefore compl ***
  11800. --- *** ementary to mRNA. ***
  11801. --- ************************************************
  11802. ---
  11803. CREATE VIEW antisense_rna AS
  11804. SELECT
  11805. feature_id AS antisense_rna_id,
  11806. feature.*
  11807. FROM
  11808. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11809. WHERE cvterm.name = 'MicF_RNA' OR cvterm.name = 'antisense_RNA';
  11810. --- ************************************************
  11811. --- *** relation: antisense_primary_transcript ***
  11812. --- *** relation type: VIEW ***
  11813. --- *** ***
  11814. --- *** The reverse complement of the primary tr ***
  11815. --- *** anscript. ***
  11816. --- ************************************************
  11817. ---
  11818. CREATE VIEW antisense_primary_transcript AS
  11819. SELECT
  11820. feature_id AS antisense_primary_transcript_id,
  11821. feature.*
  11822. FROM
  11823. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11824. WHERE cvterm.name = 'antisense_primary_transcript';
  11825. --- ************************************************
  11826. --- *** relation: sirna ***
  11827. --- *** relation type: VIEW ***
  11828. --- *** ***
  11829. --- *** A small RNA molecule that is the product ***
  11830. --- *** of a longer exogenous or endogenous dsR ***
  11831. --- *** NA, which is either a bimolecular duplex ***
  11832. --- *** or very long hairpin, processed (via th ***
  11833. --- *** e Dicer pathway) such that numerous siRN ***
  11834. --- *** As accumulate from both strands of the d ***
  11835. --- *** sRNA. SRNAs trigger the cleavage of thei ***
  11836. --- *** r target molecules. ***
  11837. --- ************************************************
  11838. ---
  11839. CREATE VIEW sirna AS
  11840. SELECT
  11841. feature_id AS sirna_id,
  11842. feature.*
  11843. FROM
  11844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11845. WHERE cvterm.name = 'siRNA';
  11846. --- ************************************************
  11847. --- *** relation: mirna_primary_transcript ***
  11848. --- *** relation type: VIEW ***
  11849. --- *** ***
  11850. --- *** A primary transcript encoding a micro RN ***
  11851. --- *** A. ***
  11852. --- ************************************************
  11853. ---
  11854. CREATE VIEW mirna_primary_transcript AS
  11855. SELECT
  11856. feature_id AS mirna_primary_transcript_id,
  11857. feature.*
  11858. FROM
  11859. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11860. WHERE cvterm.name = 'stRNA_primary_transcript' OR cvterm.name = 'miRNA_primary_transcript';
  11861. --- ************************************************
  11862. --- *** relation: strna_primary_transcript ***
  11863. --- *** relation type: VIEW ***
  11864. --- *** ***
  11865. --- *** A primary transcript encoding a small te ***
  11866. --- *** mporal mRNA (SO:0000649). ***
  11867. --- ************************************************
  11868. ---
  11869. CREATE VIEW strna_primary_transcript AS
  11870. SELECT
  11871. feature_id AS strna_primary_transcript_id,
  11872. feature.*
  11873. FROM
  11874. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11875. WHERE cvterm.name = 'stRNA_primary_transcript';
  11876. --- ************************************************
  11877. --- *** relation: strna ***
  11878. --- *** relation type: VIEW ***
  11879. --- *** ***
  11880. --- *** Non-coding RNAs of about 21 nucleotides ***
  11881. --- *** in length that regulate temporal develop ***
  11882. --- *** ment; first discovered in C. elegans. ***
  11883. --- ************************************************
  11884. ---
  11885. CREATE VIEW strna AS
  11886. SELECT
  11887. feature_id AS strna_id,
  11888. feature.*
  11889. FROM
  11890. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11891. WHERE cvterm.name = 'stRNA';
  11892. --- ************************************************
  11893. --- *** relation: small_subunit_rrna ***
  11894. --- *** relation type: VIEW ***
  11895. --- *** ***
  11896. --- *** Ribosomal RNA transcript that structures ***
  11897. --- *** the small subunit of the ribosome. ***
  11898. --- ************************************************
  11899. ---
  11900. CREATE VIEW small_subunit_rrna AS
  11901. SELECT
  11902. feature_id AS small_subunit_rrna_id,
  11903. feature.*
  11904. FROM
  11905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11906. WHERE cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'small_subunit_rRNA';
  11907. --- ************************************************
  11908. --- *** relation: large_subunit_rrna ***
  11909. --- *** relation type: VIEW ***
  11910. --- *** ***
  11911. --- *** Ribosomal RNA transcript that structures ***
  11912. --- *** the large subunit of the ribosome. ***
  11913. --- ************************************************
  11914. ---
  11915. CREATE VIEW large_subunit_rrna AS
  11916. SELECT
  11917. feature_id AS large_subunit_rrna_id,
  11918. feature.*
  11919. FROM
  11920. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11921. WHERE cvterm.name = 'rRNA_5_8S' OR cvterm.name = 'rRNA_5S' OR cvterm.name = 'rRNA_28S' OR cvterm.name = 'rRNA_23S' OR cvterm.name = 'rRNA_25S' OR cvterm.name = 'rRNA_21S' OR cvterm.name = 'large_subunit_rRNA';
  11922. --- ************************************************
  11923. --- *** relation: rrna_5s ***
  11924. --- *** relation type: VIEW ***
  11925. --- *** ***
  11926. --- *** 5S ribosomal RNA (5S rRNA) is a componen ***
  11927. --- *** t of the large ribosomal subunit in both ***
  11928. --- *** prokaryotes and eukaryotes. In eukaryot ***
  11929. --- *** es, it is synthesised by RNA polymerase ***
  11930. --- *** III (the other eukaryotic rRNAs are clea ***
  11931. --- *** ved from a 45S precursor synthesised by ***
  11932. --- *** RNA polymerase I). In Xenopus oocytes, i ***
  11933. --- *** t has been shown that fingers 4-7 of the ***
  11934. --- *** nine-zinc finger transcription factor T ***
  11935. --- *** FIIIA can bind to the central region of ***
  11936. --- *** 5S RNA. Thus, in addition to positively ***
  11937. --- *** regulating 5S rRNA transcription, TFIIIA ***
  11938. --- *** also stabilizes 5S rRNA until it is req ***
  11939. --- *** uired for transcription. ***
  11940. --- ************************************************
  11941. ---
  11942. CREATE VIEW rrna_5s AS
  11943. SELECT
  11944. feature_id AS rrna_5s_id,
  11945. feature.*
  11946. FROM
  11947. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11948. WHERE cvterm.name = 'rRNA_5S';
  11949. --- ************************************************
  11950. --- *** relation: rrna_28s ***
  11951. --- *** relation type: VIEW ***
  11952. --- *** ***
  11953. --- *** A component of the large ribosomal subun ***
  11954. --- *** it. ***
  11955. --- ************************************************
  11956. ---
  11957. CREATE VIEW rrna_28s AS
  11958. SELECT
  11959. feature_id AS rrna_28s_id,
  11960. feature.*
  11961. FROM
  11962. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11963. WHERE cvterm.name = 'rRNA_28S';
  11964. --- ************************************************
  11965. --- *** relation: maxicircle_gene ***
  11966. --- *** relation type: VIEW ***
  11967. --- *** ***
  11968. --- *** A mitochondrial gene located in a maxici ***
  11969. --- *** rcle. ***
  11970. --- ************************************************
  11971. ---
  11972. CREATE VIEW maxicircle_gene AS
  11973. SELECT
  11974. feature_id AS maxicircle_gene_id,
  11975. feature.*
  11976. FROM
  11977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11978. WHERE cvterm.name = 'cryptogene' OR cvterm.name = 'maxicircle_gene';
  11979. --- ************************************************
  11980. --- *** relation: ncrna ***
  11981. --- *** relation type: VIEW ***
  11982. --- *** ***
  11983. --- *** An RNA transcript that does not encode f ***
  11984. --- *** or a protein rather the RNA molecule is ***
  11985. --- *** the gene product. ***
  11986. --- ************************************************
  11987. ---
  11988. CREATE VIEW ncrna AS
  11989. SELECT
  11990. feature_id AS ncrna_id,
  11991. feature.*
  11992. FROM
  11993. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11994. WHERE cvterm.name = 'scRNA' OR cvterm.name = 'rRNA' OR cvterm.name = 'tRNA' OR cvterm.name = 'snRNA' OR cvterm.name = 'snoRNA' OR cvterm.name = 'small_regulatory_ncRNA' OR cvterm.name = 'RNase_MRP_RNA' OR cvterm.name = 'RNase_P_RNA' OR cvterm.name = 'telomerase_RNA' OR cvterm.name = 'vault_RNA' OR cvterm.name = 'Y_RNA' OR cvterm.name = 'rasiRNA' OR cvterm.name = 'SRP_RNA' OR cvterm.name = 'guide_RNA' OR cvterm.name = 'antisense_RNA' OR cvterm.name = 'siRNA' OR cvterm.name = 'stRNA' OR cvterm.name = 'class_II_RNA' OR cvterm.name = 'class_I_RNA' OR cvterm.name = 'piRNA' OR cvterm.name = 'lincRNA' OR cvterm.name = 'tasiRNA' OR cvterm.name = 'rRNA_cleavage_RNA' OR cvterm.name = 'small_subunit_rRNA' OR cvterm.name = 'large_subunit_rRNA' OR cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'rRNA_5_8S' OR cvterm.name = 'rRNA_5S' OR cvterm.name = 'rRNA_28S' OR cvterm.name = 'rRNA_23S' OR cvterm.name = 'rRNA_25S' OR cvterm.name = 'rRNA_21S' OR cvterm.name = 'alanyl_tRNA' OR cvterm.name = 'asparaginyl_tRNA' OR cvterm.name = 'aspartyl_tRNA' OR cvterm.name = 'cysteinyl_tRNA' OR cvterm.name = 'glutaminyl_tRNA' OR cvterm.name = 'glutamyl_tRNA' OR cvterm.name = 'glycyl_tRNA' OR cvterm.name = 'histidyl_tRNA' OR cvterm.name = 'isoleucyl_tRNA' OR cvterm.name = 'leucyl_tRNA' OR cvterm.name = 'lysyl_tRNA' OR cvterm.name = 'methionyl_tRNA' OR cvterm.name = 'phenylalanyl_tRNA' OR cvterm.name = 'prolyl_tRNA' OR cvterm.name = 'seryl_tRNA' OR cvterm.name = 'threonyl_tRNA' OR cvterm.name = 'tryptophanyl_tRNA' OR cvterm.name = 'tyrosyl_tRNA' OR cvterm.name = 'valyl_tRNA' OR cvterm.name = 'pyrrolysyl_tRNA' OR cvterm.name = 'arginyl_tRNA' OR cvterm.name = 'selenocysteinyl_tRNA' OR cvterm.name = 'U1_snRNA' OR cvterm.name = 'U2_snRNA' OR cvterm.name = 'U4_snRNA' OR cvterm.name = 'U4atac_snRNA' OR cvterm.name = 'U5_snRNA' OR cvterm.name = 'U6_snRNA' OR cvterm.name = 'U6atac_snRNA' OR cvterm.name = 'U11_snRNA' OR cvterm.name = 'U12_snRNA' OR cvterm.name = 'C_D_box_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA' OR cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'miRNA' OR cvterm.name = 'RNA_6S' OR cvterm.name = 'CsrB_RsmB_RNA' OR cvterm.name = 'DsrA_RNA' OR cvterm.name = 'OxyS_RNA' OR cvterm.name = 'RprA_RNA' OR cvterm.name = 'RRE_RNA' OR cvterm.name = 'spot_42_RNA' OR cvterm.name = 'tmRNA' OR cvterm.name = 'GcvB_RNA' OR cvterm.name = 'MicF_RNA' OR cvterm.name = 'ncRNA';
  11995. --- ************************************************
  11996. --- *** relation: strna_encoding ***
  11997. --- *** relation type: VIEW ***
  11998. --- *** ***
  11999. --- ************************************************
  12000. ---
  12001. CREATE VIEW strna_encoding AS
  12002. SELECT
  12003. feature_id AS strna_encoding_id,
  12004. feature.*
  12005. FROM
  12006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12007. WHERE cvterm.name = 'stRNA_encoding';
  12008. --- ************************************************
  12009. --- *** relation: repeat_region ***
  12010. --- *** relation type: VIEW ***
  12011. --- *** ***
  12012. --- *** A region of sequence containing one or m ***
  12013. --- *** ore repeat units. ***
  12014. --- ************************************************
  12015. ---
  12016. CREATE VIEW repeat_region AS
  12017. SELECT
  12018. feature_id AS repeat_region_id,
  12019. feature.*
  12020. FROM
  12021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12022. WHERE cvterm.name = 'long_terminal_repeat' OR cvterm.name = 'engineered_foreign_repetitive_element' OR cvterm.name = 'inverted_repeat' OR cvterm.name = 'direct_repeat' OR cvterm.name = 'non_LTR_retrotransposon_polymeric_tract' OR cvterm.name = 'dispersed_repeat' OR cvterm.name = 'tandem_repeat' OR cvterm.name = 'X_element_combinatorial_repeat' OR cvterm.name = 'Y_prime_element' OR cvterm.name = 'telomeric_repeat' OR cvterm.name = 'nested_repeat' OR cvterm.name = 'centromeric_repeat' OR cvterm.name = 'five_prime_LTR' OR cvterm.name = 'three_prime_LTR' OR cvterm.name = 'solo_LTR' OR cvterm.name = 'terminal_inverted_repeat' OR cvterm.name = 'five_prime_terminal_inverted_repeat' OR cvterm.name = 'three_prime_terminal_inverted_repeat' OR cvterm.name = 'target_site_duplication' OR cvterm.name = 'CRISPR' OR cvterm.name = 'satellite_DNA' OR cvterm.name = 'microsatellite' OR cvterm.name = 'minisatellite' OR cvterm.name = 'dinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'trinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'tetranucleotide_repeat_microsatellite_feature' OR cvterm.name = 'nested_tandem_repeat' OR cvterm.name = 'regional_centromere_inner_repeat_region' OR cvterm.name = 'regional_centromere_outer_repeat_region' OR cvterm.name = 'repeat_region';
  12023. --- ************************************************
  12024. --- *** relation: dispersed_repeat ***
  12025. --- *** relation type: VIEW ***
  12026. --- *** ***
  12027. --- *** A repeat that is located at dispersed si ***
  12028. --- *** tes in the genome. ***
  12029. --- ************************************************
  12030. ---
  12031. CREATE VIEW dispersed_repeat AS
  12032. SELECT
  12033. feature_id AS dispersed_repeat_id,
  12034. feature.*
  12035. FROM
  12036. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12037. WHERE cvterm.name = 'dispersed_repeat';
  12038. --- ************************************************
  12039. --- *** relation: tmrna_encoding ***
  12040. --- *** relation type: VIEW ***
  12041. --- *** ***
  12042. --- ************************************************
  12043. ---
  12044. CREATE VIEW tmrna_encoding AS
  12045. SELECT
  12046. feature_id AS tmrna_encoding_id,
  12047. feature.*
  12048. FROM
  12049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12050. WHERE cvterm.name = 'tmRNA_encoding';
  12051. --- ************************************************
  12052. --- *** relation: spliceosomal_intron ***
  12053. --- *** relation type: VIEW ***
  12054. --- *** ***
  12055. --- *** An intron which is spliced by the splice ***
  12056. --- *** osome. ***
  12057. --- ************************************************
  12058. ---
  12059. CREATE VIEW spliceosomal_intron AS
  12060. SELECT
  12061. feature_id AS spliceosomal_intron_id,
  12062. feature.*
  12063. FROM
  12064. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12065. WHERE cvterm.name = 'U2_intron' OR cvterm.name = 'U12_intron' OR cvterm.name = 'spliceosomal_intron';
  12066. --- ************************************************
  12067. --- *** relation: trna_encoding ***
  12068. --- *** relation type: VIEW ***
  12069. --- *** ***
  12070. --- ************************************************
  12071. ---
  12072. CREATE VIEW trna_encoding AS
  12073. SELECT
  12074. feature_id AS trna_encoding_id,
  12075. feature.*
  12076. FROM
  12077. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12078. WHERE cvterm.name = 'tRNA_encoding';
  12079. --- ************************************************
  12080. --- *** relation: introgressed_chromosome_region ***
  12081. --- *** relation type: VIEW ***
  12082. --- *** ***
  12083. --- ************************************************
  12084. ---
  12085. CREATE VIEW introgressed_chromosome_region AS
  12086. SELECT
  12087. feature_id AS introgressed_chromosome_region_id,
  12088. feature.*
  12089. FROM
  12090. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12091. WHERE cvterm.name = 'introgressed_chromosome_region';
  12092. --- ************************************************
  12093. --- *** relation: monocistronic_transcript ***
  12094. --- *** relation type: VIEW ***
  12095. --- *** ***
  12096. --- *** A transcript that is monocistronic. ***
  12097. --- ************************************************
  12098. ---
  12099. CREATE VIEW monocistronic_transcript AS
  12100. SELECT
  12101. feature_id AS monocistronic_transcript_id,
  12102. feature.*
  12103. FROM
  12104. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12105. WHERE cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'monocistronic_transcript';
  12106. --- ************************************************
  12107. --- *** relation: mobile_intron ***
  12108. --- *** relation type: VIEW ***
  12109. --- *** ***
  12110. --- *** An intron (mitochondrial, chloroplast, n ***
  12111. --- *** uclear or prokaryotic) that encodes a do ***
  12112. --- *** uble strand sequence specific endonuclea ***
  12113. --- *** se allowing for mobility. ***
  12114. --- ************************************************
  12115. ---
  12116. CREATE VIEW mobile_intron AS
  12117. SELECT
  12118. feature_id AS mobile_intron_id,
  12119. feature.*
  12120. FROM
  12121. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12122. WHERE cvterm.name = 'mobile_intron';
  12123. --- ************************************************
  12124. --- *** relation: insertion ***
  12125. --- *** relation type: VIEW ***
  12126. --- *** ***
  12127. --- *** The sequence of one or more nucleotides ***
  12128. --- *** added between two adjacent nucleotides i ***
  12129. --- *** n the sequence. ***
  12130. --- ************************************************
  12131. ---
  12132. CREATE VIEW insertion AS
  12133. SELECT
  12134. feature_id AS insertion_id,
  12135. feature.*
  12136. FROM
  12137. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12138. WHERE cvterm.name = 'transgenic_insertion' OR cvterm.name = 'duplication' OR cvterm.name = 'tandem_duplication' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'insertion';
  12139. --- ************************************************
  12140. --- *** relation: est_match ***
  12141. --- *** relation type: VIEW ***
  12142. --- *** ***
  12143. --- *** A match against an EST sequence. ***
  12144. --- ************************************************
  12145. ---
  12146. CREATE VIEW est_match AS
  12147. SELECT
  12148. feature_id AS est_match_id,
  12149. feature.*
  12150. FROM
  12151. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12152. WHERE cvterm.name = 'EST_match';
  12153. --- ************************************************
  12154. --- *** relation: sequence_rearrangement_feature ***
  12155. --- *** relation type: VIEW ***
  12156. --- *** ***
  12157. --- ************************************************
  12158. ---
  12159. CREATE VIEW sequence_rearrangement_feature AS
  12160. SELECT
  12161. feature_id AS sequence_rearrangement_feature_id,
  12162. feature.*
  12163. FROM
  12164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12165. WHERE cvterm.name = 'specific_recombination_site' OR cvterm.name = 'chromosome_breakage_sequence' OR cvterm.name = 'internal_eliminated_sequence' OR cvterm.name = 'macronucleus_destined_segment' OR cvterm.name = 'recombination_feature_of_rearranged_gene' OR cvterm.name = 'site_specific_recombination_target_region' OR cvterm.name = 'recombination_signal_sequence' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_feature' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_spacer' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_signal_feature' OR cvterm.name = 'D_gene' OR cvterm.name = 'V_gene' OR cvterm.name = 'J_gene' OR cvterm.name = 'C_gene' OR cvterm.name = 'D_J_C_cluster' OR cvterm.name = 'J_C_cluster' OR cvterm.name = 'J_cluster' OR cvterm.name = 'V_cluster' OR cvterm.name = 'V_J_cluster' OR cvterm.name = 'V_J_C_cluster' OR cvterm.name = 'C_cluster' OR cvterm.name = 'D_cluster' OR cvterm.name = 'D_J_cluster' OR cvterm.name = 'three_prime_D_spacer' OR cvterm.name = 'five_prime_D_spacer' OR cvterm.name = 'J_spacer' OR cvterm.name = 'V_spacer' OR cvterm.name = 'VD_gene' OR cvterm.name = 'DJ_gene' OR cvterm.name = 'VDJ_gene' OR cvterm.name = 'VJ_gene' OR cvterm.name = 'DJ_J_cluster' OR cvterm.name = 'VDJ_J_C_cluster' OR cvterm.name = 'VDJ_J_cluster' OR cvterm.name = 'VJ_C_cluster' OR cvterm.name = 'VJ_J_C_cluster' OR cvterm.name = 'VJ_J_cluster' OR cvterm.name = 'D_DJ_C_cluster' OR cvterm.name = 'D_DJ_cluster' OR cvterm.name = 'D_DJ_J_C_cluster' OR cvterm.name = 'D_DJ_J_cluster' OR cvterm.name = 'V_DJ_cluster' OR cvterm.name = 'V_DJ_J_cluster' OR cvterm.name = 'V_VDJ_C_cluster' OR cvterm.name = 'V_VDJ_cluster' OR cvterm.name = 'V_VDJ_J_cluster' OR cvterm.name = 'V_VJ_C_cluster' OR cvterm.name = 'V_VJ_cluster' OR cvterm.name = 'V_VJ_J_cluster' OR cvterm.name = 'V_D_DJ_C_cluster' OR cvterm.name = 'V_D_DJ_cluster' OR cvterm.name = 'V_D_DJ_J_C_cluster' OR cvterm.name = 'V_D_DJ_J_cluster' OR cvterm.name = 'V_D_J_C_cluster' OR cvterm.name = 'V_D_J_cluster' OR cvterm.name = 'DJ_C_cluster' OR cvterm.name = 'DJ_J_C_cluster' OR cvterm.name = 'VDJ_C_cluster' OR cvterm.name = 'V_DJ_C_cluster' OR cvterm.name = 'V_DJ_J_C_cluster' OR cvterm.name = 'V_VDJ_J_C_cluster' OR cvterm.name = 'V_VJ_J_C_cluster' OR cvterm.name = 'J_gene_recombination_feature' OR cvterm.name = 'D_gene_recombination_feature' OR cvterm.name = 'V_gene_recombination_feature' OR cvterm.name = 'heptamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'nonamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'five_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_heptamer' OR cvterm.name = 'five_prime_D_heptamer' OR cvterm.name = 'J_heptamer' OR cvterm.name = 'V_heptamer' OR cvterm.name = 'three_prime_D_nonamer' OR cvterm.name = 'five_prime_D_nonamer' OR cvterm.name = 'J_nonamer' OR cvterm.name = 'V_nonamer' OR cvterm.name = 'integration_excision_site' OR cvterm.name = 'resolution_site' OR cvterm.name = 'inversion_site' OR cvterm.name = 'inversion_site_part' OR cvterm.name = 'attI_site' OR cvterm.name = 'attP_site' OR cvterm.name = 'attB_site' OR cvterm.name = 'attL_site' OR cvterm.name = 'attR_site' OR cvterm.name = 'attC_site' OR cvterm.name = 'attCtn_site' OR cvterm.name = 'loxP_site' OR cvterm.name = 'dif_site' OR cvterm.name = 'FRT_site' OR cvterm.name = 'IRLinv_site' OR cvterm.name = 'IRRinv_site' OR cvterm.name = 'sequence_rearrangement_feature';
  12166. --- ************************************************
  12167. --- *** relation: chromosome_breakage_sequence ***
  12168. --- *** relation type: VIEW ***
  12169. --- *** ***
  12170. --- *** A sequence within the micronuclear DNA o ***
  12171. --- *** f ciliates at which chromosome breakage ***
  12172. --- *** and telomere addition occurs during nucl ***
  12173. --- *** ear differentiation. ***
  12174. --- ************************************************
  12175. ---
  12176. CREATE VIEW chromosome_breakage_sequence AS
  12177. SELECT
  12178. feature_id AS chromosome_breakage_sequence_id,
  12179. feature.*
  12180. FROM
  12181. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12182. WHERE cvterm.name = 'chromosome_breakage_sequence';
  12183. --- ************************************************
  12184. --- *** relation: internal_eliminated_sequence ***
  12185. --- *** relation type: VIEW ***
  12186. --- *** ***
  12187. --- *** A sequence eliminated from the genome of ***
  12188. --- *** ciliates during nuclear differentiation ***
  12189. --- *** . ***
  12190. --- ************************************************
  12191. ---
  12192. CREATE VIEW internal_eliminated_sequence AS
  12193. SELECT
  12194. feature_id AS internal_eliminated_sequence_id,
  12195. feature.*
  12196. FROM
  12197. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12198. WHERE cvterm.name = 'internal_eliminated_sequence';
  12199. --- ************************************************
  12200. --- *** relation: macronucleus_destined_segment ***
  12201. --- *** relation type: VIEW ***
  12202. --- *** ***
  12203. --- *** A sequence that is conserved, although r ***
  12204. --- *** earranged relative to the micronucleus, ***
  12205. --- *** in the macronucleus of a ciliate genome. ***
  12206. --- ************************************************
  12207. ---
  12208. CREATE VIEW macronucleus_destined_segment AS
  12209. SELECT
  12210. feature_id AS macronucleus_destined_segment_id,
  12211. feature.*
  12212. FROM
  12213. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12214. WHERE cvterm.name = 'macronucleus_destined_segment';
  12215. --- ************************************************
  12216. --- *** relation: transcript ***
  12217. --- *** relation type: VIEW ***
  12218. --- *** ***
  12219. --- *** An RNA synthesized on a DNA or RNA templ ***
  12220. --- *** ate by an RNA polymerase. ***
  12221. --- ************************************************
  12222. ---
  12223. CREATE VIEW transcript AS
  12224. SELECT
  12225. feature_id AS transcript_id,
  12226. feature.*
  12227. FROM
  12228. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12229. WHERE cvterm.name = 'polycistronic_transcript' OR cvterm.name = 'transcript_with_translational_frameshift' OR cvterm.name = 'primary_transcript' OR cvterm.name = 'mature_transcript' OR cvterm.name = 'transcript_bound_by_nucleic_acid' OR cvterm.name = 'transcript_bound_by_protein' OR cvterm.name = 'enzymatic_RNA' OR cvterm.name = 'trans_spliced_transcript' OR cvterm.name = 'monocistronic_transcript' OR cvterm.name = 'aberrant_processed_transcript' OR cvterm.name = 'edited_transcript' OR cvterm.name = 'processed_transcript' OR cvterm.name = 'alternatively_spliced_transcript' OR cvterm.name = 'dicistronic_transcript' OR cvterm.name = 'polycistronic_primary_transcript' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'protein_coding_primary_transcript' OR cvterm.name = 'nc_primary_transcript' OR cvterm.name = 'polycistronic_primary_transcript' OR cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'mini_exon_donor_RNA' OR cvterm.name = 'antisense_primary_transcript' OR cvterm.name = 'capped_primary_transcript' OR cvterm.name = 'pre_edited_mRNA' OR cvterm.name = 'scRNA_primary_transcript' OR cvterm.name = 'rRNA_primary_transcript' OR cvterm.name = 'tRNA_primary_transcript' OR cvterm.name = 'snRNA_primary_transcript' OR cvterm.name = 'snoRNA_primary_transcript' OR cvterm.name = 'tmRNA_primary_transcript' OR cvterm.name = 'SRP_RNA_primary_transcript' OR cvterm.name = 'miRNA_primary_transcript' OR cvterm.name = 'tasiRNA_primary_transcript' OR cvterm.name = 'rRNA_small_subunit_primary_transcript' OR cvterm.name = 'rRNA_large_subunit_primary_transcript' OR cvterm.name = 'alanine_tRNA_primary_transcript' OR cvterm.name = 'arginine_tRNA_primary_transcript' OR cvterm.name = 'asparagine_tRNA_primary_transcript' OR cvterm.name = 'aspartic_acid_tRNA_primary_transcript' OR cvterm.name = 'cysteine_tRNA_primary_transcript' OR cvterm.name = 'glutamic_acid_tRNA_primary_transcript' OR cvterm.name = 'glutamine_tRNA_primary_transcript' OR cvterm.name = 'glycine_tRNA_primary_transcript' OR cvterm.name = 'histidine_tRNA_primary_transcript' OR cvterm.name = 'isoleucine_tRNA_primary_transcript' OR cvterm.name = 'leucine_tRNA_primary_transcript' OR cvterm.name = 'lysine_tRNA_primary_transcript' OR cvterm.name = 'methionine_tRNA_primary_transcript' OR cvterm.name = 'phenylalanine_tRNA_primary_transcript' OR cvterm.name = 'proline_tRNA_primary_transcript' OR cvterm.name = 'serine_tRNA_primary_transcript' OR cvterm.name = 'threonine_tRNA_primary_transcript' OR cvterm.name = 'tryptophan_tRNA_primary_transcript' OR cvterm.name = 'tyrosine_tRNA_primary_transcript' OR cvterm.name = 'valine_tRNA_primary_transcript' OR cvterm.name = 'pyrrolysine_tRNA_primary_transcript' OR cvterm.name = 'selenocysteine_tRNA_primary_transcript' OR cvterm.name = 'methylation_guide_snoRNA_primary_transcript' OR cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript' OR cvterm.name = 'C_D_box_snoRNA_primary_transcript' OR cvterm.name = 'H_ACA_box_snoRNA_primary_transcript' OR cvterm.name = 'U14_snoRNA_primary_transcript' OR cvterm.name = 'stRNA_primary_transcript' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'mRNA' OR cvterm.name = 'ncRNA' OR cvterm.name = 'mRNA_with_frameshift' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'exemplar_mRNA' OR cvterm.name = 'capped_mRNA' OR cvterm.name = 'polyadenylated_mRNA' OR cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'consensus_mRNA' OR cvterm.name = 'recoded_mRNA' OR cvterm.name = 'mRNA_with_minus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_2_frameshift' OR cvterm.name = 'mRNA_with_minus_2_frameshift' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'mRNA_recoded_by_translational_bypass' OR cvterm.name = 'mRNA_recoded_by_codon_redefinition' OR cvterm.name = 'scRNA' OR cvterm.name = 'rRNA' OR cvterm.name = 'tRNA' OR cvterm.name = 'snRNA' OR cvterm.name = 'snoRNA' OR cvterm.name = 'small_regulatory_ncRNA' OR cvterm.name = 'RNase_MRP_RNA' OR cvterm.name = 'RNase_P_RNA' OR cvterm.name = 'telomerase_RNA' OR cvterm.name = 'vault_RNA' OR cvterm.name = 'Y_RNA' OR cvterm.name = 'rasiRNA' OR cvterm.name = 'SRP_RNA' OR cvterm.name = 'guide_RNA' OR cvterm.name = 'antisense_RNA' OR cvterm.name = 'siRNA' OR cvterm.name = 'stRNA' OR cvterm.name = 'class_II_RNA' OR cvterm.name = 'class_I_RNA' OR cvterm.name = 'piRNA' OR cvterm.name = 'lincRNA' OR cvterm.name = 'tasiRNA' OR cvterm.name = 'rRNA_cleavage_RNA' OR cvterm.name = 'small_subunit_rRNA' OR cvterm.name = 'large_subunit_rRNA' OR cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'rRNA_5_8S' OR cvterm.name = 'rRNA_5S' OR cvterm.name = 'rRNA_28S' OR cvterm.name = 'rRNA_23S' OR cvterm.name = 'rRNA_25S' OR cvterm.name = 'rRNA_21S' OR cvterm.name = 'alanyl_tRNA' OR cvterm.name = 'asparaginyl_tRNA' OR cvterm.name = 'aspartyl_tRNA' OR cvterm.name = 'cysteinyl_tRNA' OR cvterm.name = 'glutaminyl_tRNA' OR cvterm.name = 'glutamyl_tRNA' OR cvterm.name = 'glycyl_tRNA' OR cvterm.name = 'histidyl_tRNA' OR cvterm.name = 'isoleucyl_tRNA' OR cvterm.name = 'leucyl_tRNA' OR cvterm.name = 'lysyl_tRNA' OR cvterm.name = 'methionyl_tRNA' OR cvterm.name = 'phenylalanyl_tRNA' OR cvterm.name = 'prolyl_tRNA' OR cvterm.name = 'seryl_tRNA' OR cvterm.name = 'threonyl_tRNA' OR cvterm.name = 'tryptophanyl_tRNA' OR cvterm.name = 'tyrosyl_tRNA' OR cvterm.name = 'valyl_tRNA' OR cvterm.name = 'pyrrolysyl_tRNA' OR cvterm.name = 'arginyl_tRNA' OR cvterm.name = 'selenocysteinyl_tRNA' OR cvterm.name = 'U1_snRNA' OR cvterm.name = 'U2_snRNA' OR cvterm.name = 'U4_snRNA' OR cvterm.name = 'U4atac_snRNA' OR cvterm.name = 'U5_snRNA' OR cvterm.name = 'U6_snRNA' OR cvterm.name = 'U6atac_snRNA' OR cvterm.name = 'U11_snRNA' OR cvterm.name = 'U12_snRNA' OR cvterm.name = 'C_D_box_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA' OR cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'miRNA' OR cvterm.name = 'RNA_6S' OR cvterm.name = 'CsrB_RsmB_RNA' OR cvterm.name = 'DsrA_RNA' OR cvterm.name = 'OxyS_RNA' OR cvterm.name = 'RprA_RNA' OR cvterm.name = 'RRE_RNA' OR cvterm.name = 'spot_42_RNA' OR cvterm.name = 'tmRNA' OR cvterm.name = 'GcvB_RNA' OR cvterm.name = 'MicF_RNA' OR cvterm.name = 'ribozyme' OR cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'transcript';
  12230. --- ************************************************
  12231. --- *** relation: canonical_three_prime_splice_site ***
  12232. --- *** relation type: VIEW ***
  12233. --- *** ***
  12234. --- *** The canonical 3' splice site has the seq ***
  12235. --- *** uence "AG". ***
  12236. --- ************************************************
  12237. ---
  12238. CREATE VIEW canonical_three_prime_splice_site AS
  12239. SELECT
  12240. feature_id AS canonical_three_prime_splice_site_id,
  12241. feature.*
  12242. FROM
  12243. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12244. WHERE cvterm.name = 'canonical_three_prime_splice_site';
  12245. --- ************************************************
  12246. --- *** relation: canonical_five_prime_splice_site ***
  12247. --- *** relation type: VIEW ***
  12248. --- *** ***
  12249. --- *** The canonical 5' splice site has the seq ***
  12250. --- *** uence "GT". ***
  12251. --- ************************************************
  12252. ---
  12253. CREATE VIEW canonical_five_prime_splice_site AS
  12254. SELECT
  12255. feature_id AS canonical_five_prime_splice_site_id,
  12256. feature.*
  12257. FROM
  12258. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12259. WHERE cvterm.name = 'canonical_five_prime_splice_site';
  12260. --- ************************************************
  12261. --- *** relation: non_canonical_three_prime_splice_site ***
  12262. --- *** relation type: VIEW ***
  12263. --- *** ***
  12264. --- *** A 3' splice site that does not have the ***
  12265. --- *** sequence "AG". ***
  12266. --- ************************************************
  12267. ---
  12268. CREATE VIEW non_canonical_three_prime_splice_site AS
  12269. SELECT
  12270. feature_id AS non_canonical_three_prime_splice_site_id,
  12271. feature.*
  12272. FROM
  12273. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12274. WHERE cvterm.name = 'non_canonical_three_prime_splice_site';
  12275. --- ************************************************
  12276. --- *** relation: non_canonical_five_prime_splice_site ***
  12277. --- *** relation type: VIEW ***
  12278. --- *** ***
  12279. --- *** A 5' splice site which does not have the ***
  12280. --- *** sequence "GT". ***
  12281. --- ************************************************
  12282. ---
  12283. CREATE VIEW non_canonical_five_prime_splice_site AS
  12284. SELECT
  12285. feature_id AS non_canonical_five_prime_splice_site_id,
  12286. feature.*
  12287. FROM
  12288. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12289. WHERE cvterm.name = 'non_canonical_five_prime_splice_site';
  12290. --- ************************************************
  12291. --- *** relation: non_canonical_start_codon ***
  12292. --- *** relation type: VIEW ***
  12293. --- *** ***
  12294. --- *** A start codon that is not the usual AUG ***
  12295. --- *** sequence. ***
  12296. --- ************************************************
  12297. ---
  12298. CREATE VIEW non_canonical_start_codon AS
  12299. SELECT
  12300. feature_id AS non_canonical_start_codon_id,
  12301. feature.*
  12302. FROM
  12303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12304. WHERE cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'non_canonical_start_codon';
  12305. --- ************************************************
  12306. --- *** relation: aberrant_processed_transcript ***
  12307. --- *** relation type: VIEW ***
  12308. --- *** ***
  12309. --- *** A transcript that has been processed "in ***
  12310. --- *** correctly", for example by the failure o ***
  12311. --- *** f splicing of one or more exons. ***
  12312. --- ************************************************
  12313. ---
  12314. CREATE VIEW aberrant_processed_transcript AS
  12315. SELECT
  12316. feature_id AS aberrant_processed_transcript_id,
  12317. feature.*
  12318. FROM
  12319. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12320. WHERE cvterm.name = 'aberrant_processed_transcript';
  12321. --- ************************************************
  12322. --- *** relation: exonic_splice_enhancer ***
  12323. --- *** relation type: VIEW ***
  12324. --- *** ***
  12325. --- *** Exonic splicing enhancers (ESEs) facilit ***
  12326. --- *** ate exon definition by assisting in the ***
  12327. --- *** recruitment of splicing factors to the a ***
  12328. --- *** djacent intron. ***
  12329. --- ************************************************
  12330. ---
  12331. CREATE VIEW exonic_splice_enhancer AS
  12332. SELECT
  12333. feature_id AS exonic_splice_enhancer_id,
  12334. feature.*
  12335. FROM
  12336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12337. WHERE cvterm.name = 'exonic_splice_enhancer';
  12338. --- ************************************************
  12339. --- *** relation: nuclease_sensitive_site ***
  12340. --- *** relation type: VIEW ***
  12341. --- *** ***
  12342. --- *** A region of nucleotide sequence targeted ***
  12343. --- *** by a nuclease enzyme. ***
  12344. --- ************************************************
  12345. ---
  12346. CREATE VIEW nuclease_sensitive_site AS
  12347. SELECT
  12348. feature_id AS nuclease_sensitive_site_id,
  12349. feature.*
  12350. FROM
  12351. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12352. WHERE cvterm.name = 'nuclease_hypersensitive_site' OR cvterm.name = 'group_1_intron_homing_endonuclease_target_region' OR cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'nuclease_sensitive_site';
  12353. --- ************************************************
  12354. --- *** relation: dnasei_hypersensitive_site ***
  12355. --- *** relation type: VIEW ***
  12356. --- *** ***
  12357. --- ************************************************
  12358. ---
  12359. CREATE VIEW dnasei_hypersensitive_site AS
  12360. SELECT
  12361. feature_id AS dnasei_hypersensitive_site_id,
  12362. feature.*
  12363. FROM
  12364. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12365. WHERE cvterm.name = 'DNAseI_hypersensitive_site';
  12366. --- ************************************************
  12367. --- *** relation: translocation_element ***
  12368. --- *** relation type: VIEW ***
  12369. --- *** ***
  12370. --- *** A chromosomal translocation whereby the ***
  12371. --- *** chromosomes carrying non-homologous cent ***
  12372. --- *** romeres may be recovered independently. ***
  12373. --- *** These chromosomes are described as trans ***
  12374. --- *** location elements. This occurs for some ***
  12375. --- *** translocations, particularly but not exc ***
  12376. --- *** lusively, reciprocal translocations. ***
  12377. --- ************************************************
  12378. ---
  12379. CREATE VIEW translocation_element AS
  12380. SELECT
  12381. feature_id AS translocation_element_id,
  12382. feature.*
  12383. FROM
  12384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12385. WHERE cvterm.name = 'translocation_element';
  12386. --- ************************************************
  12387. --- *** relation: deletion_junction ***
  12388. --- *** relation type: VIEW ***
  12389. --- *** ***
  12390. --- *** The space between two bases in a sequenc ***
  12391. --- *** e which marks the position where a delet ***
  12392. --- *** ion has occurred. ***
  12393. --- ************************************************
  12394. ---
  12395. CREATE VIEW deletion_junction AS
  12396. SELECT
  12397. feature_id AS deletion_junction_id,
  12398. feature.*
  12399. FROM
  12400. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12401. WHERE cvterm.name = 'deletion_junction';
  12402. --- ************************************************
  12403. --- *** relation: golden_path ***
  12404. --- *** relation type: VIEW ***
  12405. --- *** ***
  12406. --- *** A set of subregions selected from sequen ***
  12407. --- *** ce contigs which when concatenated form ***
  12408. --- *** a nonredundant linear sequence. ***
  12409. --- ************************************************
  12410. ---
  12411. CREATE VIEW golden_path AS
  12412. SELECT
  12413. feature_id AS golden_path_id,
  12414. feature.*
  12415. FROM
  12416. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12417. WHERE cvterm.name = 'golden_path';
  12418. --- ************************************************
  12419. --- *** relation: cdna_match ***
  12420. --- *** relation type: VIEW ***
  12421. --- *** ***
  12422. --- *** A match against cDNA sequence. ***
  12423. --- ************************************************
  12424. ---
  12425. CREATE VIEW cdna_match AS
  12426. SELECT
  12427. feature_id AS cdna_match_id,
  12428. feature.*
  12429. FROM
  12430. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12431. WHERE cvterm.name = 'cDNA_match';
  12432. --- ************************************************
  12433. --- *** relation: gene_with_polycistronic_transcript ***
  12434. --- *** relation type: VIEW ***
  12435. --- *** ***
  12436. --- *** A gene that encodes a polycistronic tran ***
  12437. --- *** script. ***
  12438. --- ************************************************
  12439. ---
  12440. CREATE VIEW gene_with_polycistronic_transcript AS
  12441. SELECT
  12442. feature_id AS gene_with_polycistronic_transcript_id,
  12443. feature.*
  12444. FROM
  12445. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12446. WHERE cvterm.name = 'gene_with_dicistronic_transcript' OR cvterm.name = 'gene_with_dicistronic_primary_transcript' OR cvterm.name = 'gene_with_dicistronic_mRNA' OR cvterm.name = 'gene_with_polycistronic_transcript';
  12447. --- ************************************************
  12448. --- *** relation: cleaved_initiator_methionine ***
  12449. --- *** relation type: VIEW ***
  12450. --- *** ***
  12451. --- *** The initiator methionine that has been c ***
  12452. --- *** leaved from a mature polypeptide sequenc ***
  12453. --- *** e. ***
  12454. --- ************************************************
  12455. ---
  12456. CREATE VIEW cleaved_initiator_methionine AS
  12457. SELECT
  12458. feature_id AS cleaved_initiator_methionine_id,
  12459. feature.*
  12460. FROM
  12461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12462. WHERE cvterm.name = 'cleaved_initiator_methionine';
  12463. --- ************************************************
  12464. --- *** relation: gene_with_dicistronic_transcript ***
  12465. --- *** relation type: VIEW ***
  12466. --- *** ***
  12467. --- *** A gene that encodes a dicistronic transc ***
  12468. --- *** ript. ***
  12469. --- ************************************************
  12470. ---
  12471. CREATE VIEW gene_with_dicistronic_transcript AS
  12472. SELECT
  12473. feature_id AS gene_with_dicistronic_transcript_id,
  12474. feature.*
  12475. FROM
  12476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12477. WHERE cvterm.name = 'gene_with_dicistronic_primary_transcript' OR cvterm.name = 'gene_with_dicistronic_mRNA' OR cvterm.name = 'gene_with_dicistronic_transcript';
  12478. --- ************************************************
  12479. --- *** relation: gene_with_recoded_mrna ***
  12480. --- *** relation type: VIEW ***
  12481. --- *** ***
  12482. --- *** A gene that encodes an mRNA that is reco ***
  12483. --- *** ded. ***
  12484. --- ************************************************
  12485. ---
  12486. CREATE VIEW gene_with_recoded_mrna AS
  12487. SELECT
  12488. feature_id AS gene_with_recoded_mrna_id,
  12489. feature.*
  12490. FROM
  12491. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12492. WHERE cvterm.name = 'gene_with_stop_codon_read_through' OR cvterm.name = 'gene_with_mRNA_recoded_by_translational_bypass' OR cvterm.name = 'gene_with_transcript_with_translational_frameshift' OR cvterm.name = 'gene_with_stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'gene_with_stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'gene_with_recoded_mRNA';
  12493. --- ************************************************
  12494. --- *** relation: snp ***
  12495. --- *** relation type: VIEW ***
  12496. --- *** ***
  12497. --- *** SNPs are single base pair positions in g ***
  12498. --- *** enomic DNA at which different sequence a ***
  12499. --- *** lternatives exist in normal individuals ***
  12500. --- *** in some population(s), wherein the least ***
  12501. --- *** frequent variant has an abundance of 1% ***
  12502. --- *** or greater. ***
  12503. --- ************************************************
  12504. ---
  12505. CREATE VIEW snp AS
  12506. SELECT
  12507. feature_id AS snp_id,
  12508. feature.*
  12509. FROM
  12510. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12511. WHERE cvterm.name = 'SNP';
  12512. --- ************************************************
  12513. --- *** relation: reagent ***
  12514. --- *** relation type: VIEW ***
  12515. --- *** ***
  12516. --- *** A sequence used in experiment. ***
  12517. --- ************************************************
  12518. ---
  12519. CREATE VIEW reagent AS
  12520. SELECT
  12521. feature_id AS reagent_id,
  12522. feature.*
  12523. FROM
  12524. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12525. WHERE cvterm.name = 'PCR_product' OR cvterm.name = 'clone' OR cvterm.name = 'rescue_region' OR cvterm.name = 'oligo' OR cvterm.name = 'clone_insert' OR cvterm.name = 'cloned_region' OR cvterm.name = 'databank_entry' OR cvterm.name = 'RAPD' OR cvterm.name = 'genomic_clone' OR cvterm.name = 'cDNA_clone' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'validated_cDNA_clone' OR cvterm.name = 'invalidated_cDNA_clone' OR cvterm.name = 'three_prime_RACE_clone' OR cvterm.name = 'chimeric_cDNA_clone' OR cvterm.name = 'genomically_contaminated_cDNA_clone' OR cvterm.name = 'polyA_primed_cDNA_clone' OR cvterm.name = 'partially_processed_cDNA_clone' OR cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'aptamer' OR cvterm.name = 'probe' OR cvterm.name = 'tag' OR cvterm.name = 'ss_oligo' OR cvterm.name = 'ds_oligo' OR cvterm.name = 'DNAzyme' OR cvterm.name = 'synthetic_oligo' OR cvterm.name = 'DNA_aptamer' OR cvterm.name = 'RNA_aptamer' OR cvterm.name = 'microarray_oligo' OR cvterm.name = 'SAGE_tag' OR cvterm.name = 'STS' OR cvterm.name = 'EST' OR cvterm.name = 'engineered_tag' OR cvterm.name = 'five_prime_EST' OR cvterm.name = 'three_prime_EST' OR cvterm.name = 'UST' OR cvterm.name = 'RST' OR cvterm.name = 'three_prime_UST' OR cvterm.name = 'five_prime_UST' OR cvterm.name = 'three_prime_RST' OR cvterm.name = 'five_prime_RST' OR cvterm.name = 'primer' OR cvterm.name = 'sequencing_primer' OR cvterm.name = 'forward_primer' OR cvterm.name = 'reverse_primer' OR cvterm.name = 'ASPE_primer' OR cvterm.name = 'dCAPS_primer' OR cvterm.name = 'RNAi_reagent' OR cvterm.name = 'DNA_constraint_sequence' OR cvterm.name = 'morpholino_oligo' OR cvterm.name = 'PNA_oligo' OR cvterm.name = 'LNA_oligo' OR cvterm.name = 'TNA_oligo' OR cvterm.name = 'GNA_oligo' OR cvterm.name = 'R_GNA_oligo' OR cvterm.name = 'S_GNA_oligo' OR cvterm.name = 'cloned_cDNA_insert' OR cvterm.name = 'cloned_genomic_insert' OR cvterm.name = 'engineered_insert' OR cvterm.name = 'BAC_cloned_genomic_insert' OR cvterm.name = 'reagent';
  12526. --- ************************************************
  12527. --- *** relation: oligo ***
  12528. --- *** relation type: VIEW ***
  12529. --- *** ***
  12530. --- *** A short oligonucleotide sequence, of len ***
  12531. --- *** gth on the order of 10's of bases; eithe ***
  12532. --- *** r single or double stranded. ***
  12533. --- ************************************************
  12534. ---
  12535. CREATE VIEW oligo AS
  12536. SELECT
  12537. feature_id AS oligo_id,
  12538. feature.*
  12539. FROM
  12540. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12541. WHERE cvterm.name = 'aptamer' OR cvterm.name = 'probe' OR cvterm.name = 'tag' OR cvterm.name = 'ss_oligo' OR cvterm.name = 'ds_oligo' OR cvterm.name = 'DNAzyme' OR cvterm.name = 'synthetic_oligo' OR cvterm.name = 'DNA_aptamer' OR cvterm.name = 'RNA_aptamer' OR cvterm.name = 'microarray_oligo' OR cvterm.name = 'SAGE_tag' OR cvterm.name = 'STS' OR cvterm.name = 'EST' OR cvterm.name = 'engineered_tag' OR cvterm.name = 'five_prime_EST' OR cvterm.name = 'three_prime_EST' OR cvterm.name = 'UST' OR cvterm.name = 'RST' OR cvterm.name = 'three_prime_UST' OR cvterm.name = 'five_prime_UST' OR cvterm.name = 'three_prime_RST' OR cvterm.name = 'five_prime_RST' OR cvterm.name = 'primer' OR cvterm.name = 'sequencing_primer' OR cvterm.name = 'forward_primer' OR cvterm.name = 'reverse_primer' OR cvterm.name = 'ASPE_primer' OR cvterm.name = 'dCAPS_primer' OR cvterm.name = 'RNAi_reagent' OR cvterm.name = 'DNA_constraint_sequence' OR cvterm.name = 'morpholino_oligo' OR cvterm.name = 'PNA_oligo' OR cvterm.name = 'LNA_oligo' OR cvterm.name = 'TNA_oligo' OR cvterm.name = 'GNA_oligo' OR cvterm.name = 'R_GNA_oligo' OR cvterm.name = 'S_GNA_oligo' OR cvterm.name = 'oligo';
  12542. --- ************************************************
  12543. --- *** relation: gene_with_stop_codon_read_through ***
  12544. --- *** relation type: VIEW ***
  12545. --- *** ***
  12546. --- *** A gene that encodes a transcript with st ***
  12547. --- *** op codon readthrough. ***
  12548. --- ************************************************
  12549. ---
  12550. CREATE VIEW gene_with_stop_codon_read_through AS
  12551. SELECT
  12552. feature_id AS gene_with_stop_codon_read_through_id,
  12553. feature.*
  12554. FROM
  12555. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12556. WHERE cvterm.name = 'gene_with_stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'gene_with_stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'gene_with_stop_codon_read_through';
  12557. --- ************************************************
  12558. --- *** relation: gene_with_stop_codon_redefined_as_pyrrolysine ***
  12559. --- *** relation type: VIEW ***
  12560. --- *** ***
  12561. --- *** A gene encoding an mRNA that has the sto ***
  12562. --- *** p codon redefined as pyrrolysine. ***
  12563. --- ************************************************
  12564. ---
  12565. CREATE VIEW gene_with_stop_codon_redefined_as_pyrrolysine AS
  12566. SELECT
  12567. feature_id AS gene_with_stop_codon_redefined_as_pyrrolysine_id,
  12568. feature.*
  12569. FROM
  12570. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12571. WHERE cvterm.name = 'gene_with_stop_codon_redefined_as_pyrrolysine';
  12572. --- ************************************************
  12573. --- *** relation: junction ***
  12574. --- *** relation type: VIEW ***
  12575. --- *** ***
  12576. --- *** A sequence_feature with an extent of zer ***
  12577. --- *** o. ***
  12578. --- ************************************************
  12579. ---
  12580. CREATE VIEW junction AS
  12581. SELECT
  12582. feature_id AS junction_id,
  12583. feature.*
  12584. FROM
  12585. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12586. WHERE cvterm.name = 'clone_insert_end' OR cvterm.name = 'clone_insert_start' OR cvterm.name = 'exon_junction' OR cvterm.name = 'insertion_site' OR cvterm.name = 'polyA_site' OR cvterm.name = 'deletion_junction' OR cvterm.name = 'chromosome_breakpoint' OR cvterm.name = 'splice_junction' OR cvterm.name = 'trans_splice_junction' OR cvterm.name = 'restriction_enzyme_cleavage_junction' OR cvterm.name = 'transposable_element_insertion_site' OR cvterm.name = 'inversion_breakpoint' OR cvterm.name = 'translocation_breakpoint' OR cvterm.name = 'insertion_breakpoint' OR cvterm.name = 'deletion_breakpoint' OR cvterm.name = 'blunt_end_restriction_enzyme_cleavage_junction' OR cvterm.name = 'single_strand_restriction_enzyme_cleavage_site' OR cvterm.name = 'five_prime_restriction_enzyme_junction' OR cvterm.name = 'three_prime_restriction_enzyme_junction' OR cvterm.name = 'junction';
  12587. --- ************************************************
  12588. --- *** relation: remark ***
  12589. --- *** relation type: VIEW ***
  12590. --- *** ***
  12591. --- *** A comment about the sequence. ***
  12592. --- ************************************************
  12593. ---
  12594. CREATE VIEW remark AS
  12595. SELECT
  12596. feature_id AS remark_id,
  12597. feature.*
  12598. FROM
  12599. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12600. WHERE cvterm.name = 'sequence_difference' OR cvterm.name = 'experimental_result_region' OR cvterm.name = 'polypeptide_sequencing_information' OR cvterm.name = 'possible_base_call_error' OR cvterm.name = 'possible_assembly_error' OR cvterm.name = 'assembly_error_correction' OR cvterm.name = 'base_call_error_correction' OR cvterm.name = 'overlapping_feature_set' OR cvterm.name = 'no_output' OR cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'non_adjacent_residues' OR cvterm.name = 'non_terminal_residue' OR cvterm.name = 'sequence_conflict' OR cvterm.name = 'sequence_uncertainty' OR cvterm.name = 'contig_collection' OR cvterm.name = 'remark';
  12601. --- ************************************************
  12602. --- *** relation: possible_base_call_error ***
  12603. --- *** relation type: VIEW ***
  12604. --- *** ***
  12605. --- *** A region of sequence where the validity ***
  12606. --- *** of the base calling is questionable. ***
  12607. --- ************************************************
  12608. ---
  12609. CREATE VIEW possible_base_call_error AS
  12610. SELECT
  12611. feature_id AS possible_base_call_error_id,
  12612. feature.*
  12613. FROM
  12614. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12615. WHERE cvterm.name = 'possible_base_call_error';
  12616. --- ************************************************
  12617. --- *** relation: possible_assembly_error ***
  12618. --- *** relation type: VIEW ***
  12619. --- *** ***
  12620. --- *** A region of sequence where there may hav ***
  12621. --- *** e been an error in the assembly. ***
  12622. --- ************************************************
  12623. ---
  12624. CREATE VIEW possible_assembly_error AS
  12625. SELECT
  12626. feature_id AS possible_assembly_error_id,
  12627. feature.*
  12628. FROM
  12629. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12630. WHERE cvterm.name = 'possible_assembly_error';
  12631. --- ************************************************
  12632. --- *** relation: experimental_result_region ***
  12633. --- *** relation type: VIEW ***
  12634. --- *** ***
  12635. --- *** A region of sequence implicated in an ex ***
  12636. --- *** perimental result. ***
  12637. --- ************************************************
  12638. ---
  12639. CREATE VIEW experimental_result_region AS
  12640. SELECT
  12641. feature_id AS experimental_result_region_id,
  12642. feature.*
  12643. FROM
  12644. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12645. WHERE cvterm.name = 'overlapping_feature_set' OR cvterm.name = 'no_output' OR cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'experimental_result_region';
  12646. --- ************************************************
  12647. --- *** relation: gene ***
  12648. --- *** relation type: VIEW ***
  12649. --- *** ***
  12650. --- *** A region (or regions) that includes all ***
  12651. --- *** of the sequence elements necessary to en ***
  12652. --- *** code a functional transcript. A gene may ***
  12653. --- *** include regulatory regions, transcribed ***
  12654. --- *** regions and/or other functional sequenc ***
  12655. --- *** e regions. ***
  12656. --- ************************************************
  12657. ---
  12658. CREATE VIEW gene AS
  12659. SELECT
  12660. feature_id AS gene_id,
  12661. feature.*
  12662. FROM
  12663. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12664. WHERE cvterm.name = 'nuclear_gene' OR cvterm.name = 'mt_gene' OR cvterm.name = 'plastid_gene' OR cvterm.name = 'nucleomorph_gene' OR cvterm.name = 'plasmid_gene' OR cvterm.name = 'proviral_gene' OR cvterm.name = 'transposable_element_gene' OR cvterm.name = 'silenced_gene' OR cvterm.name = 'engineered_gene' OR cvterm.name = 'foreign_gene' OR cvterm.name = 'fusion_gene' OR cvterm.name = 'recombinationally_rearranged_gene' OR cvterm.name = 'gene_with_trans_spliced_transcript' OR cvterm.name = 'gene_with_polycistronic_transcript' OR cvterm.name = 'rescue_gene' OR cvterm.name = 'post_translationally_regulated_gene' OR cvterm.name = 'negatively_autoregulated_gene' OR cvterm.name = 'positively_autoregulated_gene' OR cvterm.name = 'translationally_regulated_gene' OR cvterm.name = 'epigenetically_modified_gene' OR cvterm.name = 'transgene' OR cvterm.name = 'predicted_gene' OR cvterm.name = 'protein_coding_gene' OR cvterm.name = 'retrogene' OR cvterm.name = 'ncRNA_gene' OR cvterm.name = 'cryptic_gene' OR cvterm.name = 'gene_with_non_canonical_start_codon' OR cvterm.name = 'gene_cassette' OR cvterm.name = 'kinetoplast_gene' OR cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'apicoplast_gene' OR cvterm.name = 'ct_gene' OR cvterm.name = 'chromoplast_gene' OR cvterm.name = 'cyanelle_gene' OR cvterm.name = 'leucoplast_gene' OR cvterm.name = 'proplastid_gene' OR cvterm.name = 'endogenous_retroviral_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'gene_silenced_by_DNA_modification' OR cvterm.name = 'gene_silenced_by_RNA_interference' OR cvterm.name = 'gene_silenced_by_histone_modification' OR cvterm.name = 'gene_silenced_by_DNA_methylation' OR cvterm.name = 'gene_silenced_by_histone_methylation' OR cvterm.name = 'gene_silenced_by_histone_deacetylation' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'recombinationally_inverted_gene' OR cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene' OR cvterm.name = 'gene_with_dicistronic_transcript' OR cvterm.name = 'gene_with_dicistronic_primary_transcript' OR cvterm.name = 'gene_with_dicistronic_mRNA' OR cvterm.name = 'wild_type_rescue_gene' OR cvterm.name = 'gene_rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted_gene' OR cvterm.name = 'paternally_imprinted_gene' OR cvterm.name = 'allelically_excluded_gene' OR cvterm.name = 'floxed_gene' OR cvterm.name = 'gene_with_polyadenylated_mRNA' OR cvterm.name = 'gene_with_mRNA_with_frameshift' OR cvterm.name = 'gene_with_edited_transcript' OR cvterm.name = 'gene_with_recoded_mRNA' OR cvterm.name = 'gene_with_stop_codon_read_through' OR cvterm.name = 'gene_with_mRNA_recoded_by_translational_bypass' OR cvterm.name = 'gene_with_transcript_with_translational_frameshift' OR cvterm.name = 'gene_with_stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'gene_with_stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'gRNA_gene' OR cvterm.name = 'miRNA_gene' OR cvterm.name = 'scRNA_gene' OR cvterm.name = 'snoRNA_gene' OR cvterm.name = 'snRNA_gene' OR cvterm.name = 'SRP_RNA_gene' OR cvterm.name = 'stRNA_gene' OR cvterm.name = 'tmRNA_gene' OR cvterm.name = 'tRNA_gene' OR cvterm.name = 'rRNA_gene' OR cvterm.name = 'piRNA_gene' OR cvterm.name = 'RNase_P_RNA_gene' OR cvterm.name = 'RNase_MRP_RNA_gene' OR cvterm.name = 'lincRNA_gene' OR cvterm.name = 'telomerase_RNA_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'gene_with_start_codon_CUG' OR cvterm.name = 'gene';
  12665. --- ************************************************
  12666. --- *** relation: tandem_repeat ***
  12667. --- *** relation type: VIEW ***
  12668. --- *** ***
  12669. --- *** Two or more adjcent copies of a region ( ***
  12670. --- *** of length greater than 1). ***
  12671. --- ************************************************
  12672. ---
  12673. CREATE VIEW tandem_repeat AS
  12674. SELECT
  12675. feature_id AS tandem_repeat_id,
  12676. feature.*
  12677. FROM
  12678. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12679. WHERE cvterm.name = 'satellite_DNA' OR cvterm.name = 'microsatellite' OR cvterm.name = 'minisatellite' OR cvterm.name = 'dinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'trinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'tetranucleotide_repeat_microsatellite_feature' OR cvterm.name = 'tandem_repeat';
  12680. --- ************************************************
  12681. --- *** relation: trans_splice_acceptor_site ***
  12682. --- *** relation type: VIEW ***
  12683. --- *** ***
  12684. --- *** The 3' splice site of the acceptor prima ***
  12685. --- *** ry transcript. ***
  12686. --- ************************************************
  12687. ---
  12688. CREATE VIEW trans_splice_acceptor_site AS
  12689. SELECT
  12690. feature_id AS trans_splice_acceptor_site_id,
  12691. feature.*
  12692. FROM
  12693. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12694. WHERE cvterm.name = 'SL1_acceptor_site' OR cvterm.name = 'SL2_acceptor_site' OR cvterm.name = 'SL3_acceptor_site' OR cvterm.name = 'SL4_acceptor_site' OR cvterm.name = 'SL5_acceptor_site' OR cvterm.name = 'SL6_acceptor_site' OR cvterm.name = 'SL7_acceptor_site' OR cvterm.name = 'SL8_acceptor_site' OR cvterm.name = 'SL9_acceptor_site' OR cvterm.name = 'SL10_accceptor_site' OR cvterm.name = 'SL11_acceptor_site' OR cvterm.name = 'SL12_acceptor_site' OR cvterm.name = 'trans_splice_acceptor_site';
  12695. --- ************************************************
  12696. --- *** relation: trans_splice_donor_site ***
  12697. --- *** relation type: VIEW ***
  12698. --- *** ***
  12699. --- *** The 5' five prime splice site region of ***
  12700. --- *** the donor RNA. ***
  12701. --- ************************************************
  12702. ---
  12703. CREATE VIEW trans_splice_donor_site AS
  12704. SELECT
  12705. feature_id AS trans_splice_donor_site_id,
  12706. feature.*
  12707. FROM
  12708. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12709. WHERE cvterm.name = 'trans_splice_donor_site';
  12710. --- ************************************************
  12711. --- *** relation: sl1_acceptor_site ***
  12712. --- *** relation type: VIEW ***
  12713. --- *** ***
  12714. --- *** A trans_splicing_acceptor_site which app ***
  12715. --- *** ends the 22nt SL1 RNA leader sequence to ***
  12716. --- *** the 5' end of most mRNAs. ***
  12717. --- ************************************************
  12718. ---
  12719. CREATE VIEW sl1_acceptor_site AS
  12720. SELECT
  12721. feature_id AS sl1_acceptor_site_id,
  12722. feature.*
  12723. FROM
  12724. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12725. WHERE cvterm.name = 'SL1_acceptor_site';
  12726. --- ************************************************
  12727. --- *** relation: sl2_acceptor_site ***
  12728. --- *** relation type: VIEW ***
  12729. --- *** ***
  12730. --- *** A trans_splicing_acceptor_site which app ***
  12731. --- *** ends the 22nt SL2 RNA leader sequence to ***
  12732. --- *** the 5' end of mRNAs. SL2 acceptor sites ***
  12733. --- *** occur in genes in internal segments of ***
  12734. --- *** polycistronic transcripts. ***
  12735. --- ************************************************
  12736. ---
  12737. CREATE VIEW sl2_acceptor_site AS
  12738. SELECT
  12739. feature_id AS sl2_acceptor_site_id,
  12740. feature.*
  12741. FROM
  12742. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12743. WHERE cvterm.name = 'SL3_acceptor_site' OR cvterm.name = 'SL4_acceptor_site' OR cvterm.name = 'SL5_acceptor_site' OR cvterm.name = 'SL6_acceptor_site' OR cvterm.name = 'SL7_acceptor_site' OR cvterm.name = 'SL8_acceptor_site' OR cvterm.name = 'SL9_acceptor_site' OR cvterm.name = 'SL10_accceptor_site' OR cvterm.name = 'SL11_acceptor_site' OR cvterm.name = 'SL12_acceptor_site' OR cvterm.name = 'SL2_acceptor_site';
  12744. --- ************************************************
  12745. --- *** relation: gene_with_stop_codon_redefined_as_selenocysteine ***
  12746. --- *** relation type: VIEW ***
  12747. --- *** ***
  12748. --- *** A gene encoding an mRNA that has the sto ***
  12749. --- *** p codon redefined as selenocysteine. ***
  12750. --- ************************************************
  12751. ---
  12752. CREATE VIEW gene_with_stop_codon_redefined_as_selenocysteine AS
  12753. SELECT
  12754. feature_id AS gene_with_stop_codon_redefined_as_selenocysteine_id,
  12755. feature.*
  12756. FROM
  12757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12758. WHERE cvterm.name = 'gene_with_stop_codon_redefined_as_selenocysteine';
  12759. --- ************************************************
  12760. --- *** relation: gene_with_mrna_recoded_by_translational_bypass ***
  12761. --- *** relation type: VIEW ***
  12762. --- *** ***
  12763. --- *** A gene with mRNA recoded by translationa ***
  12764. --- *** l bypass. ***
  12765. --- ************************************************
  12766. ---
  12767. CREATE VIEW gene_with_mrna_recoded_by_translational_bypass AS
  12768. SELECT
  12769. feature_id AS gene_with_mrna_recoded_by_translational_bypass_id,
  12770. feature.*
  12771. FROM
  12772. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12773. WHERE cvterm.name = 'gene_with_mRNA_recoded_by_translational_bypass';
  12774. --- ************************************************
  12775. --- *** relation: gene_with_transcript_with_translational_frameshift ***
  12776. --- *** relation type: VIEW ***
  12777. --- *** ***
  12778. --- *** A gene encoding a transcript that has a ***
  12779. --- *** translational frameshift. ***
  12780. --- ************************************************
  12781. ---
  12782. CREATE VIEW gene_with_transcript_with_translational_frameshift AS
  12783. SELECT
  12784. feature_id AS gene_with_transcript_with_translational_frameshift_id,
  12785. feature.*
  12786. FROM
  12787. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12788. WHERE cvterm.name = 'gene_with_transcript_with_translational_frameshift';
  12789. --- ************************************************
  12790. --- *** relation: dna_motif ***
  12791. --- *** relation type: VIEW ***
  12792. --- *** ***
  12793. --- *** A motif that is active in the DNA form o ***
  12794. --- *** f the sequence. ***
  12795. --- ************************************************
  12796. ---
  12797. CREATE VIEW dna_motif AS
  12798. SELECT
  12799. feature_id AS dna_motif_id,
  12800. feature.*
  12801. FROM
  12802. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12803. WHERE cvterm.name = 'PSE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'minus_10_signal' OR cvterm.name = 'minus_35_signal' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'retinoic_acid_responsive_element' OR cvterm.name = 'promoter_element' OR cvterm.name = 'DCE_SI' OR cvterm.name = 'DCE_SII' OR cvterm.name = 'DCE_SIII' OR cvterm.name = 'minus_12_signal' OR cvterm.name = 'minus_24_signal' OR cvterm.name = 'GC_rich_promoter_region' OR cvterm.name = 'DMv4_motif' OR cvterm.name = 'DMv5_motif' OR cvterm.name = 'DMv3_motif' OR cvterm.name = 'DMv2_motif' OR cvterm.name = 'DPE1_motif' OR cvterm.name = 'DMv1_motif' OR cvterm.name = 'NDM2_motif' OR cvterm.name = 'NDM3_motif' OR cvterm.name = 'core_promoter_element' OR cvterm.name = 'regulatory_promoter_element' OR cvterm.name = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BREu_motif' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'MTE' OR cvterm.name = 'BREd_motif' OR cvterm.name = 'DCE' OR cvterm.name = 'intermediate_element' OR cvterm.name = 'RNA_polymerase_II_TATA_box' OR cvterm.name = 'RNA_polymerase_III_TATA_box' OR cvterm.name = 'A_box_type_1' OR cvterm.name = 'A_box_type_2' OR cvterm.name = 'proximal_promoter_element' OR cvterm.name = 'distal_promoter_element' OR cvterm.name = 'DNA_motif';
  12804. --- ************************************************
  12805. --- *** relation: nucleotide_motif ***
  12806. --- *** relation type: VIEW ***
  12807. --- *** ***
  12808. --- *** A region of nucleotide sequence correspo ***
  12809. --- *** nding to a known motif. ***
  12810. --- ************************************************
  12811. ---
  12812. CREATE VIEW nucleotide_motif AS
  12813. SELECT
  12814. feature_id AS nucleotide_motif_id,
  12815. feature.*
  12816. FROM
  12817. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12818. WHERE cvterm.name = 'DNA_motif' OR cvterm.name = 'RNA_motif' OR cvterm.name = 'PSE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'minus_10_signal' OR cvterm.name = 'minus_35_signal' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'retinoic_acid_responsive_element' OR cvterm.name = 'promoter_element' OR cvterm.name = 'DCE_SI' OR cvterm.name = 'DCE_SII' OR cvterm.name = 'DCE_SIII' OR cvterm.name = 'minus_12_signal' OR cvterm.name = 'minus_24_signal' OR cvterm.name = 'GC_rich_promoter_region' OR cvterm.name = 'DMv4_motif' OR cvterm.name = 'DMv5_motif' OR cvterm.name = 'DMv3_motif' OR cvterm.name = 'DMv2_motif' OR cvterm.name = 'DPE1_motif' OR cvterm.name = 'DMv1_motif' OR cvterm.name = 'NDM2_motif' OR cvterm.name = 'NDM3_motif' OR cvterm.name = 'core_promoter_element' OR cvterm.name = 'regulatory_promoter_element' OR cvterm.name = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BREu_motif' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'MTE' OR cvterm.name = 'BREd_motif' OR cvterm.name = 'DCE' OR cvterm.name = 'intermediate_element' OR cvterm.name = 'RNA_polymerase_II_TATA_box' OR cvterm.name = 'RNA_polymerase_III_TATA_box' OR cvterm.name = 'A_box_type_1' OR cvterm.name = 'A_box_type_2' OR cvterm.name = 'proximal_promoter_element' OR cvterm.name = 'distal_promoter_element' OR cvterm.name = 'RNA_internal_loop' OR cvterm.name = 'A_minor_RNA_motif' OR cvterm.name = 'RNA_junction_loop' OR cvterm.name = 'hammerhead_ribozyme' OR cvterm.name = 'asymmetric_RNA_internal_loop' OR cvterm.name = 'symmetric_RNA_internal_loop' OR cvterm.name = 'K_turn_RNA_motif' OR cvterm.name = 'sarcin_like_RNA_motif' OR cvterm.name = 'RNA_hook_turn' OR cvterm.name = 'nucleotide_motif';
  12819. --- ************************************************
  12820. --- *** relation: rna_motif ***
  12821. --- *** relation type: VIEW ***
  12822. --- *** ***
  12823. --- *** A motif that is active in RNA sequence. ***
  12824. --- ************************************************
  12825. ---
  12826. CREATE VIEW rna_motif AS
  12827. SELECT
  12828. feature_id AS rna_motif_id,
  12829. feature.*
  12830. FROM
  12831. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12832. WHERE cvterm.name = 'RNA_internal_loop' OR cvterm.name = 'A_minor_RNA_motif' OR cvterm.name = 'RNA_junction_loop' OR cvterm.name = 'hammerhead_ribozyme' OR cvterm.name = 'asymmetric_RNA_internal_loop' OR cvterm.name = 'symmetric_RNA_internal_loop' OR cvterm.name = 'K_turn_RNA_motif' OR cvterm.name = 'sarcin_like_RNA_motif' OR cvterm.name = 'RNA_hook_turn' OR cvterm.name = 'RNA_motif';
  12833. --- ************************************************
  12834. --- *** relation: dicistronic_mrna ***
  12835. --- *** relation type: VIEW ***
  12836. --- *** ***
  12837. --- *** An mRNA that has the quality dicistronic ***
  12838. --- *** . ***
  12839. --- ************************************************
  12840. ---
  12841. CREATE VIEW dicistronic_mrna AS
  12842. SELECT
  12843. feature_id AS dicistronic_mrna_id,
  12844. feature.*
  12845. FROM
  12846. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12847. WHERE cvterm.name = 'dicistronic_mRNA';
  12848. --- ************************************************
  12849. --- *** relation: reading_frame ***
  12850. --- *** relation type: VIEW ***
  12851. --- *** ***
  12852. --- *** A nucleic acid sequence that when read a ***
  12853. --- *** s sequential triplets, has the potential ***
  12854. --- *** of encoding a sequential string of amin ***
  12855. --- *** o acids. It need not contain the start o ***
  12856. --- *** r stop codon. ***
  12857. --- ************************************************
  12858. ---
  12859. CREATE VIEW reading_frame AS
  12860. SELECT
  12861. feature_id AS reading_frame_id,
  12862. feature.*
  12863. FROM
  12864. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12865. WHERE cvterm.name = 'ORF' OR cvterm.name = 'blocked_reading_frame' OR cvterm.name = 'mini_gene' OR cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'reading_frame';
  12866. --- ************************************************
  12867. --- *** relation: blocked_reading_frame ***
  12868. --- *** relation type: VIEW ***
  12869. --- *** ***
  12870. --- *** A reading_frame that is interrupted by o ***
  12871. --- *** ne or more stop codons; usually identifi ***
  12872. --- *** ed through intergenomic sequence compari ***
  12873. --- *** sons. ***
  12874. --- ************************************************
  12875. ---
  12876. CREATE VIEW blocked_reading_frame AS
  12877. SELECT
  12878. feature_id AS blocked_reading_frame_id,
  12879. feature.*
  12880. FROM
  12881. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12882. WHERE cvterm.name = 'blocked_reading_frame';
  12883. --- ************************************************
  12884. --- *** relation: ultracontig ***
  12885. --- *** relation type: VIEW ***
  12886. --- *** ***
  12887. --- *** An ordered and oriented set of scaffolds ***
  12888. --- *** based on somewhat weaker sets of infere ***
  12889. --- *** ntial evidence such as one set of mate p ***
  12890. --- *** air reads together with supporting evide ***
  12891. --- *** nce from ESTs or location of markers fro ***
  12892. --- *** m SNP or microsatellite maps, or cytogen ***
  12893. --- *** etic localization of contained markers. ***
  12894. --- ************************************************
  12895. ---
  12896. CREATE VIEW ultracontig AS
  12897. SELECT
  12898. feature_id AS ultracontig_id,
  12899. feature.*
  12900. FROM
  12901. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12902. WHERE cvterm.name = 'ultracontig';
  12903. --- ************************************************
  12904. --- *** relation: foreign_transposable_element ***
  12905. --- *** relation type: VIEW ***
  12906. --- *** ***
  12907. --- *** A transposable element that is foreign. ***
  12908. --- ************************************************
  12909. ---
  12910. CREATE VIEW foreign_transposable_element AS
  12911. SELECT
  12912. feature_id AS foreign_transposable_element_id,
  12913. feature.*
  12914. FROM
  12915. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12916. WHERE cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'foreign_transposable_element';
  12917. --- ************************************************
  12918. --- *** relation: gene_with_dicistronic_primary_transcript ***
  12919. --- *** relation type: VIEW ***
  12920. --- *** ***
  12921. --- *** A gene that encodes a dicistronic primar ***
  12922. --- *** y transcript. ***
  12923. --- ************************************************
  12924. ---
  12925. CREATE VIEW gene_with_dicistronic_primary_transcript AS
  12926. SELECT
  12927. feature_id AS gene_with_dicistronic_primary_transcript_id,
  12928. feature.*
  12929. FROM
  12930. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12931. WHERE cvterm.name = 'gene_with_dicistronic_primary_transcript';
  12932. --- ************************************************
  12933. --- *** relation: gene_with_dicistronic_mrna ***
  12934. --- *** relation type: VIEW ***
  12935. --- *** ***
  12936. --- *** A gene that encodes a polycistronic mRNA ***
  12937. --- *** . ***
  12938. --- ************************************************
  12939. ---
  12940. CREATE VIEW gene_with_dicistronic_mrna AS
  12941. SELECT
  12942. feature_id AS gene_with_dicistronic_mrna_id,
  12943. feature.*
  12944. FROM
  12945. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12946. WHERE cvterm.name = 'gene_with_dicistronic_mRNA';
  12947. --- ************************************************
  12948. --- *** relation: idna ***
  12949. --- *** relation type: VIEW ***
  12950. --- *** ***
  12951. --- *** Genomic sequence removed from the genome ***
  12952. --- *** , as a normal event, by a process of rec ***
  12953. --- *** ombination. ***
  12954. --- ************************************************
  12955. ---
  12956. CREATE VIEW idna AS
  12957. SELECT
  12958. feature_id AS idna_id,
  12959. feature.*
  12960. FROM
  12961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12962. WHERE cvterm.name = 'iDNA';
  12963. --- ************************************************
  12964. --- *** relation: orit ***
  12965. --- *** relation type: VIEW ***
  12966. --- *** ***
  12967. --- *** A region of a DNA molecule where transfe ***
  12968. --- *** r is initiated during the process of con ***
  12969. --- *** jugation or mobilization. ***
  12970. --- ************************************************
  12971. ---
  12972. CREATE VIEW orit AS
  12973. SELECT
  12974. feature_id AS orit_id,
  12975. feature.*
  12976. FROM
  12977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12978. WHERE cvterm.name = 'oriT';
  12979. --- ************************************************
  12980. --- *** relation: transit_peptide ***
  12981. --- *** relation type: VIEW ***
  12982. --- *** ***
  12983. --- *** The transit_peptide is a short region at ***
  12984. --- *** the N-terminus of the peptide that dire ***
  12985. --- *** cts the protein to an organelle (chlorop ***
  12986. --- *** last, mitochondrion, microbody or cyanel ***
  12987. --- *** le). ***
  12988. --- ************************************************
  12989. ---
  12990. CREATE VIEW transit_peptide AS
  12991. SELECT
  12992. feature_id AS transit_peptide_id,
  12993. feature.*
  12994. FROM
  12995. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12996. WHERE cvterm.name = 'transit_peptide';
  12997. --- ************************************************
  12998. --- *** relation: repeat_unit ***
  12999. --- *** relation type: VIEW ***
  13000. --- *** ***
  13001. --- *** The simplest repeated component of a rep ***
  13002. --- *** eat region. A single repeat. ***
  13003. --- ************************************************
  13004. ---
  13005. CREATE VIEW repeat_unit AS
  13006. SELECT
  13007. feature_id AS repeat_unit_id,
  13008. feature.*
  13009. FROM
  13010. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13011. WHERE cvterm.name = 'repeat_unit';
  13012. --- ************************************************
  13013. --- *** relation: crm ***
  13014. --- *** relation type: VIEW ***
  13015. --- *** ***
  13016. --- *** A regulatory_region where more than 1 TF ***
  13017. --- *** _binding_site together are regulatorily ***
  13018. --- *** active. ***
  13019. --- ************************************************
  13020. ---
  13021. CREATE VIEW crm AS
  13022. SELECT
  13023. feature_id AS crm_id,
  13024. feature.*
  13025. FROM
  13026. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13027. WHERE cvterm.name = 'locus_control_region' OR cvterm.name = 'enhancer' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'CRM';
  13028. --- ************************************************
  13029. --- *** relation: intein ***
  13030. --- *** relation type: VIEW ***
  13031. --- *** ***
  13032. --- *** A region of a peptide that is able to ex ***
  13033. --- *** cise itself and rejoin the remaining por ***
  13034. --- *** tions with a peptide bond. ***
  13035. --- ************************************************
  13036. ---
  13037. CREATE VIEW intein AS
  13038. SELECT
  13039. feature_id AS intein_id,
  13040. feature.*
  13041. FROM
  13042. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13043. WHERE cvterm.name = 'intein';
  13044. --- ************************************************
  13045. --- *** relation: intein_containing ***
  13046. --- *** relation type: VIEW ***
  13047. --- *** ***
  13048. --- *** An attribute of protein-coding genes whe ***
  13049. --- *** re the initial protein product contains ***
  13050. --- *** an intein. ***
  13051. --- ************************************************
  13052. ---
  13053. CREATE VIEW intein_containing AS
  13054. SELECT
  13055. feature_id AS intein_containing_id,
  13056. feature.*
  13057. FROM
  13058. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13059. WHERE cvterm.name = 'intein_containing';
  13060. --- ************************************************
  13061. --- *** relation: gap ***
  13062. --- *** relation type: VIEW ***
  13063. --- *** ***
  13064. --- *** A gap in the sequence of known length. T ***
  13065. --- *** he unknown bases are filled in with N's. ***
  13066. --- ************************************************
  13067. ---
  13068. CREATE VIEW gap AS
  13069. SELECT
  13070. feature_id AS gap_id,
  13071. feature.*
  13072. FROM
  13073. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13074. WHERE cvterm.name = 'gap';
  13075. --- ************************************************
  13076. --- *** relation: fragmentary ***
  13077. --- *** relation type: VIEW ***
  13078. --- *** ***
  13079. --- *** An attribute to describe a feature that ***
  13080. --- *** is incomplete. ***
  13081. --- ************************************************
  13082. ---
  13083. CREATE VIEW fragmentary AS
  13084. SELECT
  13085. feature_id AS fragmentary_id,
  13086. feature.*
  13087. FROM
  13088. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13089. WHERE cvterm.name = 'fragmentary';
  13090. --- ************************************************
  13091. --- *** relation: predicted ***
  13092. --- *** relation type: VIEW ***
  13093. --- *** ***
  13094. --- *** An attribute describing an unverified re ***
  13095. --- *** gion. ***
  13096. --- ************************************************
  13097. ---
  13098. CREATE VIEW predicted AS
  13099. SELECT
  13100. feature_id AS predicted_id,
  13101. feature.*
  13102. FROM
  13103. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13104. WHERE cvterm.name = 'supported_by_sequence_similarity' OR cvterm.name = 'orphan' OR cvterm.name = 'predicted_by_ab_initio_computation' OR cvterm.name = 'supported_by_domain_match' OR cvterm.name = 'supported_by_EST_or_cDNA' OR cvterm.name = 'predicted';
  13105. --- ************************************************
  13106. --- *** relation: feature_attribute ***
  13107. --- *** relation type: VIEW ***
  13108. --- *** ***
  13109. --- *** An attribute describing a located_sequen ***
  13110. --- *** ce_feature. ***
  13111. --- ************************************************
  13112. ---
  13113. CREATE VIEW feature_attribute AS
  13114. SELECT
  13115. feature_id AS feature_attribute_id,
  13116. feature.*
  13117. FROM
  13118. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13119. WHERE cvterm.name = 'transcript_attribute' OR cvterm.name = 'bound_by_factor' OR cvterm.name = 'flanked' OR cvterm.name = 'gene_attribute' OR cvterm.name = 'retrotransposed' OR cvterm.name = 'transgenic' OR cvterm.name = 'natural' OR cvterm.name = 'engineered' OR cvterm.name = 'foreign' OR cvterm.name = 'fusion' OR cvterm.name = 'rescue' OR cvterm.name = 'wild_type' OR cvterm.name = 'conserved' OR cvterm.name = 'status' OR cvterm.name = 'intermediate' OR cvterm.name = 'recombinationally_rearranged' OR cvterm.name = 'cryptic' OR cvterm.name = 'strand_attribute' OR cvterm.name = 'direction_attribute' OR cvterm.name = 'enzymatic' OR cvterm.name = 'mobile' OR cvterm.name = 'alteration_attribute' OR cvterm.name = 'experimental_feature_attribute' OR cvterm.name = 'edited' OR cvterm.name = 'capped' OR cvterm.name = 'mRNA_attribute' OR cvterm.name = 'trans_spliced' OR cvterm.name = 'alternatively_spliced' OR cvterm.name = 'monocistronic' OR cvterm.name = 'polycistronic' OR cvterm.name = 'polyadenylated' OR cvterm.name = 'exemplar' OR cvterm.name = 'frameshift' OR cvterm.name = 'recoded' OR cvterm.name = 'minus_1_frameshift' OR cvterm.name = 'minus_2_frameshift' OR cvterm.name = 'plus_1_frameshift' OR cvterm.name = 'plus_2_framshift' OR cvterm.name = 'codon_redefined' OR cvterm.name = 'recoded_by_translational_bypass' OR cvterm.name = 'translationally_frameshifted' OR cvterm.name = 'minus_1_translationally_frameshifted' OR cvterm.name = 'plus_1_translationally_frameshifted' OR cvterm.name = 'dicistronic' OR cvterm.name = 'bound_by_protein' OR cvterm.name = 'bound_by_nucleic_acid' OR cvterm.name = 'floxed' OR cvterm.name = 'FRT_flanked' OR cvterm.name = 'protein_coding' OR cvterm.name = 'non_protein_coding' OR cvterm.name = 'gene_to_gene_feature' OR cvterm.name = 'gene_array_member' OR cvterm.name = 'regulated' OR cvterm.name = 'epigenetically_modified' OR cvterm.name = 'encodes_alternately_spliced_transcripts' OR cvterm.name = 'encodes_alternate_transcription_start_sites' OR cvterm.name = 'intein_containing' OR cvterm.name = 'miRNA_encoding' OR cvterm.name = 'rRNA_encoding' OR cvterm.name = 'scRNA_encoding' OR cvterm.name = 'snoRNA_encoding' OR cvterm.name = 'snRNA_encoding' OR cvterm.name = 'SRP_RNA_encoding' OR cvterm.name = 'stRNA_encoding' OR cvterm.name = 'tmRNA_encoding' OR cvterm.name = 'tRNA_encoding' OR cvterm.name = 'gRNA_encoding' OR cvterm.name = 'C_D_box_snoRNA_encoding' OR cvterm.name = 'H_ACA_box_snoRNA_encoding' OR cvterm.name = 'overlapping' OR cvterm.name = 'inside_intron' OR cvterm.name = 'five_prime_three_prime_overlap' OR cvterm.name = 'five_prime_five_prime_overlap' OR cvterm.name = 'three_prime_three_prime_overlap' OR cvterm.name = 'three_prime_five_prime_overlap' OR cvterm.name = 'antisense' OR cvterm.name = 'inside_intron_antiparallel' OR cvterm.name = 'inside_intron_parallel' OR cvterm.name = 'operon_member' OR cvterm.name = 'gene_cassette_member' OR cvterm.name = 'gene_subarray_member' OR cvterm.name = 'member_of_regulon' OR cvterm.name = 'cassette_array_member' OR cvterm.name = 'transcriptionally_regulated' OR cvterm.name = 'post_translationally_regulated' OR cvterm.name = 'translationally_regulated' OR cvterm.name = 'imprinted' OR cvterm.name = 'transcriptionally_constitutive' OR cvterm.name = 'transcriptionally_induced' OR cvterm.name = 'transcriptionally_repressed' OR cvterm.name = 'autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'silenced' OR cvterm.name = 'silenced_by_DNA_modification' OR cvterm.name = 'silenced_by_RNA_interference' OR cvterm.name = 'silenced_by_histone_modification' OR cvterm.name = 'silenced_by_DNA_methylation' OR cvterm.name = 'silenced_by_histone_methylation' OR cvterm.name = 'silenced_by_histone_deacetylation' OR cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'post_translationally_regulated_by_protein_stability' OR cvterm.name = 'post_translationally_regulated_by_protein_modification' OR cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'imprinted' OR cvterm.name = 'allelically_excluded' OR cvterm.name = 'rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'encodes_1_polypeptide' OR cvterm.name = 'encodes_greater_than_1_polypeptide' OR cvterm.name = 'encodes_disjoint_polypeptides' OR cvterm.name = 'encodes_overlapping_peptides' OR cvterm.name = 'encodes_different_polypeptides_different_stop' OR cvterm.name = 'encodes_overlapping_peptides_different_start' OR cvterm.name = 'encodes_overlapping_polypeptides_different_start_and_stop' OR cvterm.name = 'homologous' OR cvterm.name = 'syntenic' OR cvterm.name = 'orthologous' OR cvterm.name = 'paralogous' OR cvterm.name = 'fragmentary' OR cvterm.name = 'predicted' OR cvterm.name = 'validated' OR cvterm.name = 'invalidated' OR cvterm.name = 'independently_known' OR cvterm.name = 'consensus' OR cvterm.name = 'low_complexity' OR cvterm.name = 'whole_genome_sequence_status' OR cvterm.name = 'supported_by_sequence_similarity' OR cvterm.name = 'orphan' OR cvterm.name = 'predicted_by_ab_initio_computation' OR cvterm.name = 'supported_by_domain_match' OR cvterm.name = 'supported_by_EST_or_cDNA' OR cvterm.name = 'experimentally_determined' OR cvterm.name = 'invalidated_by_chimeric_cDNA' OR cvterm.name = 'invalidated_by_genomic_contamination' OR cvterm.name = 'invalidated_by_genomic_polyA_primed_cDNA' OR cvterm.name = 'invalidated_by_partial_processing' OR cvterm.name = 'standard_draft' OR cvterm.name = 'high_quality_draft' OR cvterm.name = 'improved_high_quality_draft' OR cvterm.name = 'annotation_directed_improved_draft' OR cvterm.name = 'noncontiguous_finished' OR cvterm.name = 'finished_genome' OR cvterm.name = 'single' OR cvterm.name = 'double' OR cvterm.name = 'forward' OR cvterm.name = 'reverse' OR cvterm.name = 'ribozymic' OR cvterm.name = 'chromosomal_variation_attribute' OR cvterm.name = 'insertion_attribute' OR cvterm.name = 'inversion_attribute' OR cvterm.name = 'translocaton_attribute' OR cvterm.name = 'duplication_attribute' OR cvterm.name = 'intrachromosomal' OR cvterm.name = 'interchromosomal' OR cvterm.name = 'tandem' OR cvterm.name = 'direct' OR cvterm.name = 'inverted' OR cvterm.name = 'pericentric' OR cvterm.name = 'paracentric' OR cvterm.name = 'reciprocal' OR cvterm.name = 'insertional' OR cvterm.name = 'free' OR cvterm.name = 'score' OR cvterm.name = 'quality_value' OR cvterm.name = 'feature_attribute';
  13120. --- ************************************************
  13121. --- *** relation: exemplar_mrna ***
  13122. --- *** relation type: VIEW ***
  13123. --- *** ***
  13124. --- *** An exemplar is a representative cDNA seq ***
  13125. --- *** uence for each gene. The exemplar approa ***
  13126. --- *** ch is a method that usually involves som ***
  13127. --- *** e initial clustering into gene groups an ***
  13128. --- *** d the subsequent selection of a represen ***
  13129. --- *** tative from each gene group. ***
  13130. --- ************************************************
  13131. ---
  13132. CREATE VIEW exemplar_mrna AS
  13133. SELECT
  13134. feature_id AS exemplar_mrna_id,
  13135. feature.*
  13136. FROM
  13137. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13138. WHERE cvterm.name = 'exemplar_mRNA';
  13139. --- ************************************************
  13140. --- *** relation: sequence_location ***
  13141. --- *** relation type: VIEW ***
  13142. --- *** ***
  13143. --- ************************************************
  13144. ---
  13145. CREATE VIEW sequence_location AS
  13146. SELECT
  13147. feature_id AS sequence_location_id,
  13148. feature.*
  13149. FROM
  13150. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13151. WHERE cvterm.name = 'organelle_sequence' OR cvterm.name = 'plasmid_location' OR cvterm.name = 'proviral_location' OR cvterm.name = 'macronuclear_sequence' OR cvterm.name = 'micronuclear_sequence' OR cvterm.name = 'mitochondrial_sequence' OR cvterm.name = 'nuclear_sequence' OR cvterm.name = 'nucleomorphic_sequence' OR cvterm.name = 'plastid_sequence' OR cvterm.name = 'mitochondrial_DNA' OR cvterm.name = 'apicoplast_sequence' OR cvterm.name = 'chromoplast_sequence' OR cvterm.name = 'chloroplast_sequence' OR cvterm.name = 'cyanelle_sequence' OR cvterm.name = 'leucoplast_sequence' OR cvterm.name = 'proplastid_sequence' OR cvterm.name = 'chloroplast_DNA' OR cvterm.name = 'endogenous_retroviral_sequence' OR cvterm.name = 'sequence_location';
  13152. --- ************************************************
  13153. --- *** relation: organelle_sequence ***
  13154. --- *** relation type: VIEW ***
  13155. --- *** ***
  13156. --- ************************************************
  13157. ---
  13158. CREATE VIEW organelle_sequence AS
  13159. SELECT
  13160. feature_id AS organelle_sequence_id,
  13161. feature.*
  13162. FROM
  13163. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13164. WHERE cvterm.name = 'macronuclear_sequence' OR cvterm.name = 'micronuclear_sequence' OR cvterm.name = 'mitochondrial_sequence' OR cvterm.name = 'nuclear_sequence' OR cvterm.name = 'nucleomorphic_sequence' OR cvterm.name = 'plastid_sequence' OR cvterm.name = 'mitochondrial_DNA' OR cvterm.name = 'apicoplast_sequence' OR cvterm.name = 'chromoplast_sequence' OR cvterm.name = 'chloroplast_sequence' OR cvterm.name = 'cyanelle_sequence' OR cvterm.name = 'leucoplast_sequence' OR cvterm.name = 'proplastid_sequence' OR cvterm.name = 'chloroplast_DNA' OR cvterm.name = 'organelle_sequence';
  13165. --- ************************************************
  13166. --- *** relation: mitochondrial_sequence ***
  13167. --- *** relation type: VIEW ***
  13168. --- *** ***
  13169. --- ************************************************
  13170. ---
  13171. CREATE VIEW mitochondrial_sequence AS
  13172. SELECT
  13173. feature_id AS mitochondrial_sequence_id,
  13174. feature.*
  13175. FROM
  13176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13177. WHERE cvterm.name = 'mitochondrial_DNA' OR cvterm.name = 'mitochondrial_sequence';
  13178. --- ************************************************
  13179. --- *** relation: nuclear_sequence ***
  13180. --- *** relation type: VIEW ***
  13181. --- *** ***
  13182. --- ************************************************
  13183. ---
  13184. CREATE VIEW nuclear_sequence AS
  13185. SELECT
  13186. feature_id AS nuclear_sequence_id,
  13187. feature.*
  13188. FROM
  13189. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13190. WHERE cvterm.name = 'nuclear_sequence';
  13191. --- ************************************************
  13192. --- *** relation: nucleomorphic_sequence ***
  13193. --- *** relation type: VIEW ***
  13194. --- *** ***
  13195. --- ************************************************
  13196. ---
  13197. CREATE VIEW nucleomorphic_sequence AS
  13198. SELECT
  13199. feature_id AS nucleomorphic_sequence_id,
  13200. feature.*
  13201. FROM
  13202. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13203. WHERE cvterm.name = 'nucleomorphic_sequence';
  13204. --- ************************************************
  13205. --- *** relation: plastid_sequence ***
  13206. --- *** relation type: VIEW ***
  13207. --- *** ***
  13208. --- ************************************************
  13209. ---
  13210. CREATE VIEW plastid_sequence AS
  13211. SELECT
  13212. feature_id AS plastid_sequence_id,
  13213. feature.*
  13214. FROM
  13215. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13216. WHERE cvterm.name = 'apicoplast_sequence' OR cvterm.name = 'chromoplast_sequence' OR cvterm.name = 'chloroplast_sequence' OR cvterm.name = 'cyanelle_sequence' OR cvterm.name = 'leucoplast_sequence' OR cvterm.name = 'proplastid_sequence' OR cvterm.name = 'chloroplast_DNA' OR cvterm.name = 'plastid_sequence';
  13217. --- ************************************************
  13218. --- *** relation: kinetoplast ***
  13219. --- *** relation type: VIEW ***
  13220. --- *** ***
  13221. --- *** A kinetoplast is an interlocked network ***
  13222. --- *** of thousands of minicircles and tens of ***
  13223. --- *** maxi circles, located near the base of t ***
  13224. --- *** he flagellum of some protozoan species. ***
  13225. --- ************************************************
  13226. ---
  13227. CREATE VIEW kinetoplast AS
  13228. SELECT
  13229. feature_id AS kinetoplast_id,
  13230. feature.*
  13231. FROM
  13232. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13233. WHERE cvterm.name = 'kinetoplast';
  13234. --- ************************************************
  13235. --- *** relation: maxicircle ***
  13236. --- *** relation type: VIEW ***
  13237. --- *** ***
  13238. --- *** A maxicircle is a replicon, part of a ki ***
  13239. --- *** netoplast, that contains open reading fr ***
  13240. --- *** ames and replicates via a rolling circle ***
  13241. --- *** method. ***
  13242. --- ************************************************
  13243. ---
  13244. CREATE VIEW maxicircle AS
  13245. SELECT
  13246. feature_id AS maxicircle_id,
  13247. feature.*
  13248. FROM
  13249. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13250. WHERE cvterm.name = 'maxicircle';
  13251. --- ************************************************
  13252. --- *** relation: apicoplast_sequence ***
  13253. --- *** relation type: VIEW ***
  13254. --- *** ***
  13255. --- ************************************************
  13256. ---
  13257. CREATE VIEW apicoplast_sequence AS
  13258. SELECT
  13259. feature_id AS apicoplast_sequence_id,
  13260. feature.*
  13261. FROM
  13262. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13263. WHERE cvterm.name = 'apicoplast_sequence';
  13264. --- ************************************************
  13265. --- *** relation: chromoplast_sequence ***
  13266. --- *** relation type: VIEW ***
  13267. --- *** ***
  13268. --- ************************************************
  13269. ---
  13270. CREATE VIEW chromoplast_sequence AS
  13271. SELECT
  13272. feature_id AS chromoplast_sequence_id,
  13273. feature.*
  13274. FROM
  13275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13276. WHERE cvterm.name = 'chromoplast_sequence';
  13277. --- ************************************************
  13278. --- *** relation: chloroplast_sequence ***
  13279. --- *** relation type: VIEW ***
  13280. --- *** ***
  13281. --- ************************************************
  13282. ---
  13283. CREATE VIEW chloroplast_sequence AS
  13284. SELECT
  13285. feature_id AS chloroplast_sequence_id,
  13286. feature.*
  13287. FROM
  13288. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13289. WHERE cvterm.name = 'chloroplast_DNA' OR cvterm.name = 'chloroplast_sequence';
  13290. --- ************************************************
  13291. --- *** relation: cyanelle_sequence ***
  13292. --- *** relation type: VIEW ***
  13293. --- *** ***
  13294. --- ************************************************
  13295. ---
  13296. CREATE VIEW cyanelle_sequence AS
  13297. SELECT
  13298. feature_id AS cyanelle_sequence_id,
  13299. feature.*
  13300. FROM
  13301. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13302. WHERE cvterm.name = 'cyanelle_sequence';
  13303. --- ************************************************
  13304. --- *** relation: leucoplast_sequence ***
  13305. --- *** relation type: VIEW ***
  13306. --- *** ***
  13307. --- ************************************************
  13308. ---
  13309. CREATE VIEW leucoplast_sequence AS
  13310. SELECT
  13311. feature_id AS leucoplast_sequence_id,
  13312. feature.*
  13313. FROM
  13314. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13315. WHERE cvterm.name = 'leucoplast_sequence';
  13316. --- ************************************************
  13317. --- *** relation: proplastid_sequence ***
  13318. --- *** relation type: VIEW ***
  13319. --- *** ***
  13320. --- ************************************************
  13321. ---
  13322. CREATE VIEW proplastid_sequence AS
  13323. SELECT
  13324. feature_id AS proplastid_sequence_id,
  13325. feature.*
  13326. FROM
  13327. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13328. WHERE cvterm.name = 'proplastid_sequence';
  13329. --- ************************************************
  13330. --- *** relation: plasmid_location ***
  13331. --- *** relation type: VIEW ***
  13332. --- *** ***
  13333. --- ************************************************
  13334. ---
  13335. CREATE VIEW plasmid_location AS
  13336. SELECT
  13337. feature_id AS plasmid_location_id,
  13338. feature.*
  13339. FROM
  13340. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13341. WHERE cvterm.name = 'plasmid_location';
  13342. --- ************************************************
  13343. --- *** relation: amplification_origin ***
  13344. --- *** relation type: VIEW ***
  13345. --- *** ***
  13346. --- *** An origin_of_replication that is used fo ***
  13347. --- *** r the amplification of a chromosomal nuc ***
  13348. --- *** leic acid sequence. ***
  13349. --- ************************************************
  13350. ---
  13351. CREATE VIEW amplification_origin AS
  13352. SELECT
  13353. feature_id AS amplification_origin_id,
  13354. feature.*
  13355. FROM
  13356. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13357. WHERE cvterm.name = 'amplification_origin';
  13358. --- ************************************************
  13359. --- *** relation: proviral_location ***
  13360. --- *** relation type: VIEW ***
  13361. --- *** ***
  13362. --- ************************************************
  13363. ---
  13364. CREATE VIEW proviral_location AS
  13365. SELECT
  13366. feature_id AS proviral_location_id,
  13367. feature.*
  13368. FROM
  13369. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13370. WHERE cvterm.name = 'endogenous_retroviral_sequence' OR cvterm.name = 'proviral_location';
  13371. --- ************************************************
  13372. --- *** relation: gene_group_regulatory_region ***
  13373. --- *** relation type: VIEW ***
  13374. --- *** ***
  13375. --- ************************************************
  13376. ---
  13377. CREATE VIEW gene_group_regulatory_region AS
  13378. SELECT
  13379. feature_id AS gene_group_regulatory_region_id,
  13380. feature.*
  13381. FROM
  13382. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13383. WHERE cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'gene_group_regulatory_region';
  13384. --- ************************************************
  13385. --- *** relation: clone_insert ***
  13386. --- *** relation type: VIEW ***
  13387. --- *** ***
  13388. --- *** The region of sequence that has been ins ***
  13389. --- *** erted and is being propagated by the clo ***
  13390. --- *** ne. ***
  13391. --- ************************************************
  13392. ---
  13393. CREATE VIEW clone_insert AS
  13394. SELECT
  13395. feature_id AS clone_insert_id,
  13396. feature.*
  13397. FROM
  13398. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13399. WHERE cvterm.name = 'cloned_cDNA_insert' OR cvterm.name = 'cloned_genomic_insert' OR cvterm.name = 'engineered_insert' OR cvterm.name = 'BAC_cloned_genomic_insert' OR cvterm.name = 'clone_insert';
  13400. --- ************************************************
  13401. --- *** relation: lambda_vector ***
  13402. --- *** relation type: VIEW ***
  13403. --- *** ***
  13404. --- *** The lambda bacteriophage is the vector f ***
  13405. --- *** or the linear lambda clone. The genes in ***
  13406. --- *** volved in the lysogenic pathway are remo ***
  13407. --- *** ved from the from the viral DNA. Up to 2 ***
  13408. --- *** 5 kb of foreign DNA can then be inserted ***
  13409. --- *** into the lambda genome. ***
  13410. --- ************************************************
  13411. ---
  13412. CREATE VIEW lambda_vector AS
  13413. SELECT
  13414. feature_id AS lambda_vector_id,
  13415. feature.*
  13416. FROM
  13417. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13418. WHERE cvterm.name = 'lambda_vector';
  13419. --- ************************************************
  13420. --- *** relation: plasmid_vector ***
  13421. --- *** relation type: VIEW ***
  13422. --- *** ***
  13423. --- ************************************************
  13424. ---
  13425. CREATE VIEW plasmid_vector AS
  13426. SELECT
  13427. feature_id AS plasmid_vector_id,
  13428. feature.*
  13429. FROM
  13430. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13431. WHERE cvterm.name = 'plasmid_vector';
  13432. --- ************************************************
  13433. --- *** relation: cdna ***
  13434. --- *** relation type: VIEW ***
  13435. --- *** ***
  13436. --- *** DNA synthesized by reverse transcriptase ***
  13437. --- *** using RNA as a template. ***
  13438. --- ************************************************
  13439. ---
  13440. CREATE VIEW cdna AS
  13441. SELECT
  13442. feature_id AS cdna_id,
  13443. feature.*
  13444. FROM
  13445. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13446. WHERE cvterm.name = 'single_stranded_cDNA' OR cvterm.name = 'double_stranded_cDNA' OR cvterm.name = 'cDNA';
  13447. --- ************************************************
  13448. --- *** relation: single_stranded_cdna ***
  13449. --- *** relation type: VIEW ***
  13450. --- *** ***
  13451. --- ************************************************
  13452. ---
  13453. CREATE VIEW single_stranded_cdna AS
  13454. SELECT
  13455. feature_id AS single_stranded_cdna_id,
  13456. feature.*
  13457. FROM
  13458. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13459. WHERE cvterm.name = 'single_stranded_cDNA';
  13460. --- ************************************************
  13461. --- *** relation: double_stranded_cdna ***
  13462. --- *** relation type: VIEW ***
  13463. --- *** ***
  13464. --- ************************************************
  13465. ---
  13466. CREATE VIEW double_stranded_cdna AS
  13467. SELECT
  13468. feature_id AS double_stranded_cdna_id,
  13469. feature.*
  13470. FROM
  13471. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13472. WHERE cvterm.name = 'double_stranded_cDNA';
  13473. --- ************************************************
  13474. --- *** relation: pyrrolysyl_trna ***
  13475. --- *** relation type: VIEW ***
  13476. --- *** ***
  13477. --- *** A tRNA sequence that has a pyrrolysine a ***
  13478. --- *** nticodon, and a 3' pyrrolysine binding r ***
  13479. --- *** egion. ***
  13480. --- ************************************************
  13481. ---
  13482. CREATE VIEW pyrrolysyl_trna AS
  13483. SELECT
  13484. feature_id AS pyrrolysyl_trna_id,
  13485. feature.*
  13486. FROM
  13487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13488. WHERE cvterm.name = 'pyrrolysyl_tRNA';
  13489. --- ************************************************
  13490. --- *** relation: episome ***
  13491. --- *** relation type: VIEW ***
  13492. --- *** ***
  13493. --- *** A plasmid that may integrate with a chro ***
  13494. --- *** mosome. ***
  13495. --- ************************************************
  13496. ---
  13497. CREATE VIEW episome AS
  13498. SELECT
  13499. feature_id AS episome_id,
  13500. feature.*
  13501. FROM
  13502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13503. WHERE cvterm.name = 'engineered_episome' OR cvterm.name = 'episome';
  13504. --- ************************************************
  13505. --- *** relation: tmrna_coding_piece ***
  13506. --- *** relation type: VIEW ***
  13507. --- *** ***
  13508. --- *** The region of a two-piece tmRNA that bea ***
  13509. --- *** rs the reading frame encoding the proteo ***
  13510. --- *** lysis tag. The tmRNA gene undergoes circ ***
  13511. --- *** ular permutation in some groups of bacte ***
  13512. --- *** ria. Processing of the transcripts from ***
  13513. --- *** such a gene leaves the mature tmRNA in t ***
  13514. --- *** wo pieces, base-paired together. ***
  13515. --- ************************************************
  13516. ---
  13517. CREATE VIEW tmrna_coding_piece AS
  13518. SELECT
  13519. feature_id AS tmrna_coding_piece_id,
  13520. feature.*
  13521. FROM
  13522. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13523. WHERE cvterm.name = 'tmRNA_coding_piece';
  13524. --- ************************************************
  13525. --- *** relation: tmrna_acceptor_piece ***
  13526. --- *** relation type: VIEW ***
  13527. --- *** ***
  13528. --- *** The acceptor region of a two-piece tmRNA ***
  13529. --- *** that when mature is charged at its 3' e ***
  13530. --- *** nd with alanine. The tmRNA gene undergoe ***
  13531. --- *** s circular permutation in some groups of ***
  13532. --- *** bacteria; processing of the transcripts ***
  13533. --- *** from such a gene leaves the mature tmRN ***
  13534. --- *** A in two pieces, base-paired together. ***
  13535. --- ************************************************
  13536. ---
  13537. CREATE VIEW tmrna_acceptor_piece AS
  13538. SELECT
  13539. feature_id AS tmrna_acceptor_piece_id,
  13540. feature.*
  13541. FROM
  13542. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13543. WHERE cvterm.name = 'tmRNA_acceptor_piece';
  13544. --- ************************************************
  13545. --- *** relation: qtl ***
  13546. --- *** relation type: VIEW ***
  13547. --- *** ***
  13548. --- *** A quantitative trait locus (QTL) is a po ***
  13549. --- *** lymorphic locus which contains alleles t ***
  13550. --- *** hat differentially affect the expression ***
  13551. --- *** of a continuously distributed phenotypi ***
  13552. --- *** c trait. Usually it is a marker describe ***
  13553. --- *** d by statistical association to quantita ***
  13554. --- *** tive variation in the particular phenoty ***
  13555. --- *** pic trait that is thought to be controll ***
  13556. --- *** ed by the cumulative action of alleles a ***
  13557. --- *** t multiple loci. ***
  13558. --- ************************************************
  13559. ---
  13560. CREATE VIEW qtl AS
  13561. SELECT
  13562. feature_id AS qtl_id,
  13563. feature.*
  13564. FROM
  13565. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13566. WHERE cvterm.name = 'QTL';
  13567. --- ************************************************
  13568. --- *** relation: genomic_island ***
  13569. --- *** relation type: VIEW ***
  13570. --- *** ***
  13571. --- *** A genomic island is an integrated mobile ***
  13572. --- *** genetic element, characterized by size ***
  13573. --- *** (over 10 Kb). It that has features that ***
  13574. --- *** suggest a foreign origin. These can incl ***
  13575. --- *** ude nucleotide distribution (oligonucleo ***
  13576. --- *** tides signature, CG content etc.) that d ***
  13577. --- *** iffers from the bulk of the chromosome a ***
  13578. --- *** nd/or genes suggesting DNA mobility. ***
  13579. --- ************************************************
  13580. ---
  13581. CREATE VIEW genomic_island AS
  13582. SELECT
  13583. feature_id AS genomic_island_id,
  13584. feature.*
  13585. FROM
  13586. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13587. WHERE cvterm.name = 'pathogenic_island' OR cvterm.name = 'metabolic_island' OR cvterm.name = 'adaptive_island' OR cvterm.name = 'symbiosis_island' OR cvterm.name = 'cryptic_prophage' OR cvterm.name = 'defective_conjugative_transposon' OR cvterm.name = 'genomic_island';
  13588. --- ************************************************
  13589. --- *** relation: pathogenic_island ***
  13590. --- *** relation type: VIEW ***
  13591. --- *** ***
  13592. --- *** Mobile genetic elements that contribute ***
  13593. --- *** to rapid changes in virulence potential. ***
  13594. --- *** They are present on the genomes of path ***
  13595. --- *** ogenic strains but absent from the genom ***
  13596. --- *** es of non pathogenic members of the same ***
  13597. --- *** or related species. ***
  13598. --- ************************************************
  13599. ---
  13600. CREATE VIEW pathogenic_island AS
  13601. SELECT
  13602. feature_id AS pathogenic_island_id,
  13603. feature.*
  13604. FROM
  13605. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13606. WHERE cvterm.name = 'pathogenic_island';
  13607. --- ************************************************
  13608. --- *** relation: metabolic_island ***
  13609. --- *** relation type: VIEW ***
  13610. --- *** ***
  13611. --- *** A transmissible element containing genes ***
  13612. --- *** involved in metabolism, analogous to th ***
  13613. --- *** e pathogenicity islands of gram negative ***
  13614. --- *** bacteria. ***
  13615. --- ************************************************
  13616. ---
  13617. CREATE VIEW metabolic_island AS
  13618. SELECT
  13619. feature_id AS metabolic_island_id,
  13620. feature.*
  13621. FROM
  13622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13623. WHERE cvterm.name = 'metabolic_island';
  13624. --- ************************************************
  13625. --- *** relation: adaptive_island ***
  13626. --- *** relation type: VIEW ***
  13627. --- *** ***
  13628. --- *** An adaptive island is a genomic island t ***
  13629. --- *** hat provides an adaptive advantage to th ***
  13630. --- *** e host. ***
  13631. --- ************************************************
  13632. ---
  13633. CREATE VIEW adaptive_island AS
  13634. SELECT
  13635. feature_id AS adaptive_island_id,
  13636. feature.*
  13637. FROM
  13638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13639. WHERE cvterm.name = 'adaptive_island';
  13640. --- ************************************************
  13641. --- *** relation: symbiosis_island ***
  13642. --- *** relation type: VIEW ***
  13643. --- *** ***
  13644. --- *** A transmissible element containing genes ***
  13645. --- *** involved in symbiosis, analogous to the ***
  13646. --- *** pathogenicity islands of gram negative ***
  13647. --- *** bacteria. ***
  13648. --- ************************************************
  13649. ---
  13650. CREATE VIEW symbiosis_island AS
  13651. SELECT
  13652. feature_id AS symbiosis_island_id,
  13653. feature.*
  13654. FROM
  13655. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13656. WHERE cvterm.name = 'symbiosis_island';
  13657. --- ************************************************
  13658. --- *** relation: pseudogenic_rrna ***
  13659. --- *** relation type: VIEW ***
  13660. --- *** ***
  13661. --- *** A non functional descendent of an rRNA. ***
  13662. --- ************************************************
  13663. ---
  13664. CREATE VIEW pseudogenic_rrna AS
  13665. SELECT
  13666. feature_id AS pseudogenic_rrna_id,
  13667. feature.*
  13668. FROM
  13669. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13670. WHERE cvterm.name = 'pseudogenic_rRNA';
  13671. --- ************************************************
  13672. --- *** relation: pseudogenic_trna ***
  13673. --- *** relation type: VIEW ***
  13674. --- *** ***
  13675. --- *** A non functional descendent of a tRNA. ***
  13676. --- ************************************************
  13677. ---
  13678. CREATE VIEW pseudogenic_trna AS
  13679. SELECT
  13680. feature_id AS pseudogenic_trna_id,
  13681. feature.*
  13682. FROM
  13683. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13684. WHERE cvterm.name = 'pseudogenic_tRNA';
  13685. --- ************************************************
  13686. --- *** relation: engineered_episome ***
  13687. --- *** relation type: VIEW ***
  13688. --- *** ***
  13689. --- *** An episome that is engineered. ***
  13690. --- ************************************************
  13691. ---
  13692. CREATE VIEW engineered_episome AS
  13693. SELECT
  13694. feature_id AS engineered_episome_id,
  13695. feature.*
  13696. FROM
  13697. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13698. WHERE cvterm.name = 'engineered_episome';
  13699. --- ************************************************
  13700. --- *** relation: transgenic ***
  13701. --- *** relation type: VIEW ***
  13702. --- *** ***
  13703. --- *** Attribute describing sequence that has b ***
  13704. --- *** een integrated with foreign sequence. ***
  13705. --- ************************************************
  13706. ---
  13707. CREATE VIEW transgenic AS
  13708. SELECT
  13709. feature_id AS transgenic_id,
  13710. feature.*
  13711. FROM
  13712. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13713. WHERE cvterm.name = 'transgenic';
  13714. --- ************************************************
  13715. --- *** relation: so_natural ***
  13716. --- *** relation type: VIEW ***
  13717. --- *** ***
  13718. --- *** An attribute describing a feature that o ***
  13719. --- *** ccurs in nature. ***
  13720. --- ************************************************
  13721. ---
  13722. CREATE VIEW so_natural AS
  13723. SELECT
  13724. feature_id AS so_natural_id,
  13725. feature.*
  13726. FROM
  13727. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13728. WHERE cvterm.name = 'natural';
  13729. --- ************************************************
  13730. --- *** relation: engineered ***
  13731. --- *** relation type: VIEW ***
  13732. --- *** ***
  13733. --- *** An attribute to describe a region that w ***
  13734. --- *** as modified in vitro. ***
  13735. --- ************************************************
  13736. ---
  13737. CREATE VIEW engineered AS
  13738. SELECT
  13739. feature_id AS engineered_id,
  13740. feature.*
  13741. FROM
  13742. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13743. WHERE cvterm.name = 'engineered';
  13744. --- ************************************************
  13745. --- *** relation: so_foreign ***
  13746. --- *** relation type: VIEW ***
  13747. --- *** ***
  13748. --- *** An attribute to describe a region from a ***
  13749. --- *** nother species. ***
  13750. --- ************************************************
  13751. ---
  13752. CREATE VIEW so_foreign AS
  13753. SELECT
  13754. feature_id AS so_foreign_id,
  13755. feature.*
  13756. FROM
  13757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13758. WHERE cvterm.name = 'foreign';
  13759. --- ************************************************
  13760. --- *** relation: cloned_region ***
  13761. --- *** relation type: VIEW ***
  13762. --- *** ***
  13763. --- ************************************************
  13764. ---
  13765. CREATE VIEW cloned_region AS
  13766. SELECT
  13767. feature_id AS cloned_region_id,
  13768. feature.*
  13769. FROM
  13770. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13771. WHERE cvterm.name = 'cloned_region';
  13772. --- ************************************************
  13773. --- *** relation: validated ***
  13774. --- *** relation type: VIEW ***
  13775. --- *** ***
  13776. --- *** An attribute to describe a feature that ***
  13777. --- *** has been proven. ***
  13778. --- ************************************************
  13779. ---
  13780. CREATE VIEW validated AS
  13781. SELECT
  13782. feature_id AS validated_id,
  13783. feature.*
  13784. FROM
  13785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13786. WHERE cvterm.name = 'experimentally_determined' OR cvterm.name = 'validated';
  13787. --- ************************************************
  13788. --- *** relation: invalidated ***
  13789. --- *** relation type: VIEW ***
  13790. --- *** ***
  13791. --- *** An attribute describing a feature that i ***
  13792. --- *** s invalidated. ***
  13793. --- ************************************************
  13794. ---
  13795. CREATE VIEW invalidated AS
  13796. SELECT
  13797. feature_id AS invalidated_id,
  13798. feature.*
  13799. FROM
  13800. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13801. WHERE cvterm.name = 'invalidated_by_chimeric_cDNA' OR cvterm.name = 'invalidated_by_genomic_contamination' OR cvterm.name = 'invalidated_by_genomic_polyA_primed_cDNA' OR cvterm.name = 'invalidated_by_partial_processing' OR cvterm.name = 'invalidated';
  13802. --- ************************************************
  13803. --- *** relation: engineered_rescue_region ***
  13804. --- *** relation type: VIEW ***
  13805. --- *** ***
  13806. --- *** A rescue region that is engineered. ***
  13807. --- ************************************************
  13808. ---
  13809. CREATE VIEW engineered_rescue_region AS
  13810. SELECT
  13811. feature_id AS engineered_rescue_region_id,
  13812. feature.*
  13813. FROM
  13814. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13815. WHERE cvterm.name = 'engineered_rescue_region';
  13816. --- ************************************************
  13817. --- *** relation: rescue_mini_gene ***
  13818. --- *** relation type: VIEW ***
  13819. --- *** ***
  13820. --- *** A mini_gene that rescues. ***
  13821. --- ************************************************
  13822. ---
  13823. CREATE VIEW rescue_mini_gene AS
  13824. SELECT
  13825. feature_id AS rescue_mini_gene_id,
  13826. feature.*
  13827. FROM
  13828. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13829. WHERE cvterm.name = 'rescue_mini_gene';
  13830. --- ************************************************
  13831. --- *** relation: transgenic_transposable_element ***
  13832. --- *** relation type: VIEW ***
  13833. --- *** ***
  13834. --- *** TE that has been modified in vitro, incl ***
  13835. --- *** uding insertion of DNA derived from a so ***
  13836. --- *** urce other than the originating TE. ***
  13837. --- ************************************************
  13838. ---
  13839. CREATE VIEW transgenic_transposable_element AS
  13840. SELECT
  13841. feature_id AS transgenic_transposable_element_id,
  13842. feature.*
  13843. FROM
  13844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13845. WHERE cvterm.name = 'transgenic_transposable_element';
  13846. --- ************************************************
  13847. --- *** relation: natural_transposable_element ***
  13848. --- *** relation type: VIEW ***
  13849. --- *** ***
  13850. --- *** TE that exists (or existed) in nature. ***
  13851. --- ************************************************
  13852. ---
  13853. CREATE VIEW natural_transposable_element AS
  13854. SELECT
  13855. feature_id AS natural_transposable_element_id,
  13856. feature.*
  13857. FROM
  13858. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13859. WHERE cvterm.name = 'natural_transposable_element';
  13860. --- ************************************************
  13861. --- *** relation: engineered_transposable_element ***
  13862. --- *** relation type: VIEW ***
  13863. --- *** ***
  13864. --- *** TE that has been modified by manipulatio ***
  13865. --- *** ns in vitro. ***
  13866. --- ************************************************
  13867. ---
  13868. CREATE VIEW engineered_transposable_element AS
  13869. SELECT
  13870. feature_id AS engineered_transposable_element_id,
  13871. feature.*
  13872. FROM
  13873. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13874. WHERE cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_transposable_element';
  13875. --- ************************************************
  13876. --- *** relation: engineered_foreign_transposable_element ***
  13877. --- *** relation type: VIEW ***
  13878. --- *** ***
  13879. --- *** A transposable_element that is engineere ***
  13880. --- *** d and foreign. ***
  13881. --- ************************************************
  13882. ---
  13883. CREATE VIEW engineered_foreign_transposable_element AS
  13884. SELECT
  13885. feature_id AS engineered_foreign_transposable_element_id,
  13886. feature.*
  13887. FROM
  13888. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13889. WHERE cvterm.name = 'engineered_foreign_transposable_element';
  13890. --- ************************************************
  13891. --- *** relation: assortment_derived_duplication ***
  13892. --- *** relation type: VIEW ***
  13893. --- *** ***
  13894. --- *** A multi-chromosome duplication aberratio ***
  13895. --- *** n generated by reassortment of other abe ***
  13896. --- *** rration components. ***
  13897. --- ************************************************
  13898. ---
  13899. CREATE VIEW assortment_derived_duplication AS
  13900. SELECT
  13901. feature_id AS assortment_derived_duplication_id,
  13902. feature.*
  13903. FROM
  13904. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13905. WHERE cvterm.name = 'assortment_derived_duplication';
  13906. --- ************************************************
  13907. --- *** relation: assortment_derived_deficiency_plus_duplication ***
  13908. --- *** relation type: VIEW ***
  13909. --- *** ***
  13910. --- *** A multi-chromosome aberration generated ***
  13911. --- *** by reassortment of other aberration comp ***
  13912. --- *** onents; presumed to have a deficiency an ***
  13913. --- *** d a duplication. ***
  13914. --- ************************************************
  13915. ---
  13916. CREATE VIEW assortment_derived_deficiency_plus_duplication AS
  13917. SELECT
  13918. feature_id AS assortment_derived_deficiency_plus_duplication_id,
  13919. feature.*
  13920. FROM
  13921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13922. WHERE cvterm.name = 'assortment_derived_deficiency_plus_duplication';
  13923. --- ************************************************
  13924. --- *** relation: assortment_derived_deficiency ***
  13925. --- *** relation type: VIEW ***
  13926. --- *** ***
  13927. --- *** A multi-chromosome deficiency aberration ***
  13928. --- *** generated by reassortment of other aber ***
  13929. --- *** ration components. ***
  13930. --- ************************************************
  13931. ---
  13932. CREATE VIEW assortment_derived_deficiency AS
  13933. SELECT
  13934. feature_id AS assortment_derived_deficiency_id,
  13935. feature.*
  13936. FROM
  13937. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13938. WHERE cvterm.name = 'assortment_derived_deficiency';
  13939. --- ************************************************
  13940. --- *** relation: assortment_derived_aneuploid ***
  13941. --- *** relation type: VIEW ***
  13942. --- *** ***
  13943. --- *** A multi-chromosome aberration generated ***
  13944. --- *** by reassortment of other aberration comp ***
  13945. --- *** onents; presumed to have a deficiency or ***
  13946. --- *** a duplication. ***
  13947. --- ************************************************
  13948. ---
  13949. CREATE VIEW assortment_derived_aneuploid AS
  13950. SELECT
  13951. feature_id AS assortment_derived_aneuploid_id,
  13952. feature.*
  13953. FROM
  13954. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13955. WHERE cvterm.name = 'assortment_derived_aneuploid';
  13956. --- ************************************************
  13957. --- *** relation: engineered_region ***
  13958. --- *** relation type: VIEW ***
  13959. --- *** ***
  13960. --- *** A region that is engineered. ***
  13961. --- ************************************************
  13962. ---
  13963. CREATE VIEW engineered_region AS
  13964. SELECT
  13965. feature_id AS engineered_region_id,
  13966. feature.*
  13967. FROM
  13968. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13969. WHERE cvterm.name = 'engineered_gene' OR cvterm.name = 'engineered_plasmid' OR cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'engineered_transposable_element' OR cvterm.name = 'engineered_foreign_region' OR cvterm.name = 'engineered_tag' OR cvterm.name = 'engineered_insert' OR cvterm.name = 'targeting_vector' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'gene_trap_construct' OR cvterm.name = 'promoter_trap_construct' OR cvterm.name = 'enhancer_trap_construct' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_repetitive_element' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_region';
  13970. --- ************************************************
  13971. --- *** relation: engineered_foreign_region ***
  13972. --- *** relation type: VIEW ***
  13973. --- *** ***
  13974. --- *** A region that is engineered and foreign. ***
  13975. --- ************************************************
  13976. ---
  13977. CREATE VIEW engineered_foreign_region AS
  13978. SELECT
  13979. feature_id AS engineered_foreign_region_id,
  13980. feature.*
  13981. FROM
  13982. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13983. WHERE cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_repetitive_element' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_foreign_region';
  13984. --- ************************************************
  13985. --- *** relation: fusion ***
  13986. --- *** relation type: VIEW ***
  13987. --- *** ***
  13988. --- ************************************************
  13989. ---
  13990. CREATE VIEW fusion AS
  13991. SELECT
  13992. feature_id AS fusion_id,
  13993. feature.*
  13994. FROM
  13995. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13996. WHERE cvterm.name = 'fusion';
  13997. --- ************************************************
  13998. --- *** relation: engineered_tag ***
  13999. --- *** relation type: VIEW ***
  14000. --- *** ***
  14001. --- *** A tag that is engineered. ***
  14002. --- ************************************************
  14003. ---
  14004. CREATE VIEW engineered_tag AS
  14005. SELECT
  14006. feature_id AS engineered_tag_id,
  14007. feature.*
  14008. FROM
  14009. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14010. WHERE cvterm.name = 'engineered_tag';
  14011. --- ************************************************
  14012. --- *** relation: validated_cdna_clone ***
  14013. --- *** relation type: VIEW ***
  14014. --- *** ***
  14015. --- *** A cDNA clone that has been validated. ***
  14016. --- ************************************************
  14017. ---
  14018. CREATE VIEW validated_cdna_clone AS
  14019. SELECT
  14020. feature_id AS validated_cdna_clone_id,
  14021. feature.*
  14022. FROM
  14023. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14024. WHERE cvterm.name = 'validated_cDNA_clone';
  14025. --- ************************************************
  14026. --- *** relation: invalidated_cdna_clone ***
  14027. --- *** relation type: VIEW ***
  14028. --- *** ***
  14029. --- *** A cDNA clone that is invalid. ***
  14030. --- ************************************************
  14031. ---
  14032. CREATE VIEW invalidated_cdna_clone AS
  14033. SELECT
  14034. feature_id AS invalidated_cdna_clone_id,
  14035. feature.*
  14036. FROM
  14037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14038. WHERE cvterm.name = 'chimeric_cDNA_clone' OR cvterm.name = 'genomically_contaminated_cDNA_clone' OR cvterm.name = 'polyA_primed_cDNA_clone' OR cvterm.name = 'partially_processed_cDNA_clone' OR cvterm.name = 'invalidated_cDNA_clone';
  14039. --- ************************************************
  14040. --- *** relation: chimeric_cdna_clone ***
  14041. --- *** relation type: VIEW ***
  14042. --- *** ***
  14043. --- *** A cDNA clone invalidated because it is c ***
  14044. --- *** himeric. ***
  14045. --- ************************************************
  14046. ---
  14047. CREATE VIEW chimeric_cdna_clone AS
  14048. SELECT
  14049. feature_id AS chimeric_cdna_clone_id,
  14050. feature.*
  14051. FROM
  14052. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14053. WHERE cvterm.name = 'chimeric_cDNA_clone';
  14054. --- ************************************************
  14055. --- *** relation: genomically_contaminated_cdna_clone ***
  14056. --- *** relation type: VIEW ***
  14057. --- *** ***
  14058. --- *** A cDNA clone invalidated by genomic cont ***
  14059. --- *** amination. ***
  14060. --- ************************************************
  14061. ---
  14062. CREATE VIEW genomically_contaminated_cdna_clone AS
  14063. SELECT
  14064. feature_id AS genomically_contaminated_cdna_clone_id,
  14065. feature.*
  14066. FROM
  14067. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14068. WHERE cvterm.name = 'genomically_contaminated_cDNA_clone';
  14069. --- ************************************************
  14070. --- *** relation: polya_primed_cdna_clone ***
  14071. --- *** relation type: VIEW ***
  14072. --- *** ***
  14073. --- *** A cDNA clone invalidated by polyA primin ***
  14074. --- *** g. ***
  14075. --- ************************************************
  14076. ---
  14077. CREATE VIEW polya_primed_cdna_clone AS
  14078. SELECT
  14079. feature_id AS polya_primed_cdna_clone_id,
  14080. feature.*
  14081. FROM
  14082. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14083. WHERE cvterm.name = 'polyA_primed_cDNA_clone';
  14084. --- ************************************************
  14085. --- *** relation: partially_processed_cdna_clone ***
  14086. --- *** relation type: VIEW ***
  14087. --- *** ***
  14088. --- *** A cDNA invalidated clone by partial proc ***
  14089. --- *** essing. ***
  14090. --- ************************************************
  14091. ---
  14092. CREATE VIEW partially_processed_cdna_clone AS
  14093. SELECT
  14094. feature_id AS partially_processed_cdna_clone_id,
  14095. feature.*
  14096. FROM
  14097. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14098. WHERE cvterm.name = 'partially_processed_cDNA_clone';
  14099. --- ************************************************
  14100. --- *** relation: rescue ***
  14101. --- *** relation type: VIEW ***
  14102. --- *** ***
  14103. --- *** An attribute describing a region's abili ***
  14104. --- *** ty, when introduced to a mutant organism ***
  14105. --- *** , to re-establish (rescue) a phenotype. ***
  14106. --- ************************************************
  14107. ---
  14108. CREATE VIEW rescue AS
  14109. SELECT
  14110. feature_id AS rescue_id,
  14111. feature.*
  14112. FROM
  14113. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14114. WHERE cvterm.name = 'rescue';
  14115. --- ************************************************
  14116. --- *** relation: mini_gene ***
  14117. --- *** relation type: VIEW ***
  14118. --- *** ***
  14119. --- *** By definition, minigenes are short open- ***
  14120. --- *** reading frames (ORF), usually encoding a ***
  14121. --- *** pproximately 9 to 20 amino acids, which ***
  14122. --- *** are expressed in vivo (as distinct from ***
  14123. --- *** being synthesized as peptide or protein ***
  14124. --- *** ex vivo and subsequently injected). The ***
  14125. --- *** in vivo synthesis confers a distinct adv ***
  14126. --- *** antage: the expressed sequences can ente ***
  14127. --- *** r both antigen presentation pathways, MH ***
  14128. --- *** C I (inducing CD8+ T- cells, which are u ***
  14129. --- *** sually cytotoxic T-lymphocytes (CTL)) an ***
  14130. --- *** d MHC II (inducing CD4+ T-cells, usually ***
  14131. --- *** 'T-helpers' (Th)); and can encounter B- ***
  14132. --- *** cells, inducing antibody responses. Thre ***
  14133. --- *** e main vector approaches have been used ***
  14134. --- *** to deliver minigenes: viral vectors, bac ***
  14135. --- *** terial vectors and plasmid DNA. ***
  14136. --- ************************************************
  14137. ---
  14138. CREATE VIEW mini_gene AS
  14139. SELECT
  14140. feature_id AS mini_gene_id,
  14141. feature.*
  14142. FROM
  14143. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14144. WHERE cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'mini_gene';
  14145. --- ************************************************
  14146. --- *** relation: rescue_gene ***
  14147. --- *** relation type: VIEW ***
  14148. --- *** ***
  14149. --- *** A gene that rescues. ***
  14150. --- ************************************************
  14151. ---
  14152. CREATE VIEW rescue_gene AS
  14153. SELECT
  14154. feature_id AS rescue_gene_id,
  14155. feature.*
  14156. FROM
  14157. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14158. WHERE cvterm.name = 'wild_type_rescue_gene' OR cvterm.name = 'rescue_gene';
  14159. --- ************************************************
  14160. --- *** relation: wild_type ***
  14161. --- *** relation type: VIEW ***
  14162. --- *** ***
  14163. --- *** An attribute describing sequence with th ***
  14164. --- *** e genotype found in nature and/or standa ***
  14165. --- *** rd laboratory stock. ***
  14166. --- ************************************************
  14167. ---
  14168. CREATE VIEW wild_type AS
  14169. SELECT
  14170. feature_id AS wild_type_id,
  14171. feature.*
  14172. FROM
  14173. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14174. WHERE cvterm.name = 'wild_type';
  14175. --- ************************************************
  14176. --- *** relation: wild_type_rescue_gene ***
  14177. --- *** relation type: VIEW ***
  14178. --- *** ***
  14179. --- *** A gene that rescues. ***
  14180. --- ************************************************
  14181. ---
  14182. CREATE VIEW wild_type_rescue_gene AS
  14183. SELECT
  14184. feature_id AS wild_type_rescue_gene_id,
  14185. feature.*
  14186. FROM
  14187. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14188. WHERE cvterm.name = 'wild_type_rescue_gene';
  14189. --- ************************************************
  14190. --- *** relation: mitochondrial_chromosome ***
  14191. --- *** relation type: VIEW ***
  14192. --- *** ***
  14193. --- *** A chromosome originating in a mitochondr ***
  14194. --- *** ia. ***
  14195. --- ************************************************
  14196. ---
  14197. CREATE VIEW mitochondrial_chromosome AS
  14198. SELECT
  14199. feature_id AS mitochondrial_chromosome_id,
  14200. feature.*
  14201. FROM
  14202. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14203. WHERE cvterm.name = 'mitochondrial_chromosome';
  14204. --- ************************************************
  14205. --- *** relation: chloroplast_chromosome ***
  14206. --- *** relation type: VIEW ***
  14207. --- *** ***
  14208. --- *** A chromosome originating in a chloroplas ***
  14209. --- *** t. ***
  14210. --- ************************************************
  14211. ---
  14212. CREATE VIEW chloroplast_chromosome AS
  14213. SELECT
  14214. feature_id AS chloroplast_chromosome_id,
  14215. feature.*
  14216. FROM
  14217. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14218. WHERE cvterm.name = 'chloroplast_chromosome';
  14219. --- ************************************************
  14220. --- *** relation: chromoplast_chromosome ***
  14221. --- *** relation type: VIEW ***
  14222. --- *** ***
  14223. --- *** A chromosome originating in a chromoplas ***
  14224. --- *** t. ***
  14225. --- ************************************************
  14226. ---
  14227. CREATE VIEW chromoplast_chromosome AS
  14228. SELECT
  14229. feature_id AS chromoplast_chromosome_id,
  14230. feature.*
  14231. FROM
  14232. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14233. WHERE cvterm.name = 'chromoplast_chromosome';
  14234. --- ************************************************
  14235. --- *** relation: cyanelle_chromosome ***
  14236. --- *** relation type: VIEW ***
  14237. --- *** ***
  14238. --- *** A chromosome originating in a cyanelle. ***
  14239. --- ************************************************
  14240. ---
  14241. CREATE VIEW cyanelle_chromosome AS
  14242. SELECT
  14243. feature_id AS cyanelle_chromosome_id,
  14244. feature.*
  14245. FROM
  14246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14247. WHERE cvterm.name = 'cyanelle_chromosome';
  14248. --- ************************************************
  14249. --- *** relation: leucoplast_chromosome ***
  14250. --- *** relation type: VIEW ***
  14251. --- *** ***
  14252. --- *** A chromosome with origin in a leucoplast ***
  14253. --- *** . ***
  14254. --- ************************************************
  14255. ---
  14256. CREATE VIEW leucoplast_chromosome AS
  14257. SELECT
  14258. feature_id AS leucoplast_chromosome_id,
  14259. feature.*
  14260. FROM
  14261. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14262. WHERE cvterm.name = 'leucoplast_chromosome';
  14263. --- ************************************************
  14264. --- *** relation: macronuclear_chromosome ***
  14265. --- *** relation type: VIEW ***
  14266. --- *** ***
  14267. --- *** A chromosome originating in a macronucle ***
  14268. --- *** us. ***
  14269. --- ************************************************
  14270. ---
  14271. CREATE VIEW macronuclear_chromosome AS
  14272. SELECT
  14273. feature_id AS macronuclear_chromosome_id,
  14274. feature.*
  14275. FROM
  14276. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14277. WHERE cvterm.name = 'macronuclear_chromosome';
  14278. --- ************************************************
  14279. --- *** relation: micronuclear_chromosome ***
  14280. --- *** relation type: VIEW ***
  14281. --- *** ***
  14282. --- *** A chromosome originating in a micronucle ***
  14283. --- *** us. ***
  14284. --- ************************************************
  14285. ---
  14286. CREATE VIEW micronuclear_chromosome AS
  14287. SELECT
  14288. feature_id AS micronuclear_chromosome_id,
  14289. feature.*
  14290. FROM
  14291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14292. WHERE cvterm.name = 'micronuclear_chromosome';
  14293. --- ************************************************
  14294. --- *** relation: nuclear_chromosome ***
  14295. --- *** relation type: VIEW ***
  14296. --- *** ***
  14297. --- *** A chromosome originating in a nucleus. ***
  14298. --- ************************************************
  14299. ---
  14300. CREATE VIEW nuclear_chromosome AS
  14301. SELECT
  14302. feature_id AS nuclear_chromosome_id,
  14303. feature.*
  14304. FROM
  14305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14306. WHERE cvterm.name = 'nuclear_chromosome';
  14307. --- ************************************************
  14308. --- *** relation: nucleomorphic_chromosome ***
  14309. --- *** relation type: VIEW ***
  14310. --- *** ***
  14311. --- *** A chromosome originating in a nucleomorp ***
  14312. --- *** h. ***
  14313. --- ************************************************
  14314. ---
  14315. CREATE VIEW nucleomorphic_chromosome AS
  14316. SELECT
  14317. feature_id AS nucleomorphic_chromosome_id,
  14318. feature.*
  14319. FROM
  14320. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14321. WHERE cvterm.name = 'nucleomorphic_chromosome';
  14322. --- ************************************************
  14323. --- *** relation: chromosome_part ***
  14324. --- *** relation type: VIEW ***
  14325. --- *** ***
  14326. --- *** A region of a chromosome. ***
  14327. --- ************************************************
  14328. ---
  14329. CREATE VIEW chromosome_part AS
  14330. SELECT
  14331. feature_id AS chromosome_part_id,
  14332. feature.*
  14333. FROM
  14334. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14335. WHERE cvterm.name = 'chromosome_arm' OR cvterm.name = 'chromosome_band' OR cvterm.name = 'interband' OR cvterm.name = 'chromosomal_regulatory_element' OR cvterm.name = 'chromosomal_structural_element' OR cvterm.name = 'introgressed_chromosome_region' OR cvterm.name = 'matrix_attachment_site' OR cvterm.name = 'centromere' OR cvterm.name = 'telomere' OR cvterm.name = 'point_centromere' OR cvterm.name = 'regional_centromere' OR cvterm.name = 'chromosome_part';
  14336. --- ************************************************
  14337. --- *** relation: gene_member_region ***
  14338. --- *** relation type: VIEW ***
  14339. --- *** ***
  14340. --- *** A region of a gene. ***
  14341. --- ************************************************
  14342. ---
  14343. CREATE VIEW gene_member_region AS
  14344. SELECT
  14345. feature_id AS gene_member_region_id,
  14346. feature.*
  14347. FROM
  14348. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14349. WHERE cvterm.name = 'transcript' OR cvterm.name = 'regulatory_region' OR cvterm.name = 'polycistronic_transcript' OR cvterm.name = 'transcript_with_translational_frameshift' OR cvterm.name = 'primary_transcript' OR cvterm.name = 'mature_transcript' OR cvterm.name = 'transcript_bound_by_nucleic_acid' OR cvterm.name = 'transcript_bound_by_protein' OR cvterm.name = 'enzymatic_RNA' OR cvterm.name = 'trans_spliced_transcript' OR cvterm.name = 'monocistronic_transcript' OR cvterm.name = 'aberrant_processed_transcript' OR cvterm.name = 'edited_transcript' OR cvterm.name = 'processed_transcript' OR cvterm.name = 'alternatively_spliced_transcript' OR cvterm.name = 'dicistronic_transcript' OR cvterm.name = 'polycistronic_primary_transcript' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'protein_coding_primary_transcript' OR cvterm.name = 'nc_primary_transcript' OR cvterm.name = 'polycistronic_primary_transcript' OR cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'mini_exon_donor_RNA' OR cvterm.name = 'antisense_primary_transcript' OR cvterm.name = 'capped_primary_transcript' OR cvterm.name = 'pre_edited_mRNA' OR cvterm.name = 'scRNA_primary_transcript' OR cvterm.name = 'rRNA_primary_transcript' OR cvterm.name = 'tRNA_primary_transcript' OR cvterm.name = 'snRNA_primary_transcript' OR cvterm.name = 'snoRNA_primary_transcript' OR cvterm.name = 'tmRNA_primary_transcript' OR cvterm.name = 'SRP_RNA_primary_transcript' OR cvterm.name = 'miRNA_primary_transcript' OR cvterm.name = 'tasiRNA_primary_transcript' OR cvterm.name = 'rRNA_small_subunit_primary_transcript' OR cvterm.name = 'rRNA_large_subunit_primary_transcript' OR cvterm.name = 'alanine_tRNA_primary_transcript' OR cvterm.name = 'arginine_tRNA_primary_transcript' OR cvterm.name = 'asparagine_tRNA_primary_transcript' OR cvterm.name = 'aspartic_acid_tRNA_primary_transcript' OR cvterm.name = 'cysteine_tRNA_primary_transcript' OR cvterm.name = 'glutamic_acid_tRNA_primary_transcript' OR cvterm.name = 'glutamine_tRNA_primary_transcript' OR cvterm.name = 'glycine_tRNA_primary_transcript' OR cvterm.name = 'histidine_tRNA_primary_transcript' OR cvterm.name = 'isoleucine_tRNA_primary_transcript' OR cvterm.name = 'leucine_tRNA_primary_transcript' OR cvterm.name = 'lysine_tRNA_primary_transcript' OR cvterm.name = 'methionine_tRNA_primary_transcript' OR cvterm.name = 'phenylalanine_tRNA_primary_transcript' OR cvterm.name = 'proline_tRNA_primary_transcript' OR cvterm.name = 'serine_tRNA_primary_transcript' OR cvterm.name = 'threonine_tRNA_primary_transcript' OR cvterm.name = 'tryptophan_tRNA_primary_transcript' OR cvterm.name = 'tyrosine_tRNA_primary_transcript' OR cvterm.name = 'valine_tRNA_primary_transcript' OR cvterm.name = 'pyrrolysine_tRNA_primary_transcript' OR cvterm.name = 'selenocysteine_tRNA_primary_transcript' OR cvterm.name = 'methylation_guide_snoRNA_primary_transcript' OR cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript' OR cvterm.name = 'C_D_box_snoRNA_primary_transcript' OR cvterm.name = 'H_ACA_box_snoRNA_primary_transcript' OR cvterm.name = 'U14_snoRNA_primary_transcript' OR cvterm.name = 'stRNA_primary_transcript' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'mRNA' OR cvterm.name = 'ncRNA' OR cvterm.name = 'mRNA_with_frameshift' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'exemplar_mRNA' OR cvterm.name = 'capped_mRNA' OR cvterm.name = 'polyadenylated_mRNA' OR cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'consensus_mRNA' OR cvterm.name = 'recoded_mRNA' OR cvterm.name = 'mRNA_with_minus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_2_frameshift' OR cvterm.name = 'mRNA_with_minus_2_frameshift' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'mRNA_recoded_by_translational_bypass' OR cvterm.name = 'mRNA_recoded_by_codon_redefinition' OR cvterm.name = 'scRNA' OR cvterm.name = 'rRNA' OR cvterm.name = 'tRNA' OR cvterm.name = 'snRNA' OR cvterm.name = 'snoRNA' OR cvterm.name = 'small_regulatory_ncRNA' OR cvterm.name = 'RNase_MRP_RNA' OR cvterm.name = 'RNase_P_RNA' OR cvterm.name = 'telomerase_RNA' OR cvterm.name = 'vault_RNA' OR cvterm.name = 'Y_RNA' OR cvterm.name = 'rasiRNA' OR cvterm.name = 'SRP_RNA' OR cvterm.name = 'guide_RNA' OR cvterm.name = 'antisense_RNA' OR cvterm.name = 'siRNA' OR cvterm.name = 'stRNA' OR cvterm.name = 'class_II_RNA' OR cvterm.name = 'class_I_RNA' OR cvterm.name = 'piRNA' OR cvterm.name = 'lincRNA' OR cvterm.name = 'tasiRNA' OR cvterm.name = 'rRNA_cleavage_RNA' OR cvterm.name = 'small_subunit_rRNA' OR cvterm.name = 'large_subunit_rRNA' OR cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'rRNA_5_8S' OR cvterm.name = 'rRNA_5S' OR cvterm.name = 'rRNA_28S' OR cvterm.name = 'rRNA_23S' OR cvterm.name = 'rRNA_25S' OR cvterm.name = 'rRNA_21S' OR cvterm.name = 'alanyl_tRNA' OR cvterm.name = 'asparaginyl_tRNA' OR cvterm.name = 'aspartyl_tRNA' OR cvterm.name = 'cysteinyl_tRNA' OR cvterm.name = 'glutaminyl_tRNA' OR cvterm.name = 'glutamyl_tRNA' OR cvterm.name = 'glycyl_tRNA' OR cvterm.name = 'histidyl_tRNA' OR cvterm.name = 'isoleucyl_tRNA' OR cvterm.name = 'leucyl_tRNA' OR cvterm.name = 'lysyl_tRNA' OR cvterm.name = 'methionyl_tRNA' OR cvterm.name = 'phenylalanyl_tRNA' OR cvterm.name = 'prolyl_tRNA' OR cvterm.name = 'seryl_tRNA' OR cvterm.name = 'threonyl_tRNA' OR cvterm.name = 'tryptophanyl_tRNA' OR cvterm.name = 'tyrosyl_tRNA' OR cvterm.name = 'valyl_tRNA' OR cvterm.name = 'pyrrolysyl_tRNA' OR cvterm.name = 'arginyl_tRNA' OR cvterm.name = 'selenocysteinyl_tRNA' OR cvterm.name = 'U1_snRNA' OR cvterm.name = 'U2_snRNA' OR cvterm.name = 'U4_snRNA' OR cvterm.name = 'U4atac_snRNA' OR cvterm.name = 'U5_snRNA' OR cvterm.name = 'U6_snRNA' OR cvterm.name = 'U6atac_snRNA' OR cvterm.name = 'U11_snRNA' OR cvterm.name = 'U12_snRNA' OR cvterm.name = 'C_D_box_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA' OR cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'miRNA' OR cvterm.name = 'RNA_6S' OR cvterm.name = 'CsrB_RsmB_RNA' OR cvterm.name = 'DsrA_RNA' OR cvterm.name = 'OxyS_RNA' OR cvterm.name = 'RprA_RNA' OR cvterm.name = 'RRE_RNA' OR cvterm.name = 'spot_42_RNA' OR cvterm.name = 'tmRNA' OR cvterm.name = 'GcvB_RNA' OR cvterm.name = 'MicF_RNA' OR cvterm.name = 'ribozyme' OR cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'transcription_regulatory_region' OR cvterm.name = 'translation_regulatory_region' OR cvterm.name = 'recombination_regulatory_region' OR cvterm.name = 'replication_regulatory_region' OR cvterm.name = 'terminator' OR cvterm.name = 'TF_binding_site' OR cvterm.name = 'polyA_signal_sequence' OR cvterm.name = 'gene_group_regulatory_region' OR cvterm.name = 'transcriptional_cis_regulatory_region' OR cvterm.name = 'splicing_regulatory_region' OR cvterm.name = 'cis_regulatory_frameshift_element' OR cvterm.name = 'intronic_regulatory_region' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'eukaryotic_terminator' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'terminator_of_type_2_RNApol_III_promoter' OR cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'promoter' OR cvterm.name = 'insulator' OR cvterm.name = 'CRM' OR cvterm.name = 'promoter_targeting_sequence' OR cvterm.name = 'ISRE' OR cvterm.name = 'bidirectional_promoter' OR cvterm.name = 'RNA_polymerase_promoter' OR cvterm.name = 'RNApol_I_promoter' OR cvterm.name = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'Phage_RNA_Polymerase_Promoter' OR cvterm.name = 'RNApol_II_core_promoter' OR cvterm.name = 'RNApol_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'SP6_RNA_Polymerase_Promoter' OR cvterm.name = 'T3_RNA_Polymerase_Promoter' OR cvterm.name = 'T7_RNA_Polymerase_Promoter' OR cvterm.name = 'locus_control_region' OR cvterm.name = 'enhancer' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'attenuator' OR cvterm.name = 'gene_member_region';
  14350. --- ************************************************
  14351. --- *** relation: transcript_region ***
  14352. --- *** relation type: VIEW ***
  14353. --- *** ***
  14354. --- *** A region of a transcript. ***
  14355. --- ************************************************
  14356. ---
  14357. CREATE VIEW transcript_region AS
  14358. SELECT
  14359. feature_id AS transcript_region_id,
  14360. feature.*
  14361. FROM
  14362. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14363. WHERE cvterm.name = 'exon' OR cvterm.name = 'edited_transcript_feature' OR cvterm.name = 'mature_transcript_region' OR cvterm.name = 'primary_transcript_region' OR cvterm.name = 'exon_region' OR cvterm.name = 'anchor_binding_site' OR cvterm.name = 'coding_exon' OR cvterm.name = 'noncoding_exon' OR cvterm.name = 'interior_exon' OR cvterm.name = 'exon_of_single_exon_gene' OR cvterm.name = 'interior_coding_exon' OR cvterm.name = 'five_prime_coding_exon' OR cvterm.name = 'three_prime_coding_exon' OR cvterm.name = 'three_prime_noncoding_exon' OR cvterm.name = 'five_prime_noncoding_exon' OR cvterm.name = 'pre_edited_region' OR cvterm.name = 'editing_block' OR cvterm.name = 'editing_domain' OR cvterm.name = 'unedited_region' OR cvterm.name = 'mRNA_region' OR cvterm.name = 'tmRNA_region' OR cvterm.name = 'guide_RNA_region' OR cvterm.name = 'tRNA_region' OR cvterm.name = 'riboswitch' OR cvterm.name = 'ribosome_entry_site' OR cvterm.name = 'UTR' OR cvterm.name = 'CDS' OR cvterm.name = 'five_prime_open_reading_frame' OR cvterm.name = 'UTR_region' OR cvterm.name = 'CDS_region' OR cvterm.name = 'translational_frameshift' OR cvterm.name = 'recoding_stimulatory_region' OR cvterm.name = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'kozak_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'five_prime_UTR' OR cvterm.name = 'three_prime_UTR' OR cvterm.name = 'internal_UTR' OR cvterm.name = 'untranslated_region_polycistronic_mRNA' OR cvterm.name = 'edited_CDS' OR cvterm.name = 'CDS_fragment' OR cvterm.name = 'CDS_independently_known' OR cvterm.name = 'CDS_predicted' OR cvterm.name = 'orphan_CDS' OR cvterm.name = 'CDS_supported_by_sequence_similarity_data' OR cvterm.name = 'CDS_supported_by_domain_match_data' OR cvterm.name = 'CDS_supported_by_EST_or_cDNA_data' OR cvterm.name = 'upstream_AUG_codon' OR cvterm.name = 'AU_rich_element' OR cvterm.name = 'Bruno_response_element' OR cvterm.name = 'iron_responsive_element' OR cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' OR cvterm.name = 'codon' OR cvterm.name = 'recoded_codon' OR cvterm.name = 'start_codon' OR cvterm.name = 'stop_codon' OR cvterm.name = 'stop_codon_read_through' OR cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'non_canonical_start_codon' OR cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'plus_1_translational_frameshift' OR cvterm.name = 'plus_2_translational_frameshift' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'SECIS_element' OR cvterm.name = 'three_prime_recoding_site' OR cvterm.name = 'five_prime_recoding_site' OR cvterm.name = 'stop_codon_signal' OR cvterm.name = 'three_prime_stem_loop_structure' OR cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal' OR cvterm.name = 'three_prime_repeat_recoding_signal' OR cvterm.name = 'distant_three_prime_recoding_signal' OR cvterm.name = 'UAG_stop_codon_signal' OR cvterm.name = 'UAA_stop_codon_signal' OR cvterm.name = 'UGA_stop_codon_signal' OR cvterm.name = 'tmRNA_coding_piece' OR cvterm.name = 'tmRNA_acceptor_piece' OR cvterm.name = 'anchor_region' OR cvterm.name = 'template_region' OR cvterm.name = 'anticodon_loop' OR cvterm.name = 'anticodon' OR cvterm.name = 'CCA_tail' OR cvterm.name = 'DHU_loop' OR cvterm.name = 'T_loop' OR cvterm.name = 'splice_site' OR cvterm.name = 'intron' OR cvterm.name = 'clip' OR cvterm.name = 'TSS' OR cvterm.name = 'transcription_end_site' OR cvterm.name = 'spliced_leader_RNA' OR cvterm.name = 'rRNA_primary_transcript_region' OR cvterm.name = 'spliceosomal_intron_region' OR cvterm.name = 'intron_domain' OR cvterm.name = 'miRNA_primary_transcript_region' OR cvterm.name = 'outron' OR cvterm.name = 'cis_splice_site' OR cvterm.name = 'trans_splice_site' OR cvterm.name = 'cryptic_splice_site' OR cvterm.name = 'five_prime_cis_splice_site' OR cvterm.name = 'three_prime_cis_splice_site' OR cvterm.name = 'recursive_splice_site' OR cvterm.name = 'canonical_five_prime_splice_site' OR cvterm.name = 'non_canonical_five_prime_splice_site' OR cvterm.name = 'canonical_three_prime_splice_site' OR cvterm.name = 'non_canonical_three_prime_splice_site' OR cvterm.name = 'trans_splice_acceptor_site' OR cvterm.name = 'trans_splice_donor_site' OR cvterm.name = 'SL1_acceptor_site' OR cvterm.name = 'SL2_acceptor_site' OR cvterm.name = 'SL3_acceptor_site' OR cvterm.name = 'SL4_acceptor_site' OR cvterm.name = 'SL5_acceptor_site' OR cvterm.name = 'SL6_acceptor_site' OR cvterm.name = 'SL7_acceptor_site' OR cvterm.name = 'SL8_acceptor_site' OR cvterm.name = 'SL9_acceptor_site' OR cvterm.name = 'SL10_accceptor_site' OR cvterm.name = 'SL11_acceptor_site' OR cvterm.name = 'SL12_acceptor_site' OR cvterm.name = 'five_prime_intron' OR cvterm.name = 'interior_intron' OR cvterm.name = 'three_prime_intron' OR cvterm.name = 'twintron' OR cvterm.name = 'UTR_intron' OR cvterm.name = 'autocatalytically_spliced_intron' OR cvterm.name = 'spliceosomal_intron' OR cvterm.name = 'mobile_intron' OR cvterm.name = 'endonuclease_spliced_intron' OR cvterm.name = 'five_prime_UTR_intron' OR cvterm.name = 'three_prime_UTR_intron' OR cvterm.name = 'group_I_intron' OR cvterm.name = 'group_II_intron' OR cvterm.name = 'group_III_intron' OR cvterm.name = 'group_IIA_intron' OR cvterm.name = 'group_IIB_intron' OR cvterm.name = 'U2_intron' OR cvterm.name = 'U12_intron' OR cvterm.name = 'archaeal_intron' OR cvterm.name = 'tRNA_intron' OR cvterm.name = 'five_prime_clip' OR cvterm.name = 'three_prime_clip' OR cvterm.name = 'major_TSS' OR cvterm.name = 'minor_TSS' OR cvterm.name = 'transcribed_spacer_region' OR cvterm.name = 'internal_transcribed_spacer_region' OR cvterm.name = 'external_transcribed_spacer_region' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'branch_site' OR cvterm.name = 'polypyrimidine_tract' OR cvterm.name = 'internal_guide_sequence' OR cvterm.name = 'mirtron' OR cvterm.name = 'pre_miRNA' OR cvterm.name = 'miRNA_stem' OR cvterm.name = 'miRNA_loop' OR cvterm.name = 'miRNA_antiguide' OR cvterm.name = 'noncoding_region_of_exon' OR cvterm.name = 'coding_region_of_exon' OR cvterm.name = 'three_prime_coding_exon_noncoding_region' OR cvterm.name = 'five_prime_coding_exon_noncoding_region' OR cvterm.name = 'five_prime_coding_exon_coding_region' OR cvterm.name = 'three_prime_coding_exon_coding_region' OR cvterm.name = 'transcript_region';
  14364. --- ************************************************
  14365. --- *** relation: mature_transcript_region ***
  14366. --- *** relation type: VIEW ***
  14367. --- *** ***
  14368. --- *** A region of a mature transcript. ***
  14369. --- ************************************************
  14370. ---
  14371. CREATE VIEW mature_transcript_region AS
  14372. SELECT
  14373. feature_id AS mature_transcript_region_id,
  14374. feature.*
  14375. FROM
  14376. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14377. WHERE cvterm.name = 'mRNA_region' OR cvterm.name = 'tmRNA_region' OR cvterm.name = 'guide_RNA_region' OR cvterm.name = 'tRNA_region' OR cvterm.name = 'riboswitch' OR cvterm.name = 'ribosome_entry_site' OR cvterm.name = 'UTR' OR cvterm.name = 'CDS' OR cvterm.name = 'five_prime_open_reading_frame' OR cvterm.name = 'UTR_region' OR cvterm.name = 'CDS_region' OR cvterm.name = 'translational_frameshift' OR cvterm.name = 'recoding_stimulatory_region' OR cvterm.name = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'kozak_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'five_prime_UTR' OR cvterm.name = 'three_prime_UTR' OR cvterm.name = 'internal_UTR' OR cvterm.name = 'untranslated_region_polycistronic_mRNA' OR cvterm.name = 'edited_CDS' OR cvterm.name = 'CDS_fragment' OR cvterm.name = 'CDS_independently_known' OR cvterm.name = 'CDS_predicted' OR cvterm.name = 'orphan_CDS' OR cvterm.name = 'CDS_supported_by_sequence_similarity_data' OR cvterm.name = 'CDS_supported_by_domain_match_data' OR cvterm.name = 'CDS_supported_by_EST_or_cDNA_data' OR cvterm.name = 'upstream_AUG_codon' OR cvterm.name = 'AU_rich_element' OR cvterm.name = 'Bruno_response_element' OR cvterm.name = 'iron_responsive_element' OR cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' OR cvterm.name = 'codon' OR cvterm.name = 'recoded_codon' OR cvterm.name = 'start_codon' OR cvterm.name = 'stop_codon' OR cvterm.name = 'stop_codon_read_through' OR cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'non_canonical_start_codon' OR cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'plus_1_translational_frameshift' OR cvterm.name = 'plus_2_translational_frameshift' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'SECIS_element' OR cvterm.name = 'three_prime_recoding_site' OR cvterm.name = 'five_prime_recoding_site' OR cvterm.name = 'stop_codon_signal' OR cvterm.name = 'three_prime_stem_loop_structure' OR cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal' OR cvterm.name = 'three_prime_repeat_recoding_signal' OR cvterm.name = 'distant_three_prime_recoding_signal' OR cvterm.name = 'UAG_stop_codon_signal' OR cvterm.name = 'UAA_stop_codon_signal' OR cvterm.name = 'UGA_stop_codon_signal' OR cvterm.name = 'tmRNA_coding_piece' OR cvterm.name = 'tmRNA_acceptor_piece' OR cvterm.name = 'anchor_region' OR cvterm.name = 'template_region' OR cvterm.name = 'anticodon_loop' OR cvterm.name = 'anticodon' OR cvterm.name = 'CCA_tail' OR cvterm.name = 'DHU_loop' OR cvterm.name = 'T_loop' OR cvterm.name = 'mature_transcript_region';
  14378. --- ************************************************
  14379. --- *** relation: primary_transcript_region ***
  14380. --- *** relation type: VIEW ***
  14381. --- *** ***
  14382. --- *** A part of a primary transcript. ***
  14383. --- ************************************************
  14384. ---
  14385. CREATE VIEW primary_transcript_region AS
  14386. SELECT
  14387. feature_id AS primary_transcript_region_id,
  14388. feature.*
  14389. FROM
  14390. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14391. WHERE cvterm.name = 'splice_site' OR cvterm.name = 'intron' OR cvterm.name = 'clip' OR cvterm.name = 'TSS' OR cvterm.name = 'transcription_end_site' OR cvterm.name = 'spliced_leader_RNA' OR cvterm.name = 'rRNA_primary_transcript_region' OR cvterm.name = 'spliceosomal_intron_region' OR cvterm.name = 'intron_domain' OR cvterm.name = 'miRNA_primary_transcript_region' OR cvterm.name = 'outron' OR cvterm.name = 'cis_splice_site' OR cvterm.name = 'trans_splice_site' OR cvterm.name = 'cryptic_splice_site' OR cvterm.name = 'five_prime_cis_splice_site' OR cvterm.name = 'three_prime_cis_splice_site' OR cvterm.name = 'recursive_splice_site' OR cvterm.name = 'canonical_five_prime_splice_site' OR cvterm.name = 'non_canonical_five_prime_splice_site' OR cvterm.name = 'canonical_three_prime_splice_site' OR cvterm.name = 'non_canonical_three_prime_splice_site' OR cvterm.name = 'trans_splice_acceptor_site' OR cvterm.name = 'trans_splice_donor_site' OR cvterm.name = 'SL1_acceptor_site' OR cvterm.name = 'SL2_acceptor_site' OR cvterm.name = 'SL3_acceptor_site' OR cvterm.name = 'SL4_acceptor_site' OR cvterm.name = 'SL5_acceptor_site' OR cvterm.name = 'SL6_acceptor_site' OR cvterm.name = 'SL7_acceptor_site' OR cvterm.name = 'SL8_acceptor_site' OR cvterm.name = 'SL9_acceptor_site' OR cvterm.name = 'SL10_accceptor_site' OR cvterm.name = 'SL11_acceptor_site' OR cvterm.name = 'SL12_acceptor_site' OR cvterm.name = 'five_prime_intron' OR cvterm.name = 'interior_intron' OR cvterm.name = 'three_prime_intron' OR cvterm.name = 'twintron' OR cvterm.name = 'UTR_intron' OR cvterm.name = 'autocatalytically_spliced_intron' OR cvterm.name = 'spliceosomal_intron' OR cvterm.name = 'mobile_intron' OR cvterm.name = 'endonuclease_spliced_intron' OR cvterm.name = 'five_prime_UTR_intron' OR cvterm.name = 'three_prime_UTR_intron' OR cvterm.name = 'group_I_intron' OR cvterm.name = 'group_II_intron' OR cvterm.name = 'group_III_intron' OR cvterm.name = 'group_IIA_intron' OR cvterm.name = 'group_IIB_intron' OR cvterm.name = 'U2_intron' OR cvterm.name = 'U12_intron' OR cvterm.name = 'archaeal_intron' OR cvterm.name = 'tRNA_intron' OR cvterm.name = 'five_prime_clip' OR cvterm.name = 'three_prime_clip' OR cvterm.name = 'major_TSS' OR cvterm.name = 'minor_TSS' OR cvterm.name = 'transcribed_spacer_region' OR cvterm.name = 'internal_transcribed_spacer_region' OR cvterm.name = 'external_transcribed_spacer_region' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'branch_site' OR cvterm.name = 'polypyrimidine_tract' OR cvterm.name = 'internal_guide_sequence' OR cvterm.name = 'mirtron' OR cvterm.name = 'pre_miRNA' OR cvterm.name = 'miRNA_stem' OR cvterm.name = 'miRNA_loop' OR cvterm.name = 'miRNA_antiguide' OR cvterm.name = 'primary_transcript_region';
  14392. --- ************************************************
  14393. --- *** relation: mrna_region ***
  14394. --- *** relation type: VIEW ***
  14395. --- *** ***
  14396. --- *** A region of an mRNA. ***
  14397. --- ************************************************
  14398. ---
  14399. CREATE VIEW mrna_region AS
  14400. SELECT
  14401. feature_id AS mrna_region_id,
  14402. feature.*
  14403. FROM
  14404. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14405. WHERE cvterm.name = 'riboswitch' OR cvterm.name = 'ribosome_entry_site' OR cvterm.name = 'UTR' OR cvterm.name = 'CDS' OR cvterm.name = 'five_prime_open_reading_frame' OR cvterm.name = 'UTR_region' OR cvterm.name = 'CDS_region' OR cvterm.name = 'translational_frameshift' OR cvterm.name = 'recoding_stimulatory_region' OR cvterm.name = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'kozak_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'five_prime_UTR' OR cvterm.name = 'three_prime_UTR' OR cvterm.name = 'internal_UTR' OR cvterm.name = 'untranslated_region_polycistronic_mRNA' OR cvterm.name = 'edited_CDS' OR cvterm.name = 'CDS_fragment' OR cvterm.name = 'CDS_independently_known' OR cvterm.name = 'CDS_predicted' OR cvterm.name = 'orphan_CDS' OR cvterm.name = 'CDS_supported_by_sequence_similarity_data' OR cvterm.name = 'CDS_supported_by_domain_match_data' OR cvterm.name = 'CDS_supported_by_EST_or_cDNA_data' OR cvterm.name = 'upstream_AUG_codon' OR cvterm.name = 'AU_rich_element' OR cvterm.name = 'Bruno_response_element' OR cvterm.name = 'iron_responsive_element' OR cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' OR cvterm.name = 'codon' OR cvterm.name = 'recoded_codon' OR cvterm.name = 'start_codon' OR cvterm.name = 'stop_codon' OR cvterm.name = 'stop_codon_read_through' OR cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'non_canonical_start_codon' OR cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'plus_1_translational_frameshift' OR cvterm.name = 'plus_2_translational_frameshift' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'SECIS_element' OR cvterm.name = 'three_prime_recoding_site' OR cvterm.name = 'five_prime_recoding_site' OR cvterm.name = 'stop_codon_signal' OR cvterm.name = 'three_prime_stem_loop_structure' OR cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal' OR cvterm.name = 'three_prime_repeat_recoding_signal' OR cvterm.name = 'distant_three_prime_recoding_signal' OR cvterm.name = 'UAG_stop_codon_signal' OR cvterm.name = 'UAA_stop_codon_signal' OR cvterm.name = 'UGA_stop_codon_signal' OR cvterm.name = 'mRNA_region';
  14406. --- ************************************************
  14407. --- *** relation: utr_region ***
  14408. --- *** relation type: VIEW ***
  14409. --- *** ***
  14410. --- *** A region of UTR. ***
  14411. --- ************************************************
  14412. ---
  14413. CREATE VIEW utr_region AS
  14414. SELECT
  14415. feature_id AS utr_region_id,
  14416. feature.*
  14417. FROM
  14418. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14419. WHERE cvterm.name = 'upstream_AUG_codon' OR cvterm.name = 'AU_rich_element' OR cvterm.name = 'Bruno_response_element' OR cvterm.name = 'iron_responsive_element' OR cvterm.name = 'UTR_region';
  14420. --- ************************************************
  14421. --- *** relation: rrna_primary_transcript_region ***
  14422. --- *** relation type: VIEW ***
  14423. --- *** ***
  14424. --- *** A region of an rRNA primary transcript. ***
  14425. --- ************************************************
  14426. ---
  14427. CREATE VIEW rrna_primary_transcript_region AS
  14428. SELECT
  14429. feature_id AS rrna_primary_transcript_region_id,
  14430. feature.*
  14431. FROM
  14432. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14433. WHERE cvterm.name = 'transcribed_spacer_region' OR cvterm.name = 'internal_transcribed_spacer_region' OR cvterm.name = 'external_transcribed_spacer_region' OR cvterm.name = 'rRNA_primary_transcript_region';
  14434. --- ************************************************
  14435. --- *** relation: polypeptide_region ***
  14436. --- *** relation type: VIEW ***
  14437. --- *** ***
  14438. --- *** Biological sequence region that can be a ***
  14439. --- *** ssigned to a specific subsequence of a p ***
  14440. --- *** olypeptide. ***
  14441. --- ************************************************
  14442. ---
  14443. CREATE VIEW polypeptide_region AS
  14444. SELECT
  14445. feature_id AS polypeptide_region_id,
  14446. feature.*
  14447. FROM
  14448. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14449. WHERE cvterm.name = 'mature_protein_region' OR cvterm.name = 'immature_peptide_region' OR cvterm.name = 'compositionally_biased_region_of_peptide' OR cvterm.name = 'polypeptide_structural_region' OR cvterm.name = 'polypeptide_variation_site' OR cvterm.name = 'peptide_localization_signal' OR cvterm.name = 'cleaved_peptide_region' OR cvterm.name = 'hydrophobic_region_of_peptide' OR cvterm.name = 'polypeptide_conserved_region' OR cvterm.name = 'active_peptide' OR cvterm.name = 'polypeptide_domain' OR cvterm.name = 'membrane_structure' OR cvterm.name = 'extramembrane_polypeptide_region' OR cvterm.name = 'intramembrane_polypeptide_region' OR cvterm.name = 'polypeptide_secondary_structure' OR cvterm.name = 'polypeptide_structural_motif' OR cvterm.name = 'intrinsically_unstructured_polypeptide_region' OR cvterm.name = 'cytoplasmic_polypeptide_region' OR cvterm.name = 'non_cytoplasmic_polypeptide_region' OR cvterm.name = 'membrane_peptide_loop' OR cvterm.name = 'transmembrane_polypeptide_region' OR cvterm.name = 'asx_motif' OR cvterm.name = 'beta_bulge' OR cvterm.name = 'beta_bulge_loop' OR cvterm.name = 'beta_strand' OR cvterm.name = 'peptide_helix' OR cvterm.name = 'polypeptide_nest_motif' OR cvterm.name = 'schellmann_loop' OR cvterm.name = 'serine_threonine_motif' OR cvterm.name = 'serine_threonine_staple_motif' OR cvterm.name = 'polypeptide_turn_motif' OR cvterm.name = 'catmat_left_handed_three' OR cvterm.name = 'catmat_left_handed_four' OR cvterm.name = 'catmat_right_handed_three' OR cvterm.name = 'catmat_right_handed_four' OR cvterm.name = 'alpha_beta_motif' OR cvterm.name = 'peptide_coil' OR cvterm.name = 'beta_bulge_loop_five' OR cvterm.name = 'beta_bulge_loop_six' OR cvterm.name = 'antiparallel_beta_strand' OR cvterm.name = 'parallel_beta_strand' OR cvterm.name = 'left_handed_peptide_helix' OR cvterm.name = 'right_handed_peptide_helix' OR cvterm.name = 'alpha_helix' OR cvterm.name = 'pi_helix' OR cvterm.name = 'three_ten_helix' OR cvterm.name = 'polypeptide_nest_left_right_motif' OR cvterm.name = 'polypeptide_nest_right_left_motif' OR cvterm.name = 'schellmann_loop_seven' OR cvterm.name = 'schellmann_loop_six' OR cvterm.name = 'asx_turn' OR cvterm.name = 'beta_turn' OR cvterm.name = 'gamma_turn' OR cvterm.name = 'serine_threonine_turn' OR cvterm.name = 'asx_turn_left_handed_type_one' OR cvterm.name = 'asx_turn_left_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_two' OR cvterm.name = 'beta_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_right_handed_type_two' OR cvterm.name = 'beta_turn_type_six' OR cvterm.name = 'beta_turn_type_eight' OR cvterm.name = 'beta_turn_type_six_a' OR cvterm.name = 'beta_turn_type_six_b' OR cvterm.name = 'beta_turn_type_six_a_one' OR cvterm.name = 'beta_turn_type_six_a_two' OR cvterm.name = 'gamma_turn_classic' OR cvterm.name = 'gamma_turn_inverse' OR cvterm.name = 'st_turn_left_handed_type_one' OR cvterm.name = 'st_turn_left_handed_type_two' OR cvterm.name = 'st_turn_right_handed_type_one' OR cvterm.name = 'st_turn_right_handed_type_two' OR cvterm.name = 'coiled_coil' OR cvterm.name = 'helix_turn_helix' OR cvterm.name = 'natural_variant_site' OR cvterm.name = 'mutated_variant_site' OR cvterm.name = 'alternate_sequence_site' OR cvterm.name = 'signal_peptide' OR cvterm.name = 'transit_peptide' OR cvterm.name = 'nuclear_localization_signal' OR cvterm.name = 'endosomal_localization_signal' OR cvterm.name = 'lysosomal_localization_signal' OR cvterm.name = 'nuclear_export_signal' OR cvterm.name = 'nuclear_rim_localization_signal' OR cvterm.name = 'cleaved_initiator_methionine' OR cvterm.name = 'intein' OR cvterm.name = 'propeptide_cleavage_site' OR cvterm.name = 'propeptide' OR cvterm.name = 'cleaved_for_gpi_anchor_region' OR cvterm.name = 'lipoprotein_signal_peptide' OR cvterm.name = 'n_terminal_region' OR cvterm.name = 'c_terminal_region' OR cvterm.name = 'central_hydrophobic_region_of_signal_peptide' OR cvterm.name = 'polypeptide_domain' OR cvterm.name = 'polypeptide_motif' OR cvterm.name = 'polypeptide_repeat' OR cvterm.name = 'biochemical_region_of_peptide' OR cvterm.name = 'polypeptide_conserved_motif' OR cvterm.name = 'post_translationally_modified_region' OR cvterm.name = 'conformational_switch' OR cvterm.name = 'molecular_contact_region' OR cvterm.name = 'polypeptide_binding_motif' OR cvterm.name = 'polypeptide_catalytic_motif' OR cvterm.name = 'histone_modification' OR cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'polypeptide_region';
  14450. --- ************************************************
  14451. --- *** relation: repeat_component ***
  14452. --- *** relation type: VIEW ***
  14453. --- *** ***
  14454. --- *** A region of a repeated sequence. ***
  14455. --- ************************************************
  14456. ---
  14457. CREATE VIEW repeat_component AS
  14458. SELECT
  14459. feature_id AS repeat_component_id,
  14460. feature.*
  14461. FROM
  14462. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14463. WHERE cvterm.name = 'non_LTR_retrotransposon_polymeric_tract' OR cvterm.name = 'LTR_component' OR cvterm.name = 'repeat_fragment' OR cvterm.name = 'transposon_fragment' OR cvterm.name = 'U5_LTR_region' OR cvterm.name = 'R_LTR_region' OR cvterm.name = 'U3_LTR_region' OR cvterm.name = 'three_prime_LTR_component' OR cvterm.name = 'five_prime_LTR_component' OR cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'R_three_prime_LTR_region' OR cvterm.name = 'U3_three_prime_LTR_region' OR cvterm.name = 'U5_three_prime_LTR_region' OR cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'repeat_component';
  14464. --- ************************************************
  14465. --- *** relation: spliceosomal_intron_region ***
  14466. --- *** relation type: VIEW ***
  14467. --- *** ***
  14468. --- *** A region within an intron. ***
  14469. --- ************************************************
  14470. ---
  14471. CREATE VIEW spliceosomal_intron_region AS
  14472. SELECT
  14473. feature_id AS spliceosomal_intron_region_id,
  14474. feature.*
  14475. FROM
  14476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14477. WHERE cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'branch_site' OR cvterm.name = 'polypyrimidine_tract' OR cvterm.name = 'spliceosomal_intron_region';
  14478. --- ************************************************
  14479. --- *** relation: gene_component_region ***
  14480. --- *** relation type: VIEW ***
  14481. --- *** ***
  14482. --- ************************************************
  14483. ---
  14484. CREATE VIEW gene_component_region AS
  14485. SELECT
  14486. feature_id AS gene_component_region_id,
  14487. feature.*
  14488. FROM
  14489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14490. WHERE cvterm.name = 'non_transcribed_region' OR cvterm.name = 'gene_fragment' OR cvterm.name = 'TSS_region' OR cvterm.name = 'gene_segment' OR cvterm.name = 'pseudogenic_gene_segment' OR cvterm.name = 'gene_component_region';
  14491. --- ************************************************
  14492. --- *** relation: tmrna_region ***
  14493. --- *** relation type: VIEW ***
  14494. --- *** ***
  14495. --- *** A region of a tmRNA. ***
  14496. --- ************************************************
  14497. ---
  14498. CREATE VIEW tmrna_region AS
  14499. SELECT
  14500. feature_id AS tmrna_region_id,
  14501. feature.*
  14502. FROM
  14503. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14504. WHERE cvterm.name = 'tmRNA_coding_piece' OR cvterm.name = 'tmRNA_acceptor_piece' OR cvterm.name = 'tmRNA_region';
  14505. --- ************************************************
  14506. --- *** relation: ltr_component ***
  14507. --- *** relation type: VIEW ***
  14508. --- *** ***
  14509. --- ************************************************
  14510. ---
  14511. CREATE VIEW ltr_component AS
  14512. SELECT
  14513. feature_id AS ltr_component_id,
  14514. feature.*
  14515. FROM
  14516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14517. WHERE cvterm.name = 'U5_LTR_region' OR cvterm.name = 'R_LTR_region' OR cvterm.name = 'U3_LTR_region' OR cvterm.name = 'three_prime_LTR_component' OR cvterm.name = 'five_prime_LTR_component' OR cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'R_three_prime_LTR_region' OR cvterm.name = 'U3_three_prime_LTR_region' OR cvterm.name = 'U5_three_prime_LTR_region' OR cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'LTR_component';
  14518. --- ************************************************
  14519. --- *** relation: three_prime_ltr_component ***
  14520. --- *** relation type: VIEW ***
  14521. --- *** ***
  14522. --- ************************************************
  14523. ---
  14524. CREATE VIEW three_prime_ltr_component AS
  14525. SELECT
  14526. feature_id AS three_prime_ltr_component_id,
  14527. feature.*
  14528. FROM
  14529. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14530. WHERE cvterm.name = 'R_three_prime_LTR_region' OR cvterm.name = 'U3_three_prime_LTR_region' OR cvterm.name = 'U5_three_prime_LTR_region' OR cvterm.name = 'three_prime_LTR_component';
  14531. --- ************************************************
  14532. --- *** relation: five_prime_ltr_component ***
  14533. --- *** relation type: VIEW ***
  14534. --- *** ***
  14535. --- ************************************************
  14536. ---
  14537. CREATE VIEW five_prime_ltr_component AS
  14538. SELECT
  14539. feature_id AS five_prime_ltr_component_id,
  14540. feature.*
  14541. FROM
  14542. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14543. WHERE cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'five_prime_LTR_component';
  14544. --- ************************************************
  14545. --- *** relation: cds_region ***
  14546. --- *** relation type: VIEW ***
  14547. --- *** ***
  14548. --- *** A region of a CDS. ***
  14549. --- ************************************************
  14550. ---
  14551. CREATE VIEW cds_region AS
  14552. SELECT
  14553. feature_id AS cds_region_id,
  14554. feature.*
  14555. FROM
  14556. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14557. WHERE cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' OR cvterm.name = 'codon' OR cvterm.name = 'recoded_codon' OR cvterm.name = 'start_codon' OR cvterm.name = 'stop_codon' OR cvterm.name = 'stop_codon_read_through' OR cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'non_canonical_start_codon' OR cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'CDS_region';
  14558. --- ************************************************
  14559. --- *** relation: exon_region ***
  14560. --- *** relation type: VIEW ***
  14561. --- *** ***
  14562. --- *** A region of an exon. ***
  14563. --- ************************************************
  14564. ---
  14565. CREATE VIEW exon_region AS
  14566. SELECT
  14567. feature_id AS exon_region_id,
  14568. feature.*
  14569. FROM
  14570. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14571. WHERE cvterm.name = 'noncoding_region_of_exon' OR cvterm.name = 'coding_region_of_exon' OR cvterm.name = 'three_prime_coding_exon_noncoding_region' OR cvterm.name = 'five_prime_coding_exon_noncoding_region' OR cvterm.name = 'five_prime_coding_exon_coding_region' OR cvterm.name = 'three_prime_coding_exon_coding_region' OR cvterm.name = 'exon_region';
  14572. --- ************************************************
  14573. --- *** relation: homologous_region ***
  14574. --- *** relation type: VIEW ***
  14575. --- *** ***
  14576. --- *** A region that is homologous to another r ***
  14577. --- *** egion. ***
  14578. --- ************************************************
  14579. ---
  14580. CREATE VIEW homologous_region AS
  14581. SELECT
  14582. feature_id AS homologous_region_id,
  14583. feature.*
  14584. FROM
  14585. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14586. WHERE cvterm.name = 'paralogous_region' OR cvterm.name = 'orthologous_region' OR cvterm.name = 'homologous_region';
  14587. --- ************************************************
  14588. --- *** relation: paralogous_region ***
  14589. --- *** relation type: VIEW ***
  14590. --- *** ***
  14591. --- *** A homologous_region that is paralogous t ***
  14592. --- *** o another region. ***
  14593. --- ************************************************
  14594. ---
  14595. CREATE VIEW paralogous_region AS
  14596. SELECT
  14597. feature_id AS paralogous_region_id,
  14598. feature.*
  14599. FROM
  14600. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14601. WHERE cvterm.name = 'paralogous_region';
  14602. --- ************************************************
  14603. --- *** relation: orthologous_region ***
  14604. --- *** relation type: VIEW ***
  14605. --- *** ***
  14606. --- *** A homologous_region that is orthologous ***
  14607. --- *** to another region. ***
  14608. --- ************************************************
  14609. ---
  14610. CREATE VIEW orthologous_region AS
  14611. SELECT
  14612. feature_id AS orthologous_region_id,
  14613. feature.*
  14614. FROM
  14615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14616. WHERE cvterm.name = 'orthologous_region';
  14617. --- ************************************************
  14618. --- *** relation: conserved ***
  14619. --- *** relation type: VIEW ***
  14620. --- *** ***
  14621. --- ************************************************
  14622. ---
  14623. CREATE VIEW conserved AS
  14624. SELECT
  14625. feature_id AS conserved_id,
  14626. feature.*
  14627. FROM
  14628. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14629. WHERE cvterm.name = 'homologous' OR cvterm.name = 'syntenic' OR cvterm.name = 'orthologous' OR cvterm.name = 'paralogous' OR cvterm.name = 'conserved';
  14630. --- ************************************************
  14631. --- *** relation: homologous ***
  14632. --- *** relation type: VIEW ***
  14633. --- *** ***
  14634. --- *** Similarity due to common ancestry. ***
  14635. --- ************************************************
  14636. ---
  14637. CREATE VIEW homologous AS
  14638. SELECT
  14639. feature_id AS homologous_id,
  14640. feature.*
  14641. FROM
  14642. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14643. WHERE cvterm.name = 'orthologous' OR cvterm.name = 'paralogous' OR cvterm.name = 'homologous';
  14644. --- ************************************************
  14645. --- *** relation: orthologous ***
  14646. --- *** relation type: VIEW ***
  14647. --- *** ***
  14648. --- *** An attribute describing a kind of homolo ***
  14649. --- *** gy where divergence occured after a spec ***
  14650. --- *** iation event. ***
  14651. --- ************************************************
  14652. ---
  14653. CREATE VIEW orthologous AS
  14654. SELECT
  14655. feature_id AS orthologous_id,
  14656. feature.*
  14657. FROM
  14658. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14659. WHERE cvterm.name = 'orthologous';
  14660. --- ************************************************
  14661. --- *** relation: paralogous ***
  14662. --- *** relation type: VIEW ***
  14663. --- *** ***
  14664. --- *** An attribute describing a kind of homolo ***
  14665. --- *** gy where divergence occurred after a dup ***
  14666. --- *** lication event. ***
  14667. --- ************************************************
  14668. ---
  14669. CREATE VIEW paralogous AS
  14670. SELECT
  14671. feature_id AS paralogous_id,
  14672. feature.*
  14673. FROM
  14674. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14675. WHERE cvterm.name = 'paralogous';
  14676. --- ************************************************
  14677. --- *** relation: syntenic ***
  14678. --- *** relation type: VIEW ***
  14679. --- *** ***
  14680. --- *** Attribute describing sequence regions oc ***
  14681. --- *** curring in same order on chromosome of d ***
  14682. --- *** ifferent species. ***
  14683. --- ************************************************
  14684. ---
  14685. CREATE VIEW syntenic AS
  14686. SELECT
  14687. feature_id AS syntenic_id,
  14688. feature.*
  14689. FROM
  14690. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14691. WHERE cvterm.name = 'syntenic';
  14692. --- ************************************************
  14693. --- *** relation: capped_primary_transcript ***
  14694. --- *** relation type: VIEW ***
  14695. --- *** ***
  14696. --- *** A primary transcript that is capped. ***
  14697. --- ************************************************
  14698. ---
  14699. CREATE VIEW capped_primary_transcript AS
  14700. SELECT
  14701. feature_id AS capped_primary_transcript_id,
  14702. feature.*
  14703. FROM
  14704. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14705. WHERE cvterm.name = 'capped_primary_transcript';
  14706. --- ************************************************
  14707. --- *** relation: capped_mrna ***
  14708. --- *** relation type: VIEW ***
  14709. --- *** ***
  14710. --- *** An mRNA that is capped. ***
  14711. --- ************************************************
  14712. ---
  14713. CREATE VIEW capped_mrna AS
  14714. SELECT
  14715. feature_id AS capped_mrna_id,
  14716. feature.*
  14717. FROM
  14718. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14719. WHERE cvterm.name = 'capped_mRNA';
  14720. --- ************************************************
  14721. --- *** relation: mrna_attribute ***
  14722. --- *** relation type: VIEW ***
  14723. --- *** ***
  14724. --- *** An attribute describing an mRNA feature. ***
  14725. --- ************************************************
  14726. ---
  14727. CREATE VIEW mrna_attribute AS
  14728. SELECT
  14729. feature_id AS mrna_attribute_id,
  14730. feature.*
  14731. FROM
  14732. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14733. WHERE cvterm.name = 'polyadenylated' OR cvterm.name = 'exemplar' OR cvterm.name = 'frameshift' OR cvterm.name = 'recoded' OR cvterm.name = 'minus_1_frameshift' OR cvterm.name = 'minus_2_frameshift' OR cvterm.name = 'plus_1_frameshift' OR cvterm.name = 'plus_2_framshift' OR cvterm.name = 'codon_redefined' OR cvterm.name = 'recoded_by_translational_bypass' OR cvterm.name = 'translationally_frameshifted' OR cvterm.name = 'minus_1_translationally_frameshifted' OR cvterm.name = 'plus_1_translationally_frameshifted' OR cvterm.name = 'mRNA_attribute';
  14734. --- ************************************************
  14735. --- *** relation: exemplar ***
  14736. --- *** relation type: VIEW ***
  14737. --- *** ***
  14738. --- *** An attribute describing a sequence is re ***
  14739. --- *** presentative of a class of similar seque ***
  14740. --- *** nces. ***
  14741. --- ************************************************
  14742. ---
  14743. CREATE VIEW exemplar AS
  14744. SELECT
  14745. feature_id AS exemplar_id,
  14746. feature.*
  14747. FROM
  14748. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14749. WHERE cvterm.name = 'exemplar';
  14750. --- ************************************************
  14751. --- *** relation: frameshift ***
  14752. --- *** relation type: VIEW ***
  14753. --- *** ***
  14754. --- *** An attribute describing a sequence that ***
  14755. --- *** contains a mutation involving the deleti ***
  14756. --- *** on or insertion of one or more bases, wh ***
  14757. --- *** ere this number is not divisible by 3. ***
  14758. --- ************************************************
  14759. ---
  14760. CREATE VIEW frameshift AS
  14761. SELECT
  14762. feature_id AS frameshift_id,
  14763. feature.*
  14764. FROM
  14765. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14766. WHERE cvterm.name = 'minus_1_frameshift' OR cvterm.name = 'minus_2_frameshift' OR cvterm.name = 'plus_1_frameshift' OR cvterm.name = 'plus_2_framshift' OR cvterm.name = 'frameshift';
  14767. --- ************************************************
  14768. --- *** relation: minus_1_frameshift ***
  14769. --- *** relation type: VIEW ***
  14770. --- *** ***
  14771. --- *** A frameshift caused by deleting one base ***
  14772. --- *** . ***
  14773. --- ************************************************
  14774. ---
  14775. CREATE VIEW minus_1_frameshift AS
  14776. SELECT
  14777. feature_id AS minus_1_frameshift_id,
  14778. feature.*
  14779. FROM
  14780. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14781. WHERE cvterm.name = 'minus_1_frameshift';
  14782. --- ************************************************
  14783. --- *** relation: minus_2_frameshift ***
  14784. --- *** relation type: VIEW ***
  14785. --- *** ***
  14786. --- *** A frameshift caused by deleting two base ***
  14787. --- *** s. ***
  14788. --- ************************************************
  14789. ---
  14790. CREATE VIEW minus_2_frameshift AS
  14791. SELECT
  14792. feature_id AS minus_2_frameshift_id,
  14793. feature.*
  14794. FROM
  14795. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14796. WHERE cvterm.name = 'minus_2_frameshift';
  14797. --- ************************************************
  14798. --- *** relation: plus_1_frameshift ***
  14799. --- *** relation type: VIEW ***
  14800. --- *** ***
  14801. --- *** A frameshift caused by inserting one bas ***
  14802. --- *** e. ***
  14803. --- ************************************************
  14804. ---
  14805. CREATE VIEW plus_1_frameshift AS
  14806. SELECT
  14807. feature_id AS plus_1_frameshift_id,
  14808. feature.*
  14809. FROM
  14810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14811. WHERE cvterm.name = 'plus_1_frameshift';
  14812. --- ************************************************
  14813. --- *** relation: plus_2_framshift ***
  14814. --- *** relation type: VIEW ***
  14815. --- *** ***
  14816. --- *** A frameshift caused by inserting two bas ***
  14817. --- *** es. ***
  14818. --- ************************************************
  14819. ---
  14820. CREATE VIEW plus_2_framshift AS
  14821. SELECT
  14822. feature_id AS plus_2_framshift_id,
  14823. feature.*
  14824. FROM
  14825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14826. WHERE cvterm.name = 'plus_2_framshift';
  14827. --- ************************************************
  14828. --- *** relation: trans_spliced ***
  14829. --- *** relation type: VIEW ***
  14830. --- *** ***
  14831. --- *** An attribute describing transcript seque ***
  14832. --- *** nce that is created by splicing exons fr ***
  14833. --- *** om diferent genes. ***
  14834. --- ************************************************
  14835. ---
  14836. CREATE VIEW trans_spliced AS
  14837. SELECT
  14838. feature_id AS trans_spliced_id,
  14839. feature.*
  14840. FROM
  14841. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14842. WHERE cvterm.name = 'trans_spliced';
  14843. --- ************************************************
  14844. --- *** relation: polyadenylated_mrna ***
  14845. --- *** relation type: VIEW ***
  14846. --- *** ***
  14847. --- *** An mRNA that is polyadenylated. ***
  14848. --- ************************************************
  14849. ---
  14850. CREATE VIEW polyadenylated_mrna AS
  14851. SELECT
  14852. feature_id AS polyadenylated_mrna_id,
  14853. feature.*
  14854. FROM
  14855. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14856. WHERE cvterm.name = 'polyadenylated_mRNA';
  14857. --- ************************************************
  14858. --- *** relation: trans_spliced_mrna ***
  14859. --- *** relation type: VIEW ***
  14860. --- *** ***
  14861. --- *** An mRNA that is trans-spliced. ***
  14862. --- ************************************************
  14863. ---
  14864. CREATE VIEW trans_spliced_mrna AS
  14865. SELECT
  14866. feature_id AS trans_spliced_mrna_id,
  14867. feature.*
  14868. FROM
  14869. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14870. WHERE cvterm.name = 'trans_spliced_mRNA';
  14871. --- ************************************************
  14872. --- *** relation: edited_transcript ***
  14873. --- *** relation type: VIEW ***
  14874. --- *** ***
  14875. --- *** A transcript that is edited. ***
  14876. --- ************************************************
  14877. ---
  14878. CREATE VIEW edited_transcript AS
  14879. SELECT
  14880. feature_id AS edited_transcript_id,
  14881. feature.*
  14882. FROM
  14883. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14884. WHERE cvterm.name = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'edited_transcript';
  14885. --- ************************************************
  14886. --- *** relation: edited_transcript_by_a_to_i_substitution ***
  14887. --- *** relation type: VIEW ***
  14888. --- *** ***
  14889. --- *** A transcript that has been edited by A t ***
  14890. --- *** o I substitution. ***
  14891. --- ************************************************
  14892. ---
  14893. CREATE VIEW edited_transcript_by_a_to_i_substitution AS
  14894. SELECT
  14895. feature_id AS edited_transcript_by_a_to_i_substitution_id,
  14896. feature.*
  14897. FROM
  14898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14899. WHERE cvterm.name = 'edited_transcript_by_A_to_I_substitution';
  14900. --- ************************************************
  14901. --- *** relation: bound_by_protein ***
  14902. --- *** relation type: VIEW ***
  14903. --- *** ***
  14904. --- *** An attribute describing a sequence that ***
  14905. --- *** is bound by a protein. ***
  14906. --- ************************************************
  14907. ---
  14908. CREATE VIEW bound_by_protein AS
  14909. SELECT
  14910. feature_id AS bound_by_protein_id,
  14911. feature.*
  14912. FROM
  14913. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14914. WHERE cvterm.name = 'bound_by_protein';
  14915. --- ************************************************
  14916. --- *** relation: bound_by_nucleic_acid ***
  14917. --- *** relation type: VIEW ***
  14918. --- *** ***
  14919. --- *** An attribute describing a sequence that ***
  14920. --- *** is bound by a nucleic acid. ***
  14921. --- ************************************************
  14922. ---
  14923. CREATE VIEW bound_by_nucleic_acid AS
  14924. SELECT
  14925. feature_id AS bound_by_nucleic_acid_id,
  14926. feature.*
  14927. FROM
  14928. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14929. WHERE cvterm.name = 'bound_by_nucleic_acid';
  14930. --- ************************************************
  14931. --- *** relation: alternatively_spliced ***
  14932. --- *** relation type: VIEW ***
  14933. --- *** ***
  14934. --- *** An attribute describing a situation wher ***
  14935. --- *** e a gene may encode for more than 1 tran ***
  14936. --- *** script. ***
  14937. --- ************************************************
  14938. ---
  14939. CREATE VIEW alternatively_spliced AS
  14940. SELECT
  14941. feature_id AS alternatively_spliced_id,
  14942. feature.*
  14943. FROM
  14944. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14945. WHERE cvterm.name = 'alternatively_spliced';
  14946. --- ************************************************
  14947. --- *** relation: monocistronic ***
  14948. --- *** relation type: VIEW ***
  14949. --- *** ***
  14950. --- *** An attribute describing a sequence that ***
  14951. --- *** contains the code for one gene product. ***
  14952. --- ************************************************
  14953. ---
  14954. CREATE VIEW monocistronic AS
  14955. SELECT
  14956. feature_id AS monocistronic_id,
  14957. feature.*
  14958. FROM
  14959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14960. WHERE cvterm.name = 'monocistronic';
  14961. --- ************************************************
  14962. --- *** relation: dicistronic ***
  14963. --- *** relation type: VIEW ***
  14964. --- *** ***
  14965. --- *** An attribute describing a sequence that ***
  14966. --- *** contains the code for two gene products. ***
  14967. --- ************************************************
  14968. ---
  14969. CREATE VIEW dicistronic AS
  14970. SELECT
  14971. feature_id AS dicistronic_id,
  14972. feature.*
  14973. FROM
  14974. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14975. WHERE cvterm.name = 'dicistronic';
  14976. --- ************************************************
  14977. --- *** relation: polycistronic ***
  14978. --- *** relation type: VIEW ***
  14979. --- *** ***
  14980. --- *** An attribute describing a sequence that ***
  14981. --- *** contains the code for more than one gene ***
  14982. --- *** product. ***
  14983. --- ************************************************
  14984. ---
  14985. CREATE VIEW polycistronic AS
  14986. SELECT
  14987. feature_id AS polycistronic_id,
  14988. feature.*
  14989. FROM
  14990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14991. WHERE cvterm.name = 'dicistronic' OR cvterm.name = 'polycistronic';
  14992. --- ************************************************
  14993. --- *** relation: recoded ***
  14994. --- *** relation type: VIEW ***
  14995. --- *** ***
  14996. --- *** An attribute describing an mRNA sequence ***
  14997. --- *** that has been reprogrammed at translati ***
  14998. --- *** on, causing localized alterations. ***
  14999. --- ************************************************
  15000. ---
  15001. CREATE VIEW recoded AS
  15002. SELECT
  15003. feature_id AS recoded_id,
  15004. feature.*
  15005. FROM
  15006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15007. WHERE cvterm.name = 'codon_redefined' OR cvterm.name = 'recoded_by_translational_bypass' OR cvterm.name = 'translationally_frameshifted' OR cvterm.name = 'minus_1_translationally_frameshifted' OR cvterm.name = 'plus_1_translationally_frameshifted' OR cvterm.name = 'recoded';
  15008. --- ************************************************
  15009. --- *** relation: codon_redefined ***
  15010. --- *** relation type: VIEW ***
  15011. --- *** ***
  15012. --- *** An attribute describing the alteration o ***
  15013. --- *** f codon meaning. ***
  15014. --- ************************************************
  15015. ---
  15016. CREATE VIEW codon_redefined AS
  15017. SELECT
  15018. feature_id AS codon_redefined_id,
  15019. feature.*
  15020. FROM
  15021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15022. WHERE cvterm.name = 'codon_redefined';
  15023. --- ************************************************
  15024. --- *** relation: stop_codon_read_through ***
  15025. --- *** relation type: VIEW ***
  15026. --- *** ***
  15027. --- *** A stop codon redefined to be a new amino ***
  15028. --- *** acid. ***
  15029. --- ************************************************
  15030. ---
  15031. CREATE VIEW stop_codon_read_through AS
  15032. SELECT
  15033. feature_id AS stop_codon_read_through_id,
  15034. feature.*
  15035. FROM
  15036. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15037. WHERE cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'stop_codon_read_through';
  15038. --- ************************************************
  15039. --- *** relation: stop_codon_redefined_as_pyrrolysine ***
  15040. --- *** relation type: VIEW ***
  15041. --- *** ***
  15042. --- *** A stop codon redefined to be the new ami ***
  15043. --- *** no acid, pyrrolysine. ***
  15044. --- ************************************************
  15045. ---
  15046. CREATE VIEW stop_codon_redefined_as_pyrrolysine AS
  15047. SELECT
  15048. feature_id AS stop_codon_redefined_as_pyrrolysine_id,
  15049. feature.*
  15050. FROM
  15051. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15052. WHERE cvterm.name = 'stop_codon_redefined_as_pyrrolysine';
  15053. --- ************************************************
  15054. --- *** relation: stop_codon_redefined_as_selenocysteine ***
  15055. --- *** relation type: VIEW ***
  15056. --- *** ***
  15057. --- *** A stop codon redefined to be the new ami ***
  15058. --- *** no acid, selenocysteine. ***
  15059. --- ************************************************
  15060. ---
  15061. CREATE VIEW stop_codon_redefined_as_selenocysteine AS
  15062. SELECT
  15063. feature_id AS stop_codon_redefined_as_selenocysteine_id,
  15064. feature.*
  15065. FROM
  15066. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15067. WHERE cvterm.name = 'stop_codon_redefined_as_selenocysteine';
  15068. --- ************************************************
  15069. --- *** relation: recoded_by_translational_bypass ***
  15070. --- *** relation type: VIEW ***
  15071. --- *** ***
  15072. --- *** Recoded mRNA where a block of nucleotide ***
  15073. --- *** s is not translated. ***
  15074. --- ************************************************
  15075. ---
  15076. CREATE VIEW recoded_by_translational_bypass AS
  15077. SELECT
  15078. feature_id AS recoded_by_translational_bypass_id,
  15079. feature.*
  15080. FROM
  15081. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15082. WHERE cvterm.name = 'recoded_by_translational_bypass';
  15083. --- ************************************************
  15084. --- *** relation: translationally_frameshifted ***
  15085. --- *** relation type: VIEW ***
  15086. --- *** ***
  15087. --- *** Recoding by frameshifting a particular s ***
  15088. --- *** ite. ***
  15089. --- ************************************************
  15090. ---
  15091. CREATE VIEW translationally_frameshifted AS
  15092. SELECT
  15093. feature_id AS translationally_frameshifted_id,
  15094. feature.*
  15095. FROM
  15096. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15097. WHERE cvterm.name = 'minus_1_translationally_frameshifted' OR cvterm.name = 'plus_1_translationally_frameshifted' OR cvterm.name = 'translationally_frameshifted';
  15098. --- ************************************************
  15099. --- *** relation: maternally_imprinted_gene ***
  15100. --- *** relation type: VIEW ***
  15101. --- *** ***
  15102. --- *** A gene that is maternally_imprinted. ***
  15103. --- ************************************************
  15104. ---
  15105. CREATE VIEW maternally_imprinted_gene AS
  15106. SELECT
  15107. feature_id AS maternally_imprinted_gene_id,
  15108. feature.*
  15109. FROM
  15110. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15111. WHERE cvterm.name = 'maternally_imprinted_gene';
  15112. --- ************************************************
  15113. --- *** relation: paternally_imprinted_gene ***
  15114. --- *** relation type: VIEW ***
  15115. --- *** ***
  15116. --- *** A gene that is paternally imprinted. ***
  15117. --- ************************************************
  15118. ---
  15119. CREATE VIEW paternally_imprinted_gene AS
  15120. SELECT
  15121. feature_id AS paternally_imprinted_gene_id,
  15122. feature.*
  15123. FROM
  15124. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15125. WHERE cvterm.name = 'paternally_imprinted_gene';
  15126. --- ************************************************
  15127. --- *** relation: post_translationally_regulated_gene ***
  15128. --- *** relation type: VIEW ***
  15129. --- *** ***
  15130. --- *** A gene that is post translationally regu ***
  15131. --- *** lated. ***
  15132. --- ************************************************
  15133. ---
  15134. CREATE VIEW post_translationally_regulated_gene AS
  15135. SELECT
  15136. feature_id AS post_translationally_regulated_gene_id,
  15137. feature.*
  15138. FROM
  15139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15140. WHERE cvterm.name = 'post_translationally_regulated_gene';
  15141. --- ************************************************
  15142. --- *** relation: negatively_autoregulated_gene ***
  15143. --- *** relation type: VIEW ***
  15144. --- *** ***
  15145. --- *** A gene that is negatively autoreguated. ***
  15146. --- ************************************************
  15147. ---
  15148. CREATE VIEW negatively_autoregulated_gene AS
  15149. SELECT
  15150. feature_id AS negatively_autoregulated_gene_id,
  15151. feature.*
  15152. FROM
  15153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15154. WHERE cvterm.name = 'negatively_autoregulated_gene';
  15155. --- ************************************************
  15156. --- *** relation: positively_autoregulated_gene ***
  15157. --- *** relation type: VIEW ***
  15158. --- *** ***
  15159. --- *** A gene that is positively autoregulated. ***
  15160. --- ************************************************
  15161. ---
  15162. CREATE VIEW positively_autoregulated_gene AS
  15163. SELECT
  15164. feature_id AS positively_autoregulated_gene_id,
  15165. feature.*
  15166. FROM
  15167. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15168. WHERE cvterm.name = 'positively_autoregulated_gene';
  15169. --- ************************************************
  15170. --- *** relation: silenced ***
  15171. --- *** relation type: VIEW ***
  15172. --- *** ***
  15173. --- *** An attribute describing an epigenetic pr ***
  15174. --- *** ocess where a gene is inactivated at tra ***
  15175. --- *** nscriptional or translational level. ***
  15176. --- ************************************************
  15177. ---
  15178. CREATE VIEW silenced AS
  15179. SELECT
  15180. feature_id AS silenced_id,
  15181. feature.*
  15182. FROM
  15183. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15184. WHERE cvterm.name = 'silenced_by_DNA_modification' OR cvterm.name = 'silenced_by_RNA_interference' OR cvterm.name = 'silenced_by_histone_modification' OR cvterm.name = 'silenced_by_DNA_methylation' OR cvterm.name = 'silenced_by_histone_methylation' OR cvterm.name = 'silenced_by_histone_deacetylation' OR cvterm.name = 'silenced';
  15185. --- ************************************************
  15186. --- *** relation: silenced_by_dna_modification ***
  15187. --- *** relation type: VIEW ***
  15188. --- *** ***
  15189. --- *** An attribute describing an epigenetic pr ***
  15190. --- *** ocess where a gene is inactivated by DNA ***
  15191. --- *** modifications, resulting in repression ***
  15192. --- *** of transcription. ***
  15193. --- ************************************************
  15194. ---
  15195. CREATE VIEW silenced_by_dna_modification AS
  15196. SELECT
  15197. feature_id AS silenced_by_dna_modification_id,
  15198. feature.*
  15199. FROM
  15200. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15201. WHERE cvterm.name = 'silenced_by_DNA_methylation' OR cvterm.name = 'silenced_by_DNA_modification';
  15202. --- ************************************************
  15203. --- *** relation: silenced_by_dna_methylation ***
  15204. --- *** relation type: VIEW ***
  15205. --- *** ***
  15206. --- *** An attribute describing an epigenetic pr ***
  15207. --- *** ocess where a gene is inactivated by DNA ***
  15208. --- *** methylation, resulting in repression of ***
  15209. --- *** transcription. ***
  15210. --- ************************************************
  15211. ---
  15212. CREATE VIEW silenced_by_dna_methylation AS
  15213. SELECT
  15214. feature_id AS silenced_by_dna_methylation_id,
  15215. feature.*
  15216. FROM
  15217. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15218. WHERE cvterm.name = 'silenced_by_DNA_methylation';
  15219. --- ************************************************
  15220. --- *** relation: translationally_regulated_gene ***
  15221. --- *** relation type: VIEW ***
  15222. --- *** ***
  15223. --- *** A gene that is translationally regulated ***
  15224. --- *** . ***
  15225. --- ************************************************
  15226. ---
  15227. CREATE VIEW translationally_regulated_gene AS
  15228. SELECT
  15229. feature_id AS translationally_regulated_gene_id,
  15230. feature.*
  15231. FROM
  15232. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15233. WHERE cvterm.name = 'translationally_regulated_gene';
  15234. --- ************************************************
  15235. --- *** relation: allelically_excluded_gene ***
  15236. --- *** relation type: VIEW ***
  15237. --- *** ***
  15238. --- *** A gene that is allelically_excluded. ***
  15239. --- ************************************************
  15240. ---
  15241. CREATE VIEW allelically_excluded_gene AS
  15242. SELECT
  15243. feature_id AS allelically_excluded_gene_id,
  15244. feature.*
  15245. FROM
  15246. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15247. WHERE cvterm.name = 'allelically_excluded_gene';
  15248. --- ************************************************
  15249. --- *** relation: epigenetically_modified_gene ***
  15250. --- *** relation type: VIEW ***
  15251. --- *** ***
  15252. --- *** A gene that is epigenetically modified. ***
  15253. --- ************************************************
  15254. ---
  15255. CREATE VIEW epigenetically_modified_gene AS
  15256. SELECT
  15257. feature_id AS epigenetically_modified_gene_id,
  15258. feature.*
  15259. FROM
  15260. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15261. WHERE cvterm.name = 'gene_rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted_gene' OR cvterm.name = 'paternally_imprinted_gene' OR cvterm.name = 'allelically_excluded_gene' OR cvterm.name = 'epigenetically_modified_gene';
  15262. --- ************************************************
  15263. --- *** relation: transgene ***
  15264. --- *** relation type: VIEW ***
  15265. --- *** ***
  15266. --- *** A transgene is a gene that has been tran ***
  15267. --- *** sferred naturally or by any of a number ***
  15268. --- *** of genetic engineering techniques from o ***
  15269. --- *** ne organism to another. ***
  15270. --- ************************************************
  15271. ---
  15272. CREATE VIEW transgene AS
  15273. SELECT
  15274. feature_id AS transgene_id,
  15275. feature.*
  15276. FROM
  15277. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15278. WHERE cvterm.name = 'floxed_gene' OR cvterm.name = 'transgene';
  15279. --- ************************************************
  15280. --- *** relation: endogenous_retroviral_sequence ***
  15281. --- *** relation type: VIEW ***
  15282. --- *** ***
  15283. --- ************************************************
  15284. ---
  15285. CREATE VIEW endogenous_retroviral_sequence AS
  15286. SELECT
  15287. feature_id AS endogenous_retroviral_sequence_id,
  15288. feature.*
  15289. FROM
  15290. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15291. WHERE cvterm.name = 'endogenous_retroviral_sequence';
  15292. --- ************************************************
  15293. --- *** relation: rearranged_at_dna_level ***
  15294. --- *** relation type: VIEW ***
  15295. --- *** ***
  15296. --- *** An attribute to describe the sequence of ***
  15297. --- *** a feature, where the DNA is rearranged. ***
  15298. --- ************************************************
  15299. ---
  15300. CREATE VIEW rearranged_at_dna_level AS
  15301. SELECT
  15302. feature_id AS rearranged_at_dna_level_id,
  15303. feature.*
  15304. FROM
  15305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15306. WHERE cvterm.name = 'rearranged_at_DNA_level';
  15307. --- ************************************************
  15308. --- *** relation: status ***
  15309. --- *** relation type: VIEW ***
  15310. --- *** ***
  15311. --- *** An attribute describing the status of a ***
  15312. --- *** feature, based on the available evidence ***
  15313. --- *** . ***
  15314. --- ************************************************
  15315. ---
  15316. CREATE VIEW status AS
  15317. SELECT
  15318. feature_id AS status_id,
  15319. feature.*
  15320. FROM
  15321. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15322. WHERE cvterm.name = 'fragmentary' OR cvterm.name = 'predicted' OR cvterm.name = 'validated' OR cvterm.name = 'invalidated' OR cvterm.name = 'independently_known' OR cvterm.name = 'consensus' OR cvterm.name = 'low_complexity' OR cvterm.name = 'whole_genome_sequence_status' OR cvterm.name = 'supported_by_sequence_similarity' OR cvterm.name = 'orphan' OR cvterm.name = 'predicted_by_ab_initio_computation' OR cvterm.name = 'supported_by_domain_match' OR cvterm.name = 'supported_by_EST_or_cDNA' OR cvterm.name = 'experimentally_determined' OR cvterm.name = 'invalidated_by_chimeric_cDNA' OR cvterm.name = 'invalidated_by_genomic_contamination' OR cvterm.name = 'invalidated_by_genomic_polyA_primed_cDNA' OR cvterm.name = 'invalidated_by_partial_processing' OR cvterm.name = 'standard_draft' OR cvterm.name = 'high_quality_draft' OR cvterm.name = 'improved_high_quality_draft' OR cvterm.name = 'annotation_directed_improved_draft' OR cvterm.name = 'noncontiguous_finished' OR cvterm.name = 'finished_genome' OR cvterm.name = 'status';
  15323. --- ************************************************
  15324. --- *** relation: independently_known ***
  15325. --- *** relation type: VIEW ***
  15326. --- *** ***
  15327. --- *** Attribute to describe a feature that is ***
  15328. --- *** independently known - not predicted. ***
  15329. --- ************************************************
  15330. ---
  15331. CREATE VIEW independently_known AS
  15332. SELECT
  15333. feature_id AS independently_known_id,
  15334. feature.*
  15335. FROM
  15336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15337. WHERE cvterm.name = 'independently_known';
  15338. --- ************************************************
  15339. --- *** relation: supported_by_sequence_similarity ***
  15340. --- *** relation type: VIEW ***
  15341. --- *** ***
  15342. --- *** An attribute to describe a feature that ***
  15343. --- *** has been predicted using sequence simila ***
  15344. --- *** rity techniques. ***
  15345. --- ************************************************
  15346. ---
  15347. CREATE VIEW supported_by_sequence_similarity AS
  15348. SELECT
  15349. feature_id AS supported_by_sequence_similarity_id,
  15350. feature.*
  15351. FROM
  15352. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15353. WHERE cvterm.name = 'supported_by_domain_match' OR cvterm.name = 'supported_by_EST_or_cDNA' OR cvterm.name = 'supported_by_sequence_similarity';
  15354. --- ************************************************
  15355. --- *** relation: supported_by_domain_match ***
  15356. --- *** relation type: VIEW ***
  15357. --- *** ***
  15358. --- *** An attribute to describe a feature that ***
  15359. --- *** has been predicted using sequence simila ***
  15360. --- *** rity of a known domain. ***
  15361. --- ************************************************
  15362. ---
  15363. CREATE VIEW supported_by_domain_match AS
  15364. SELECT
  15365. feature_id AS supported_by_domain_match_id,
  15366. feature.*
  15367. FROM
  15368. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15369. WHERE cvterm.name = 'supported_by_domain_match';
  15370. --- ************************************************
  15371. --- *** relation: supported_by_est_or_cdna ***
  15372. --- *** relation type: VIEW ***
  15373. --- *** ***
  15374. --- *** An attribute to describe a feature that ***
  15375. --- *** has been predicted using sequence simila ***
  15376. --- *** rity to EST or cDNA data. ***
  15377. --- ************************************************
  15378. ---
  15379. CREATE VIEW supported_by_est_or_cdna AS
  15380. SELECT
  15381. feature_id AS supported_by_est_or_cdna_id,
  15382. feature.*
  15383. FROM
  15384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15385. WHERE cvterm.name = 'supported_by_EST_or_cDNA';
  15386. --- ************************************************
  15387. --- *** relation: orphan ***
  15388. --- *** relation type: VIEW ***
  15389. --- *** ***
  15390. --- ************************************************
  15391. ---
  15392. CREATE VIEW orphan AS
  15393. SELECT
  15394. feature_id AS orphan_id,
  15395. feature.*
  15396. FROM
  15397. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15398. WHERE cvterm.name = 'orphan';
  15399. --- ************************************************
  15400. --- *** relation: predicted_by_ab_initio_computation ***
  15401. --- *** relation type: VIEW ***
  15402. --- *** ***
  15403. --- *** An attribute describing a feature that i ***
  15404. --- *** s predicted by a computer program that d ***
  15405. --- *** id not rely on sequence similarity. ***
  15406. --- ************************************************
  15407. ---
  15408. CREATE VIEW predicted_by_ab_initio_computation AS
  15409. SELECT
  15410. feature_id AS predicted_by_ab_initio_computation_id,
  15411. feature.*
  15412. FROM
  15413. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15414. WHERE cvterm.name = 'predicted_by_ab_initio_computation';
  15415. --- ************************************************
  15416. --- *** relation: asx_turn ***
  15417. --- *** relation type: VIEW ***
  15418. --- *** ***
  15419. --- *** A motif of three consecutive residues an ***
  15420. --- *** d one H-bond in which: residue(i) is Asp ***
  15421. --- *** artate or Asparagine (Asx), the side-cha ***
  15422. --- *** in O of residue(i) is H-bonded to the ma ***
  15423. --- *** in-chain NH of residue(i+2). ***
  15424. --- ************************************************
  15425. ---
  15426. CREATE VIEW asx_turn AS
  15427. SELECT
  15428. feature_id AS asx_turn_id,
  15429. feature.*
  15430. FROM
  15431. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15432. WHERE cvterm.name = 'asx_turn_left_handed_type_one' OR cvterm.name = 'asx_turn_left_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_one' OR cvterm.name = 'asx_turn';
  15433. --- ************************************************
  15434. --- *** relation: cloned_cdna_insert ***
  15435. --- *** relation type: VIEW ***
  15436. --- *** ***
  15437. --- *** A clone insert made from cDNA. ***
  15438. --- ************************************************
  15439. ---
  15440. CREATE VIEW cloned_cdna_insert AS
  15441. SELECT
  15442. feature_id AS cloned_cdna_insert_id,
  15443. feature.*
  15444. FROM
  15445. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15446. WHERE cvterm.name = 'cloned_cDNA_insert';
  15447. --- ************************************************
  15448. --- *** relation: cloned_genomic_insert ***
  15449. --- *** relation type: VIEW ***
  15450. --- *** ***
  15451. --- *** A clone insert made from genomic DNA. ***
  15452. --- ************************************************
  15453. ---
  15454. CREATE VIEW cloned_genomic_insert AS
  15455. SELECT
  15456. feature_id AS cloned_genomic_insert_id,
  15457. feature.*
  15458. FROM
  15459. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15460. WHERE cvterm.name = 'BAC_cloned_genomic_insert' OR cvterm.name = 'cloned_genomic_insert';
  15461. --- ************************************************
  15462. --- *** relation: engineered_insert ***
  15463. --- *** relation type: VIEW ***
  15464. --- *** ***
  15465. --- *** A clone insert that is engineered. ***
  15466. --- ************************************************
  15467. ---
  15468. CREATE VIEW engineered_insert AS
  15469. SELECT
  15470. feature_id AS engineered_insert_id,
  15471. feature.*
  15472. FROM
  15473. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15474. WHERE cvterm.name = 'engineered_insert';
  15475. --- ************************************************
  15476. --- *** relation: edited_mrna ***
  15477. --- *** relation type: VIEW ***
  15478. --- *** ***
  15479. --- *** An mRNA that is edited. ***
  15480. --- ************************************************
  15481. ---
  15482. CREATE VIEW edited_mrna AS
  15483. SELECT
  15484. feature_id AS edited_mrna_id,
  15485. feature.*
  15486. FROM
  15487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15488. WHERE cvterm.name = 'edited_mRNA';
  15489. --- ************************************************
  15490. --- *** relation: guide_rna_region ***
  15491. --- *** relation type: VIEW ***
  15492. --- *** ***
  15493. --- *** A region of guide RNA. ***
  15494. --- ************************************************
  15495. ---
  15496. CREATE VIEW guide_rna_region AS
  15497. SELECT
  15498. feature_id AS guide_rna_region_id,
  15499. feature.*
  15500. FROM
  15501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15502. WHERE cvterm.name = 'anchor_region' OR cvterm.name = 'template_region' OR cvterm.name = 'guide_RNA_region';
  15503. --- ************************************************
  15504. --- *** relation: anchor_region ***
  15505. --- *** relation type: VIEW ***
  15506. --- *** ***
  15507. --- *** A region of a guide_RNA that base-pairs ***
  15508. --- *** to a target mRNA. ***
  15509. --- ************************************************
  15510. ---
  15511. CREATE VIEW anchor_region AS
  15512. SELECT
  15513. feature_id AS anchor_region_id,
  15514. feature.*
  15515. FROM
  15516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15517. WHERE cvterm.name = 'anchor_region';
  15518. --- ************************************************
  15519. --- *** relation: pre_edited_mrna ***
  15520. --- *** relation type: VIEW ***
  15521. --- *** ***
  15522. --- ************************************************
  15523. ---
  15524. CREATE VIEW pre_edited_mrna AS
  15525. SELECT
  15526. feature_id AS pre_edited_mrna_id,
  15527. feature.*
  15528. FROM
  15529. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15530. WHERE cvterm.name = 'pre_edited_mRNA';
  15531. --- ************************************************
  15532. --- *** relation: intermediate ***
  15533. --- *** relation type: VIEW ***
  15534. --- *** ***
  15535. --- *** An attribute to describe a feature betwe ***
  15536. --- *** en stages of processing. ***
  15537. --- ************************************************
  15538. ---
  15539. CREATE VIEW intermediate AS
  15540. SELECT
  15541. feature_id AS intermediate_id,
  15542. feature.*
  15543. FROM
  15544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15545. WHERE cvterm.name = 'intermediate';
  15546. --- ************************************************
  15547. --- *** relation: mirna_target_site ***
  15548. --- *** relation type: VIEW ***
  15549. --- *** ***
  15550. --- *** A miRNA target site is a binding site wh ***
  15551. --- *** ere the molecule is a micro RNA. ***
  15552. --- ************************************************
  15553. ---
  15554. CREATE VIEW mirna_target_site AS
  15555. SELECT
  15556. feature_id AS mirna_target_site_id,
  15557. feature.*
  15558. FROM
  15559. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15560. WHERE cvterm.name = 'miRNA_target_site';
  15561. --- ************************************************
  15562. --- *** relation: edited_cds ***
  15563. --- *** relation type: VIEW ***
  15564. --- *** ***
  15565. --- *** A CDS that is edited. ***
  15566. --- ************************************************
  15567. ---
  15568. CREATE VIEW edited_cds AS
  15569. SELECT
  15570. feature_id AS edited_cds_id,
  15571. feature.*
  15572. FROM
  15573. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15574. WHERE cvterm.name = 'edited_CDS';
  15575. --- ************************************************
  15576. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment ***
  15577. --- *** relation type: VIEW ***
  15578. --- *** ***
  15579. --- ************************************************
  15580. ---
  15581. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment AS
  15582. SELECT
  15583. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment_id,
  15584. feature.*
  15585. FROM
  15586. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15587. WHERE cvterm.name = 'VD_gene' OR cvterm.name = 'DJ_gene' OR cvterm.name = 'VDJ_gene' OR cvterm.name = 'VJ_gene' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_segment';
  15588. --- ************************************************
  15589. --- *** relation: vertebrate_ig_t_cell_receptor_rearranged_gene_cluster ***
  15590. --- *** relation type: VIEW ***
  15591. --- *** ***
  15592. --- ************************************************
  15593. ---
  15594. CREATE VIEW vertebrate_ig_t_cell_receptor_rearranged_gene_cluster AS
  15595. SELECT
  15596. feature_id AS vertebrate_ig_t_cell_receptor_rearranged_gene_cluster_id,
  15597. feature.*
  15598. FROM
  15599. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15600. WHERE cvterm.name = 'DJ_J_cluster' OR cvterm.name = 'VDJ_J_C_cluster' OR cvterm.name = 'VDJ_J_cluster' OR cvterm.name = 'VJ_C_cluster' OR cvterm.name = 'VJ_J_C_cluster' OR cvterm.name = 'VJ_J_cluster' OR cvterm.name = 'D_DJ_C_cluster' OR cvterm.name = 'D_DJ_cluster' OR cvterm.name = 'D_DJ_J_C_cluster' OR cvterm.name = 'D_DJ_J_cluster' OR cvterm.name = 'V_DJ_cluster' OR cvterm.name = 'V_DJ_J_cluster' OR cvterm.name = 'V_VDJ_C_cluster' OR cvterm.name = 'V_VDJ_cluster' OR cvterm.name = 'V_VDJ_J_cluster' OR cvterm.name = 'V_VJ_C_cluster' OR cvterm.name = 'V_VJ_cluster' OR cvterm.name = 'V_VJ_J_cluster' OR cvterm.name = 'V_D_DJ_C_cluster' OR cvterm.name = 'V_D_DJ_cluster' OR cvterm.name = 'V_D_DJ_J_C_cluster' OR cvterm.name = 'V_D_DJ_J_cluster' OR cvterm.name = 'V_D_J_C_cluster' OR cvterm.name = 'V_D_J_cluster' OR cvterm.name = 'DJ_C_cluster' OR cvterm.name = 'DJ_J_C_cluster' OR cvterm.name = 'VDJ_C_cluster' OR cvterm.name = 'V_DJ_C_cluster' OR cvterm.name = 'V_DJ_J_C_cluster' OR cvterm.name = 'V_VDJ_J_C_cluster' OR cvterm.name = 'V_VJ_J_C_cluster' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_gene_cluster';
  15601. --- ************************************************
  15602. --- *** relation: vertebrate_immune_system_gene_recombination_signal_feature ***
  15603. --- *** relation type: VIEW ***
  15604. --- *** ***
  15605. --- ************************************************
  15606. ---
  15607. CREATE VIEW vertebrate_immune_system_gene_recombination_signal_feature AS
  15608. SELECT
  15609. feature_id AS vertebrate_immune_system_gene_recombination_signal_feature_id,
  15610. feature.*
  15611. FROM
  15612. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15613. WHERE cvterm.name = 'J_gene_recombination_feature' OR cvterm.name = 'D_gene_recombination_feature' OR cvterm.name = 'V_gene_recombination_feature' OR cvterm.name = 'heptamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'nonamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'five_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_heptamer' OR cvterm.name = 'five_prime_D_heptamer' OR cvterm.name = 'J_heptamer' OR cvterm.name = 'V_heptamer' OR cvterm.name = 'three_prime_D_nonamer' OR cvterm.name = 'five_prime_D_nonamer' OR cvterm.name = 'J_nonamer' OR cvterm.name = 'V_nonamer' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_signal_feature';
  15614. --- ************************************************
  15615. --- *** relation: recombinationally_rearranged ***
  15616. --- *** relation type: VIEW ***
  15617. --- *** ***
  15618. --- ************************************************
  15619. ---
  15620. CREATE VIEW recombinationally_rearranged AS
  15621. SELECT
  15622. feature_id AS recombinationally_rearranged_id,
  15623. feature.*
  15624. FROM
  15625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15626. WHERE cvterm.name = 'recombinationally_rearranged';
  15627. --- ************************************************
  15628. --- *** relation: recombinationally_rearranged_vertebrate_immune_system_gene ***
  15629. --- *** relation type: VIEW ***
  15630. --- *** ***
  15631. --- *** A recombinationally rearranged gene of t ***
  15632. --- *** he vertebrate immune system. ***
  15633. --- ************************************************
  15634. ---
  15635. CREATE VIEW recombinationally_rearranged_vertebrate_immune_system_gene AS
  15636. SELECT
  15637. feature_id AS recombinationally_rearranged_vertebrate_immune_system_gene_id,
  15638. feature.*
  15639. FROM
  15640. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15641. WHERE cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene';
  15642. --- ************************************************
  15643. --- *** relation: attp_site ***
  15644. --- *** relation type: VIEW ***
  15645. --- *** ***
  15646. --- *** An integration/excision site of a phage ***
  15647. --- *** chromosome at which a recombinase acts t ***
  15648. --- *** o insert the phage DNA at a cognate inte ***
  15649. --- *** gration/excision site on a bacterial chr ***
  15650. --- *** omosome. ***
  15651. --- ************************************************
  15652. ---
  15653. CREATE VIEW attp_site AS
  15654. SELECT
  15655. feature_id AS attp_site_id,
  15656. feature.*
  15657. FROM
  15658. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15659. WHERE cvterm.name = 'attP_site';
  15660. --- ************************************************
  15661. --- *** relation: attb_site ***
  15662. --- *** relation type: VIEW ***
  15663. --- *** ***
  15664. --- *** An integration/excision site of a bacter ***
  15665. --- *** ial chromosome at which a recombinase ac ***
  15666. --- *** ts to insert foreign DNA containing a co ***
  15667. --- *** gnate integration/excision site. ***
  15668. --- ************************************************
  15669. ---
  15670. CREATE VIEW attb_site AS
  15671. SELECT
  15672. feature_id AS attb_site_id,
  15673. feature.*
  15674. FROM
  15675. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15676. WHERE cvterm.name = 'attB_site';
  15677. --- ************************************************
  15678. --- *** relation: attl_site ***
  15679. --- *** relation type: VIEW ***
  15680. --- *** ***
  15681. --- *** A region that results from recombination ***
  15682. --- *** between attP_site and attB_site, compos ***
  15683. --- *** ed of the 5' portion of attB_site and th ***
  15684. --- *** e 3' portion of attP_site. ***
  15685. --- ************************************************
  15686. ---
  15687. CREATE VIEW attl_site AS
  15688. SELECT
  15689. feature_id AS attl_site_id,
  15690. feature.*
  15691. FROM
  15692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15693. WHERE cvterm.name = 'attL_site';
  15694. --- ************************************************
  15695. --- *** relation: attr_site ***
  15696. --- *** relation type: VIEW ***
  15697. --- *** ***
  15698. --- *** A region that results from recombination ***
  15699. --- *** between attP_site and attB_site, compos ***
  15700. --- *** ed of the 5' portion of attP_site and th ***
  15701. --- *** e 3' portion of attB_site. ***
  15702. --- ************************************************
  15703. ---
  15704. CREATE VIEW attr_site AS
  15705. SELECT
  15706. feature_id AS attr_site_id,
  15707. feature.*
  15708. FROM
  15709. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15710. WHERE cvterm.name = 'attR_site';
  15711. --- ************************************************
  15712. --- *** relation: integration_excision_site ***
  15713. --- *** relation type: VIEW ***
  15714. --- *** ***
  15715. --- *** A region specifically recognised by a re ***
  15716. --- *** combinase, which inserts or removes anot ***
  15717. --- *** her region marked by a distinct cognate ***
  15718. --- *** integration/excision site. ***
  15719. --- ************************************************
  15720. ---
  15721. CREATE VIEW integration_excision_site AS
  15722. SELECT
  15723. feature_id AS integration_excision_site_id,
  15724. feature.*
  15725. FROM
  15726. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15727. WHERE cvterm.name = 'attI_site' OR cvterm.name = 'attP_site' OR cvterm.name = 'attB_site' OR cvterm.name = 'attL_site' OR cvterm.name = 'attR_site' OR cvterm.name = 'attC_site' OR cvterm.name = 'attCtn_site' OR cvterm.name = 'integration_excision_site';
  15728. --- ************************************************
  15729. --- *** relation: resolution_site ***
  15730. --- *** relation type: VIEW ***
  15731. --- *** ***
  15732. --- *** A region specifically recognised by a re ***
  15733. --- *** combinase, which separates a physically ***
  15734. --- *** contiguous circle of DNA into two physic ***
  15735. --- *** ally separate circles. ***
  15736. --- ************************************************
  15737. ---
  15738. CREATE VIEW resolution_site AS
  15739. SELECT
  15740. feature_id AS resolution_site_id,
  15741. feature.*
  15742. FROM
  15743. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15744. WHERE cvterm.name = 'loxP_site' OR cvterm.name = 'dif_site' OR cvterm.name = 'resolution_site';
  15745. --- ************************************************
  15746. --- *** relation: inversion_site ***
  15747. --- *** relation type: VIEW ***
  15748. --- *** ***
  15749. --- *** A region specifically recognised by a re ***
  15750. --- *** combinase, which inverts the region flan ***
  15751. --- *** ked by a pair of sites. ***
  15752. --- ************************************************
  15753. ---
  15754. CREATE VIEW inversion_site AS
  15755. SELECT
  15756. feature_id AS inversion_site_id,
  15757. feature.*
  15758. FROM
  15759. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15760. WHERE cvterm.name = 'FRT_site' OR cvterm.name = 'inversion_site';
  15761. --- ************************************************
  15762. --- *** relation: dif_site ***
  15763. --- *** relation type: VIEW ***
  15764. --- *** ***
  15765. --- *** A site at which replicated bacterial cir ***
  15766. --- *** cular chromosomes are decatenated by sit ***
  15767. --- *** e specific resolvase. ***
  15768. --- ************************************************
  15769. ---
  15770. CREATE VIEW dif_site AS
  15771. SELECT
  15772. feature_id AS dif_site_id,
  15773. feature.*
  15774. FROM
  15775. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15776. WHERE cvterm.name = 'dif_site';
  15777. --- ************************************************
  15778. --- *** relation: attc_site ***
  15779. --- *** relation type: VIEW ***
  15780. --- *** ***
  15781. --- *** An attC site is a sequence required for ***
  15782. --- *** the integration of a DNA of an integron. ***
  15783. --- ************************************************
  15784. ---
  15785. CREATE VIEW attc_site AS
  15786. SELECT
  15787. feature_id AS attc_site_id,
  15788. feature.*
  15789. FROM
  15790. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15791. WHERE cvterm.name = 'attC_site';
  15792. --- ************************************************
  15793. --- *** relation: eukaryotic_terminator ***
  15794. --- *** relation type: VIEW ***
  15795. --- *** ***
  15796. --- ************************************************
  15797. ---
  15798. CREATE VIEW eukaryotic_terminator AS
  15799. SELECT
  15800. feature_id AS eukaryotic_terminator_id,
  15801. feature.*
  15802. FROM
  15803. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15804. WHERE cvterm.name = 'terminator_of_type_2_RNApol_III_promoter' OR cvterm.name = 'eukaryotic_terminator';
  15805. --- ************************************************
  15806. --- *** relation: oriv ***
  15807. --- *** relation type: VIEW ***
  15808. --- *** ***
  15809. --- *** An origin of vegetative replication in p ***
  15810. --- *** lasmids and phages. ***
  15811. --- ************************************************
  15812. ---
  15813. CREATE VIEW oriv AS
  15814. SELECT
  15815. feature_id AS oriv_id,
  15816. feature.*
  15817. FROM
  15818. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15819. WHERE cvterm.name = 'oriV';
  15820. --- ************************************************
  15821. --- *** relation: oric ***
  15822. --- *** relation type: VIEW ***
  15823. --- *** ***
  15824. --- *** An origin of bacterial chromosome replic ***
  15825. --- *** ation. ***
  15826. --- ************************************************
  15827. ---
  15828. CREATE VIEW oric AS
  15829. SELECT
  15830. feature_id AS oric_id,
  15831. feature.*
  15832. FROM
  15833. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15834. WHERE cvterm.name = 'oriC';
  15835. --- ************************************************
  15836. --- *** relation: dna_chromosome ***
  15837. --- *** relation type: VIEW ***
  15838. --- *** ***
  15839. --- *** Structural unit composed of a self-repli ***
  15840. --- *** cating, DNA molecule. ***
  15841. --- ************************************************
  15842. ---
  15843. CREATE VIEW dna_chromosome AS
  15844. SELECT
  15845. feature_id AS dna_chromosome_id,
  15846. feature.*
  15847. FROM
  15848. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15849. WHERE cvterm.name = 'double_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_DNA_chromosome' OR cvterm.name = 'linear_double_stranded_DNA_chromosome' OR cvterm.name = 'circular_double_stranded_DNA_chromosome' OR cvterm.name = 'linear_single_stranded_DNA_chromosome' OR cvterm.name = 'circular_single_stranded_DNA_chromosome' OR cvterm.name = 'DNA_chromosome';
  15850. --- ************************************************
  15851. --- *** relation: double_stranded_dna_chromosome ***
  15852. --- *** relation type: VIEW ***
  15853. --- *** ***
  15854. --- *** Structural unit composed of a self-repli ***
  15855. --- *** cating, double-stranded DNA molecule. ***
  15856. --- ************************************************
  15857. ---
  15858. CREATE VIEW double_stranded_dna_chromosome AS
  15859. SELECT
  15860. feature_id AS double_stranded_dna_chromosome_id,
  15861. feature.*
  15862. FROM
  15863. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15864. WHERE cvterm.name = 'linear_double_stranded_DNA_chromosome' OR cvterm.name = 'circular_double_stranded_DNA_chromosome' OR cvterm.name = 'double_stranded_DNA_chromosome';
  15865. --- ************************************************
  15866. --- *** relation: single_stranded_dna_chromosome ***
  15867. --- *** relation type: VIEW ***
  15868. --- *** ***
  15869. --- *** Structural unit composed of a self-repli ***
  15870. --- *** cating, single-stranded DNA molecule. ***
  15871. --- ************************************************
  15872. ---
  15873. CREATE VIEW single_stranded_dna_chromosome AS
  15874. SELECT
  15875. feature_id AS single_stranded_dna_chromosome_id,
  15876. feature.*
  15877. FROM
  15878. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15879. WHERE cvterm.name = 'linear_single_stranded_DNA_chromosome' OR cvterm.name = 'circular_single_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_DNA_chromosome';
  15880. --- ************************************************
  15881. --- *** relation: linear_double_stranded_dna_chromosome ***
  15882. --- *** relation type: VIEW ***
  15883. --- *** ***
  15884. --- *** Structural unit composed of a self-repli ***
  15885. --- *** cating, double-stranded, linear DNA mole ***
  15886. --- *** cule. ***
  15887. --- ************************************************
  15888. ---
  15889. CREATE VIEW linear_double_stranded_dna_chromosome AS
  15890. SELECT
  15891. feature_id AS linear_double_stranded_dna_chromosome_id,
  15892. feature.*
  15893. FROM
  15894. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15895. WHERE cvterm.name = 'linear_double_stranded_DNA_chromosome';
  15896. --- ************************************************
  15897. --- *** relation: circular_double_stranded_dna_chromosome ***
  15898. --- *** relation type: VIEW ***
  15899. --- *** ***
  15900. --- *** Structural unit composed of a self-repli ***
  15901. --- *** cating, double-stranded, circular DNA mo ***
  15902. --- *** lecule. ***
  15903. --- ************************************************
  15904. ---
  15905. CREATE VIEW circular_double_stranded_dna_chromosome AS
  15906. SELECT
  15907. feature_id AS circular_double_stranded_dna_chromosome_id,
  15908. feature.*
  15909. FROM
  15910. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15911. WHERE cvterm.name = 'circular_double_stranded_DNA_chromosome';
  15912. --- ************************************************
  15913. --- *** relation: linear_single_stranded_dna_chromosome ***
  15914. --- *** relation type: VIEW ***
  15915. --- *** ***
  15916. --- *** Structural unit composed of a self-repli ***
  15917. --- *** cating, single-stranded, linear DNA mole ***
  15918. --- *** cule. ***
  15919. --- ************************************************
  15920. ---
  15921. CREATE VIEW linear_single_stranded_dna_chromosome AS
  15922. SELECT
  15923. feature_id AS linear_single_stranded_dna_chromosome_id,
  15924. feature.*
  15925. FROM
  15926. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15927. WHERE cvterm.name = 'linear_single_stranded_DNA_chromosome';
  15928. --- ************************************************
  15929. --- *** relation: circular_single_stranded_dna_chromosome ***
  15930. --- *** relation type: VIEW ***
  15931. --- *** ***
  15932. --- *** Structural unit composed of a self-repli ***
  15933. --- *** cating, single-stranded, circular DNA mo ***
  15934. --- *** lecule. ***
  15935. --- ************************************************
  15936. ---
  15937. CREATE VIEW circular_single_stranded_dna_chromosome AS
  15938. SELECT
  15939. feature_id AS circular_single_stranded_dna_chromosome_id,
  15940. feature.*
  15941. FROM
  15942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15943. WHERE cvterm.name = 'circular_single_stranded_DNA_chromosome';
  15944. --- ************************************************
  15945. --- *** relation: rna_chromosome ***
  15946. --- *** relation type: VIEW ***
  15947. --- *** ***
  15948. --- *** Structural unit composed of a self-repli ***
  15949. --- *** cating, RNA molecule. ***
  15950. --- ************************************************
  15951. ---
  15952. CREATE VIEW rna_chromosome AS
  15953. SELECT
  15954. feature_id AS rna_chromosome_id,
  15955. feature.*
  15956. FROM
  15957. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15958. WHERE cvterm.name = 'single_stranded_RNA_chromosome' OR cvterm.name = 'double_stranded_RNA_chromosome' OR cvterm.name = 'linear_single_stranded_RNA_chromosome' OR cvterm.name = 'circular_single_stranded_RNA_chromosome' OR cvterm.name = 'linear_double_stranded_RNA_chromosome' OR cvterm.name = 'circular_double_stranded_RNA_chromosome' OR cvterm.name = 'RNA_chromosome';
  15959. --- ************************************************
  15960. --- *** relation: single_stranded_rna_chromosome ***
  15961. --- *** relation type: VIEW ***
  15962. --- *** ***
  15963. --- *** Structural unit composed of a self-repli ***
  15964. --- *** cating, single-stranded RNA molecule. ***
  15965. --- ************************************************
  15966. ---
  15967. CREATE VIEW single_stranded_rna_chromosome AS
  15968. SELECT
  15969. feature_id AS single_stranded_rna_chromosome_id,
  15970. feature.*
  15971. FROM
  15972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15973. WHERE cvterm.name = 'linear_single_stranded_RNA_chromosome' OR cvterm.name = 'circular_single_stranded_RNA_chromosome' OR cvterm.name = 'single_stranded_RNA_chromosome';
  15974. --- ************************************************
  15975. --- *** relation: linear_single_stranded_rna_chromosome ***
  15976. --- *** relation type: VIEW ***
  15977. --- *** ***
  15978. --- *** Structural unit composed of a self-repli ***
  15979. --- *** cating, single-stranded, linear RNA mole ***
  15980. --- *** cule. ***
  15981. --- ************************************************
  15982. ---
  15983. CREATE VIEW linear_single_stranded_rna_chromosome AS
  15984. SELECT
  15985. feature_id AS linear_single_stranded_rna_chromosome_id,
  15986. feature.*
  15987. FROM
  15988. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15989. WHERE cvterm.name = 'linear_single_stranded_RNA_chromosome';
  15990. --- ************************************************
  15991. --- *** relation: linear_double_stranded_rna_chromosome ***
  15992. --- *** relation type: VIEW ***
  15993. --- *** ***
  15994. --- *** Structural unit composed of a self-repli ***
  15995. --- *** cating, double-stranded, linear RNA mole ***
  15996. --- *** cule. ***
  15997. --- ************************************************
  15998. ---
  15999. CREATE VIEW linear_double_stranded_rna_chromosome AS
  16000. SELECT
  16001. feature_id AS linear_double_stranded_rna_chromosome_id,
  16002. feature.*
  16003. FROM
  16004. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16005. WHERE cvterm.name = 'linear_double_stranded_RNA_chromosome';
  16006. --- ************************************************
  16007. --- *** relation: double_stranded_rna_chromosome ***
  16008. --- *** relation type: VIEW ***
  16009. --- *** ***
  16010. --- *** Structural unit composed of a self-repli ***
  16011. --- *** cating, double-stranded RNA molecule. ***
  16012. --- ************************************************
  16013. ---
  16014. CREATE VIEW double_stranded_rna_chromosome AS
  16015. SELECT
  16016. feature_id AS double_stranded_rna_chromosome_id,
  16017. feature.*
  16018. FROM
  16019. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16020. WHERE cvterm.name = 'linear_double_stranded_RNA_chromosome' OR cvterm.name = 'circular_double_stranded_RNA_chromosome' OR cvterm.name = 'double_stranded_RNA_chromosome';
  16021. --- ************************************************
  16022. --- *** relation: circular_single_stranded_rna_chromosome ***
  16023. --- *** relation type: VIEW ***
  16024. --- *** ***
  16025. --- *** Structural unit composed of a self-repli ***
  16026. --- *** cating, single-stranded, circular DNA mo ***
  16027. --- *** lecule. ***
  16028. --- ************************************************
  16029. ---
  16030. CREATE VIEW circular_single_stranded_rna_chromosome AS
  16031. SELECT
  16032. feature_id AS circular_single_stranded_rna_chromosome_id,
  16033. feature.*
  16034. FROM
  16035. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16036. WHERE cvterm.name = 'circular_single_stranded_RNA_chromosome';
  16037. --- ************************************************
  16038. --- *** relation: circular_double_stranded_rna_chromosome ***
  16039. --- *** relation type: VIEW ***
  16040. --- *** ***
  16041. --- *** Structural unit composed of a self-repli ***
  16042. --- *** cating, double-stranded, circular RNA mo ***
  16043. --- *** lecule. ***
  16044. --- ************************************************
  16045. ---
  16046. CREATE VIEW circular_double_stranded_rna_chromosome AS
  16047. SELECT
  16048. feature_id AS circular_double_stranded_rna_chromosome_id,
  16049. feature.*
  16050. FROM
  16051. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16052. WHERE cvterm.name = 'circular_double_stranded_RNA_chromosome';
  16053. --- ************************************************
  16054. --- *** relation: insertion_sequence ***
  16055. --- *** relation type: VIEW ***
  16056. --- *** ***
  16057. --- *** A terminal_inverted_repeat_element that ***
  16058. --- *** is bacterial and only encodes the functi ***
  16059. --- *** ons required for its transposition betwe ***
  16060. --- *** en these inverted repeats. ***
  16061. --- ************************************************
  16062. ---
  16063. CREATE VIEW insertion_sequence AS
  16064. SELECT
  16065. feature_id AS insertion_sequence_id,
  16066. feature.*
  16067. FROM
  16068. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16069. WHERE cvterm.name = 'insertion_sequence';
  16070. --- ************************************************
  16071. --- *** relation: minicircle_gene ***
  16072. --- *** relation type: VIEW ***
  16073. --- *** ***
  16074. --- ************************************************
  16075. ---
  16076. CREATE VIEW minicircle_gene AS
  16077. SELECT
  16078. feature_id AS minicircle_gene_id,
  16079. feature.*
  16080. FROM
  16081. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16082. WHERE cvterm.name = 'minicircle_gene';
  16083. --- ************************************************
  16084. --- *** relation: cryptic ***
  16085. --- *** relation type: VIEW ***
  16086. --- *** ***
  16087. --- *** A feature_attribute describing a feature ***
  16088. --- *** that is not manifest under normal condi ***
  16089. --- *** tions. ***
  16090. --- ************************************************
  16091. ---
  16092. CREATE VIEW cryptic AS
  16093. SELECT
  16094. feature_id AS cryptic_id,
  16095. feature.*
  16096. FROM
  16097. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16098. WHERE cvterm.name = 'cryptic';
  16099. --- ************************************************
  16100. --- *** relation: anchor_binding_site ***
  16101. --- *** relation type: VIEW ***
  16102. --- *** ***
  16103. --- ************************************************
  16104. ---
  16105. CREATE VIEW anchor_binding_site AS
  16106. SELECT
  16107. feature_id AS anchor_binding_site_id,
  16108. feature.*
  16109. FROM
  16110. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16111. WHERE cvterm.name = 'anchor_binding_site';
  16112. --- ************************************************
  16113. --- *** relation: template_region ***
  16114. --- *** relation type: VIEW ***
  16115. --- *** ***
  16116. --- *** A region of a guide_RNA that specifies t ***
  16117. --- *** he insertions and deletions of bases in ***
  16118. --- *** the editing of a target mRNA. ***
  16119. --- ************************************************
  16120. ---
  16121. CREATE VIEW template_region AS
  16122. SELECT
  16123. feature_id AS template_region_id,
  16124. feature.*
  16125. FROM
  16126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16127. WHERE cvterm.name = 'template_region';
  16128. --- ************************************************
  16129. --- *** relation: grna_encoding ***
  16130. --- *** relation type: VIEW ***
  16131. --- *** ***
  16132. --- *** A non-protein_coding gene that encodes a ***
  16133. --- *** guide_RNA. ***
  16134. --- ************************************************
  16135. ---
  16136. CREATE VIEW grna_encoding AS
  16137. SELECT
  16138. feature_id AS grna_encoding_id,
  16139. feature.*
  16140. FROM
  16141. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16142. WHERE cvterm.name = 'gRNA_encoding';
  16143. --- ************************************************
  16144. --- *** relation: minicircle ***
  16145. --- *** relation type: VIEW ***
  16146. --- *** ***
  16147. --- *** A minicircle is a replicon, part of a ki ***
  16148. --- *** netoplast, that encodes for guide RNAs. ***
  16149. --- ************************************************
  16150. ---
  16151. CREATE VIEW minicircle AS
  16152. SELECT
  16153. feature_id AS minicircle_id,
  16154. feature.*
  16155. FROM
  16156. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16157. WHERE cvterm.name = 'minicircle';
  16158. --- ************************************************
  16159. --- *** relation: rho_dependent_bacterial_terminator ***
  16160. --- *** relation type: VIEW ***
  16161. --- *** ***
  16162. --- ************************************************
  16163. ---
  16164. CREATE VIEW rho_dependent_bacterial_terminator AS
  16165. SELECT
  16166. feature_id AS rho_dependent_bacterial_terminator_id,
  16167. feature.*
  16168. FROM
  16169. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16170. WHERE cvterm.name = 'rho_dependent_bacterial_terminator';
  16171. --- ************************************************
  16172. --- *** relation: rho_independent_bacterial_terminator ***
  16173. --- *** relation type: VIEW ***
  16174. --- *** ***
  16175. --- ************************************************
  16176. ---
  16177. CREATE VIEW rho_independent_bacterial_terminator AS
  16178. SELECT
  16179. feature_id AS rho_independent_bacterial_terminator_id,
  16180. feature.*
  16181. FROM
  16182. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16183. WHERE cvterm.name = 'rho_independent_bacterial_terminator';
  16184. --- ************************************************
  16185. --- *** relation: strand_attribute ***
  16186. --- *** relation type: VIEW ***
  16187. --- *** ***
  16188. --- ************************************************
  16189. ---
  16190. CREATE VIEW strand_attribute AS
  16191. SELECT
  16192. feature_id AS strand_attribute_id,
  16193. feature.*
  16194. FROM
  16195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16196. WHERE cvterm.name = 'single' OR cvterm.name = 'double' OR cvterm.name = 'strand_attribute';
  16197. --- ************************************************
  16198. --- *** relation: single ***
  16199. --- *** relation type: VIEW ***
  16200. --- *** ***
  16201. --- ************************************************
  16202. ---
  16203. CREATE VIEW single AS
  16204. SELECT
  16205. feature_id AS single_id,
  16206. feature.*
  16207. FROM
  16208. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16209. WHERE cvterm.name = 'single';
  16210. --- ************************************************
  16211. --- *** relation: double ***
  16212. --- *** relation type: VIEW ***
  16213. --- *** ***
  16214. --- ************************************************
  16215. ---
  16216. CREATE VIEW double AS
  16217. SELECT
  16218. feature_id AS double_id,
  16219. feature.*
  16220. FROM
  16221. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16222. WHERE cvterm.name = 'double';
  16223. --- ************************************************
  16224. --- *** relation: topology_attribute ***
  16225. --- *** relation type: VIEW ***
  16226. --- *** ***
  16227. --- ************************************************
  16228. ---
  16229. CREATE VIEW topology_attribute AS
  16230. SELECT
  16231. feature_id AS topology_attribute_id,
  16232. feature.*
  16233. FROM
  16234. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16235. WHERE cvterm.name = 'linear' OR cvterm.name = 'circular' OR cvterm.name = 'topology_attribute';
  16236. --- ************************************************
  16237. --- *** relation: linear ***
  16238. --- *** relation type: VIEW ***
  16239. --- *** ***
  16240. --- *** A quality of a nucleotide polymer that h ***
  16241. --- *** as a 3'-terminal residue and a 5'-termin ***
  16242. --- *** al residue. ***
  16243. --- ************************************************
  16244. ---
  16245. CREATE VIEW linear AS
  16246. SELECT
  16247. feature_id AS linear_id,
  16248. feature.*
  16249. FROM
  16250. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16251. WHERE cvterm.name = 'linear';
  16252. --- ************************************************
  16253. --- *** relation: circular ***
  16254. --- *** relation type: VIEW ***
  16255. --- *** ***
  16256. --- *** A quality of a nucleotide polymer that h ***
  16257. --- *** as no terminal nucleotide residues. ***
  16258. --- ************************************************
  16259. ---
  16260. CREATE VIEW circular AS
  16261. SELECT
  16262. feature_id AS circular_id,
  16263. feature.*
  16264. FROM
  16265. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16266. WHERE cvterm.name = 'circular';
  16267. --- ************************************************
  16268. --- *** relation: class_ii_rna ***
  16269. --- *** relation type: VIEW ***
  16270. --- *** ***
  16271. --- *** Small non-coding RNA (59-60 nt long) con ***
  16272. --- *** taining 5' and 3' ends that are predicte ***
  16273. --- *** d to come together to form a stem struct ***
  16274. --- *** ure. Identified in the social amoeba Dic ***
  16275. --- *** tyostelium discoideum and localized in t ***
  16276. --- *** he cytoplasm. ***
  16277. --- ************************************************
  16278. ---
  16279. CREATE VIEW class_ii_rna AS
  16280. SELECT
  16281. feature_id AS class_ii_rna_id,
  16282. feature.*
  16283. FROM
  16284. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16285. WHERE cvterm.name = 'class_II_RNA';
  16286. --- ************************************************
  16287. --- *** relation: class_i_rna ***
  16288. --- *** relation type: VIEW ***
  16289. --- *** ***
  16290. --- *** Small non-coding RNA (55-65 nt long) con ***
  16291. --- *** taining highly conserved 5' and 3' ends ***
  16292. --- *** (16 and 8 nt, respectively) that are pre ***
  16293. --- *** dicted to come together to form a stem s ***
  16294. --- *** tructure. Identified in the social amoeb ***
  16295. --- *** a Dictyostelium discoideum and localized ***
  16296. --- *** in the cytoplasm. ***
  16297. --- ************************************************
  16298. ---
  16299. CREATE VIEW class_i_rna AS
  16300. SELECT
  16301. feature_id AS class_i_rna_id,
  16302. feature.*
  16303. FROM
  16304. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16305. WHERE cvterm.name = 'class_I_RNA';
  16306. --- ************************************************
  16307. --- *** relation: genomic_dna ***
  16308. --- *** relation type: VIEW ***
  16309. --- *** ***
  16310. --- ************************************************
  16311. ---
  16312. CREATE VIEW genomic_dna AS
  16313. SELECT
  16314. feature_id AS genomic_dna_id,
  16315. feature.*
  16316. FROM
  16317. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16318. WHERE cvterm.name = 'genomic_DNA';
  16319. --- ************************************************
  16320. --- *** relation: bac_cloned_genomic_insert ***
  16321. --- *** relation type: VIEW ***
  16322. --- *** ***
  16323. --- ************************************************
  16324. ---
  16325. CREATE VIEW bac_cloned_genomic_insert AS
  16326. SELECT
  16327. feature_id AS bac_cloned_genomic_insert_id,
  16328. feature.*
  16329. FROM
  16330. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16331. WHERE cvterm.name = 'BAC_cloned_genomic_insert';
  16332. --- ************************************************
  16333. --- *** relation: consensus ***
  16334. --- *** relation type: VIEW ***
  16335. --- *** ***
  16336. --- ************************************************
  16337. ---
  16338. CREATE VIEW consensus AS
  16339. SELECT
  16340. feature_id AS consensus_id,
  16341. feature.*
  16342. FROM
  16343. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16344. WHERE cvterm.name = 'consensus';
  16345. --- ************************************************
  16346. --- *** relation: consensus_region ***
  16347. --- *** relation type: VIEW ***
  16348. --- *** ***
  16349. --- ************************************************
  16350. ---
  16351. CREATE VIEW consensus_region AS
  16352. SELECT
  16353. feature_id AS consensus_region_id,
  16354. feature.*
  16355. FROM
  16356. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16357. WHERE cvterm.name = 'consensus_mRNA' OR cvterm.name = 'consensus_region';
  16358. --- ************************************************
  16359. --- *** relation: consensus_mrna ***
  16360. --- *** relation type: VIEW ***
  16361. --- *** ***
  16362. --- ************************************************
  16363. ---
  16364. CREATE VIEW consensus_mrna AS
  16365. SELECT
  16366. feature_id AS consensus_mrna_id,
  16367. feature.*
  16368. FROM
  16369. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16370. WHERE cvterm.name = 'consensus_mRNA';
  16371. --- ************************************************
  16372. --- *** relation: predicted_gene ***
  16373. --- *** relation type: VIEW ***
  16374. --- *** ***
  16375. --- ************************************************
  16376. ---
  16377. CREATE VIEW predicted_gene AS
  16378. SELECT
  16379. feature_id AS predicted_gene_id,
  16380. feature.*
  16381. FROM
  16382. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16383. WHERE cvterm.name = 'predicted_gene';
  16384. --- ************************************************
  16385. --- *** relation: gene_fragment ***
  16386. --- *** relation type: VIEW ***
  16387. --- *** ***
  16388. --- ************************************************
  16389. ---
  16390. CREATE VIEW gene_fragment AS
  16391. SELECT
  16392. feature_id AS gene_fragment_id,
  16393. feature.*
  16394. FROM
  16395. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16396. WHERE cvterm.name = 'gene_fragment';
  16397. --- ************************************************
  16398. --- *** relation: recursive_splice_site ***
  16399. --- *** relation type: VIEW ***
  16400. --- *** ***
  16401. --- *** A recursive splice site is a splice site ***
  16402. --- *** which subdivides a large intron. Recurs ***
  16403. --- *** ive splicing is a mechanism that splices ***
  16404. --- *** large introns by sub dividing the intro ***
  16405. --- *** n at non exonic elements and alternate e ***
  16406. --- *** xons. ***
  16407. --- ************************************************
  16408. ---
  16409. CREATE VIEW recursive_splice_site AS
  16410. SELECT
  16411. feature_id AS recursive_splice_site_id,
  16412. feature.*
  16413. FROM
  16414. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16415. WHERE cvterm.name = 'recursive_splice_site';
  16416. --- ************************************************
  16417. --- *** relation: bac_end ***
  16418. --- *** relation type: VIEW ***
  16419. --- *** ***
  16420. --- *** A region of sequence from the end of a B ***
  16421. --- *** AC clone that may provide a highly speci ***
  16422. --- *** fic marker. ***
  16423. --- ************************************************
  16424. ---
  16425. CREATE VIEW bac_end AS
  16426. SELECT
  16427. feature_id AS bac_end_id,
  16428. feature.*
  16429. FROM
  16430. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16431. WHERE cvterm.name = 'BAC_end';
  16432. --- ************************************************
  16433. --- *** relation: rrna_16s ***
  16434. --- *** relation type: VIEW ***
  16435. --- *** ***
  16436. --- *** A large polynucleotide in Bacteria and A ***
  16437. --- *** rchaea, which functions as the small sub ***
  16438. --- *** unit of the ribosome. ***
  16439. --- ************************************************
  16440. ---
  16441. CREATE VIEW rrna_16s AS
  16442. SELECT
  16443. feature_id AS rrna_16s_id,
  16444. feature.*
  16445. FROM
  16446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16447. WHERE cvterm.name = 'rRNA_16S';
  16448. --- ************************************************
  16449. --- *** relation: rrna_23s ***
  16450. --- *** relation type: VIEW ***
  16451. --- *** ***
  16452. --- *** A large polynucleotide in Bacteria and A ***
  16453. --- *** rchaea, which functions as the large sub ***
  16454. --- *** unit of the ribosome. ***
  16455. --- ************************************************
  16456. ---
  16457. CREATE VIEW rrna_23s AS
  16458. SELECT
  16459. feature_id AS rrna_23s_id,
  16460. feature.*
  16461. FROM
  16462. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16463. WHERE cvterm.name = 'rRNA_23S';
  16464. --- ************************************************
  16465. --- *** relation: rrna_25s ***
  16466. --- *** relation type: VIEW ***
  16467. --- *** ***
  16468. --- *** A large polynucleotide which functions a ***
  16469. --- *** s part of the large subunit of the ribos ***
  16470. --- *** ome in some eukaryotes. ***
  16471. --- ************************************************
  16472. ---
  16473. CREATE VIEW rrna_25s AS
  16474. SELECT
  16475. feature_id AS rrna_25s_id,
  16476. feature.*
  16477. FROM
  16478. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16479. WHERE cvterm.name = 'rRNA_25S';
  16480. --- ************************************************
  16481. --- *** relation: solo_ltr ***
  16482. --- *** relation type: VIEW ***
  16483. --- *** ***
  16484. --- *** A recombination product between the 2 LT ***
  16485. --- *** R of the same element. ***
  16486. --- ************************************************
  16487. ---
  16488. CREATE VIEW solo_ltr AS
  16489. SELECT
  16490. feature_id AS solo_ltr_id,
  16491. feature.*
  16492. FROM
  16493. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16494. WHERE cvterm.name = 'solo_LTR';
  16495. --- ************************************************
  16496. --- *** relation: low_complexity ***
  16497. --- *** relation type: VIEW ***
  16498. --- *** ***
  16499. --- ************************************************
  16500. ---
  16501. CREATE VIEW low_complexity AS
  16502. SELECT
  16503. feature_id AS low_complexity_id,
  16504. feature.*
  16505. FROM
  16506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16507. WHERE cvterm.name = 'low_complexity';
  16508. --- ************************************************
  16509. --- *** relation: low_complexity_region ***
  16510. --- *** relation type: VIEW ***
  16511. --- *** ***
  16512. --- ************************************************
  16513. ---
  16514. CREATE VIEW low_complexity_region AS
  16515. SELECT
  16516. feature_id AS low_complexity_region_id,
  16517. feature.*
  16518. FROM
  16519. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16520. WHERE cvterm.name = 'low_complexity_region';
  16521. --- ************************************************
  16522. --- *** relation: prophage ***
  16523. --- *** relation type: VIEW ***
  16524. --- *** ***
  16525. --- *** A phage genome after it has established ***
  16526. --- *** in the host genome in a latent/immune st ***
  16527. --- *** ate either as a plasmid or as an integra ***
  16528. --- *** ted "island". ***
  16529. --- ************************************************
  16530. ---
  16531. CREATE VIEW prophage AS
  16532. SELECT
  16533. feature_id AS prophage_id,
  16534. feature.*
  16535. FROM
  16536. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16537. WHERE cvterm.name = 'prophage';
  16538. --- ************************************************
  16539. --- *** relation: cryptic_prophage ***
  16540. --- *** relation type: VIEW ***
  16541. --- *** ***
  16542. --- *** A remnant of an integrated prophage in t ***
  16543. --- *** he host genome or an "island" in the hos ***
  16544. --- *** t genome that includes phage like-genes. ***
  16545. --- ************************************************
  16546. ---
  16547. CREATE VIEW cryptic_prophage AS
  16548. SELECT
  16549. feature_id AS cryptic_prophage_id,
  16550. feature.*
  16551. FROM
  16552. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16553. WHERE cvterm.name = 'cryptic_prophage';
  16554. --- ************************************************
  16555. --- *** relation: tetraloop ***
  16556. --- *** relation type: VIEW ***
  16557. --- *** ***
  16558. --- *** A base-paired stem with loop of 4 non-hy ***
  16559. --- *** drogen bonded nucleotides. ***
  16560. --- ************************************************
  16561. ---
  16562. CREATE VIEW tetraloop AS
  16563. SELECT
  16564. feature_id AS tetraloop_id,
  16565. feature.*
  16566. FROM
  16567. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16568. WHERE cvterm.name = 'tetraloop';
  16569. --- ************************************************
  16570. --- *** relation: dna_constraint_sequence ***
  16571. --- *** relation type: VIEW ***
  16572. --- *** ***
  16573. --- *** A double-stranded DNA used to control ma ***
  16574. --- *** cromolecular structure and function. ***
  16575. --- ************************************************
  16576. ---
  16577. CREATE VIEW dna_constraint_sequence AS
  16578. SELECT
  16579. feature_id AS dna_constraint_sequence_id,
  16580. feature.*
  16581. FROM
  16582. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16583. WHERE cvterm.name = 'DNA_constraint_sequence';
  16584. --- ************************************************
  16585. --- *** relation: i_motif ***
  16586. --- *** relation type: VIEW ***
  16587. --- *** ***
  16588. --- *** A cytosine rich domain whereby strands a ***
  16589. --- *** ssociate both inter- and intramolecularl ***
  16590. --- *** y at moderately acidic pH. ***
  16591. --- ************************************************
  16592. ---
  16593. CREATE VIEW i_motif AS
  16594. SELECT
  16595. feature_id AS i_motif_id,
  16596. feature.*
  16597. FROM
  16598. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16599. WHERE cvterm.name = 'i_motif';
  16600. --- ************************************************
  16601. --- *** relation: pna_oligo ***
  16602. --- *** relation type: VIEW ***
  16603. --- *** ***
  16604. --- *** Peptide nucleic acid, is a chemical not ***
  16605. --- *** known to occur naturally but is artifici ***
  16606. --- *** ally synthesized and used in some biolog ***
  16607. --- *** ical research and medical treatments. Th ***
  16608. --- *** e PNA backbone is composed of repeating ***
  16609. --- *** N-(2-aminoethyl)-glycine units linked by ***
  16610. --- *** peptide bonds. The purine and pyrimidin ***
  16611. --- *** e bases are linked to the backbone by me ***
  16612. --- *** thylene carbonyl bonds. ***
  16613. --- ************************************************
  16614. ---
  16615. CREATE VIEW pna_oligo AS
  16616. SELECT
  16617. feature_id AS pna_oligo_id,
  16618. feature.*
  16619. FROM
  16620. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16621. WHERE cvterm.name = 'PNA_oligo';
  16622. --- ************************************************
  16623. --- *** relation: dnazyme ***
  16624. --- *** relation type: VIEW ***
  16625. --- *** ***
  16626. --- *** A DNA sequence with catalytic activity. ***
  16627. --- ************************************************
  16628. ---
  16629. CREATE VIEW dnazyme AS
  16630. SELECT
  16631. feature_id AS dnazyme_id,
  16632. feature.*
  16633. FROM
  16634. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16635. WHERE cvterm.name = 'DNAzyme';
  16636. --- ************************************************
  16637. --- *** relation: mnp ***
  16638. --- *** relation type: VIEW ***
  16639. --- *** ***
  16640. --- *** A multiple nucleotide polymorphism with ***
  16641. --- *** alleles of common length > 1, for exampl ***
  16642. --- *** e AAA/TTT. ***
  16643. --- ************************************************
  16644. ---
  16645. CREATE VIEW mnp AS
  16646. SELECT
  16647. feature_id AS mnp_id,
  16648. feature.*
  16649. FROM
  16650. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16651. WHERE cvterm.name = 'MNP';
  16652. --- ************************************************
  16653. --- *** relation: intron_domain ***
  16654. --- *** relation type: VIEW ***
  16655. --- *** ***
  16656. --- ************************************************
  16657. ---
  16658. CREATE VIEW intron_domain AS
  16659. SELECT
  16660. feature_id AS intron_domain_id,
  16661. feature.*
  16662. FROM
  16663. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16664. WHERE cvterm.name = 'internal_guide_sequence' OR cvterm.name = 'mirtron' OR cvterm.name = 'intron_domain';
  16665. --- ************************************************
  16666. --- *** relation: wobble_base_pair ***
  16667. --- *** relation type: VIEW ***
  16668. --- *** ***
  16669. --- *** A type of non-canonical base pairing, mo ***
  16670. --- *** st commonly between G and U, which is im ***
  16671. --- *** portant for the secondary structure of R ***
  16672. --- *** NAs. It has similar thermodynamic stabil ***
  16673. --- *** ity to the Watson-Crick pairing. Wobble ***
  16674. --- *** base pairs only have two hydrogen bonds. ***
  16675. --- *** Other wobble base pair possibilities ar ***
  16676. --- *** e I-A, I-U and I-C. ***
  16677. --- ************************************************
  16678. ---
  16679. CREATE VIEW wobble_base_pair AS
  16680. SELECT
  16681. feature_id AS wobble_base_pair_id,
  16682. feature.*
  16683. FROM
  16684. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16685. WHERE cvterm.name = 'wobble_base_pair';
  16686. --- ************************************************
  16687. --- *** relation: internal_guide_sequence ***
  16688. --- *** relation type: VIEW ***
  16689. --- *** ***
  16690. --- *** A purine-rich sequence in the group I in ***
  16691. --- *** trons which determines the locations of ***
  16692. --- *** the splice sites in group I intron splic ***
  16693. --- *** ing and has catalytic activity. ***
  16694. --- ************************************************
  16695. ---
  16696. CREATE VIEW internal_guide_sequence AS
  16697. SELECT
  16698. feature_id AS internal_guide_sequence_id,
  16699. feature.*
  16700. FROM
  16701. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16702. WHERE cvterm.name = 'internal_guide_sequence';
  16703. --- ************************************************
  16704. --- *** relation: silent_mutation ***
  16705. --- *** relation type: VIEW ***
  16706. --- *** ***
  16707. --- *** A sequence variant that does not affect ***
  16708. --- *** protein function. Silent mutations may o ***
  16709. --- *** ccur in genic ( CDS, UTR, intron etc) an ***
  16710. --- *** d intergenic regions. Silent mutations m ***
  16711. --- *** ay have affects on processes such as spl ***
  16712. --- *** icing and regulation. ***
  16713. --- ************************************************
  16714. ---
  16715. CREATE VIEW silent_mutation AS
  16716. SELECT
  16717. feature_id AS silent_mutation_id,
  16718. feature.*
  16719. FROM
  16720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16721. WHERE cvterm.name = 'silent_mutation';
  16722. --- ************************************************
  16723. --- *** relation: epitope ***
  16724. --- *** relation type: VIEW ***
  16725. --- *** ***
  16726. --- *** A binding site that, in the molecule, in ***
  16727. --- *** teracts selectively and non-covalently w ***
  16728. --- *** ith antibodies, B cells or T cells. ***
  16729. --- ************************************************
  16730. ---
  16731. CREATE VIEW epitope AS
  16732. SELECT
  16733. feature_id AS epitope_id,
  16734. feature.*
  16735. FROM
  16736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16737. WHERE cvterm.name = 'epitope';
  16738. --- ************************************************
  16739. --- *** relation: copy_number_variation ***
  16740. --- *** relation type: VIEW ***
  16741. --- *** ***
  16742. --- *** A variation that increases or decreases ***
  16743. --- *** the copy number of a given region. ***
  16744. --- ************************************************
  16745. ---
  16746. CREATE VIEW copy_number_variation AS
  16747. SELECT
  16748. feature_id AS copy_number_variation_id,
  16749. feature.*
  16750. FROM
  16751. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16752. WHERE cvterm.name = 'copy_number_gain' OR cvterm.name = 'copy_number_loss' OR cvterm.name = 'copy_number_variation';
  16753. --- ************************************************
  16754. --- *** relation: chromosome_breakpoint ***
  16755. --- *** relation type: VIEW ***
  16756. --- *** ***
  16757. --- ************************************************
  16758. ---
  16759. CREATE VIEW chromosome_breakpoint AS
  16760. SELECT
  16761. feature_id AS chromosome_breakpoint_id,
  16762. feature.*
  16763. FROM
  16764. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16765. WHERE cvterm.name = 'inversion_breakpoint' OR cvterm.name = 'translocation_breakpoint' OR cvterm.name = 'insertion_breakpoint' OR cvterm.name = 'deletion_breakpoint' OR cvterm.name = 'chromosome_breakpoint';
  16766. --- ************************************************
  16767. --- *** relation: inversion_breakpoint ***
  16768. --- *** relation type: VIEW ***
  16769. --- *** ***
  16770. --- *** The point within a chromosome where an i ***
  16771. --- *** nversion begins or ends. ***
  16772. --- ************************************************
  16773. ---
  16774. CREATE VIEW inversion_breakpoint AS
  16775. SELECT
  16776. feature_id AS inversion_breakpoint_id,
  16777. feature.*
  16778. FROM
  16779. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16780. WHERE cvterm.name = 'inversion_breakpoint';
  16781. --- ************************************************
  16782. --- *** relation: allele ***
  16783. --- *** relation type: VIEW ***
  16784. --- *** ***
  16785. --- *** An allele is one of a set of coexisting ***
  16786. --- *** sequence variants of a gene. ***
  16787. --- ************************************************
  16788. ---
  16789. CREATE VIEW allele AS
  16790. SELECT
  16791. feature_id AS allele_id,
  16792. feature.*
  16793. FROM
  16794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16795. WHERE cvterm.name = 'polymorphic_sequence_variant' OR cvterm.name = 'allele';
  16796. --- ************************************************
  16797. --- *** relation: haplotype ***
  16798. --- *** relation type: VIEW ***
  16799. --- *** ***
  16800. --- *** A haplotype is one of a set of coexistin ***
  16801. --- *** g sequence variants of a haplotype block ***
  16802. --- *** . ***
  16803. --- ************************************************
  16804. ---
  16805. CREATE VIEW haplotype AS
  16806. SELECT
  16807. feature_id AS haplotype_id,
  16808. feature.*
  16809. FROM
  16810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16811. WHERE cvterm.name = 'haplotype';
  16812. --- ************************************************
  16813. --- *** relation: polymorphic_sequence_variant ***
  16814. --- *** relation type: VIEW ***
  16815. --- *** ***
  16816. --- *** A sequence variant that is segregating i ***
  16817. --- *** n one or more natural populations of a s ***
  16818. --- *** pecies. ***
  16819. --- ************************************************
  16820. ---
  16821. CREATE VIEW polymorphic_sequence_variant AS
  16822. SELECT
  16823. feature_id AS polymorphic_sequence_variant_id,
  16824. feature.*
  16825. FROM
  16826. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16827. WHERE cvterm.name = 'polymorphic_sequence_variant';
  16828. --- ************************************************
  16829. --- *** relation: genome ***
  16830. --- *** relation type: VIEW ***
  16831. --- *** ***
  16832. --- *** A genome is the sum of genetic material ***
  16833. --- *** within a cell or virion. ***
  16834. --- ************************************************
  16835. ---
  16836. CREATE VIEW genome AS
  16837. SELECT
  16838. feature_id AS genome_id,
  16839. feature.*
  16840. FROM
  16841. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16842. WHERE cvterm.name = 'kinetoplast' OR cvterm.name = 'reference_genome' OR cvterm.name = 'variant_genome' OR cvterm.name = 'chromosomally_aberrant_genome' OR cvterm.name = 'genome';
  16843. --- ************************************************
  16844. --- *** relation: so_genotype ***
  16845. --- *** relation type: VIEW ***
  16846. --- *** ***
  16847. --- *** A genotype is a variant genome, complete ***
  16848. --- *** or incomplete. ***
  16849. --- ************************************************
  16850. ---
  16851. CREATE VIEW so_genotype AS
  16852. SELECT
  16853. feature_id AS so_genotype_id,
  16854. feature.*
  16855. FROM
  16856. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16857. WHERE cvterm.name = 'genotype';
  16858. --- ************************************************
  16859. --- *** relation: diplotype ***
  16860. --- *** relation type: VIEW ***
  16861. --- *** ***
  16862. --- *** A diplotype is a pair of haplotypes from ***
  16863. --- *** a given individual. It is a genotype wh ***
  16864. --- *** ere the phase is known. ***
  16865. --- ************************************************
  16866. ---
  16867. CREATE VIEW diplotype AS
  16868. SELECT
  16869. feature_id AS diplotype_id,
  16870. feature.*
  16871. FROM
  16872. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16873. WHERE cvterm.name = 'diplotype';
  16874. --- ************************************************
  16875. --- *** relation: direction_attribute ***
  16876. --- *** relation type: VIEW ***
  16877. --- *** ***
  16878. --- ************************************************
  16879. ---
  16880. CREATE VIEW direction_attribute AS
  16881. SELECT
  16882. feature_id AS direction_attribute_id,
  16883. feature.*
  16884. FROM
  16885. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16886. WHERE cvterm.name = 'forward' OR cvterm.name = 'reverse' OR cvterm.name = 'direction_attribute';
  16887. --- ************************************************
  16888. --- *** relation: forward ***
  16889. --- *** relation type: VIEW ***
  16890. --- *** ***
  16891. --- *** Forward is an attribute of the feature, ***
  16892. --- *** where the feature is in the 5' to 3' dir ***
  16893. --- *** ection. ***
  16894. --- ************************************************
  16895. ---
  16896. CREATE VIEW forward AS
  16897. SELECT
  16898. feature_id AS forward_id,
  16899. feature.*
  16900. FROM
  16901. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16902. WHERE cvterm.name = 'forward';
  16903. --- ************************************************
  16904. --- *** relation: reverse ***
  16905. --- *** relation type: VIEW ***
  16906. --- *** ***
  16907. --- *** Reverse is an attribute of the feature, ***
  16908. --- *** where the feature is in the 3' to 5' dir ***
  16909. --- *** ection. Again could be applied to primer ***
  16910. --- *** . ***
  16911. --- ************************************************
  16912. ---
  16913. CREATE VIEW reverse AS
  16914. SELECT
  16915. feature_id AS reverse_id,
  16916. feature.*
  16917. FROM
  16918. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16919. WHERE cvterm.name = 'reverse';
  16920. --- ************************************************
  16921. --- *** relation: mitochondrial_dna ***
  16922. --- *** relation type: VIEW ***
  16923. --- *** ***
  16924. --- ************************************************
  16925. ---
  16926. CREATE VIEW mitochondrial_dna AS
  16927. SELECT
  16928. feature_id AS mitochondrial_dna_id,
  16929. feature.*
  16930. FROM
  16931. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16932. WHERE cvterm.name = 'mitochondrial_DNA';
  16933. --- ************************************************
  16934. --- *** relation: chloroplast_dna ***
  16935. --- *** relation type: VIEW ***
  16936. --- *** ***
  16937. --- ************************************************
  16938. ---
  16939. CREATE VIEW chloroplast_dna AS
  16940. SELECT
  16941. feature_id AS chloroplast_dna_id,
  16942. feature.*
  16943. FROM
  16944. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16945. WHERE cvterm.name = 'chloroplast_DNA';
  16946. --- ************************************************
  16947. --- *** relation: mirtron ***
  16948. --- *** relation type: VIEW ***
  16949. --- *** ***
  16950. --- *** A de-branched intron which mimics the st ***
  16951. --- *** ructure of pre-miRNA and enters the miRN ***
  16952. --- *** A processing pathway without Drosha medi ***
  16953. --- *** ated cleavage. ***
  16954. --- ************************************************
  16955. ---
  16956. CREATE VIEW mirtron AS
  16957. SELECT
  16958. feature_id AS mirtron_id,
  16959. feature.*
  16960. FROM
  16961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16962. WHERE cvterm.name = 'mirtron';
  16963. --- ************************************************
  16964. --- *** relation: pirna ***
  16965. --- *** relation type: VIEW ***
  16966. --- *** ***
  16967. --- *** A small non coding RNA, part of a silenc ***
  16968. --- *** ing system that prevents the spreading o ***
  16969. --- *** f selfish genetic elements. ***
  16970. --- ************************************************
  16971. ---
  16972. CREATE VIEW pirna AS
  16973. SELECT
  16974. feature_id AS pirna_id,
  16975. feature.*
  16976. FROM
  16977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16978. WHERE cvterm.name = 'piRNA';
  16979. --- ************************************************
  16980. --- *** relation: arginyl_trna ***
  16981. --- *** relation type: VIEW ***
  16982. --- *** ***
  16983. --- *** A tRNA sequence that has an arginine ant ***
  16984. --- *** icodon, and a 3' arginine binding region ***
  16985. --- *** . ***
  16986. --- ************************************************
  16987. ---
  16988. CREATE VIEW arginyl_trna AS
  16989. SELECT
  16990. feature_id AS arginyl_trna_id,
  16991. feature.*
  16992. FROM
  16993. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16994. WHERE cvterm.name = 'arginyl_tRNA';
  16995. --- ************************************************
  16996. --- *** relation: mobile_genetic_element ***
  16997. --- *** relation type: VIEW ***
  16998. --- *** ***
  16999. --- *** A nucleotide region with either intra-ge ***
  17000. --- *** nome or intracellular moblity, of varyin ***
  17001. --- *** g length, which often carry the informat ***
  17002. --- *** ion necessary for transfer and recombina ***
  17003. --- *** tion with the host genome. ***
  17004. --- ************************************************
  17005. ---
  17006. CREATE VIEW mobile_genetic_element AS
  17007. SELECT
  17008. feature_id AS mobile_genetic_element_id,
  17009. feature.*
  17010. FROM
  17011. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17012. WHERE cvterm.name = 'mobile_intron' OR cvterm.name = 'extrachromosomal_mobile_genetic_element' OR cvterm.name = 'integrated_mobile_genetic_element' OR cvterm.name = 'natural_transposable_element' OR cvterm.name = 'viral_sequence' OR cvterm.name = 'natural_plasmid' OR cvterm.name = 'phage_sequence' OR cvterm.name = 'ds_RNA_viral_sequence' OR cvterm.name = 'ds_DNA_viral_sequence' OR cvterm.name = 'ss_RNA_viral_sequence' OR cvterm.name = 'negative_sense_ssRNA_viral_sequence' OR cvterm.name = 'positive_sense_ssRNA_viral_sequence' OR cvterm.name = 'ambisense_ssRNA_viral_sequence' OR cvterm.name = 'transposable_element' OR cvterm.name = 'proviral_region' OR cvterm.name = 'integron' OR cvterm.name = 'genomic_island' OR cvterm.name = 'integrated_plasmid' OR cvterm.name = 'cointegrated_plasmid' OR cvterm.name = 'retrotransposon' OR cvterm.name = 'DNA_transposon' OR cvterm.name = 'foreign_transposable_element' OR cvterm.name = 'transgenic_transposable_element' OR cvterm.name = 'natural_transposable_element' OR cvterm.name = 'engineered_transposable_element' OR cvterm.name = 'nested_transposon' OR cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'terminal_inverted_repeat_element' OR cvterm.name = 'foldback_element' OR cvterm.name = 'conjugative_transposon' OR cvterm.name = 'helitron' OR cvterm.name = 'p_element' OR cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'prophage' OR cvterm.name = 'pathogenic_island' OR cvterm.name = 'metabolic_island' OR cvterm.name = 'adaptive_island' OR cvterm.name = 'symbiosis_island' OR cvterm.name = 'cryptic_prophage' OR cvterm.name = 'defective_conjugative_transposon' OR cvterm.name = 'mobile_genetic_element';
  17013. --- ************************************************
  17014. --- *** relation: extrachromosomal_mobile_genetic_element ***
  17015. --- *** relation type: VIEW ***
  17016. --- *** ***
  17017. --- *** An MGE that is not integrated into the h ***
  17018. --- *** ost chromosome. ***
  17019. --- ************************************************
  17020. ---
  17021. CREATE VIEW extrachromosomal_mobile_genetic_element AS
  17022. SELECT
  17023. feature_id AS extrachromosomal_mobile_genetic_element_id,
  17024. feature.*
  17025. FROM
  17026. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17027. WHERE cvterm.name = 'natural_transposable_element' OR cvterm.name = 'viral_sequence' OR cvterm.name = 'natural_plasmid' OR cvterm.name = 'phage_sequence' OR cvterm.name = 'ds_RNA_viral_sequence' OR cvterm.name = 'ds_DNA_viral_sequence' OR cvterm.name = 'ss_RNA_viral_sequence' OR cvterm.name = 'negative_sense_ssRNA_viral_sequence' OR cvterm.name = 'positive_sense_ssRNA_viral_sequence' OR cvterm.name = 'ambisense_ssRNA_viral_sequence' OR cvterm.name = 'extrachromosomal_mobile_genetic_element';
  17028. --- ************************************************
  17029. --- *** relation: integrated_mobile_genetic_element ***
  17030. --- *** relation type: VIEW ***
  17031. --- *** ***
  17032. --- *** An MGE that is integrated into the host ***
  17033. --- *** chromosome. ***
  17034. --- ************************************************
  17035. ---
  17036. CREATE VIEW integrated_mobile_genetic_element AS
  17037. SELECT
  17038. feature_id AS integrated_mobile_genetic_element_id,
  17039. feature.*
  17040. FROM
  17041. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17042. WHERE cvterm.name = 'transposable_element' OR cvterm.name = 'proviral_region' OR cvterm.name = 'integron' OR cvterm.name = 'genomic_island' OR cvterm.name = 'integrated_plasmid' OR cvterm.name = 'cointegrated_plasmid' OR cvterm.name = 'retrotransposon' OR cvterm.name = 'DNA_transposon' OR cvterm.name = 'foreign_transposable_element' OR cvterm.name = 'transgenic_transposable_element' OR cvterm.name = 'natural_transposable_element' OR cvterm.name = 'engineered_transposable_element' OR cvterm.name = 'nested_transposon' OR cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'terminal_inverted_repeat_element' OR cvterm.name = 'foldback_element' OR cvterm.name = 'conjugative_transposon' OR cvterm.name = 'helitron' OR cvterm.name = 'p_element' OR cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'prophage' OR cvterm.name = 'pathogenic_island' OR cvterm.name = 'metabolic_island' OR cvterm.name = 'adaptive_island' OR cvterm.name = 'symbiosis_island' OR cvterm.name = 'cryptic_prophage' OR cvterm.name = 'defective_conjugative_transposon' OR cvterm.name = 'integrated_mobile_genetic_element';
  17043. --- ************************************************
  17044. --- *** relation: integrated_plasmid ***
  17045. --- *** relation type: VIEW ***
  17046. --- *** ***
  17047. --- *** A plasmid sequence that is integrated wi ***
  17048. --- *** thin the host chromosome. ***
  17049. --- ************************************************
  17050. ---
  17051. CREATE VIEW integrated_plasmid AS
  17052. SELECT
  17053. feature_id AS integrated_plasmid_id,
  17054. feature.*
  17055. FROM
  17056. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17057. WHERE cvterm.name = 'integrated_plasmid';
  17058. --- ************************************************
  17059. --- *** relation: viral_sequence ***
  17060. --- *** relation type: VIEW ***
  17061. --- *** ***
  17062. --- *** The region of nucleotide sequence of a v ***
  17063. --- *** irus, a submicroscopic particle that rep ***
  17064. --- *** licates by infecting a host cell. ***
  17065. --- ************************************************
  17066. ---
  17067. CREATE VIEW viral_sequence AS
  17068. SELECT
  17069. feature_id AS viral_sequence_id,
  17070. feature.*
  17071. FROM
  17072. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17073. WHERE cvterm.name = 'phage_sequence' OR cvterm.name = 'ds_RNA_viral_sequence' OR cvterm.name = 'ds_DNA_viral_sequence' OR cvterm.name = 'ss_RNA_viral_sequence' OR cvterm.name = 'negative_sense_ssRNA_viral_sequence' OR cvterm.name = 'positive_sense_ssRNA_viral_sequence' OR cvterm.name = 'ambisense_ssRNA_viral_sequence' OR cvterm.name = 'viral_sequence';
  17074. --- ************************************************
  17075. --- *** relation: phage_sequence ***
  17076. --- *** relation type: VIEW ***
  17077. --- *** ***
  17078. --- *** The nucleotide sequence of a virus that ***
  17079. --- *** infects bacteria. ***
  17080. --- ************************************************
  17081. ---
  17082. CREATE VIEW phage_sequence AS
  17083. SELECT
  17084. feature_id AS phage_sequence_id,
  17085. feature.*
  17086. FROM
  17087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17088. WHERE cvterm.name = 'phage_sequence';
  17089. --- ************************************************
  17090. --- *** relation: attctn_site ***
  17091. --- *** relation type: VIEW ***
  17092. --- *** ***
  17093. --- *** An attachment site located on a conjugat ***
  17094. --- *** ive transposon and used for site-specifi ***
  17095. --- *** c integration of a conjugative transposo ***
  17096. --- *** n. ***
  17097. --- ************************************************
  17098. ---
  17099. CREATE VIEW attctn_site AS
  17100. SELECT
  17101. feature_id AS attctn_site_id,
  17102. feature.*
  17103. FROM
  17104. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17105. WHERE cvterm.name = 'attCtn_site';
  17106. --- ************************************************
  17107. --- *** relation: nuclear_mt_pseudogene ***
  17108. --- *** relation type: VIEW ***
  17109. --- *** ***
  17110. --- *** A nuclear pseudogene of either coding or ***
  17111. --- *** non-coding mitochondria derived sequenc ***
  17112. --- *** e. ***
  17113. --- ************************************************
  17114. ---
  17115. CREATE VIEW nuclear_mt_pseudogene AS
  17116. SELECT
  17117. feature_id AS nuclear_mt_pseudogene_id,
  17118. feature.*
  17119. FROM
  17120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17121. WHERE cvterm.name = 'nuclear_mt_pseudogene';
  17122. --- ************************************************
  17123. --- *** relation: cointegrated_plasmid ***
  17124. --- *** relation type: VIEW ***
  17125. --- *** ***
  17126. --- *** A MGE region consisting of two fused pla ***
  17127. --- *** smids resulting from a replicative trans ***
  17128. --- *** position event. ***
  17129. --- ************************************************
  17130. ---
  17131. CREATE VIEW cointegrated_plasmid AS
  17132. SELECT
  17133. feature_id AS cointegrated_plasmid_id,
  17134. feature.*
  17135. FROM
  17136. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17137. WHERE cvterm.name = 'cointegrated_plasmid';
  17138. --- ************************************************
  17139. --- *** relation: irlinv_site ***
  17140. --- *** relation type: VIEW ***
  17141. --- *** ***
  17142. --- *** Component of the inversion site located ***
  17143. --- *** at the left of a region susceptible to s ***
  17144. --- *** ite-specific inversion. ***
  17145. --- ************************************************
  17146. ---
  17147. CREATE VIEW irlinv_site AS
  17148. SELECT
  17149. feature_id AS irlinv_site_id,
  17150. feature.*
  17151. FROM
  17152. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17153. WHERE cvterm.name = 'IRLinv_site';
  17154. --- ************************************************
  17155. --- *** relation: irrinv_site ***
  17156. --- *** relation type: VIEW ***
  17157. --- *** ***
  17158. --- *** Component of the inversion site located ***
  17159. --- *** at the right of a region susceptible to ***
  17160. --- *** site-specific inversion. ***
  17161. --- ************************************************
  17162. ---
  17163. CREATE VIEW irrinv_site AS
  17164. SELECT
  17165. feature_id AS irrinv_site_id,
  17166. feature.*
  17167. FROM
  17168. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17169. WHERE cvterm.name = 'IRRinv_site';
  17170. --- ************************************************
  17171. --- *** relation: inversion_site_part ***
  17172. --- *** relation type: VIEW ***
  17173. --- *** ***
  17174. --- *** A region located within an inversion sit ***
  17175. --- *** e. ***
  17176. --- ************************************************
  17177. ---
  17178. CREATE VIEW inversion_site_part AS
  17179. SELECT
  17180. feature_id AS inversion_site_part_id,
  17181. feature.*
  17182. FROM
  17183. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17184. WHERE cvterm.name = 'IRLinv_site' OR cvterm.name = 'IRRinv_site' OR cvterm.name = 'inversion_site_part';
  17185. --- ************************************************
  17186. --- *** relation: defective_conjugative_transposon ***
  17187. --- *** relation type: VIEW ***
  17188. --- *** ***
  17189. --- *** An island that contains genes for integr ***
  17190. --- *** ation/excision and the gene and site for ***
  17191. --- *** the initiation of intercellular transfe ***
  17192. --- *** r by conjugation. It can be complemented ***
  17193. --- *** for transfer by a conjugative transposo ***
  17194. --- *** n. ***
  17195. --- ************************************************
  17196. ---
  17197. CREATE VIEW defective_conjugative_transposon AS
  17198. SELECT
  17199. feature_id AS defective_conjugative_transposon_id,
  17200. feature.*
  17201. FROM
  17202. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17203. WHERE cvterm.name = 'defective_conjugative_transposon';
  17204. --- ************************************************
  17205. --- *** relation: repeat_fragment ***
  17206. --- *** relation type: VIEW ***
  17207. --- *** ***
  17208. --- *** A portion of a repeat, interrupted by th ***
  17209. --- *** e insertion of another element. ***
  17210. --- ************************************************
  17211. ---
  17212. CREATE VIEW repeat_fragment AS
  17213. SELECT
  17214. feature_id AS repeat_fragment_id,
  17215. feature.*
  17216. FROM
  17217. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17218. WHERE cvterm.name = 'repeat_fragment';
  17219. --- ************************************************
  17220. --- *** relation: transposon_fragment ***
  17221. --- *** relation type: VIEW ***
  17222. --- *** ***
  17223. --- *** A portion of a transposon, interrupted b ***
  17224. --- *** y the insertion of another element. ***
  17225. --- ************************************************
  17226. ---
  17227. CREATE VIEW transposon_fragment AS
  17228. SELECT
  17229. feature_id AS transposon_fragment_id,
  17230. feature.*
  17231. FROM
  17232. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17233. WHERE cvterm.name = 'transposon_fragment';
  17234. --- ************************************************
  17235. --- *** relation: transcriptional_cis_regulatory_region ***
  17236. --- *** relation type: VIEW ***
  17237. --- *** ***
  17238. --- *** A regulatory_region that modulates the t ***
  17239. --- *** ranscription of a gene or genes. ***
  17240. --- ************************************************
  17241. ---
  17242. CREATE VIEW transcriptional_cis_regulatory_region AS
  17243. SELECT
  17244. feature_id AS transcriptional_cis_regulatory_region_id,
  17245. feature.*
  17246. FROM
  17247. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17248. WHERE cvterm.name = 'promoter' OR cvterm.name = 'insulator' OR cvterm.name = 'CRM' OR cvterm.name = 'promoter_targeting_sequence' OR cvterm.name = 'ISRE' OR cvterm.name = 'bidirectional_promoter' OR cvterm.name = 'RNA_polymerase_promoter' OR cvterm.name = 'RNApol_I_promoter' OR cvterm.name = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'Phage_RNA_Polymerase_Promoter' OR cvterm.name = 'RNApol_II_core_promoter' OR cvterm.name = 'RNApol_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'SP6_RNA_Polymerase_Promoter' OR cvterm.name = 'T3_RNA_Polymerase_Promoter' OR cvterm.name = 'T7_RNA_Polymerase_Promoter' OR cvterm.name = 'locus_control_region' OR cvterm.name = 'enhancer' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'transcriptional_cis_regulatory_region';
  17249. --- ************************************************
  17250. --- *** relation: splicing_regulatory_region ***
  17251. --- *** relation type: VIEW ***
  17252. --- *** ***
  17253. --- *** A regulatory_region that modulates splic ***
  17254. --- *** ing. ***
  17255. --- ************************************************
  17256. ---
  17257. CREATE VIEW splicing_regulatory_region AS
  17258. SELECT
  17259. feature_id AS splicing_regulatory_region_id,
  17260. feature.*
  17261. FROM
  17262. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17263. WHERE cvterm.name = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'splicing_regulatory_region';
  17264. --- ************************************************
  17265. --- *** relation: promoter_targeting_sequence ***
  17266. --- *** relation type: VIEW ***
  17267. --- *** ***
  17268. --- *** A transcriptional_cis_regulatory_region ***
  17269. --- *** that restricts the activity of a CRM to ***
  17270. --- *** a single promoter and which functions on ***
  17271. --- *** ly when both itself and an insulator are ***
  17272. --- *** located between the CRM and the promote ***
  17273. --- *** r. ***
  17274. --- ************************************************
  17275. ---
  17276. CREATE VIEW promoter_targeting_sequence AS
  17277. SELECT
  17278. feature_id AS promoter_targeting_sequence_id,
  17279. feature.*
  17280. FROM
  17281. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17282. WHERE cvterm.name = 'promoter_targeting_sequence';
  17283. --- ************************************************
  17284. --- *** relation: sequence_alteration ***
  17285. --- *** relation type: VIEW ***
  17286. --- *** ***
  17287. --- *** A sequence_alteration is a sequence_feat ***
  17288. --- *** ure whose extent is the deviation from a ***
  17289. --- *** nother sequence. ***
  17290. --- ************************************************
  17291. ---
  17292. CREATE VIEW sequence_alteration AS
  17293. SELECT
  17294. feature_id AS sequence_alteration_id,
  17295. feature.*
  17296. FROM
  17297. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17298. WHERE cvterm.name = 'deletion' OR cvterm.name = 'translocation' OR cvterm.name = 'insertion' OR cvterm.name = 'copy_number_variation' OR cvterm.name = 'UPD' OR cvterm.name = 'structural_alteration' OR cvterm.name = 'substitution' OR cvterm.name = 'indel' OR cvterm.name = 'inversion' OR cvterm.name = 'transgenic_insertion' OR cvterm.name = 'duplication' OR cvterm.name = 'tandem_duplication' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'copy_number_gain' OR cvterm.name = 'copy_number_loss' OR cvterm.name = 'maternal_uniparental_disomy' OR cvterm.name = 'paternal_uniparental_disomy' OR cvterm.name = 'complex_structural_alteration' OR cvterm.name = 'sequence_length_variation' OR cvterm.name = 'MNP' OR cvterm.name = 'SNV' OR cvterm.name = 'complex_substitution' OR cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'SNP' OR cvterm.name = 'point_mutation' OR cvterm.name = 'transition' OR cvterm.name = 'transversion' OR cvterm.name = 'pyrimidine_transition' OR cvterm.name = 'purine_transition' OR cvterm.name = 'C_to_T_transition' OR cvterm.name = 'T_to_C_transition' OR cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'pyrimidine_to_purine_transversion' OR cvterm.name = 'purine_to_pyrimidine_transversion' OR cvterm.name = 'C_to_A_transversion' OR cvterm.name = 'C_to_G_transversion' OR cvterm.name = 'T_to_A_transversion' OR cvterm.name = 'T_to_G_transversion' OR cvterm.name = 'A_to_C_transversion' OR cvterm.name = 'A_to_T_transversion' OR cvterm.name = 'G_to_C_transversion' OR cvterm.name = 'G_to_T_transversion' OR cvterm.name = 'sequence_alteration';
  17299. --- ************************************************
  17300. --- *** relation: sequence_variant ***
  17301. --- *** relation type: VIEW ***
  17302. --- *** ***
  17303. --- *** A sequence_variant is a non exact copy o ***
  17304. --- *** f a sequence_feature or genome exhibitin ***
  17305. --- *** g one or more sequence_alteration. ***
  17306. --- ************************************************
  17307. ---
  17308. CREATE VIEW sequence_variant AS
  17309. SELECT
  17310. feature_id AS sequence_variant_id,
  17311. feature.*
  17312. FROM
  17313. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17314. WHERE cvterm.name = 'functional_variant' OR cvterm.name = 'structural_variant' OR cvterm.name = 'loss_of_heterozygosity' OR cvterm.name = 'transcript_function_variant' OR cvterm.name = 'translational_product_function_variant' OR cvterm.name = 'level_of_transcript_variant' OR cvterm.name = 'transcript_processing_variant' OR cvterm.name = 'transcript_stability_variant' OR cvterm.name = 'transcription_variant' OR cvterm.name = 'decreased_transcript_level_variant' OR cvterm.name = 'increased_transcript_level_variant' OR cvterm.name = 'editing_variant' OR cvterm.name = 'polyadenylation_variant' OR cvterm.name = 'increased_polyadenylation_variant' OR cvterm.name = 'decreased_polyadenylation_variant' OR cvterm.name = 'decreased_transcript_stability_variant' OR cvterm.name = 'increased_transcript_stability_variant' OR cvterm.name = 'rate_of_transcription_variant' OR cvterm.name = 'increased_transcription_rate_variant' OR cvterm.name = 'decreased_transcription_rate_variant' OR cvterm.name = 'translational_product_level_variant' OR cvterm.name = 'polypeptide_function_variant' OR cvterm.name = 'decreased_translational_product_level' OR cvterm.name = 'increased_translational_product_level' OR cvterm.name = 'polypeptide_gain_of_function_variant' OR cvterm.name = 'polypeptide_localization_variant' OR cvterm.name = 'polypeptide_loss_of_function_variant' OR cvterm.name = 'polypeptide_post_translational_processing_variant' OR cvterm.name = 'inactive_ligand_binding_site' OR cvterm.name = 'polypeptide_partial_loss_of_function' OR cvterm.name = 'inactive_catalytic_site' OR cvterm.name = 'silent_mutation' OR cvterm.name = 'copy_number_change' OR cvterm.name = 'gene_variant' OR cvterm.name = 'regulatory_region_variant' OR cvterm.name = 'intergenic_variant' OR cvterm.name = 'upstream_gene_variant' OR cvterm.name = 'downstream_gene_variant' OR cvterm.name = 'gene_fusion' OR cvterm.name = 'splicing_variant' OR cvterm.name = 'transcript_variant' OR cvterm.name = 'translational_product_structure_variant' OR cvterm.name = 'cryptic_splice_site_variant' OR cvterm.name = 'exon_loss' OR cvterm.name = 'intron_gain' OR cvterm.name = 'splice_region_variant' OR cvterm.name = 'cryptic_splice_acceptor' OR cvterm.name = 'cryptic_splice_donor' OR cvterm.name = 'complex_change_in_transcript' OR cvterm.name = 'transcript_secondary_structure_variant' OR cvterm.name = 'nc_transcript_variant' OR cvterm.name = 'NMD_transcript_variant' OR cvterm.name = 'UTR_variant' OR cvterm.name = 'intron_variant' OR cvterm.name = 'exon_variant' OR cvterm.name = 'compensatory_transcript_secondary_structure_variant' OR cvterm.name = 'mature_miRNA_variant' OR cvterm.name = '5_prime_UTR_variant' OR cvterm.name = '3_prime_UTR_variant' OR cvterm.name = 'splice_site_variant' OR cvterm.name = 'splice_acceptor_variant' OR cvterm.name = 'splice_donor_variant' OR cvterm.name = 'splice_donor_5th_base_variant' OR cvterm.name = 'coding_sequence_variant' OR cvterm.name = 'non_coding_exon_variant' OR cvterm.name = 'codon_variant' OR cvterm.name = 'frameshift_variant' OR cvterm.name = 'inframe_variant' OR cvterm.name = 'initiator_codon_change' OR cvterm.name = 'non_synonymous_codon' OR cvterm.name = 'synonymous_codon' OR cvterm.name = 'terminal_codon_variant' OR cvterm.name = 'stop_gained' OR cvterm.name = 'missense_codon' OR cvterm.name = 'conservative_missense_codon' OR cvterm.name = 'non_conservative_missense_codon' OR cvterm.name = 'terminator_codon_variant' OR cvterm.name = 'incomplete_terminal_codon_variant' OR cvterm.name = 'stop_retained_variant' OR cvterm.name = 'stop_lost' OR cvterm.name = 'frame_restoring_variant' OR cvterm.name = 'minus_1_frameshift_variant' OR cvterm.name = 'minus_2_frameshift_variant' OR cvterm.name = 'plus_1_frameshift_variant' OR cvterm.name = 'plus_2_frameshift variant' OR cvterm.name = 'inframe_codon_gain' OR cvterm.name = 'inframe_codon_loss' OR cvterm.name = '3D_polypeptide_structure_variant' OR cvterm.name = 'complex_change_of_translational_product_variant' OR cvterm.name = 'polypeptide_sequence_variant' OR cvterm.name = 'complex_3D_structural_variant' OR cvterm.name = 'conformational_change_variant' OR cvterm.name = 'amino_acid_deletion' OR cvterm.name = 'amino_acid_insertion' OR cvterm.name = 'amino_acid_substitution' OR cvterm.name = 'elongated_polypeptide' OR cvterm.name = 'polypeptide_fusion' OR cvterm.name = 'polypeptide_truncation' OR cvterm.name = 'conservative_amino_acid_substitution' OR cvterm.name = 'non_conservative_amino_acid_substitution' OR cvterm.name = 'elongated_polypeptide_C_terminal' OR cvterm.name = 'elongated_polypeptide_N_terminal' OR cvterm.name = 'elongated_in_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_out_of_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_in_frame_polypeptide_N_terminal_elongation' OR cvterm.name = 'elongated_out_of_frame_polypeptide_N_terminal' OR cvterm.name = 'TF_binding_site_variant' OR cvterm.name = '5KB_upstream_variant' OR cvterm.name = '2KB_upstream_variant' OR cvterm.name = '5KB_downstream_variant' OR cvterm.name = '500B_downstream_variant' OR cvterm.name = 'sequence_variant';
  17315. --- ************************************************
  17316. --- *** relation: propeptide_cleavage_site ***
  17317. --- *** relation type: VIEW ***
  17318. --- *** ***
  17319. --- *** The propeptide_cleavage_site is the argi ***
  17320. --- *** nine/lysine boundary on a propeptide whe ***
  17321. --- *** re cleavage occurs. ***
  17322. --- ************************************************
  17323. ---
  17324. CREATE VIEW propeptide_cleavage_site AS
  17325. SELECT
  17326. feature_id AS propeptide_cleavage_site_id,
  17327. feature.*
  17328. FROM
  17329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17330. WHERE cvterm.name = 'propeptide_cleavage_site';
  17331. --- ************************************************
  17332. --- *** relation: propeptide ***
  17333. --- *** relation type: VIEW ***
  17334. --- *** ***
  17335. --- *** Part of a peptide chain which is cleaved ***
  17336. --- *** off during the formation of the mature ***
  17337. --- *** protein. ***
  17338. --- ************************************************
  17339. ---
  17340. CREATE VIEW propeptide AS
  17341. SELECT
  17342. feature_id AS propeptide_id,
  17343. feature.*
  17344. FROM
  17345. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17346. WHERE cvterm.name = 'propeptide';
  17347. --- ************************************************
  17348. --- *** relation: immature_peptide_region ***
  17349. --- *** relation type: VIEW ***
  17350. --- *** ***
  17351. --- *** An immature_peptide_region is the extent ***
  17352. --- *** of the peptide after it has been transl ***
  17353. --- *** ated and before any processing occurs. ***
  17354. --- ************************************************
  17355. ---
  17356. CREATE VIEW immature_peptide_region AS
  17357. SELECT
  17358. feature_id AS immature_peptide_region_id,
  17359. feature.*
  17360. FROM
  17361. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17362. WHERE cvterm.name = 'immature_peptide_region';
  17363. --- ************************************************
  17364. --- *** relation: active_peptide ***
  17365. --- *** relation type: VIEW ***
  17366. --- *** ***
  17367. --- *** Active peptides are proteins which are b ***
  17368. --- *** iologically active, released from a prec ***
  17369. --- *** ursor molecule. ***
  17370. --- ************************************************
  17371. ---
  17372. CREATE VIEW active_peptide AS
  17373. SELECT
  17374. feature_id AS active_peptide_id,
  17375. feature.*
  17376. FROM
  17377. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17378. WHERE cvterm.name = 'active_peptide';
  17379. --- ************************************************
  17380. --- *** relation: compositionally_biased_region_of_peptide ***
  17381. --- *** relation type: VIEW ***
  17382. --- *** ***
  17383. --- *** Polypeptide region that is rich in a par ***
  17384. --- *** ticular amino acid or homopolymeric and ***
  17385. --- *** greater than three residues in length. ***
  17386. --- ************************************************
  17387. ---
  17388. CREATE VIEW compositionally_biased_region_of_peptide AS
  17389. SELECT
  17390. feature_id AS compositionally_biased_region_of_peptide_id,
  17391. feature.*
  17392. FROM
  17393. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17394. WHERE cvterm.name = 'compositionally_biased_region_of_peptide';
  17395. --- ************************************************
  17396. --- *** relation: polypeptide_motif ***
  17397. --- *** relation type: VIEW ***
  17398. --- *** ***
  17399. --- *** A sequence motif is a short (up to 20 am ***
  17400. --- *** ino acids) region of biological interest ***
  17401. --- *** . Such motifs, although they are too sho ***
  17402. --- *** rt to constitute functional domains, sha ***
  17403. --- *** re sequence similarities and are conserv ***
  17404. --- *** ed in different proteins. They display a ***
  17405. --- *** common function (protein-binding, subce ***
  17406. --- *** llular location etc.). ***
  17407. --- ************************************************
  17408. ---
  17409. CREATE VIEW polypeptide_motif AS
  17410. SELECT
  17411. feature_id AS polypeptide_motif_id,
  17412. feature.*
  17413. FROM
  17414. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17415. WHERE cvterm.name = 'biochemical_region_of_peptide' OR cvterm.name = 'polypeptide_conserved_motif' OR cvterm.name = 'post_translationally_modified_region' OR cvterm.name = 'conformational_switch' OR cvterm.name = 'molecular_contact_region' OR cvterm.name = 'polypeptide_binding_motif' OR cvterm.name = 'polypeptide_catalytic_motif' OR cvterm.name = 'histone_modification' OR cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'polypeptide_motif';
  17416. --- ************************************************
  17417. --- *** relation: polypeptide_repeat ***
  17418. --- *** relation type: VIEW ***
  17419. --- *** ***
  17420. --- *** A polypeptide_repeat is a single copy of ***
  17421. --- *** an internal sequence repetition. ***
  17422. --- ************************************************
  17423. ---
  17424. CREATE VIEW polypeptide_repeat AS
  17425. SELECT
  17426. feature_id AS polypeptide_repeat_id,
  17427. feature.*
  17428. FROM
  17429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17430. WHERE cvterm.name = 'polypeptide_repeat';
  17431. --- ************************************************
  17432. --- *** relation: polypeptide_structural_region ***
  17433. --- *** relation type: VIEW ***
  17434. --- *** ***
  17435. --- *** Region of polypeptide with a given struc ***
  17436. --- *** tural property. ***
  17437. --- ************************************************
  17438. ---
  17439. CREATE VIEW polypeptide_structural_region AS
  17440. SELECT
  17441. feature_id AS polypeptide_structural_region_id,
  17442. feature.*
  17443. FROM
  17444. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17445. WHERE cvterm.name = 'polypeptide_domain' OR cvterm.name = 'membrane_structure' OR cvterm.name = 'extramembrane_polypeptide_region' OR cvterm.name = 'intramembrane_polypeptide_region' OR cvterm.name = 'polypeptide_secondary_structure' OR cvterm.name = 'polypeptide_structural_motif' OR cvterm.name = 'intrinsically_unstructured_polypeptide_region' OR cvterm.name = 'cytoplasmic_polypeptide_region' OR cvterm.name = 'non_cytoplasmic_polypeptide_region' OR cvterm.name = 'membrane_peptide_loop' OR cvterm.name = 'transmembrane_polypeptide_region' OR cvterm.name = 'asx_motif' OR cvterm.name = 'beta_bulge' OR cvterm.name = 'beta_bulge_loop' OR cvterm.name = 'beta_strand' OR cvterm.name = 'peptide_helix' OR cvterm.name = 'polypeptide_nest_motif' OR cvterm.name = 'schellmann_loop' OR cvterm.name = 'serine_threonine_motif' OR cvterm.name = 'serine_threonine_staple_motif' OR cvterm.name = 'polypeptide_turn_motif' OR cvterm.name = 'catmat_left_handed_three' OR cvterm.name = 'catmat_left_handed_four' OR cvterm.name = 'catmat_right_handed_three' OR cvterm.name = 'catmat_right_handed_four' OR cvterm.name = 'alpha_beta_motif' OR cvterm.name = 'peptide_coil' OR cvterm.name = 'beta_bulge_loop_five' OR cvterm.name = 'beta_bulge_loop_six' OR cvterm.name = 'antiparallel_beta_strand' OR cvterm.name = 'parallel_beta_strand' OR cvterm.name = 'left_handed_peptide_helix' OR cvterm.name = 'right_handed_peptide_helix' OR cvterm.name = 'alpha_helix' OR cvterm.name = 'pi_helix' OR cvterm.name = 'three_ten_helix' OR cvterm.name = 'polypeptide_nest_left_right_motif' OR cvterm.name = 'polypeptide_nest_right_left_motif' OR cvterm.name = 'schellmann_loop_seven' OR cvterm.name = 'schellmann_loop_six' OR cvterm.name = 'asx_turn' OR cvterm.name = 'beta_turn' OR cvterm.name = 'gamma_turn' OR cvterm.name = 'serine_threonine_turn' OR cvterm.name = 'asx_turn_left_handed_type_one' OR cvterm.name = 'asx_turn_left_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_two' OR cvterm.name = 'beta_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_right_handed_type_two' OR cvterm.name = 'beta_turn_type_six' OR cvterm.name = 'beta_turn_type_eight' OR cvterm.name = 'beta_turn_type_six_a' OR cvterm.name = 'beta_turn_type_six_b' OR cvterm.name = 'beta_turn_type_six_a_one' OR cvterm.name = 'beta_turn_type_six_a_two' OR cvterm.name = 'gamma_turn_classic' OR cvterm.name = 'gamma_turn_inverse' OR cvterm.name = 'st_turn_left_handed_type_one' OR cvterm.name = 'st_turn_left_handed_type_two' OR cvterm.name = 'st_turn_right_handed_type_one' OR cvterm.name = 'st_turn_right_handed_type_two' OR cvterm.name = 'coiled_coil' OR cvterm.name = 'helix_turn_helix' OR cvterm.name = 'polypeptide_structural_region';
  17446. --- ************************************************
  17447. --- *** relation: membrane_structure ***
  17448. --- *** relation type: VIEW ***
  17449. --- *** ***
  17450. --- *** Arrangement of the polypeptide with resp ***
  17451. --- *** ect to the lipid bilayer. ***
  17452. --- ************************************************
  17453. ---
  17454. CREATE VIEW membrane_structure AS
  17455. SELECT
  17456. feature_id AS membrane_structure_id,
  17457. feature.*
  17458. FROM
  17459. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17460. WHERE cvterm.name = 'membrane_structure';
  17461. --- ************************************************
  17462. --- *** relation: extramembrane_polypeptide_region ***
  17463. --- *** relation type: VIEW ***
  17464. --- *** ***
  17465. --- *** Polypeptide region that is localized out ***
  17466. --- *** side of a lipid bilayer. ***
  17467. --- ************************************************
  17468. ---
  17469. CREATE VIEW extramembrane_polypeptide_region AS
  17470. SELECT
  17471. feature_id AS extramembrane_polypeptide_region_id,
  17472. feature.*
  17473. FROM
  17474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17475. WHERE cvterm.name = 'cytoplasmic_polypeptide_region' OR cvterm.name = 'non_cytoplasmic_polypeptide_region' OR cvterm.name = 'extramembrane_polypeptide_region';
  17476. --- ************************************************
  17477. --- *** relation: cytoplasmic_polypeptide_region ***
  17478. --- *** relation type: VIEW ***
  17479. --- *** ***
  17480. --- *** Polypeptide region that is localized ins ***
  17481. --- *** ide the cytoplasm. ***
  17482. --- ************************************************
  17483. ---
  17484. CREATE VIEW cytoplasmic_polypeptide_region AS
  17485. SELECT
  17486. feature_id AS cytoplasmic_polypeptide_region_id,
  17487. feature.*
  17488. FROM
  17489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17490. WHERE cvterm.name = 'cytoplasmic_polypeptide_region';
  17491. --- ************************************************
  17492. --- *** relation: non_cytoplasmic_polypeptide_region ***
  17493. --- *** relation type: VIEW ***
  17494. --- *** ***
  17495. --- *** Polypeptide region that is localized out ***
  17496. --- *** side of a lipid bilayer and outside of t ***
  17497. --- *** he cytoplasm. ***
  17498. --- ************************************************
  17499. ---
  17500. CREATE VIEW non_cytoplasmic_polypeptide_region AS
  17501. SELECT
  17502. feature_id AS non_cytoplasmic_polypeptide_region_id,
  17503. feature.*
  17504. FROM
  17505. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17506. WHERE cvterm.name = 'non_cytoplasmic_polypeptide_region';
  17507. --- ************************************************
  17508. --- *** relation: intramembrane_polypeptide_region ***
  17509. --- *** relation type: VIEW ***
  17510. --- *** ***
  17511. --- *** Polypeptide region present in the lipid ***
  17512. --- *** bilayer. ***
  17513. --- ************************************************
  17514. ---
  17515. CREATE VIEW intramembrane_polypeptide_region AS
  17516. SELECT
  17517. feature_id AS intramembrane_polypeptide_region_id,
  17518. feature.*
  17519. FROM
  17520. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17521. WHERE cvterm.name = 'membrane_peptide_loop' OR cvterm.name = 'transmembrane_polypeptide_region' OR cvterm.name = 'intramembrane_polypeptide_region';
  17522. --- ************************************************
  17523. --- *** relation: membrane_peptide_loop ***
  17524. --- *** relation type: VIEW ***
  17525. --- *** ***
  17526. --- *** Polypeptide region localized within the ***
  17527. --- *** lipid bilayer where both ends traverse t ***
  17528. --- *** he same membrane. ***
  17529. --- ************************************************
  17530. ---
  17531. CREATE VIEW membrane_peptide_loop AS
  17532. SELECT
  17533. feature_id AS membrane_peptide_loop_id,
  17534. feature.*
  17535. FROM
  17536. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17537. WHERE cvterm.name = 'membrane_peptide_loop';
  17538. --- ************************************************
  17539. --- *** relation: transmembrane_polypeptide_region ***
  17540. --- *** relation type: VIEW ***
  17541. --- *** ***
  17542. --- *** Polypeptide region traversing the lipid ***
  17543. --- *** bilayer. ***
  17544. --- ************************************************
  17545. ---
  17546. CREATE VIEW transmembrane_polypeptide_region AS
  17547. SELECT
  17548. feature_id AS transmembrane_polypeptide_region_id,
  17549. feature.*
  17550. FROM
  17551. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17552. WHERE cvterm.name = 'transmembrane_polypeptide_region';
  17553. --- ************************************************
  17554. --- *** relation: polypeptide_secondary_structure ***
  17555. --- *** relation type: VIEW ***
  17556. --- *** ***
  17557. --- *** A region of peptide with secondary struc ***
  17558. --- *** ture has hydrogen bonding along the pept ***
  17559. --- *** ide chain that causes a defined conforma ***
  17560. --- *** tion of the chain. ***
  17561. --- ************************************************
  17562. ---
  17563. CREATE VIEW polypeptide_secondary_structure AS
  17564. SELECT
  17565. feature_id AS polypeptide_secondary_structure_id,
  17566. feature.*
  17567. FROM
  17568. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17569. WHERE cvterm.name = 'asx_motif' OR cvterm.name = 'beta_bulge' OR cvterm.name = 'beta_bulge_loop' OR cvterm.name = 'beta_strand' OR cvterm.name = 'peptide_helix' OR cvterm.name = 'polypeptide_nest_motif' OR cvterm.name = 'schellmann_loop' OR cvterm.name = 'serine_threonine_motif' OR cvterm.name = 'serine_threonine_staple_motif' OR cvterm.name = 'polypeptide_turn_motif' OR cvterm.name = 'catmat_left_handed_three' OR cvterm.name = 'catmat_left_handed_four' OR cvterm.name = 'catmat_right_handed_three' OR cvterm.name = 'catmat_right_handed_four' OR cvterm.name = 'alpha_beta_motif' OR cvterm.name = 'peptide_coil' OR cvterm.name = 'beta_bulge_loop_five' OR cvterm.name = 'beta_bulge_loop_six' OR cvterm.name = 'antiparallel_beta_strand' OR cvterm.name = 'parallel_beta_strand' OR cvterm.name = 'left_handed_peptide_helix' OR cvterm.name = 'right_handed_peptide_helix' OR cvterm.name = 'alpha_helix' OR cvterm.name = 'pi_helix' OR cvterm.name = 'three_ten_helix' OR cvterm.name = 'polypeptide_nest_left_right_motif' OR cvterm.name = 'polypeptide_nest_right_left_motif' OR cvterm.name = 'schellmann_loop_seven' OR cvterm.name = 'schellmann_loop_six' OR cvterm.name = 'asx_turn' OR cvterm.name = 'beta_turn' OR cvterm.name = 'gamma_turn' OR cvterm.name = 'serine_threonine_turn' OR cvterm.name = 'asx_turn_left_handed_type_one' OR cvterm.name = 'asx_turn_left_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_two' OR cvterm.name = 'beta_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_right_handed_type_two' OR cvterm.name = 'beta_turn_type_six' OR cvterm.name = 'beta_turn_type_eight' OR cvterm.name = 'beta_turn_type_six_a' OR cvterm.name = 'beta_turn_type_six_b' OR cvterm.name = 'beta_turn_type_six_a_one' OR cvterm.name = 'beta_turn_type_six_a_two' OR cvterm.name = 'gamma_turn_classic' OR cvterm.name = 'gamma_turn_inverse' OR cvterm.name = 'st_turn_left_handed_type_one' OR cvterm.name = 'st_turn_left_handed_type_two' OR cvterm.name = 'st_turn_right_handed_type_one' OR cvterm.name = 'st_turn_right_handed_type_two' OR cvterm.name = 'polypeptide_secondary_structure';
  17570. --- ************************************************
  17571. --- *** relation: polypeptide_structural_motif ***
  17572. --- *** relation type: VIEW ***
  17573. --- *** ***
  17574. --- *** Motif is a three-dimensional structural ***
  17575. --- *** element within the chain, which appears ***
  17576. --- *** also in a variety of other molecules. Un ***
  17577. --- *** like a domain, a motif does not need to ***
  17578. --- *** form a stable globular unit. ***
  17579. --- ************************************************
  17580. ---
  17581. CREATE VIEW polypeptide_structural_motif AS
  17582. SELECT
  17583. feature_id AS polypeptide_structural_motif_id,
  17584. feature.*
  17585. FROM
  17586. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17587. WHERE cvterm.name = 'coiled_coil' OR cvterm.name = 'helix_turn_helix' OR cvterm.name = 'polypeptide_structural_motif';
  17588. --- ************************************************
  17589. --- *** relation: coiled_coil ***
  17590. --- *** relation type: VIEW ***
  17591. --- *** ***
  17592. --- *** A coiled coil is a structural motif in p ***
  17593. --- *** roteins, in which alpha-helices are coil ***
  17594. --- *** ed together like the strands of a rope. ***
  17595. --- ************************************************
  17596. ---
  17597. CREATE VIEW coiled_coil AS
  17598. SELECT
  17599. feature_id AS coiled_coil_id,
  17600. feature.*
  17601. FROM
  17602. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17603. WHERE cvterm.name = 'coiled_coil';
  17604. --- ************************************************
  17605. --- *** relation: helix_turn_helix ***
  17606. --- *** relation type: VIEW ***
  17607. --- *** ***
  17608. --- *** A motif comprising two helices separated ***
  17609. --- *** by a turn. ***
  17610. --- ************************************************
  17611. ---
  17612. CREATE VIEW helix_turn_helix AS
  17613. SELECT
  17614. feature_id AS helix_turn_helix_id,
  17615. feature.*
  17616. FROM
  17617. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17618. WHERE cvterm.name = 'helix_turn_helix';
  17619. --- ************************************************
  17620. --- *** relation: polypeptide_sequencing_information ***
  17621. --- *** relation type: VIEW ***
  17622. --- *** ***
  17623. --- *** Incompatibility in the sequence due to s ***
  17624. --- *** ome experimental problem. ***
  17625. --- ************************************************
  17626. ---
  17627. CREATE VIEW polypeptide_sequencing_information AS
  17628. SELECT
  17629. feature_id AS polypeptide_sequencing_information_id,
  17630. feature.*
  17631. FROM
  17632. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17633. WHERE cvterm.name = 'non_adjacent_residues' OR cvterm.name = 'non_terminal_residue' OR cvterm.name = 'sequence_conflict' OR cvterm.name = 'sequence_uncertainty' OR cvterm.name = 'contig_collection' OR cvterm.name = 'polypeptide_sequencing_information';
  17634. --- ************************************************
  17635. --- *** relation: non_adjacent_residues ***
  17636. --- *** relation type: VIEW ***
  17637. --- *** ***
  17638. --- *** Indicates that two consecutive residues ***
  17639. --- *** in a fragment sequence are not consecuti ***
  17640. --- *** ve in the full-length protein and that t ***
  17641. --- *** here are a number of unsequenced residue ***
  17642. --- *** s between them. ***
  17643. --- ************************************************
  17644. ---
  17645. CREATE VIEW non_adjacent_residues AS
  17646. SELECT
  17647. feature_id AS non_adjacent_residues_id,
  17648. feature.*
  17649. FROM
  17650. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17651. WHERE cvterm.name = 'non_adjacent_residues';
  17652. --- ************************************************
  17653. --- *** relation: non_terminal_residue ***
  17654. --- *** relation type: VIEW ***
  17655. --- *** ***
  17656. --- *** The residue at an extremity of the seque ***
  17657. --- *** nce is not the terminal residue. ***
  17658. --- ************************************************
  17659. ---
  17660. CREATE VIEW non_terminal_residue AS
  17661. SELECT
  17662. feature_id AS non_terminal_residue_id,
  17663. feature.*
  17664. FROM
  17665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17666. WHERE cvterm.name = 'non_terminal_residue';
  17667. --- ************************************************
  17668. --- *** relation: sequence_conflict ***
  17669. --- *** relation type: VIEW ***
  17670. --- *** ***
  17671. --- *** Different sources report differing seque ***
  17672. --- *** nces. ***
  17673. --- ************************************************
  17674. ---
  17675. CREATE VIEW sequence_conflict AS
  17676. SELECT
  17677. feature_id AS sequence_conflict_id,
  17678. feature.*
  17679. FROM
  17680. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17681. WHERE cvterm.name = 'contig_collection' OR cvterm.name = 'sequence_conflict';
  17682. --- ************************************************
  17683. --- *** relation: sequence_uncertainty ***
  17684. --- *** relation type: VIEW ***
  17685. --- *** ***
  17686. --- *** Describes the positions in a sequence wh ***
  17687. --- *** ere the authors are unsure about the seq ***
  17688. --- *** uence assignment. ***
  17689. --- ************************************************
  17690. ---
  17691. CREATE VIEW sequence_uncertainty AS
  17692. SELECT
  17693. feature_id AS sequence_uncertainty_id,
  17694. feature.*
  17695. FROM
  17696. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17697. WHERE cvterm.name = 'sequence_uncertainty';
  17698. --- ************************************************
  17699. --- *** relation: post_translationally_modified_region ***
  17700. --- *** relation type: VIEW ***
  17701. --- *** ***
  17702. --- *** A region where a transformation occurs i ***
  17703. --- *** n a protein after it has been synthesize ***
  17704. --- *** d. This which may regulate, stabilize, c ***
  17705. --- *** rosslink or introduce new chemical funct ***
  17706. --- *** ionalities in the protein. ***
  17707. --- ************************************************
  17708. ---
  17709. CREATE VIEW post_translationally_modified_region AS
  17710. SELECT
  17711. feature_id AS post_translationally_modified_region_id,
  17712. feature.*
  17713. FROM
  17714. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17715. WHERE cvterm.name = 'histone_modification' OR cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'post_translationally_modified_region';
  17716. --- ************************************************
  17717. --- *** relation: polypeptide_metal_contact ***
  17718. --- *** relation type: VIEW ***
  17719. --- *** ***
  17720. --- *** A binding site that, in the polypeptide ***
  17721. --- *** molecule, interacts selectively and non- ***
  17722. --- *** covalently with metal ions. ***
  17723. --- ************************************************
  17724. ---
  17725. CREATE VIEW polypeptide_metal_contact AS
  17726. SELECT
  17727. feature_id AS polypeptide_metal_contact_id,
  17728. feature.*
  17729. FROM
  17730. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17731. WHERE cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'polypeptide_metal_contact';
  17732. --- ************************************************
  17733. --- *** relation: protein_protein_contact ***
  17734. --- *** relation type: VIEW ***
  17735. --- *** ***
  17736. --- *** A binding site that, in the protein mole ***
  17737. --- *** cule, interacts selectively and non-cova ***
  17738. --- *** lently with polypeptide residues. ***
  17739. --- ************************************************
  17740. ---
  17741. CREATE VIEW protein_protein_contact AS
  17742. SELECT
  17743. feature_id AS protein_protein_contact_id,
  17744. feature.*
  17745. FROM
  17746. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17747. WHERE cvterm.name = 'protein_protein_contact';
  17748. --- ************************************************
  17749. --- *** relation: polypeptide_calcium_ion_contact_site ***
  17750. --- *** relation type: VIEW ***
  17751. --- *** ***
  17752. --- *** A binding site that, in the polypeptide ***
  17753. --- *** molecule, interacts selectively and non- ***
  17754. --- *** covalently with calcium ions. ***
  17755. --- ************************************************
  17756. ---
  17757. CREATE VIEW polypeptide_calcium_ion_contact_site AS
  17758. SELECT
  17759. feature_id AS polypeptide_calcium_ion_contact_site_id,
  17760. feature.*
  17761. FROM
  17762. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17763. WHERE cvterm.name = 'polypeptide_calcium_ion_contact_site';
  17764. --- ************************************************
  17765. --- *** relation: polypeptide_cobalt_ion_contact_site ***
  17766. --- *** relation type: VIEW ***
  17767. --- *** ***
  17768. --- *** A binding site that, in the polypeptide ***
  17769. --- *** molecule, interacts selectively and non- ***
  17770. --- *** covalently with cobalt ions. ***
  17771. --- ************************************************
  17772. ---
  17773. CREATE VIEW polypeptide_cobalt_ion_contact_site AS
  17774. SELECT
  17775. feature_id AS polypeptide_cobalt_ion_contact_site_id,
  17776. feature.*
  17777. FROM
  17778. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17779. WHERE cvterm.name = 'polypeptide_cobalt_ion_contact_site';
  17780. --- ************************************************
  17781. --- *** relation: polypeptide_copper_ion_contact_site ***
  17782. --- *** relation type: VIEW ***
  17783. --- *** ***
  17784. --- *** A binding site that, in the polypeptide ***
  17785. --- *** molecule, interacts selectively and non- ***
  17786. --- *** covalently with copper ions. ***
  17787. --- ************************************************
  17788. ---
  17789. CREATE VIEW polypeptide_copper_ion_contact_site AS
  17790. SELECT
  17791. feature_id AS polypeptide_copper_ion_contact_site_id,
  17792. feature.*
  17793. FROM
  17794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17795. WHERE cvterm.name = 'polypeptide_copper_ion_contact_site';
  17796. --- ************************************************
  17797. --- *** relation: polypeptide_iron_ion_contact_site ***
  17798. --- *** relation type: VIEW ***
  17799. --- *** ***
  17800. --- *** A binding site that, in the polypeptide ***
  17801. --- *** molecule, interacts selectively and non- ***
  17802. --- *** covalently with iron ions. ***
  17803. --- ************************************************
  17804. ---
  17805. CREATE VIEW polypeptide_iron_ion_contact_site AS
  17806. SELECT
  17807. feature_id AS polypeptide_iron_ion_contact_site_id,
  17808. feature.*
  17809. FROM
  17810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17811. WHERE cvterm.name = 'polypeptide_iron_ion_contact_site';
  17812. --- ************************************************
  17813. --- *** relation: polypeptide_magnesium_ion_contact_site ***
  17814. --- *** relation type: VIEW ***
  17815. --- *** ***
  17816. --- *** A binding site that, in the polypeptide ***
  17817. --- *** molecule, interacts selectively and non- ***
  17818. --- *** covalently with magnesium ions. ***
  17819. --- ************************************************
  17820. ---
  17821. CREATE VIEW polypeptide_magnesium_ion_contact_site AS
  17822. SELECT
  17823. feature_id AS polypeptide_magnesium_ion_contact_site_id,
  17824. feature.*
  17825. FROM
  17826. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17827. WHERE cvterm.name = 'polypeptide_magnesium_ion_contact_site';
  17828. --- ************************************************
  17829. --- *** relation: polypeptide_manganese_ion_contact_site ***
  17830. --- *** relation type: VIEW ***
  17831. --- *** ***
  17832. --- *** A binding site that, in the polypeptide ***
  17833. --- *** molecule, interacts selectively and non- ***
  17834. --- *** covalently with manganese ions. ***
  17835. --- ************************************************
  17836. ---
  17837. CREATE VIEW polypeptide_manganese_ion_contact_site AS
  17838. SELECT
  17839. feature_id AS polypeptide_manganese_ion_contact_site_id,
  17840. feature.*
  17841. FROM
  17842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17843. WHERE cvterm.name = 'polypeptide_manganese_ion_contact_site';
  17844. --- ************************************************
  17845. --- *** relation: polypeptide_molybdenum_ion_contact_site ***
  17846. --- *** relation type: VIEW ***
  17847. --- *** ***
  17848. --- *** A binding site that, in the polypeptide ***
  17849. --- *** molecule, interacts selectively and non- ***
  17850. --- *** covalently with molybdenum ions. ***
  17851. --- ************************************************
  17852. ---
  17853. CREATE VIEW polypeptide_molybdenum_ion_contact_site AS
  17854. SELECT
  17855. feature_id AS polypeptide_molybdenum_ion_contact_site_id,
  17856. feature.*
  17857. FROM
  17858. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17859. WHERE cvterm.name = 'polypeptide_molybdenum_ion_contact_site';
  17860. --- ************************************************
  17861. --- *** relation: polypeptide_nickel_ion_contact_site ***
  17862. --- *** relation type: VIEW ***
  17863. --- *** ***
  17864. --- *** A binding site that, in the polypeptide ***
  17865. --- *** molecule, interacts selectively and non- ***
  17866. --- *** covalently with nickel ions. ***
  17867. --- ************************************************
  17868. ---
  17869. CREATE VIEW polypeptide_nickel_ion_contact_site AS
  17870. SELECT
  17871. feature_id AS polypeptide_nickel_ion_contact_site_id,
  17872. feature.*
  17873. FROM
  17874. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17875. WHERE cvterm.name = 'polypeptide_nickel_ion_contact_site';
  17876. --- ************************************************
  17877. --- *** relation: polypeptide_tungsten_ion_contact_site ***
  17878. --- *** relation type: VIEW ***
  17879. --- *** ***
  17880. --- *** A binding site that, in the polypeptide ***
  17881. --- *** molecule, interacts selectively and non- ***
  17882. --- *** covalently with tungsten ions. ***
  17883. --- ************************************************
  17884. ---
  17885. CREATE VIEW polypeptide_tungsten_ion_contact_site AS
  17886. SELECT
  17887. feature_id AS polypeptide_tungsten_ion_contact_site_id,
  17888. feature.*
  17889. FROM
  17890. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17891. WHERE cvterm.name = 'polypeptide_tungsten_ion_contact_site';
  17892. --- ************************************************
  17893. --- *** relation: polypeptide_zinc_ion_contact_site ***
  17894. --- *** relation type: VIEW ***
  17895. --- *** ***
  17896. --- *** A binding site that, in the polypeptide ***
  17897. --- *** molecule, interacts selectively and non- ***
  17898. --- *** covalently with zinc ions. ***
  17899. --- ************************************************
  17900. ---
  17901. CREATE VIEW polypeptide_zinc_ion_contact_site AS
  17902. SELECT
  17903. feature_id AS polypeptide_zinc_ion_contact_site_id,
  17904. feature.*
  17905. FROM
  17906. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17907. WHERE cvterm.name = 'polypeptide_zinc_ion_contact_site';
  17908. --- ************************************************
  17909. --- *** relation: catalytic_residue ***
  17910. --- *** relation type: VIEW ***
  17911. --- *** ***
  17912. --- *** Amino acid involved in the activity of a ***
  17913. --- *** n enzyme. ***
  17914. --- ************************************************
  17915. ---
  17916. CREATE VIEW catalytic_residue AS
  17917. SELECT
  17918. feature_id AS catalytic_residue_id,
  17919. feature.*
  17920. FROM
  17921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17922. WHERE cvterm.name = 'catalytic_residue';
  17923. --- ************************************************
  17924. --- *** relation: polypeptide_ligand_contact ***
  17925. --- *** relation type: VIEW ***
  17926. --- *** ***
  17927. --- *** Residues which interact with a ligand. ***
  17928. --- ************************************************
  17929. ---
  17930. CREATE VIEW polypeptide_ligand_contact AS
  17931. SELECT
  17932. feature_id AS polypeptide_ligand_contact_id,
  17933. feature.*
  17934. FROM
  17935. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17936. WHERE cvterm.name = 'polypeptide_ligand_contact';
  17937. --- ************************************************
  17938. --- *** relation: asx_motif ***
  17939. --- *** relation type: VIEW ***
  17940. --- *** ***
  17941. --- *** A motif of five consecutive residues and ***
  17942. --- *** two H-bonds in which: Residue(i) is Asp ***
  17943. --- *** artate or Asparagine (Asx), side-chain O ***
  17944. --- *** of residue(i) is H-bonded to the main-c ***
  17945. --- *** hain NH of residue(i+2) or (i+3), main-c ***
  17946. --- *** hain CO of residue(i) is H-bonded to the ***
  17947. --- *** main-chain NH of residue(i+3) or (i+4). ***
  17948. --- ************************************************
  17949. ---
  17950. CREATE VIEW asx_motif AS
  17951. SELECT
  17952. feature_id AS asx_motif_id,
  17953. feature.*
  17954. FROM
  17955. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17956. WHERE cvterm.name = 'asx_motif';
  17957. --- ************************************************
  17958. --- *** relation: beta_bulge ***
  17959. --- *** relation type: VIEW ***
  17960. --- *** ***
  17961. --- *** A motif of three residues within a beta- ***
  17962. --- *** sheet in which the main chains of two co ***
  17963. --- *** nsecutive residues are H-bonded to that ***
  17964. --- *** of the third, and in which the dihedral ***
  17965. --- *** angles are as follows: Residue(i): -140 ***
  17966. --- *** degrees < phi(l) -20 degrees , -90 degre ***
  17967. --- *** es < psi(l) < 40 degrees. Residue (i+1): ***
  17968. --- *** -180 degrees < phi < -25 degrees or +12 ***
  17969. --- *** 0 degrees < phi < +180 degrees, +40 degr ***
  17970. --- *** ees < psi < +180 degrees or -180 degrees ***
  17971. --- *** < psi < -120 degrees. ***
  17972. --- ************************************************
  17973. ---
  17974. CREATE VIEW beta_bulge AS
  17975. SELECT
  17976. feature_id AS beta_bulge_id,
  17977. feature.*
  17978. FROM
  17979. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17980. WHERE cvterm.name = 'beta_bulge';
  17981. --- ************************************************
  17982. --- *** relation: beta_bulge_loop ***
  17983. --- *** relation type: VIEW ***
  17984. --- *** ***
  17985. --- *** A motif of three residues within a beta- ***
  17986. --- *** sheet consisting of two H-bonds. Beta bu ***
  17987. --- *** lge loops often occur at the loop ends o ***
  17988. --- *** f beta-hairpins. ***
  17989. --- ************************************************
  17990. ---
  17991. CREATE VIEW beta_bulge_loop AS
  17992. SELECT
  17993. feature_id AS beta_bulge_loop_id,
  17994. feature.*
  17995. FROM
  17996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17997. WHERE cvterm.name = 'beta_bulge_loop_five' OR cvterm.name = 'beta_bulge_loop_six' OR cvterm.name = 'beta_bulge_loop';
  17998. --- ************************************************
  17999. --- *** relation: beta_bulge_loop_five ***
  18000. --- *** relation type: VIEW ***
  18001. --- *** ***
  18002. --- *** A motif of three residues within a beta- ***
  18003. --- *** sheet consisting of two H-bonds in which ***
  18004. --- *** : the main-chain NH of residue(i) is H-b ***
  18005. --- *** onded to the main-chain CO of residue(i+ ***
  18006. --- *** 4), the main-chain CO of residue i is H- ***
  18007. --- *** bonded to the main-chain NH of residue(i ***
  18008. --- *** +3), these loops have an RL nest at resi ***
  18009. --- *** dues i+2 and i+3. ***
  18010. --- ************************************************
  18011. ---
  18012. CREATE VIEW beta_bulge_loop_five AS
  18013. SELECT
  18014. feature_id AS beta_bulge_loop_five_id,
  18015. feature.*
  18016. FROM
  18017. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18018. WHERE cvterm.name = 'beta_bulge_loop_five';
  18019. --- ************************************************
  18020. --- *** relation: beta_bulge_loop_six ***
  18021. --- *** relation type: VIEW ***
  18022. --- *** ***
  18023. --- *** A motif of three residues within a beta- ***
  18024. --- *** sheet consisting of two H-bonds in which ***
  18025. --- *** : the main-chain NH of residue(i) is H-b ***
  18026. --- *** onded to the main-chain CO of residue(i+ ***
  18027. --- *** 5), the main-chain CO of residue i is H- ***
  18028. --- *** bonded to the main-chain NH of residue(i ***
  18029. --- *** +4), these loops have an RL nest at resi ***
  18030. --- *** dues i+3 and i+4. ***
  18031. --- ************************************************
  18032. ---
  18033. CREATE VIEW beta_bulge_loop_six AS
  18034. SELECT
  18035. feature_id AS beta_bulge_loop_six_id,
  18036. feature.*
  18037. FROM
  18038. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18039. WHERE cvterm.name = 'beta_bulge_loop_six';
  18040. --- ************************************************
  18041. --- *** relation: beta_strand ***
  18042. --- *** relation type: VIEW ***
  18043. --- *** ***
  18044. --- *** A beta strand describes a single length ***
  18045. --- *** of polypeptide chain that forms part of ***
  18046. --- *** a beta sheet. A single continuous stretc ***
  18047. --- *** h of amino acids adopting an extended co ***
  18048. --- *** nformation of hydrogen bonds between the ***
  18049. --- *** N-O and the C=O of another part of the ***
  18050. --- *** peptide. This forms a secondary protein ***
  18051. --- *** structure in which two or more extended ***
  18052. --- *** polypeptide regions are hydrogen-bonded ***
  18053. --- *** to one another in a planar array. ***
  18054. --- ************************************************
  18055. ---
  18056. CREATE VIEW beta_strand AS
  18057. SELECT
  18058. feature_id AS beta_strand_id,
  18059. feature.*
  18060. FROM
  18061. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18062. WHERE cvterm.name = 'antiparallel_beta_strand' OR cvterm.name = 'parallel_beta_strand' OR cvterm.name = 'beta_strand';
  18063. --- ************************************************
  18064. --- *** relation: antiparallel_beta_strand ***
  18065. --- *** relation type: VIEW ***
  18066. --- *** ***
  18067. --- *** A peptide region which hydrogen bonded t ***
  18068. --- *** o another region of peptide running in t ***
  18069. --- *** he oposite direction (one running N-term ***
  18070. --- *** inal to C-terminal and one running C-ter ***
  18071. --- *** minal to N-terminal). Hydrogen bonding o ***
  18072. --- *** ccurs between every other C=O from one s ***
  18073. --- *** trand to every other N-H on the adjacent ***
  18074. --- *** strand. In this case, if two atoms C-al ***
  18075. --- *** pha (i) and C-alpha (j) are adjacent in ***
  18076. --- *** two hydrogen-bonded beta strands, then t ***
  18077. --- *** hey form two mutual backbone hydrogen bo ***
  18078. --- *** nds to each other's flanking peptide gro ***
  18079. --- *** ups; this is known as a close pair of hy ***
  18080. --- *** drogen bonds. The peptide backbone dihed ***
  18081. --- *** ral angles (phi, psi) are about (-140 de ***
  18082. --- *** grees, 135 degrees) in antiparallel shee ***
  18083. --- *** ts. ***
  18084. --- ************************************************
  18085. ---
  18086. CREATE VIEW antiparallel_beta_strand AS
  18087. SELECT
  18088. feature_id AS antiparallel_beta_strand_id,
  18089. feature.*
  18090. FROM
  18091. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18092. WHERE cvterm.name = 'antiparallel_beta_strand';
  18093. --- ************************************************
  18094. --- *** relation: parallel_beta_strand ***
  18095. --- *** relation type: VIEW ***
  18096. --- *** ***
  18097. --- *** A peptide region which hydrogen bonded t ***
  18098. --- *** o another region of peptide running in t ***
  18099. --- *** he oposite direction (both running N-ter ***
  18100. --- *** minal to C-terminal). This orientation i ***
  18101. --- *** s slightly less stable because it introd ***
  18102. --- *** uces nonplanarity in the inter-strand hy ***
  18103. --- *** drogen bonding pattern. Hydrogen bonding ***
  18104. --- *** occurs between every other C=O from one ***
  18105. --- *** strand to every other N-H on the adjace ***
  18106. --- *** nt strand. In this case, if two atoms C- ***
  18107. --- *** alpha (i)and C-alpha (j) are adjacent in ***
  18108. --- *** two hydrogen-bonded beta strands, then ***
  18109. --- *** they do not hydrogen bond to each other; ***
  18110. --- *** rather, one residue forms hydrogen bond ***
  18111. --- *** s to the residues that flank the other ( ***
  18112. --- *** but not vice versa). For example, residu ***
  18113. --- *** e i may form hydrogen bonds to residues ***
  18114. --- *** j - 1 and j + 1; this is known as a wide ***
  18115. --- *** pair of hydrogen bonds. By contrast, re ***
  18116. --- *** sidue j may hydrogen-bond to different r ***
  18117. --- *** esidues altogether, or to none at all. T ***
  18118. --- *** he dihedral angles (phi, psi) are about ***
  18119. --- *** (-120 degrees, 115 degrees) in parallel ***
  18120. --- *** sheets. ***
  18121. --- ************************************************
  18122. ---
  18123. CREATE VIEW parallel_beta_strand AS
  18124. SELECT
  18125. feature_id AS parallel_beta_strand_id,
  18126. feature.*
  18127. FROM
  18128. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18129. WHERE cvterm.name = 'parallel_beta_strand';
  18130. --- ************************************************
  18131. --- *** relation: peptide_helix ***
  18132. --- *** relation type: VIEW ***
  18133. --- *** ***
  18134. --- *** A helix is a secondary_structure conform ***
  18135. --- *** ation where the peptide backbone forms a ***
  18136. --- *** coil. ***
  18137. --- ************************************************
  18138. ---
  18139. CREATE VIEW peptide_helix AS
  18140. SELECT
  18141. feature_id AS peptide_helix_id,
  18142. feature.*
  18143. FROM
  18144. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18145. WHERE cvterm.name = 'left_handed_peptide_helix' OR cvterm.name = 'right_handed_peptide_helix' OR cvterm.name = 'alpha_helix' OR cvterm.name = 'pi_helix' OR cvterm.name = 'three_ten_helix' OR cvterm.name = 'peptide_helix';
  18146. --- ************************************************
  18147. --- *** relation: left_handed_peptide_helix ***
  18148. --- *** relation type: VIEW ***
  18149. --- *** ***
  18150. --- *** A left handed helix is a region of pepti ***
  18151. --- *** de where the coiled conformation turns i ***
  18152. --- *** n an anticlockwise, left handed screw. ***
  18153. --- ************************************************
  18154. ---
  18155. CREATE VIEW left_handed_peptide_helix AS
  18156. SELECT
  18157. feature_id AS left_handed_peptide_helix_id,
  18158. feature.*
  18159. FROM
  18160. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18161. WHERE cvterm.name = 'left_handed_peptide_helix';
  18162. --- ************************************************
  18163. --- *** relation: right_handed_peptide_helix ***
  18164. --- *** relation type: VIEW ***
  18165. --- *** ***
  18166. --- *** A right handed helix is a region of pept ***
  18167. --- *** ide where the coiled conformation turns ***
  18168. --- *** in a clockwise, right handed screw. ***
  18169. --- ************************************************
  18170. ---
  18171. CREATE VIEW right_handed_peptide_helix AS
  18172. SELECT
  18173. feature_id AS right_handed_peptide_helix_id,
  18174. feature.*
  18175. FROM
  18176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18177. WHERE cvterm.name = 'alpha_helix' OR cvterm.name = 'pi_helix' OR cvterm.name = 'three_ten_helix' OR cvterm.name = 'right_handed_peptide_helix';
  18178. --- ************************************************
  18179. --- *** relation: alpha_helix ***
  18180. --- *** relation type: VIEW ***
  18181. --- *** ***
  18182. --- *** The helix has 3.6 residues per turn whic ***
  18183. --- *** h corersponds to a translation of 1.5 an ***
  18184. --- *** gstroms (= 0.15 nm) along the helical ax ***
  18185. --- *** is. Every backbone N-H group donates a h ***
  18186. --- *** ydrogen bond to the backbone C=O group o ***
  18187. --- *** f the amino acid four residues earlier. ***
  18188. --- ************************************************
  18189. ---
  18190. CREATE VIEW alpha_helix AS
  18191. SELECT
  18192. feature_id AS alpha_helix_id,
  18193. feature.*
  18194. FROM
  18195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18196. WHERE cvterm.name = 'alpha_helix';
  18197. --- ************************************************
  18198. --- *** relation: pi_helix ***
  18199. --- *** relation type: VIEW ***
  18200. --- *** ***
  18201. --- *** The pi helix has 4.1 residues per turn a ***
  18202. --- *** nd a translation of 1.15 (=0.115 nm) al ***
  18203. --- *** ong the helical axis. The N-H group of a ***
  18204. --- *** n amino acid forms a hydrogen bond with ***
  18205. --- *** the C=O group of the amino acid five res ***
  18206. --- *** idues earlier. ***
  18207. --- ************************************************
  18208. ---
  18209. CREATE VIEW pi_helix AS
  18210. SELECT
  18211. feature_id AS pi_helix_id,
  18212. feature.*
  18213. FROM
  18214. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18215. WHERE cvterm.name = 'pi_helix';
  18216. --- ************************************************
  18217. --- *** relation: three_ten_helix ***
  18218. --- *** relation type: VIEW ***
  18219. --- *** ***
  18220. --- *** The 3-10 helix has 3 residues per turn w ***
  18221. --- *** ith a translation of 2.0 angstroms (=0.2 ***
  18222. --- *** nm) along the helical axis. The N-H gro ***
  18223. --- *** up of an amino acid forms a hydrogen bon ***
  18224. --- *** d with the C=O group of the amino acid t ***
  18225. --- *** hree residues earlier. ***
  18226. --- ************************************************
  18227. ---
  18228. CREATE VIEW three_ten_helix AS
  18229. SELECT
  18230. feature_id AS three_ten_helix_id,
  18231. feature.*
  18232. FROM
  18233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18234. WHERE cvterm.name = 'three_ten_helix';
  18235. --- ************************************************
  18236. --- *** relation: polypeptide_nest_motif ***
  18237. --- *** relation type: VIEW ***
  18238. --- *** ***
  18239. --- *** A motif of two consecutive residues with ***
  18240. --- *** dihedral angles. Nest should not have P ***
  18241. --- *** roline as any residue. Nests frequently ***
  18242. --- *** occur as parts of other motifs such as S ***
  18243. --- *** chellman loops. ***
  18244. --- ************************************************
  18245. ---
  18246. CREATE VIEW polypeptide_nest_motif AS
  18247. SELECT
  18248. feature_id AS polypeptide_nest_motif_id,
  18249. feature.*
  18250. FROM
  18251. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18252. WHERE cvterm.name = 'polypeptide_nest_left_right_motif' OR cvterm.name = 'polypeptide_nest_right_left_motif' OR cvterm.name = 'polypeptide_nest_motif';
  18253. --- ************************************************
  18254. --- *** relation: polypeptide_nest_left_right_motif ***
  18255. --- *** relation type: VIEW ***
  18256. --- *** ***
  18257. --- *** A motif of two consecutive residues with ***
  18258. --- *** dihedral angles: Residue(i): +20 degree ***
  18259. --- *** s < phi < +140 degrees, -40 degrees < ps ***
  18260. --- *** i < +90 degrees. Residue(i+1): -140 degr ***
  18261. --- *** ees < phi < -20 degrees, -90 degrees < p ***
  18262. --- *** si < +40 degrees. ***
  18263. --- ************************************************
  18264. ---
  18265. CREATE VIEW polypeptide_nest_left_right_motif AS
  18266. SELECT
  18267. feature_id AS polypeptide_nest_left_right_motif_id,
  18268. feature.*
  18269. FROM
  18270. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18271. WHERE cvterm.name = 'polypeptide_nest_left_right_motif';
  18272. --- ************************************************
  18273. --- *** relation: polypeptide_nest_right_left_motif ***
  18274. --- *** relation type: VIEW ***
  18275. --- *** ***
  18276. --- *** A motif of two consecutive residues with ***
  18277. --- *** dihedral angles: Residue(i): -140 degre ***
  18278. --- *** es < phi < -20 degrees, -90 degrees < ps ***
  18279. --- *** i < +40 degrees. Residue(i+1): +20 degre ***
  18280. --- *** es < phi < +140 degrees, -40 degrees < p ***
  18281. --- *** si < +90 degrees. ***
  18282. --- ************************************************
  18283. ---
  18284. CREATE VIEW polypeptide_nest_right_left_motif AS
  18285. SELECT
  18286. feature_id AS polypeptide_nest_right_left_motif_id,
  18287. feature.*
  18288. FROM
  18289. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18290. WHERE cvterm.name = 'polypeptide_nest_right_left_motif';
  18291. --- ************************************************
  18292. --- *** relation: schellmann_loop ***
  18293. --- *** relation type: VIEW ***
  18294. --- *** ***
  18295. --- *** A motif of six or seven consecutive resi ***
  18296. --- *** dues that contains two H-bonds. ***
  18297. --- ************************************************
  18298. ---
  18299. CREATE VIEW schellmann_loop AS
  18300. SELECT
  18301. feature_id AS schellmann_loop_id,
  18302. feature.*
  18303. FROM
  18304. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18305. WHERE cvterm.name = 'schellmann_loop_seven' OR cvterm.name = 'schellmann_loop_six' OR cvterm.name = 'schellmann_loop';
  18306. --- ************************************************
  18307. --- *** relation: schellmann_loop_seven ***
  18308. --- *** relation type: VIEW ***
  18309. --- *** ***
  18310. --- *** Wild type: A motif of seven consecutive ***
  18311. --- *** residues that contains two H-bonds in wh ***
  18312. --- *** ich: the main-chain CO of residue(i) is ***
  18313. --- *** H-bonded to the main-chain NH of residue ***
  18314. --- *** (i+6), the main-chain CO of residue(i+1) ***
  18315. --- *** is H-bonded to the main-chain NH of res ***
  18316. --- *** idue(i+5). ***
  18317. --- ************************************************
  18318. ---
  18319. CREATE VIEW schellmann_loop_seven AS
  18320. SELECT
  18321. feature_id AS schellmann_loop_seven_id,
  18322. feature.*
  18323. FROM
  18324. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18325. WHERE cvterm.name = 'schellmann_loop_seven';
  18326. --- ************************************************
  18327. --- *** relation: schellmann_loop_six ***
  18328. --- *** relation type: VIEW ***
  18329. --- *** ***
  18330. --- *** Common Type: A motif of six consecutive ***
  18331. --- *** residues that contains two H-bonds in wh ***
  18332. --- *** ich: the main-chain CO of residue(i) is ***
  18333. --- *** H-bonded to the main-chain NH of residue ***
  18334. --- *** (i+5) the main-chain CO of residue(i+1) ***
  18335. --- *** is H-bonded to the main-chain NH of resi ***
  18336. --- *** due(i+4). ***
  18337. --- ************************************************
  18338. ---
  18339. CREATE VIEW schellmann_loop_six AS
  18340. SELECT
  18341. feature_id AS schellmann_loop_six_id,
  18342. feature.*
  18343. FROM
  18344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18345. WHERE cvterm.name = 'schellmann_loop_six';
  18346. --- ************************************************
  18347. --- *** relation: serine_threonine_motif ***
  18348. --- *** relation type: VIEW ***
  18349. --- *** ***
  18350. --- *** A motif of five consecutive residues and ***
  18351. --- *** two hydrogen bonds in which: residue(i) ***
  18352. --- *** is Serine (S) or Threonine (T), the sid ***
  18353. --- *** e-chain O of residue(i) is H-bonded to t ***
  18354. --- *** he main-chain NH of residue(i+2) or (i+3 ***
  18355. --- *** ) , the main-chain CO group of residue(i ***
  18356. --- *** ) is H-bonded to the main-chain NH of re ***
  18357. --- *** sidue(i+3) or (i+4). ***
  18358. --- ************************************************
  18359. ---
  18360. CREATE VIEW serine_threonine_motif AS
  18361. SELECT
  18362. feature_id AS serine_threonine_motif_id,
  18363. feature.*
  18364. FROM
  18365. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18366. WHERE cvterm.name = 'serine_threonine_motif';
  18367. --- ************************************************
  18368. --- *** relation: serine_threonine_staple_motif ***
  18369. --- *** relation type: VIEW ***
  18370. --- *** ***
  18371. --- *** A motif of four or five consecutive resi ***
  18372. --- *** dues and one H-bond in which: residue(i) ***
  18373. --- *** is Serine (S) or Threonine (T), the sid ***
  18374. --- *** e-chain OH of residue(i) is H-bonded to ***
  18375. --- *** the main-chain CO of residue(i3) or (i4) ***
  18376. --- *** , Phi angles of residues(i1), (i2) and ( ***
  18377. --- *** i3) are negative. ***
  18378. --- ************************************************
  18379. ---
  18380. CREATE VIEW serine_threonine_staple_motif AS
  18381. SELECT
  18382. feature_id AS serine_threonine_staple_motif_id,
  18383. feature.*
  18384. FROM
  18385. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18386. WHERE cvterm.name = 'serine_threonine_staple_motif';
  18387. --- ************************************************
  18388. --- *** relation: polypeptide_turn_motif ***
  18389. --- *** relation type: VIEW ***
  18390. --- *** ***
  18391. --- *** A reversal in the direction of the backb ***
  18392. --- *** one of a protein that is stabilized by h ***
  18393. --- *** ydrogen bond between backbone NH and CO ***
  18394. --- *** groups, involving no more than 4 amino a ***
  18395. --- *** cid residues. ***
  18396. --- ************************************************
  18397. ---
  18398. CREATE VIEW polypeptide_turn_motif AS
  18399. SELECT
  18400. feature_id AS polypeptide_turn_motif_id,
  18401. feature.*
  18402. FROM
  18403. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18404. WHERE cvterm.name = 'asx_turn' OR cvterm.name = 'beta_turn' OR cvterm.name = 'gamma_turn' OR cvterm.name = 'serine_threonine_turn' OR cvterm.name = 'asx_turn_left_handed_type_one' OR cvterm.name = 'asx_turn_left_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_two' OR cvterm.name = 'beta_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_right_handed_type_two' OR cvterm.name = 'beta_turn_type_six' OR cvterm.name = 'beta_turn_type_eight' OR cvterm.name = 'beta_turn_type_six_a' OR cvterm.name = 'beta_turn_type_six_b' OR cvterm.name = 'beta_turn_type_six_a_one' OR cvterm.name = 'beta_turn_type_six_a_two' OR cvterm.name = 'gamma_turn_classic' OR cvterm.name = 'gamma_turn_inverse' OR cvterm.name = 'st_turn_left_handed_type_one' OR cvterm.name = 'st_turn_left_handed_type_two' OR cvterm.name = 'st_turn_right_handed_type_one' OR cvterm.name = 'st_turn_right_handed_type_two' OR cvterm.name = 'polypeptide_turn_motif';
  18405. --- ************************************************
  18406. --- *** relation: asx_turn_left_handed_type_one ***
  18407. --- *** relation type: VIEW ***
  18408. --- *** ***
  18409. --- *** Left handed type I (dihedral angles):- R ***
  18410. --- *** esidue(i): -140 degrees < chi (1) -120 d ***
  18411. --- *** egrees < -20 degrees, -90 degrees < psi ***
  18412. --- *** +120 degrees < +40 degrees. Residue(i+1) ***
  18413. --- *** : -140 degrees < phi < -20 degrees, -90 ***
  18414. --- *** degrees < psi < +40 degrees. ***
  18415. --- ************************************************
  18416. ---
  18417. CREATE VIEW asx_turn_left_handed_type_one AS
  18418. SELECT
  18419. feature_id AS asx_turn_left_handed_type_one_id,
  18420. feature.*
  18421. FROM
  18422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18423. WHERE cvterm.name = 'asx_turn_left_handed_type_one';
  18424. --- ************************************************
  18425. --- *** relation: asx_turn_left_handed_type_two ***
  18426. --- *** relation type: VIEW ***
  18427. --- *** ***
  18428. --- *** Left handed type II (dihedral angles):- ***
  18429. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18430. --- *** degrees < -20 degrees, +80 degrees < psi ***
  18431. --- *** +120 degrees < +180 degrees. Residue(i+ ***
  18432. --- *** 1): +20 degrees < phi < +140 degrees, -4 ***
  18433. --- *** 0 degrees < psi < +90 degrees. ***
  18434. --- ************************************************
  18435. ---
  18436. CREATE VIEW asx_turn_left_handed_type_two AS
  18437. SELECT
  18438. feature_id AS asx_turn_left_handed_type_two_id,
  18439. feature.*
  18440. FROM
  18441. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18442. WHERE cvterm.name = 'asx_turn_left_handed_type_two';
  18443. --- ************************************************
  18444. --- *** relation: asx_turn_right_handed_type_two ***
  18445. --- *** relation type: VIEW ***
  18446. --- *** ***
  18447. --- *** Right handed type II (dihedral angles):- ***
  18448. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18449. --- *** degrees < -20 degrees, +80 degrees < ps ***
  18450. --- *** i +120 degrees < +180 degrees. Residue(i ***
  18451. --- *** +1): +20 degrees < phi < +140 degrees, - ***
  18452. --- *** 40 degrees < psi < +90 degrees. ***
  18453. --- ************************************************
  18454. ---
  18455. CREATE VIEW asx_turn_right_handed_type_two AS
  18456. SELECT
  18457. feature_id AS asx_turn_right_handed_type_two_id,
  18458. feature.*
  18459. FROM
  18460. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18461. WHERE cvterm.name = 'asx_turn_right_handed_type_two';
  18462. --- ************************************************
  18463. --- *** relation: asx_turn_right_handed_type_one ***
  18464. --- *** relation type: VIEW ***
  18465. --- *** ***
  18466. --- *** Right handed type I (dihedral angles):- ***
  18467. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18468. --- *** degrees < -20 degrees, -90 degrees < psi ***
  18469. --- *** +120 degrees < +40 degrees. Residue(i+1 ***
  18470. --- *** ): -140 degrees < phi < -20 degrees, -90 ***
  18471. --- *** degrees < psi < +40 degrees. ***
  18472. --- ************************************************
  18473. ---
  18474. CREATE VIEW asx_turn_right_handed_type_one AS
  18475. SELECT
  18476. feature_id AS asx_turn_right_handed_type_one_id,
  18477. feature.*
  18478. FROM
  18479. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18480. WHERE cvterm.name = 'asx_turn_right_handed_type_one';
  18481. --- ************************************************
  18482. --- *** relation: beta_turn ***
  18483. --- *** relation type: VIEW ***
  18484. --- *** ***
  18485. --- *** A motif of four consecutive residues tha ***
  18486. --- *** t may contain one H-bond, which, if pres ***
  18487. --- *** ent, is between the main-chain CO of the ***
  18488. --- *** first residue and the main-chain NH of ***
  18489. --- *** the fourth. It is characterized by the d ***
  18490. --- *** ihedral angles of the second and third r ***
  18491. --- *** esidues, which are the basis for sub-cat ***
  18492. --- *** egorization. ***
  18493. --- ************************************************
  18494. ---
  18495. CREATE VIEW beta_turn AS
  18496. SELECT
  18497. feature_id AS beta_turn_id,
  18498. feature.*
  18499. FROM
  18500. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18501. WHERE cvterm.name = 'beta_turn_left_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_two' OR cvterm.name = 'beta_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_right_handed_type_two' OR cvterm.name = 'beta_turn_type_six' OR cvterm.name = 'beta_turn_type_eight' OR cvterm.name = 'beta_turn_type_six_a' OR cvterm.name = 'beta_turn_type_six_b' OR cvterm.name = 'beta_turn_type_six_a_one' OR cvterm.name = 'beta_turn_type_six_a_two' OR cvterm.name = 'beta_turn';
  18502. --- ************************************************
  18503. --- *** relation: beta_turn_left_handed_type_one ***
  18504. --- *** relation type: VIEW ***
  18505. --- *** ***
  18506. --- *** Left handed type I:A motif of four conse ***
  18507. --- *** cutive residues that may contain one H-b ***
  18508. --- *** ond, which, if present, is between the m ***
  18509. --- *** ain-chain CO of the first residue and th ***
  18510. --- *** e main-chain NH of the fourth. It is cha ***
  18511. --- *** racterized by the dihedral angles:- Resi ***
  18512. --- *** due(i+1): -140 degrees > phi > -20 degre ***
  18513. --- *** es, -90 degrees > psi > +40 degrees. Res ***
  18514. --- *** idue(i+2): -140 degrees > phi > -20 degr ***
  18515. --- *** ees, -90 degrees > psi > +40 degrees. ***
  18516. --- ************************************************
  18517. ---
  18518. CREATE VIEW beta_turn_left_handed_type_one AS
  18519. SELECT
  18520. feature_id AS beta_turn_left_handed_type_one_id,
  18521. feature.*
  18522. FROM
  18523. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18524. WHERE cvterm.name = 'beta_turn_left_handed_type_one';
  18525. --- ************************************************
  18526. --- *** relation: beta_turn_left_handed_type_two ***
  18527. --- *** relation type: VIEW ***
  18528. --- *** ***
  18529. --- *** Left handed type II: A motif of four con ***
  18530. --- *** secutive residues that may contain one H ***
  18531. --- *** -bond, which, if present, is between the ***
  18532. --- *** main-chain CO of the first residue and ***
  18533. --- *** the main-chain NH of the fourth. It is c ***
  18534. --- *** haracterized by the dihedral angles: Res ***
  18535. --- *** idue(i+1): -140 degrees > phi > -20 degr ***
  18536. --- *** ees, +80 degrees > psi > +180 degrees. R ***
  18537. --- *** esidue(i+2): +20 degrees > phi > +140 de ***
  18538. --- *** grees, -40 degrees > psi > +90 degrees. ***
  18539. --- ************************************************
  18540. ---
  18541. CREATE VIEW beta_turn_left_handed_type_two AS
  18542. SELECT
  18543. feature_id AS beta_turn_left_handed_type_two_id,
  18544. feature.*
  18545. FROM
  18546. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18547. WHERE cvterm.name = 'beta_turn_left_handed_type_two';
  18548. --- ************************************************
  18549. --- *** relation: beta_turn_right_handed_type_one ***
  18550. --- *** relation type: VIEW ***
  18551. --- *** ***
  18552. --- *** Right handed type I:A motif of four cons ***
  18553. --- *** ecutive residues that may contain one H- ***
  18554. --- *** bond, which, if present, is between the ***
  18555. --- *** main-chain CO of the first residue and t ***
  18556. --- *** he main-chain NH of the fourth. It is ch ***
  18557. --- *** aracterized by the dihedral angles: Resi ***
  18558. --- *** due(i+1): -140 degrees < phi < -20 degre ***
  18559. --- *** es, -90 degrees < psi < +40 degrees. Res ***
  18560. --- *** idue(i+2): -140 degrees < phi < -20 degr ***
  18561. --- *** ees, -90 degrees < psi < +40 degrees. ***
  18562. --- ************************************************
  18563. ---
  18564. CREATE VIEW beta_turn_right_handed_type_one AS
  18565. SELECT
  18566. feature_id AS beta_turn_right_handed_type_one_id,
  18567. feature.*
  18568. FROM
  18569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18570. WHERE cvterm.name = 'beta_turn_right_handed_type_one';
  18571. --- ************************************************
  18572. --- *** relation: beta_turn_right_handed_type_two ***
  18573. --- *** relation type: VIEW ***
  18574. --- *** ***
  18575. --- *** Right handed type II:A motif of four con ***
  18576. --- *** secutive residues that may contain one H ***
  18577. --- *** -bond, which, if present, is between the ***
  18578. --- *** main-chain CO of the first residue and ***
  18579. --- *** the main-chain NH of the fourth. It is c ***
  18580. --- *** haracterized by the dihedral angles: Res ***
  18581. --- *** idue(i+1): -140 degrees < phi < -20 degr ***
  18582. --- *** ees, +80 degrees < psi < +180 degrees. R ***
  18583. --- *** esidue(i+2): +20 degrees < phi < +140 de ***
  18584. --- *** grees, -40 degrees < psi < +90 degrees. ***
  18585. --- ************************************************
  18586. ---
  18587. CREATE VIEW beta_turn_right_handed_type_two AS
  18588. SELECT
  18589. feature_id AS beta_turn_right_handed_type_two_id,
  18590. feature.*
  18591. FROM
  18592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18593. WHERE cvterm.name = 'beta_turn_right_handed_type_two';
  18594. --- ************************************************
  18595. --- *** relation: gamma_turn ***
  18596. --- *** relation type: VIEW ***
  18597. --- *** ***
  18598. --- *** Gamma turns, defined for 3 residues i,( ***
  18599. --- *** i+1),( i+2) if a hydrogen bond exists be ***
  18600. --- *** tween residues i and i+2 and the phi and ***
  18601. --- *** psi angles of residue i+1 fall within 4 ***
  18602. --- *** 0 degrees. ***
  18603. --- ************************************************
  18604. ---
  18605. CREATE VIEW gamma_turn AS
  18606. SELECT
  18607. feature_id AS gamma_turn_id,
  18608. feature.*
  18609. FROM
  18610. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18611. WHERE cvterm.name = 'gamma_turn_classic' OR cvterm.name = 'gamma_turn_inverse' OR cvterm.name = 'gamma_turn';
  18612. --- ************************************************
  18613. --- *** relation: gamma_turn_classic ***
  18614. --- *** relation type: VIEW ***
  18615. --- *** ***
  18616. --- *** Gamma turns, defined for 3 residues i, i ***
  18617. --- *** +1, i+2 if a hydrogen bond exists betwee ***
  18618. --- *** n residues i and i+2 and the phi and psi ***
  18619. --- *** angles of residue i+1 fall within 40 de ***
  18620. --- *** grees: phi(i+1)=75.0 - psi(i+1)=-64.0. ***
  18621. --- ************************************************
  18622. ---
  18623. CREATE VIEW gamma_turn_classic AS
  18624. SELECT
  18625. feature_id AS gamma_turn_classic_id,
  18626. feature.*
  18627. FROM
  18628. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18629. WHERE cvterm.name = 'gamma_turn_classic';
  18630. --- ************************************************
  18631. --- *** relation: gamma_turn_inverse ***
  18632. --- *** relation type: VIEW ***
  18633. --- *** ***
  18634. --- *** Gamma turns, defined for 3 residues i, i ***
  18635. --- *** +1, i+2 if a hydrogen bond exists betwee ***
  18636. --- *** n residues i and i+2 and the phi and psi ***
  18637. --- *** angles of residue i+1 fall within 40 de ***
  18638. --- *** grees: phi(i+1)=-79.0 - psi(i+1)=69.0. ***
  18639. --- ************************************************
  18640. ---
  18641. CREATE VIEW gamma_turn_inverse AS
  18642. SELECT
  18643. feature_id AS gamma_turn_inverse_id,
  18644. feature.*
  18645. FROM
  18646. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18647. WHERE cvterm.name = 'gamma_turn_inverse';
  18648. --- ************************************************
  18649. --- *** relation: serine_threonine_turn ***
  18650. --- *** relation type: VIEW ***
  18651. --- *** ***
  18652. --- *** A motif of three consecutive residues an ***
  18653. --- *** d one H-bond in which: residue(i) is Ser ***
  18654. --- *** ine (S) or Threonine (T), the side-chain ***
  18655. --- *** O of residue(i) is H-bonded to the main ***
  18656. --- *** -chain NH of residue(i+2). ***
  18657. --- ************************************************
  18658. ---
  18659. CREATE VIEW serine_threonine_turn AS
  18660. SELECT
  18661. feature_id AS serine_threonine_turn_id,
  18662. feature.*
  18663. FROM
  18664. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18665. WHERE cvterm.name = 'st_turn_left_handed_type_one' OR cvterm.name = 'st_turn_left_handed_type_two' OR cvterm.name = 'st_turn_right_handed_type_one' OR cvterm.name = 'st_turn_right_handed_type_two' OR cvterm.name = 'serine_threonine_turn';
  18666. --- ************************************************
  18667. --- *** relation: st_turn_left_handed_type_one ***
  18668. --- *** relation type: VIEW ***
  18669. --- *** ***
  18670. --- *** The peptide twists in an anticlockwise, ***
  18671. --- *** left handed manner. The dihedral angles ***
  18672. --- *** for this turn are: Residue(i): -140 degr ***
  18673. --- *** ees < chi(1) -120 degrees < -20 degrees, ***
  18674. --- *** -90 degrees psi +120 degrees < +40 degr ***
  18675. --- *** ees, residue(i+1): -140 degrees < phi < ***
  18676. --- *** -20 degrees, -90 < psi < +40 degrees. ***
  18677. --- ************************************************
  18678. ---
  18679. CREATE VIEW st_turn_left_handed_type_one AS
  18680. SELECT
  18681. feature_id AS st_turn_left_handed_type_one_id,
  18682. feature.*
  18683. FROM
  18684. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18685. WHERE cvterm.name = 'st_turn_left_handed_type_one';
  18686. --- ************************************************
  18687. --- *** relation: st_turn_left_handed_type_two ***
  18688. --- *** relation type: VIEW ***
  18689. --- *** ***
  18690. --- *** The peptide twists in an anticlockwise, ***
  18691. --- *** left handed manner. The dihedral angles ***
  18692. --- *** for this turn are: Residue(i): -140 degr ***
  18693. --- *** ees < chi(1) -120 degrees < -20 degrees, ***
  18694. --- *** +80 degrees psi +120 degrees < +180 deg ***
  18695. --- *** rees, residue(i+1): +20 degrees < phi < ***
  18696. --- *** +140 degrees, -40 < psi < +90 degrees. ***
  18697. --- ************************************************
  18698. ---
  18699. CREATE VIEW st_turn_left_handed_type_two AS
  18700. SELECT
  18701. feature_id AS st_turn_left_handed_type_two_id,
  18702. feature.*
  18703. FROM
  18704. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18705. WHERE cvterm.name = 'st_turn_left_handed_type_two';
  18706. --- ************************************************
  18707. --- *** relation: st_turn_right_handed_type_one ***
  18708. --- *** relation type: VIEW ***
  18709. --- *** ***
  18710. --- *** The peptide twists in an clockwise, righ ***
  18711. --- *** t handed manner. The dihedral angles for ***
  18712. --- *** this turn are: Residue(i): -140 degrees ***
  18713. --- *** < chi(1) -120 degrees < -20 degrees, -9 ***
  18714. --- *** 0 degrees psi +120 degrees < +40 degrees ***
  18715. --- *** , residue(i+1): -140 degrees < phi < -20 ***
  18716. --- *** degrees, -90 < psi < +40 degrees. ***
  18717. --- ************************************************
  18718. ---
  18719. CREATE VIEW st_turn_right_handed_type_one AS
  18720. SELECT
  18721. feature_id AS st_turn_right_handed_type_one_id,
  18722. feature.*
  18723. FROM
  18724. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18725. WHERE cvterm.name = 'st_turn_right_handed_type_one';
  18726. --- ************************************************
  18727. --- *** relation: st_turn_right_handed_type_two ***
  18728. --- *** relation type: VIEW ***
  18729. --- *** ***
  18730. --- *** The peptide twists in an clockwise, righ ***
  18731. --- *** t handed manner. The dihedral angles for ***
  18732. --- *** this turn are: Residue(i): -140 degrees ***
  18733. --- *** < chi(1) -120 degrees < -20 degrees, +8 ***
  18734. --- *** 0 degrees psi +120 degrees < +180 degree ***
  18735. --- *** s, residue(i+1): +20 degrees < phi < +14 ***
  18736. --- *** 0 degrees, -40 < psi < +90 degrees. ***
  18737. --- ************************************************
  18738. ---
  18739. CREATE VIEW st_turn_right_handed_type_two AS
  18740. SELECT
  18741. feature_id AS st_turn_right_handed_type_two_id,
  18742. feature.*
  18743. FROM
  18744. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18745. WHERE cvterm.name = 'st_turn_right_handed_type_two';
  18746. --- ************************************************
  18747. --- *** relation: polypeptide_variation_site ***
  18748. --- *** relation type: VIEW ***
  18749. --- *** ***
  18750. --- *** A site of sequence variation (alteration ***
  18751. --- *** ). Alternative sequence due to naturally ***
  18752. --- *** occuring events such as polymorphisms a ***
  18753. --- *** nd altermatve splicing or experimental m ***
  18754. --- *** ethods such as site directed mutagenesis ***
  18755. --- *** . ***
  18756. --- ************************************************
  18757. ---
  18758. CREATE VIEW polypeptide_variation_site AS
  18759. SELECT
  18760. feature_id AS polypeptide_variation_site_id,
  18761. feature.*
  18762. FROM
  18763. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18764. WHERE cvterm.name = 'natural_variant_site' OR cvterm.name = 'mutated_variant_site' OR cvterm.name = 'alternate_sequence_site' OR cvterm.name = 'polypeptide_variation_site';
  18765. --- ************************************************
  18766. --- *** relation: natural_variant_site ***
  18767. --- *** relation type: VIEW ***
  18768. --- *** ***
  18769. --- *** Describes the natural sequence variants ***
  18770. --- *** due to polymorphisms, disease-associated ***
  18771. --- *** mutations, RNA editing and variations b ***
  18772. --- *** etween strains, isolates or cultivars. ***
  18773. --- ************************************************
  18774. ---
  18775. CREATE VIEW natural_variant_site AS
  18776. SELECT
  18777. feature_id AS natural_variant_site_id,
  18778. feature.*
  18779. FROM
  18780. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18781. WHERE cvterm.name = 'natural_variant_site';
  18782. --- ************************************************
  18783. --- *** relation: mutated_variant_site ***
  18784. --- *** relation type: VIEW ***
  18785. --- *** ***
  18786. --- *** Site which has been experimentally alter ***
  18787. --- *** ed. ***
  18788. --- ************************************************
  18789. ---
  18790. CREATE VIEW mutated_variant_site AS
  18791. SELECT
  18792. feature_id AS mutated_variant_site_id,
  18793. feature.*
  18794. FROM
  18795. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18796. WHERE cvterm.name = 'mutated_variant_site';
  18797. --- ************************************************
  18798. --- *** relation: alternate_sequence_site ***
  18799. --- *** relation type: VIEW ***
  18800. --- *** ***
  18801. --- *** Description of sequence variants produce ***
  18802. --- *** d by alternative splicing, alternative p ***
  18803. --- *** romoter usage, alternative initiation an ***
  18804. --- *** d ribosomal frameshifting. ***
  18805. --- ************************************************
  18806. ---
  18807. CREATE VIEW alternate_sequence_site AS
  18808. SELECT
  18809. feature_id AS alternate_sequence_site_id,
  18810. feature.*
  18811. FROM
  18812. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18813. WHERE cvterm.name = 'alternate_sequence_site';
  18814. --- ************************************************
  18815. --- *** relation: beta_turn_type_six ***
  18816. --- *** relation type: VIEW ***
  18817. --- *** ***
  18818. --- *** A motif of four consecutive peptide resi ***
  18819. --- *** des of type VIa or type VIb and where th ***
  18820. --- *** e i+2 residue is cis-proline. ***
  18821. --- ************************************************
  18822. ---
  18823. CREATE VIEW beta_turn_type_six AS
  18824. SELECT
  18825. feature_id AS beta_turn_type_six_id,
  18826. feature.*
  18827. FROM
  18828. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18829. WHERE cvterm.name = 'beta_turn_type_six_a' OR cvterm.name = 'beta_turn_type_six_b' OR cvterm.name = 'beta_turn_type_six_a_one' OR cvterm.name = 'beta_turn_type_six_a_two' OR cvterm.name = 'beta_turn_type_six';
  18830. --- ************************************************
  18831. --- *** relation: beta_turn_type_six_a ***
  18832. --- *** relation type: VIEW ***
  18833. --- *** ***
  18834. --- *** A motif of four consecutive peptide resi ***
  18835. --- *** dues, of which the i+2 residue is prolin ***
  18836. --- *** e, and that may contain one H-bond, whic ***
  18837. --- *** h, if present, is between the main-chain ***
  18838. --- *** CO of the first residue and the main-ch ***
  18839. --- *** ain NH of the fourth and is characterize ***
  18840. --- *** d by the dihedral angles: Residue(i+1): ***
  18841. --- *** phi ~ -60 degrees, psi ~ 120 degrees. Re ***
  18842. --- *** sidue(i+2): phi ~ -90 degrees, psi ~ 0 d ***
  18843. --- *** egrees. ***
  18844. --- ************************************************
  18845. ---
  18846. CREATE VIEW beta_turn_type_six_a AS
  18847. SELECT
  18848. feature_id AS beta_turn_type_six_a_id,
  18849. feature.*
  18850. FROM
  18851. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18852. WHERE cvterm.name = 'beta_turn_type_six_a_one' OR cvterm.name = 'beta_turn_type_six_a_two' OR cvterm.name = 'beta_turn_type_six_a';
  18853. --- ************************************************
  18854. --- *** relation: beta_turn_type_six_a_one ***
  18855. --- *** relation type: VIEW ***
  18856. --- *** ***
  18857. --- ************************************************
  18858. ---
  18859. CREATE VIEW beta_turn_type_six_a_one AS
  18860. SELECT
  18861. feature_id AS beta_turn_type_six_a_one_id,
  18862. feature.*
  18863. FROM
  18864. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18865. WHERE cvterm.name = 'beta_turn_type_six_a_one';
  18866. --- ************************************************
  18867. --- *** relation: beta_turn_type_six_a_two ***
  18868. --- *** relation type: VIEW ***
  18869. --- *** ***
  18870. --- ************************************************
  18871. ---
  18872. CREATE VIEW beta_turn_type_six_a_two AS
  18873. SELECT
  18874. feature_id AS beta_turn_type_six_a_two_id,
  18875. feature.*
  18876. FROM
  18877. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18878. WHERE cvterm.name = 'beta_turn_type_six_a_two';
  18879. --- ************************************************
  18880. --- *** relation: beta_turn_type_six_b ***
  18881. --- *** relation type: VIEW ***
  18882. --- *** ***
  18883. --- *** A motif of four consecutive peptide resi ***
  18884. --- *** dues, of which the i+2 residue is prolin ***
  18885. --- *** e, and that may contain one H-bond, whic ***
  18886. --- *** h, if present, is between the main-chain ***
  18887. --- *** CO of the first residue and the main-ch ***
  18888. --- *** ain NH of the fourth and is characterize ***
  18889. --- *** d by the dihedral angles: Residue(i+1): ***
  18890. --- *** phi ~ -120 degrees, psi ~ 120 degrees. R ***
  18891. --- *** esidue(i+2): phi ~ -60 degrees, psi ~ 0 ***
  18892. --- *** degrees. ***
  18893. --- ************************************************
  18894. ---
  18895. CREATE VIEW beta_turn_type_six_b AS
  18896. SELECT
  18897. feature_id AS beta_turn_type_six_b_id,
  18898. feature.*
  18899. FROM
  18900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18901. WHERE cvterm.name = 'beta_turn_type_six_b';
  18902. --- ************************************************
  18903. --- *** relation: beta_turn_type_eight ***
  18904. --- *** relation type: VIEW ***
  18905. --- *** ***
  18906. --- *** A motif of four consecutive peptide resi ***
  18907. --- *** dues that may contain one H-bond, which, ***
  18908. --- *** if present, is between the main-chain C ***
  18909. --- *** O of the first residue and the main-chai ***
  18910. --- *** n NH of the fourth and is characterized ***
  18911. --- *** by the dihedral angles: Residue(i+1): ph ***
  18912. --- *** i ~ -60 degrees, psi ~ -30 degrees. Resi ***
  18913. --- *** due(i+2): phi ~ -120 degrees, psi ~ 120 ***
  18914. --- *** degrees. ***
  18915. --- ************************************************
  18916. ---
  18917. CREATE VIEW beta_turn_type_eight AS
  18918. SELECT
  18919. feature_id AS beta_turn_type_eight_id,
  18920. feature.*
  18921. FROM
  18922. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18923. WHERE cvterm.name = 'beta_turn_type_eight';
  18924. --- ************************************************
  18925. --- *** relation: dre_motif ***
  18926. --- *** relation type: VIEW ***
  18927. --- *** ***
  18928. --- *** A sequence element characteristic of som ***
  18929. --- *** e RNA polymerase II promoters, usually l ***
  18930. --- *** ocated between -10 and -60 relative to t ***
  18931. --- *** he TSS. Consensus sequence is WATCGATW. ***
  18932. --- ************************************************
  18933. ---
  18934. CREATE VIEW dre_motif AS
  18935. SELECT
  18936. feature_id AS dre_motif_id,
  18937. feature.*
  18938. FROM
  18939. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18940. WHERE cvterm.name = 'DRE_motif';
  18941. --- ************************************************
  18942. --- *** relation: dmv4_motif ***
  18943. --- *** relation type: VIEW ***
  18944. --- *** ***
  18945. --- *** A sequence element characteristic of som ***
  18946. --- *** e RNA polymerase II promoters, located i ***
  18947. --- *** mmediately upstream of some TATA box ele ***
  18948. --- *** ments with respect to the TSS (+1). Cons ***
  18949. --- *** ensus sequence is YGGTCACACTR. Marked sp ***
  18950. --- *** atial preference within core promoter; t ***
  18951. --- *** end to occur near the TSS, although not ***
  18952. --- *** as tightly as INR (SO:0000014). ***
  18953. --- ************************************************
  18954. ---
  18955. CREATE VIEW dmv4_motif AS
  18956. SELECT
  18957. feature_id AS dmv4_motif_id,
  18958. feature.*
  18959. FROM
  18960. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18961. WHERE cvterm.name = 'DMv4_motif';
  18962. --- ************************************************
  18963. --- *** relation: e_box_motif ***
  18964. --- *** relation type: VIEW ***
  18965. --- *** ***
  18966. --- *** A sequence element characteristic of som ***
  18967. --- *** e RNA polymerase II promoters, usually l ***
  18968. --- *** ocated between -60 and +1 relative to th ***
  18969. --- *** e TSS. Consensus sequence is AWCAGCTGWT. ***
  18970. --- *** Tends to co-occur with DMv2 (SO:0001161 ***
  18971. --- *** ). Tends to not occur with DPE motif (SO ***
  18972. --- *** :0000015). ***
  18973. --- ************************************************
  18974. ---
  18975. CREATE VIEW e_box_motif AS
  18976. SELECT
  18977. feature_id AS e_box_motif_id,
  18978. feature.*
  18979. FROM
  18980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18981. WHERE cvterm.name = 'E_box_motif';
  18982. --- ************************************************
  18983. --- *** relation: dmv5_motif ***
  18984. --- *** relation type: VIEW ***
  18985. --- *** ***
  18986. --- *** A sequence element characteristic of som ***
  18987. --- *** e RNA polymerase II promoters, usually l ***
  18988. --- *** ocated between -50 and -10 relative to t ***
  18989. --- *** he TSS. Consensus sequence is KTYRGTATWT ***
  18990. --- *** TT. Tends to co-occur with DMv4 (SO:0001 ***
  18991. --- *** 157) . Tends to not occur with DPE motif ***
  18992. --- *** (SO:0000015) or MTE (SO:0001162). ***
  18993. --- ************************************************
  18994. ---
  18995. CREATE VIEW dmv5_motif AS
  18996. SELECT
  18997. feature_id AS dmv5_motif_id,
  18998. feature.*
  18999. FROM
  19000. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19001. WHERE cvterm.name = 'DMv5_motif';
  19002. --- ************************************************
  19003. --- *** relation: dmv3_motif ***
  19004. --- *** relation type: VIEW ***
  19005. --- *** ***
  19006. --- *** A sequence element characteristic of som ***
  19007. --- *** e RNA polymerase II promoters, usually l ***
  19008. --- *** ocated between -30 and +15 relative to t ***
  19009. --- *** he TSS. Consensus sequence is KNNCAKCNCT ***
  19010. --- *** RNY. Tends to co-occur with DMv2 (SO:000 ***
  19011. --- *** 1161). Tends to not occur with DPE motif ***
  19012. --- *** (SO:0000015) or MTE (0001162). ***
  19013. --- ************************************************
  19014. ---
  19015. CREATE VIEW dmv3_motif AS
  19016. SELECT
  19017. feature_id AS dmv3_motif_id,
  19018. feature.*
  19019. FROM
  19020. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19021. WHERE cvterm.name = 'DMv3_motif';
  19022. --- ************************************************
  19023. --- *** relation: dmv2_motif ***
  19024. --- *** relation type: VIEW ***
  19025. --- *** ***
  19026. --- *** A sequence element characteristic of som ***
  19027. --- *** e RNA polymerase II promoters, usually l ***
  19028. --- *** ocated between -60 and -45 relative to t ***
  19029. --- *** he TSS. Consensus sequence is MKSYGGCARC ***
  19030. --- *** GSYSS. Tends to co-occur with DMv3 (SO:0 ***
  19031. --- *** 001160). Tends to not occur with DPE mot ***
  19032. --- *** if (SO:0000015) or MTE (SO:0001162). ***
  19033. --- ************************************************
  19034. ---
  19035. CREATE VIEW dmv2_motif AS
  19036. SELECT
  19037. feature_id AS dmv2_motif_id,
  19038. feature.*
  19039. FROM
  19040. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19041. WHERE cvterm.name = 'DMv2_motif';
  19042. --- ************************************************
  19043. --- *** relation: mte ***
  19044. --- *** relation type: VIEW ***
  19045. --- *** ***
  19046. --- *** A sequence element characteristic of som ***
  19047. --- *** e RNA polymerase II promoters, usually l ***
  19048. --- *** ocated between +20 and +30 relative to t ***
  19049. --- *** he TSS. Consensus sequence is CSARCSSAAC ***
  19050. --- *** GS. Tends to co-occur with INR motif (SO ***
  19051. --- *** :0000014). Tends to not occur with DPE m ***
  19052. --- *** otif (SO:0000015) or DMv5 (SO:0001159). ***
  19053. --- ************************************************
  19054. ---
  19055. CREATE VIEW mte AS
  19056. SELECT
  19057. feature_id AS mte_id,
  19058. feature.*
  19059. FROM
  19060. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19061. WHERE cvterm.name = 'MTE';
  19062. --- ************************************************
  19063. --- *** relation: inr1_motif ***
  19064. --- *** relation type: VIEW ***
  19065. --- *** ***
  19066. --- *** A promoter motif with consensus sequence ***
  19067. --- *** TCATTCG. ***
  19068. --- ************************************************
  19069. ---
  19070. CREATE VIEW inr1_motif AS
  19071. SELECT
  19072. feature_id AS inr1_motif_id,
  19073. feature.*
  19074. FROM
  19075. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19076. WHERE cvterm.name = 'INR1_motif';
  19077. --- ************************************************
  19078. --- *** relation: dpe1_motif ***
  19079. --- *** relation type: VIEW ***
  19080. --- *** ***
  19081. --- *** A promoter motif with consensus sequence ***
  19082. --- *** CGGACGT. ***
  19083. --- ************************************************
  19084. ---
  19085. CREATE VIEW dpe1_motif AS
  19086. SELECT
  19087. feature_id AS dpe1_motif_id,
  19088. feature.*
  19089. FROM
  19090. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19091. WHERE cvterm.name = 'DPE1_motif';
  19092. --- ************************************************
  19093. --- *** relation: dmv1_motif ***
  19094. --- *** relation type: VIEW ***
  19095. --- *** ***
  19096. --- *** A promoter motif with consensus sequence ***
  19097. --- *** CARCCCT. ***
  19098. --- ************************************************
  19099. ---
  19100. CREATE VIEW dmv1_motif AS
  19101. SELECT
  19102. feature_id AS dmv1_motif_id,
  19103. feature.*
  19104. FROM
  19105. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19106. WHERE cvterm.name = 'DMv1_motif';
  19107. --- ************************************************
  19108. --- *** relation: gaga_motif ***
  19109. --- *** relation type: VIEW ***
  19110. --- *** ***
  19111. --- *** A non directional promoter motif with co ***
  19112. --- *** nsensus sequence GAGAGCG. ***
  19113. --- ************************************************
  19114. ---
  19115. CREATE VIEW gaga_motif AS
  19116. SELECT
  19117. feature_id AS gaga_motif_id,
  19118. feature.*
  19119. FROM
  19120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19121. WHERE cvterm.name = 'GAGA_motif';
  19122. --- ************************************************
  19123. --- *** relation: ndm2_motif ***
  19124. --- *** relation type: VIEW ***
  19125. --- *** ***
  19126. --- *** A non directional promoter motif with co ***
  19127. --- *** nsensus CGMYGYCR. ***
  19128. --- ************************************************
  19129. ---
  19130. CREATE VIEW ndm2_motif AS
  19131. SELECT
  19132. feature_id AS ndm2_motif_id,
  19133. feature.*
  19134. FROM
  19135. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19136. WHERE cvterm.name = 'NDM2_motif';
  19137. --- ************************************************
  19138. --- *** relation: ndm3_motif ***
  19139. --- *** relation type: VIEW ***
  19140. --- *** ***
  19141. --- *** A non directional promoter motif with co ***
  19142. --- *** nsensus sequence GAAAGCT. ***
  19143. --- ************************************************
  19144. ---
  19145. CREATE VIEW ndm3_motif AS
  19146. SELECT
  19147. feature_id AS ndm3_motif_id,
  19148. feature.*
  19149. FROM
  19150. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19151. WHERE cvterm.name = 'NDM3_motif';
  19152. --- ************************************************
  19153. --- *** relation: ds_rna_viral_sequence ***
  19154. --- *** relation type: VIEW ***
  19155. --- *** ***
  19156. --- *** A ds_RNA_viral_sequence is a viral_seque ***
  19157. --- *** nce that is the sequence of a virus that ***
  19158. --- *** exists as double stranded RNA. ***
  19159. --- ************************************************
  19160. ---
  19161. CREATE VIEW ds_rna_viral_sequence AS
  19162. SELECT
  19163. feature_id AS ds_rna_viral_sequence_id,
  19164. feature.*
  19165. FROM
  19166. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19167. WHERE cvterm.name = 'ds_RNA_viral_sequence';
  19168. --- ************************************************
  19169. --- *** relation: polinton ***
  19170. --- *** relation type: VIEW ***
  19171. --- *** ***
  19172. --- *** A kind of DNA transposon that populates ***
  19173. --- *** the genomes of protists, fungi, and anim ***
  19174. --- *** als, characterized by a unique set of pr ***
  19175. --- *** oteins necessary for their transposition ***
  19176. --- *** , including a protein-primed DNA polymer ***
  19177. --- *** ase B, retroviral integrase, cysteine pr ***
  19178. --- *** otease, and ATPase. Polintons are charac ***
  19179. --- *** terized by 6-bp target site duplications ***
  19180. --- *** , terminal-inverted repeats that are sev ***
  19181. --- *** eral hundred nucleotides long, and 5'-AG ***
  19182. --- *** and TC-3' termini. Polintons exist as a ***
  19183. --- *** utonomous and nonautonomous elements. ***
  19184. --- ************************************************
  19185. ---
  19186. CREATE VIEW polinton AS
  19187. SELECT
  19188. feature_id AS polinton_id,
  19189. feature.*
  19190. FROM
  19191. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19192. WHERE cvterm.name = 'polinton';
  19193. --- ************************************************
  19194. --- *** relation: rrna_21s ***
  19195. --- *** relation type: VIEW ***
  19196. --- *** ***
  19197. --- *** A component of the large ribosomal subun ***
  19198. --- *** it in mitochondrial rRNA. ***
  19199. --- ************************************************
  19200. ---
  19201. CREATE VIEW rrna_21s AS
  19202. SELECT
  19203. feature_id AS rrna_21s_id,
  19204. feature.*
  19205. FROM
  19206. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19207. WHERE cvterm.name = 'rRNA_21S';
  19208. --- ************************************************
  19209. --- *** relation: trna_region ***
  19210. --- *** relation type: VIEW ***
  19211. --- *** ***
  19212. --- *** A region of a tRNA. ***
  19213. --- ************************************************
  19214. ---
  19215. CREATE VIEW trna_region AS
  19216. SELECT
  19217. feature_id AS trna_region_id,
  19218. feature.*
  19219. FROM
  19220. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19221. WHERE cvterm.name = 'anticodon_loop' OR cvterm.name = 'anticodon' OR cvterm.name = 'CCA_tail' OR cvterm.name = 'DHU_loop' OR cvterm.name = 'T_loop' OR cvterm.name = 'tRNA_region';
  19222. --- ************************************************
  19223. --- *** relation: anticodon_loop ***
  19224. --- *** relation type: VIEW ***
  19225. --- *** ***
  19226. --- *** A sequence of seven nucleotide bases in ***
  19227. --- *** tRNA which contains the anticodon. It ha ***
  19228. --- *** s the sequence 5'-pyrimidine-purine-anti ***
  19229. --- *** codon-modified purine-any base-3. ***
  19230. --- ************************************************
  19231. ---
  19232. CREATE VIEW anticodon_loop AS
  19233. SELECT
  19234. feature_id AS anticodon_loop_id,
  19235. feature.*
  19236. FROM
  19237. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19238. WHERE cvterm.name = 'anticodon_loop';
  19239. --- ************************************************
  19240. --- *** relation: anticodon ***
  19241. --- *** relation type: VIEW ***
  19242. --- *** ***
  19243. --- *** A sequence of three nucleotide bases in ***
  19244. --- *** tRNA which recognizes a codon in mRNA. ***
  19245. --- ************************************************
  19246. ---
  19247. CREATE VIEW anticodon AS
  19248. SELECT
  19249. feature_id AS anticodon_id,
  19250. feature.*
  19251. FROM
  19252. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19253. WHERE cvterm.name = 'anticodon';
  19254. --- ************************************************
  19255. --- *** relation: cca_tail ***
  19256. --- *** relation type: VIEW ***
  19257. --- *** ***
  19258. --- *** Base sequence at the 3' end of a tRNA. T ***
  19259. --- *** he 3'-hydroxyl group on the terminal ade ***
  19260. --- *** nosine is the attachment point for the a ***
  19261. --- *** mino acid. ***
  19262. --- ************************************************
  19263. ---
  19264. CREATE VIEW cca_tail AS
  19265. SELECT
  19266. feature_id AS cca_tail_id,
  19267. feature.*
  19268. FROM
  19269. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19270. WHERE cvterm.name = 'CCA_tail';
  19271. --- ************************************************
  19272. --- *** relation: dhu_loop ***
  19273. --- *** relation type: VIEW ***
  19274. --- *** ***
  19275. --- *** Non-base-paired sequence of nucleotide b ***
  19276. --- *** ases in tRNA. It contains several dihydr ***
  19277. --- *** ouracil residues. ***
  19278. --- ************************************************
  19279. ---
  19280. CREATE VIEW dhu_loop AS
  19281. SELECT
  19282. feature_id AS dhu_loop_id,
  19283. feature.*
  19284. FROM
  19285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19286. WHERE cvterm.name = 'DHU_loop';
  19287. --- ************************************************
  19288. --- *** relation: t_loop ***
  19289. --- *** relation type: VIEW ***
  19290. --- *** ***
  19291. --- *** Non-base-paired sequence of three nucleo ***
  19292. --- *** tide bases in tRNA. It has sequence T-Ps ***
  19293. --- *** i-C. ***
  19294. --- ************************************************
  19295. ---
  19296. CREATE VIEW t_loop AS
  19297. SELECT
  19298. feature_id AS t_loop_id,
  19299. feature.*
  19300. FROM
  19301. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19302. WHERE cvterm.name = 'T_loop';
  19303. --- ************************************************
  19304. --- *** relation: pyrrolysine_trna_primary_transcript ***
  19305. --- *** relation type: VIEW ***
  19306. --- *** ***
  19307. --- *** A primary transcript encoding pyrrolysyl ***
  19308. --- *** tRNA (SO:0000766). ***
  19309. --- ************************************************
  19310. ---
  19311. CREATE VIEW pyrrolysine_trna_primary_transcript AS
  19312. SELECT
  19313. feature_id AS pyrrolysine_trna_primary_transcript_id,
  19314. feature.*
  19315. FROM
  19316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19317. WHERE cvterm.name = 'pyrrolysine_tRNA_primary_transcript';
  19318. --- ************************************************
  19319. --- *** relation: u3_snorna ***
  19320. --- *** relation type: VIEW ***
  19321. --- *** ***
  19322. --- *** U3 snoRNA is a member of the box C/D cla ***
  19323. --- *** ss of small nucleolar RNAs. The U3 snoRN ***
  19324. --- *** A secondary structure is characterised b ***
  19325. --- *** y a small 5' domain (with boxes A and A' ***
  19326. --- *** ), and a larger 3' domain (with boxes B, ***
  19327. --- *** C, C', and D), the two domains being li ***
  19328. --- *** nked by a single-stranded hinge. Boxes B ***
  19329. --- *** and C form the B/C motif, which appears ***
  19330. --- *** to be exclusive to U3 snoRNAs, and boxe ***
  19331. --- *** s C' and D form the C'/D motif. The latt ***
  19332. --- *** er is functionally similar to the C/D mo ***
  19333. --- *** tifs found in other snoRNAs. The 5' doma ***
  19334. --- *** in and the hinge region act as a pre-rRN ***
  19335. --- *** A-binding domain. The 3' domain has cons ***
  19336. --- *** erved protein-binding sites. Both the bo ***
  19337. --- *** x B/C and box C'/D motifs are sufficient ***
  19338. --- *** for nuclear retention of U3 snoRNA. The ***
  19339. --- *** box C'/D motif is also necessary for nu ***
  19340. --- *** cleolar localization, stability and hype ***
  19341. --- *** rmethylation of U3 snoRNA. Both box B/C ***
  19342. --- *** and C'/D motifs are involved in specific ***
  19343. --- *** protein interactions and are necessary ***
  19344. --- *** for the rRNA processing functions of U3 ***
  19345. --- *** snoRNA. ***
  19346. --- ************************************************
  19347. ---
  19348. CREATE VIEW u3_snorna AS
  19349. SELECT
  19350. feature_id AS u3_snorna_id,
  19351. feature.*
  19352. FROM
  19353. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19354. WHERE cvterm.name = 'U3_snoRNA';
  19355. --- ************************************************
  19356. --- *** relation: au_rich_element ***
  19357. --- *** relation type: VIEW ***
  19358. --- *** ***
  19359. --- *** A cis-acting element found in the 3' UTR ***
  19360. --- *** of some mRNA which is rich in AUUUA pen ***
  19361. --- *** tamers. Messenger RNAs bearing multiple ***
  19362. --- *** AU-rich elements are often unstable. ***
  19363. --- ************************************************
  19364. ---
  19365. CREATE VIEW au_rich_element AS
  19366. SELECT
  19367. feature_id AS au_rich_element_id,
  19368. feature.*
  19369. FROM
  19370. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19371. WHERE cvterm.name = 'AU_rich_element';
  19372. --- ************************************************
  19373. --- *** relation: bruno_response_element ***
  19374. --- *** relation type: VIEW ***
  19375. --- *** ***
  19376. --- *** A cis-acting element found in the 3' UTR ***
  19377. --- *** of some mRNA which is bound by the Dros ***
  19378. --- *** ophila Bruno protein and its homologs. ***
  19379. --- ************************************************
  19380. ---
  19381. CREATE VIEW bruno_response_element AS
  19382. SELECT
  19383. feature_id AS bruno_response_element_id,
  19384. feature.*
  19385. FROM
  19386. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19387. WHERE cvterm.name = 'Bruno_response_element';
  19388. --- ************************************************
  19389. --- *** relation: iron_responsive_element ***
  19390. --- *** relation type: VIEW ***
  19391. --- *** ***
  19392. --- *** A regulatory sequence found in the 5' an ***
  19393. --- *** d 3' UTRs of many mRNAs which encode iro ***
  19394. --- *** n-binding proteins. It has a hairpin str ***
  19395. --- *** ucture and is recognized by trans-acting ***
  19396. --- *** proteins known as iron-regulatory prote ***
  19397. --- *** ins. ***
  19398. --- ************************************************
  19399. ---
  19400. CREATE VIEW iron_responsive_element AS
  19401. SELECT
  19402. feature_id AS iron_responsive_element_id,
  19403. feature.*
  19404. FROM
  19405. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19406. WHERE cvterm.name = 'iron_responsive_element';
  19407. --- ************************************************
  19408. --- *** relation: morpholino_backbone ***
  19409. --- *** relation type: VIEW ***
  19410. --- *** ***
  19411. --- *** An attribute describing a sequence compo ***
  19412. --- *** sed of nucleobases bound to a morpholino ***
  19413. --- *** backbone. A morpholino backbone consist ***
  19414. --- *** s of morpholine (CHEBI:34856) rings conn ***
  19415. --- *** ected by phosphorodiamidate linkages. ***
  19416. --- ************************************************
  19417. ---
  19418. CREATE VIEW morpholino_backbone AS
  19419. SELECT
  19420. feature_id AS morpholino_backbone_id,
  19421. feature.*
  19422. FROM
  19423. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19424. WHERE cvterm.name = 'morpholino_backbone';
  19425. --- ************************************************
  19426. --- *** relation: pna ***
  19427. --- *** relation type: VIEW ***
  19428. --- *** ***
  19429. --- *** An attribute describing a sequence compo ***
  19430. --- *** sed of peptide nucleic acid (CHEBI:48021 ***
  19431. --- *** ), a chemical consisting of nucleobases ***
  19432. --- *** bound to a backbone composed of repeatin ***
  19433. --- *** g N-(2-aminoethyl)-glycine units linked ***
  19434. --- *** by peptide bonds. The purine and pyrimid ***
  19435. --- *** ine bases are linked to the backbone by ***
  19436. --- *** methylene carbonyl bonds. ***
  19437. --- ************************************************
  19438. ---
  19439. CREATE VIEW pna AS
  19440. SELECT
  19441. feature_id AS pna_id,
  19442. feature.*
  19443. FROM
  19444. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19445. WHERE cvterm.name = 'PNA';
  19446. --- ************************************************
  19447. --- *** relation: enzymatic ***
  19448. --- *** relation type: VIEW ***
  19449. --- *** ***
  19450. --- *** An attribute describing the sequence of ***
  19451. --- *** a transcript that has catalytic activity ***
  19452. --- *** with or without an associated ribonucle ***
  19453. --- *** oprotein. ***
  19454. --- ************************************************
  19455. ---
  19456. CREATE VIEW enzymatic AS
  19457. SELECT
  19458. feature_id AS enzymatic_id,
  19459. feature.*
  19460. FROM
  19461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19462. WHERE cvterm.name = 'ribozymic' OR cvterm.name = 'enzymatic';
  19463. --- ************************************************
  19464. --- *** relation: ribozymic ***
  19465. --- *** relation type: VIEW ***
  19466. --- *** ***
  19467. --- *** An attribute describing the sequence of ***
  19468. --- *** a transcript that has catalytic activity ***
  19469. --- *** even without an associated ribonucleopr ***
  19470. --- *** otein. ***
  19471. --- ************************************************
  19472. ---
  19473. CREATE VIEW ribozymic AS
  19474. SELECT
  19475. feature_id AS ribozymic_id,
  19476. feature.*
  19477. FROM
  19478. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19479. WHERE cvterm.name = 'ribozymic';
  19480. --- ************************************************
  19481. --- *** relation: pseudouridylation_guide_snorna ***
  19482. --- *** relation type: VIEW ***
  19483. --- *** ***
  19484. --- *** A snoRNA that specifies the site of pseu ***
  19485. --- *** douridylation in an RNA molecule by base ***
  19486. --- *** pairing with a short sequence around th ***
  19487. --- *** e target residue. ***
  19488. --- ************************************************
  19489. ---
  19490. CREATE VIEW pseudouridylation_guide_snorna AS
  19491. SELECT
  19492. feature_id AS pseudouridylation_guide_snorna_id,
  19493. feature.*
  19494. FROM
  19495. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19496. WHERE cvterm.name = 'pseudouridylation_guide_snoRNA';
  19497. --- ************************************************
  19498. --- *** relation: lna ***
  19499. --- *** relation type: VIEW ***
  19500. --- *** ***
  19501. --- *** An attribute describing a sequence consi ***
  19502. --- *** sting of nucleobases attached to a repea ***
  19503. --- *** ting unit made of 'locked' deoxyribose r ***
  19504. --- *** ings connected to a phosphate backbone. ***
  19505. --- *** The deoxyribose unit's conformation is ' ***
  19506. --- *** locked' by a 2'-C,4'-C-oxymethylene link ***
  19507. --- *** . ***
  19508. --- ************************************************
  19509. ---
  19510. CREATE VIEW lna AS
  19511. SELECT
  19512. feature_id AS lna_id,
  19513. feature.*
  19514. FROM
  19515. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19516. WHERE cvterm.name = 'LNA';
  19517. --- ************************************************
  19518. --- *** relation: lna_oligo ***
  19519. --- *** relation type: VIEW ***
  19520. --- *** ***
  19521. --- *** An oligo composed of LNA residues. ***
  19522. --- ************************************************
  19523. ---
  19524. CREATE VIEW lna_oligo AS
  19525. SELECT
  19526. feature_id AS lna_oligo_id,
  19527. feature.*
  19528. FROM
  19529. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19530. WHERE cvterm.name = 'LNA_oligo';
  19531. --- ************************************************
  19532. --- *** relation: tna ***
  19533. --- *** relation type: VIEW ***
  19534. --- *** ***
  19535. --- *** An attribute describing a sequence consi ***
  19536. --- *** sting of nucleobases attached to a repea ***
  19537. --- *** ting unit made of threose rings connecte ***
  19538. --- *** d to a phosphate backbone. ***
  19539. --- ************************************************
  19540. ---
  19541. CREATE VIEW tna AS
  19542. SELECT
  19543. feature_id AS tna_id,
  19544. feature.*
  19545. FROM
  19546. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19547. WHERE cvterm.name = 'TNA';
  19548. --- ************************************************
  19549. --- *** relation: tna_oligo ***
  19550. --- *** relation type: VIEW ***
  19551. --- *** ***
  19552. --- *** An oligo composed of TNA residues. ***
  19553. --- ************************************************
  19554. ---
  19555. CREATE VIEW tna_oligo AS
  19556. SELECT
  19557. feature_id AS tna_oligo_id,
  19558. feature.*
  19559. FROM
  19560. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19561. WHERE cvterm.name = 'TNA_oligo';
  19562. --- ************************************************
  19563. --- *** relation: gna ***
  19564. --- *** relation type: VIEW ***
  19565. --- *** ***
  19566. --- *** An attribute describing a sequence consi ***
  19567. --- *** sting of nucleobases attached to a repea ***
  19568. --- *** ting unit made of an acyclic three-carbo ***
  19569. --- *** n propylene glycol connected to a phosph ***
  19570. --- *** ate backbone. It has two enantiomeric fo ***
  19571. --- *** rms, (R)-GNA and (S)-GNA. ***
  19572. --- ************************************************
  19573. ---
  19574. CREATE VIEW gna AS
  19575. SELECT
  19576. feature_id AS gna_id,
  19577. feature.*
  19578. FROM
  19579. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19580. WHERE cvterm.name = 'R_GNA' OR cvterm.name = 'S_GNA' OR cvterm.name = 'GNA';
  19581. --- ************************************************
  19582. --- *** relation: gna_oligo ***
  19583. --- *** relation type: VIEW ***
  19584. --- *** ***
  19585. --- *** An oligo composed of GNA residues. ***
  19586. --- ************************************************
  19587. ---
  19588. CREATE VIEW gna_oligo AS
  19589. SELECT
  19590. feature_id AS gna_oligo_id,
  19591. feature.*
  19592. FROM
  19593. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19594. WHERE cvterm.name = 'R_GNA_oligo' OR cvterm.name = 'S_GNA_oligo' OR cvterm.name = 'GNA_oligo';
  19595. --- ************************************************
  19596. --- *** relation: r_gna ***
  19597. --- *** relation type: VIEW ***
  19598. --- *** ***
  19599. --- *** An attribute describing a GNA sequence i ***
  19600. --- *** n the (R)-GNA enantiomer. ***
  19601. --- ************************************************
  19602. ---
  19603. CREATE VIEW r_gna AS
  19604. SELECT
  19605. feature_id AS r_gna_id,
  19606. feature.*
  19607. FROM
  19608. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19609. WHERE cvterm.name = 'R_GNA';
  19610. --- ************************************************
  19611. --- *** relation: r_gna_oligo ***
  19612. --- *** relation type: VIEW ***
  19613. --- *** ***
  19614. --- *** An oligo composed of (R)-GNA residues. ***
  19615. --- ************************************************
  19616. ---
  19617. CREATE VIEW r_gna_oligo AS
  19618. SELECT
  19619. feature_id AS r_gna_oligo_id,
  19620. feature.*
  19621. FROM
  19622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19623. WHERE cvterm.name = 'R_GNA_oligo';
  19624. --- ************************************************
  19625. --- *** relation: s_gna ***
  19626. --- *** relation type: VIEW ***
  19627. --- *** ***
  19628. --- *** An attribute describing a GNA sequence i ***
  19629. --- *** n the (S)-GNA enantiomer. ***
  19630. --- ************************************************
  19631. ---
  19632. CREATE VIEW s_gna AS
  19633. SELECT
  19634. feature_id AS s_gna_id,
  19635. feature.*
  19636. FROM
  19637. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19638. WHERE cvterm.name = 'S_GNA';
  19639. --- ************************************************
  19640. --- *** relation: s_gna_oligo ***
  19641. --- *** relation type: VIEW ***
  19642. --- *** ***
  19643. --- *** An oligo composed of (S)-GNA residues. ***
  19644. --- ************************************************
  19645. ---
  19646. CREATE VIEW s_gna_oligo AS
  19647. SELECT
  19648. feature_id AS s_gna_oligo_id,
  19649. feature.*
  19650. FROM
  19651. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19652. WHERE cvterm.name = 'S_GNA_oligo';
  19653. --- ************************************************
  19654. --- *** relation: ds_dna_viral_sequence ***
  19655. --- *** relation type: VIEW ***
  19656. --- *** ***
  19657. --- *** A ds_DNA_viral_sequence is a viral_seque ***
  19658. --- *** nce that is the sequence of a virus that ***
  19659. --- *** exists as double stranded DNA. ***
  19660. --- ************************************************
  19661. ---
  19662. CREATE VIEW ds_dna_viral_sequence AS
  19663. SELECT
  19664. feature_id AS ds_dna_viral_sequence_id,
  19665. feature.*
  19666. FROM
  19667. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19668. WHERE cvterm.name = 'ds_DNA_viral_sequence';
  19669. --- ************************************************
  19670. --- *** relation: ss_rna_viral_sequence ***
  19671. --- *** relation type: VIEW ***
  19672. --- *** ***
  19673. --- *** A ss_RNA_viral_sequence is a viral_seque ***
  19674. --- *** nce that is the sequence of a virus that ***
  19675. --- *** exists as single stranded RNA. ***
  19676. --- ************************************************
  19677. ---
  19678. CREATE VIEW ss_rna_viral_sequence AS
  19679. SELECT
  19680. feature_id AS ss_rna_viral_sequence_id,
  19681. feature.*
  19682. FROM
  19683. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19684. WHERE cvterm.name = 'negative_sense_ssRNA_viral_sequence' OR cvterm.name = 'positive_sense_ssRNA_viral_sequence' OR cvterm.name = 'ambisense_ssRNA_viral_sequence' OR cvterm.name = 'ss_RNA_viral_sequence';
  19685. --- ************************************************
  19686. --- *** relation: negative_sense_ssrna_viral_sequence ***
  19687. --- *** relation type: VIEW ***
  19688. --- *** ***
  19689. --- *** A negative_sense_RNA_viral_sequence is a ***
  19690. --- *** ss_RNA_viral_sequence that is the seque ***
  19691. --- *** nce of a single stranded RNA virus that ***
  19692. --- *** is complementary to mRNA and must be con ***
  19693. --- *** verted to positive sense RNA by RNA poly ***
  19694. --- *** merase before translation. ***
  19695. --- ************************************************
  19696. ---
  19697. CREATE VIEW negative_sense_ssrna_viral_sequence AS
  19698. SELECT
  19699. feature_id AS negative_sense_ssrna_viral_sequence_id,
  19700. feature.*
  19701. FROM
  19702. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19703. WHERE cvterm.name = 'negative_sense_ssRNA_viral_sequence';
  19704. --- ************************************************
  19705. --- *** relation: positive_sense_ssrna_viral_sequence ***
  19706. --- *** relation type: VIEW ***
  19707. --- *** ***
  19708. --- *** A positive_sense_RNA_viral_sequence is a ***
  19709. --- *** ss_RNA_viral_sequence that is the seque ***
  19710. --- *** nce of a single stranded RNA virus that ***
  19711. --- *** can be immediately translated by the hos ***
  19712. --- *** t. ***
  19713. --- ************************************************
  19714. ---
  19715. CREATE VIEW positive_sense_ssrna_viral_sequence AS
  19716. SELECT
  19717. feature_id AS positive_sense_ssrna_viral_sequence_id,
  19718. feature.*
  19719. FROM
  19720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19721. WHERE cvterm.name = 'positive_sense_ssRNA_viral_sequence';
  19722. --- ************************************************
  19723. --- *** relation: ambisense_ssrna_viral_sequence ***
  19724. --- *** relation type: VIEW ***
  19725. --- *** ***
  19726. --- *** A ambisense_RNA_virus is a ss_RNA_viral_ ***
  19727. --- *** sequence that is the sequence of a singl ***
  19728. --- *** e stranded RNA virus with both messenger ***
  19729. --- *** and anti messenger polarity. ***
  19730. --- ************************************************
  19731. ---
  19732. CREATE VIEW ambisense_ssrna_viral_sequence AS
  19733. SELECT
  19734. feature_id AS ambisense_ssrna_viral_sequence_id,
  19735. feature.*
  19736. FROM
  19737. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19738. WHERE cvterm.name = 'ambisense_ssRNA_viral_sequence';
  19739. --- ************************************************
  19740. --- *** relation: rna_polymerase_promoter ***
  19741. --- *** relation type: VIEW ***
  19742. --- *** ***
  19743. --- *** A region (DNA) to which RNA polymerase b ***
  19744. --- *** inds, to begin transcription. ***
  19745. --- ************************************************
  19746. ---
  19747. CREATE VIEW rna_polymerase_promoter AS
  19748. SELECT
  19749. feature_id AS rna_polymerase_promoter_id,
  19750. feature.*
  19751. FROM
  19752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19753. WHERE cvterm.name = 'RNApol_I_promoter' OR cvterm.name = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'Phage_RNA_Polymerase_Promoter' OR cvterm.name = 'RNApol_II_core_promoter' OR cvterm.name = 'RNApol_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'SP6_RNA_Polymerase_Promoter' OR cvterm.name = 'T3_RNA_Polymerase_Promoter' OR cvterm.name = 'T7_RNA_Polymerase_Promoter' OR cvterm.name = 'RNA_polymerase_promoter';
  19754. --- ************************************************
  19755. --- *** relation: phage_rna_polymerase_promoter ***
  19756. --- *** relation type: VIEW ***
  19757. --- *** ***
  19758. --- *** A region (DNA) to which Bacteriophage RN ***
  19759. --- *** A polymerase binds, to begin transcripti ***
  19760. --- *** on. ***
  19761. --- ************************************************
  19762. ---
  19763. CREATE VIEW phage_rna_polymerase_promoter AS
  19764. SELECT
  19765. feature_id AS phage_rna_polymerase_promoter_id,
  19766. feature.*
  19767. FROM
  19768. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19769. WHERE cvterm.name = 'SP6_RNA_Polymerase_Promoter' OR cvterm.name = 'T3_RNA_Polymerase_Promoter' OR cvterm.name = 'T7_RNA_Polymerase_Promoter' OR cvterm.name = 'Phage_RNA_Polymerase_Promoter';
  19770. --- ************************************************
  19771. --- *** relation: sp6_rna_polymerase_promoter ***
  19772. --- *** relation type: VIEW ***
  19773. --- *** ***
  19774. --- *** A region (DNA) to which the SP6 RNA poly ***
  19775. --- *** merase binds, to begin transcription. ***
  19776. --- ************************************************
  19777. ---
  19778. CREATE VIEW sp6_rna_polymerase_promoter AS
  19779. SELECT
  19780. feature_id AS sp6_rna_polymerase_promoter_id,
  19781. feature.*
  19782. FROM
  19783. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19784. WHERE cvterm.name = 'SP6_RNA_Polymerase_Promoter';
  19785. --- ************************************************
  19786. --- *** relation: t3_rna_polymerase_promoter ***
  19787. --- *** relation type: VIEW ***
  19788. --- *** ***
  19789. --- *** A DNA sequence to which the T3 RNA polym ***
  19790. --- *** erase binds, to begin transcription. ***
  19791. --- ************************************************
  19792. ---
  19793. CREATE VIEW t3_rna_polymerase_promoter AS
  19794. SELECT
  19795. feature_id AS t3_rna_polymerase_promoter_id,
  19796. feature.*
  19797. FROM
  19798. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19799. WHERE cvterm.name = 'T3_RNA_Polymerase_Promoter';
  19800. --- ************************************************
  19801. --- *** relation: t7_rna_polymerase_promoter ***
  19802. --- *** relation type: VIEW ***
  19803. --- *** ***
  19804. --- *** A region (DNA) to which the T7 RNA polym ***
  19805. --- *** erase binds, to begin transcription. ***
  19806. --- ************************************************
  19807. ---
  19808. CREATE VIEW t7_rna_polymerase_promoter AS
  19809. SELECT
  19810. feature_id AS t7_rna_polymerase_promoter_id,
  19811. feature.*
  19812. FROM
  19813. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19814. WHERE cvterm.name = 'T7_RNA_Polymerase_Promoter';
  19815. --- ************************************************
  19816. --- *** relation: five_prime_est ***
  19817. --- *** relation type: VIEW ***
  19818. --- *** ***
  19819. --- *** An EST read from the 5' end of a transcr ***
  19820. --- *** ipt that usually codes for a protein. Th ***
  19821. --- *** ese regions tend to be conserved across ***
  19822. --- *** species and do not change much within a ***
  19823. --- *** gene family. ***
  19824. --- ************************************************
  19825. ---
  19826. CREATE VIEW five_prime_est AS
  19827. SELECT
  19828. feature_id AS five_prime_est_id,
  19829. feature.*
  19830. FROM
  19831. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19832. WHERE cvterm.name = 'five_prime_EST';
  19833. --- ************************************************
  19834. --- *** relation: three_prime_est ***
  19835. --- *** relation type: VIEW ***
  19836. --- *** ***
  19837. --- *** An EST read from the 3' end of a transcr ***
  19838. --- *** ipt. They are more likely to fall within ***
  19839. --- *** non-coding, or untranslated regions(UTR ***
  19840. --- *** s). ***
  19841. --- ************************************************
  19842. ---
  19843. CREATE VIEW three_prime_est AS
  19844. SELECT
  19845. feature_id AS three_prime_est_id,
  19846. feature.*
  19847. FROM
  19848. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19849. WHERE cvterm.name = 'three_prime_EST';
  19850. --- ************************************************
  19851. --- *** relation: translational_frameshift ***
  19852. --- *** relation type: VIEW ***
  19853. --- *** ***
  19854. --- *** The region of mRNA (not divisible by 3 b ***
  19855. --- *** ases) that is skipped during the process ***
  19856. --- *** of translational frameshifting (GO:0006 ***
  19857. --- *** 452), causing the reading frame to be di ***
  19858. --- *** fferent. ***
  19859. --- ************************************************
  19860. ---
  19861. CREATE VIEW translational_frameshift AS
  19862. SELECT
  19863. feature_id AS translational_frameshift_id,
  19864. feature.*
  19865. FROM
  19866. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19867. WHERE cvterm.name = 'plus_1_translational_frameshift' OR cvterm.name = 'plus_2_translational_frameshift' OR cvterm.name = 'translational_frameshift';
  19868. --- ************************************************
  19869. --- *** relation: plus_1_translational_frameshift ***
  19870. --- *** relation type: VIEW ***
  19871. --- *** ***
  19872. --- *** The region of mRNA 1 base long that is s ***
  19873. --- *** kipped during the process of translation ***
  19874. --- *** al frameshifting (GO:0006452), causing t ***
  19875. --- *** he reading frame to be different. ***
  19876. --- ************************************************
  19877. ---
  19878. CREATE VIEW plus_1_translational_frameshift AS
  19879. SELECT
  19880. feature_id AS plus_1_translational_frameshift_id,
  19881. feature.*
  19882. FROM
  19883. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19884. WHERE cvterm.name = 'plus_1_translational_frameshift';
  19885. --- ************************************************
  19886. --- *** relation: plus_2_translational_frameshift ***
  19887. --- *** relation type: VIEW ***
  19888. --- *** ***
  19889. --- *** The region of mRNA 2 bases long that is ***
  19890. --- *** skipped during the process of translatio ***
  19891. --- *** nal frameshifting (GO:0006452), causing ***
  19892. --- *** the reading frame to be different. ***
  19893. --- ************************************************
  19894. ---
  19895. CREATE VIEW plus_2_translational_frameshift AS
  19896. SELECT
  19897. feature_id AS plus_2_translational_frameshift_id,
  19898. feature.*
  19899. FROM
  19900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19901. WHERE cvterm.name = 'plus_2_translational_frameshift';
  19902. --- ************************************************
  19903. --- *** relation: group_iii_intron ***
  19904. --- *** relation type: VIEW ***
  19905. --- *** ***
  19906. --- *** Group III introns are introns found in t ***
  19907. --- *** he mRNA of the plastids of euglenoid pro ***
  19908. --- *** tists. They are spliced by a two step tr ***
  19909. --- *** ansesterification with bulged adenosine ***
  19910. --- *** as initiating nucleophile. ***
  19911. --- ************************************************
  19912. ---
  19913. CREATE VIEW group_iii_intron AS
  19914. SELECT
  19915. feature_id AS group_iii_intron_id,
  19916. feature.*
  19917. FROM
  19918. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19919. WHERE cvterm.name = 'group_III_intron';
  19920. --- ************************************************
  19921. --- *** relation: noncoding_region_of_exon ***
  19922. --- *** relation type: VIEW ***
  19923. --- *** ***
  19924. --- *** The maximal intersection of exon and UTR ***
  19925. --- *** . ***
  19926. --- ************************************************
  19927. ---
  19928. CREATE VIEW noncoding_region_of_exon AS
  19929. SELECT
  19930. feature_id AS noncoding_region_of_exon_id,
  19931. feature.*
  19932. FROM
  19933. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19934. WHERE cvterm.name = 'three_prime_coding_exon_noncoding_region' OR cvterm.name = 'five_prime_coding_exon_noncoding_region' OR cvterm.name = 'noncoding_region_of_exon';
  19935. --- ************************************************
  19936. --- *** relation: coding_region_of_exon ***
  19937. --- *** relation type: VIEW ***
  19938. --- *** ***
  19939. --- *** The region of an exon that encodes for p ***
  19940. --- *** rotein sequence. ***
  19941. --- ************************************************
  19942. ---
  19943. CREATE VIEW coding_region_of_exon AS
  19944. SELECT
  19945. feature_id AS coding_region_of_exon_id,
  19946. feature.*
  19947. FROM
  19948. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19949. WHERE cvterm.name = 'five_prime_coding_exon_coding_region' OR cvterm.name = 'three_prime_coding_exon_coding_region' OR cvterm.name = 'coding_region_of_exon';
  19950. --- ************************************************
  19951. --- *** relation: endonuclease_spliced_intron ***
  19952. --- *** relation type: VIEW ***
  19953. --- *** ***
  19954. --- *** An intron that spliced via endonucleolyt ***
  19955. --- *** ic cleavage and ligation rather than tra ***
  19956. --- *** nsesterification. ***
  19957. --- ************************************************
  19958. ---
  19959. CREATE VIEW endonuclease_spliced_intron AS
  19960. SELECT
  19961. feature_id AS endonuclease_spliced_intron_id,
  19962. feature.*
  19963. FROM
  19964. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19965. WHERE cvterm.name = 'archaeal_intron' OR cvterm.name = 'tRNA_intron' OR cvterm.name = 'endonuclease_spliced_intron';
  19966. --- ************************************************
  19967. --- *** relation: protein_coding_gene ***
  19968. --- *** relation type: VIEW ***
  19969. --- *** ***
  19970. --- ************************************************
  19971. ---
  19972. CREATE VIEW protein_coding_gene AS
  19973. SELECT
  19974. feature_id AS protein_coding_gene_id,
  19975. feature.*
  19976. FROM
  19977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19978. WHERE cvterm.name = 'gene_with_polyadenylated_mRNA' OR cvterm.name = 'gene_with_mRNA_with_frameshift' OR cvterm.name = 'gene_with_edited_transcript' OR cvterm.name = 'gene_with_recoded_mRNA' OR cvterm.name = 'gene_with_stop_codon_read_through' OR cvterm.name = 'gene_with_mRNA_recoded_by_translational_bypass' OR cvterm.name = 'gene_with_transcript_with_translational_frameshift' OR cvterm.name = 'gene_with_stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'gene_with_stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'protein_coding_gene';
  19979. --- ************************************************
  19980. --- *** relation: transgenic_insertion ***
  19981. --- *** relation type: VIEW ***
  19982. --- *** ***
  19983. --- *** An insertion that derives from another o ***
  19984. --- *** rganism, via the use of recombinant DNA ***
  19985. --- *** technology. ***
  19986. --- ************************************************
  19987. ---
  19988. CREATE VIEW transgenic_insertion AS
  19989. SELECT
  19990. feature_id AS transgenic_insertion_id,
  19991. feature.*
  19992. FROM
  19993. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19994. WHERE cvterm.name = 'transgenic_insertion';
  19995. --- ************************************************
  19996. --- *** relation: retrogene ***
  19997. --- *** relation type: VIEW ***
  19998. --- *** ***
  19999. --- ************************************************
  20000. ---
  20001. CREATE VIEW retrogene AS
  20002. SELECT
  20003. feature_id AS retrogene_id,
  20004. feature.*
  20005. FROM
  20006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20007. WHERE cvterm.name = 'retrogene';
  20008. --- ************************************************
  20009. --- *** relation: silenced_by_rna_interference ***
  20010. --- *** relation type: VIEW ***
  20011. --- *** ***
  20012. --- *** An attribute describing an epigenetic pr ***
  20013. --- *** ocess where a gene is inactivated by RNA ***
  20014. --- *** interference. ***
  20015. --- ************************************************
  20016. ---
  20017. CREATE VIEW silenced_by_rna_interference AS
  20018. SELECT
  20019. feature_id AS silenced_by_rna_interference_id,
  20020. feature.*
  20021. FROM
  20022. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20023. WHERE cvterm.name = 'silenced_by_RNA_interference';
  20024. --- ************************************************
  20025. --- *** relation: silenced_by_histone_modification ***
  20026. --- *** relation type: VIEW ***
  20027. --- *** ***
  20028. --- *** An attribute describing an epigenetic pr ***
  20029. --- *** ocess where a gene is inactivated by his ***
  20030. --- *** tone modification. ***
  20031. --- ************************************************
  20032. ---
  20033. CREATE VIEW silenced_by_histone_modification AS
  20034. SELECT
  20035. feature_id AS silenced_by_histone_modification_id,
  20036. feature.*
  20037. FROM
  20038. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20039. WHERE cvterm.name = 'silenced_by_histone_methylation' OR cvterm.name = 'silenced_by_histone_deacetylation' OR cvterm.name = 'silenced_by_histone_modification';
  20040. --- ************************************************
  20041. --- *** relation: silenced_by_histone_methylation ***
  20042. --- *** relation type: VIEW ***
  20043. --- *** ***
  20044. --- *** An attribute describing an epigenetic pr ***
  20045. --- *** ocess where a gene is inactivated by his ***
  20046. --- *** tone methylation. ***
  20047. --- ************************************************
  20048. ---
  20049. CREATE VIEW silenced_by_histone_methylation AS
  20050. SELECT
  20051. feature_id AS silenced_by_histone_methylation_id,
  20052. feature.*
  20053. FROM
  20054. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20055. WHERE cvterm.name = 'silenced_by_histone_methylation';
  20056. --- ************************************************
  20057. --- *** relation: silenced_by_histone_deacetylation ***
  20058. --- *** relation type: VIEW ***
  20059. --- *** ***
  20060. --- *** An attribute describing an epigenetic pr ***
  20061. --- *** ocess where a gene is inactivated by his ***
  20062. --- *** tone deacetylation. ***
  20063. --- ************************************************
  20064. ---
  20065. CREATE VIEW silenced_by_histone_deacetylation AS
  20066. SELECT
  20067. feature_id AS silenced_by_histone_deacetylation_id,
  20068. feature.*
  20069. FROM
  20070. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20071. WHERE cvterm.name = 'silenced_by_histone_deacetylation';
  20072. --- ************************************************
  20073. --- *** relation: gene_silenced_by_rna_interference ***
  20074. --- *** relation type: VIEW ***
  20075. --- *** ***
  20076. --- *** A gene that is silenced by RNA interfere ***
  20077. --- *** nce. ***
  20078. --- ************************************************
  20079. ---
  20080. CREATE VIEW gene_silenced_by_rna_interference AS
  20081. SELECT
  20082. feature_id AS gene_silenced_by_rna_interference_id,
  20083. feature.*
  20084. FROM
  20085. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20086. WHERE cvterm.name = 'gene_silenced_by_RNA_interference';
  20087. --- ************************************************
  20088. --- *** relation: gene_silenced_by_histone_modification ***
  20089. --- *** relation type: VIEW ***
  20090. --- *** ***
  20091. --- *** A gene that is silenced by histone modif ***
  20092. --- *** ication. ***
  20093. --- ************************************************
  20094. ---
  20095. CREATE VIEW gene_silenced_by_histone_modification AS
  20096. SELECT
  20097. feature_id AS gene_silenced_by_histone_modification_id,
  20098. feature.*
  20099. FROM
  20100. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20101. WHERE cvterm.name = 'gene_silenced_by_histone_methylation' OR cvterm.name = 'gene_silenced_by_histone_deacetylation' OR cvterm.name = 'gene_silenced_by_histone_modification';
  20102. --- ************************************************
  20103. --- *** relation: gene_silenced_by_histone_methylation ***
  20104. --- *** relation type: VIEW ***
  20105. --- *** ***
  20106. --- *** A gene that is silenced by histone methy ***
  20107. --- *** lation. ***
  20108. --- ************************************************
  20109. ---
  20110. CREATE VIEW gene_silenced_by_histone_methylation AS
  20111. SELECT
  20112. feature_id AS gene_silenced_by_histone_methylation_id,
  20113. feature.*
  20114. FROM
  20115. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20116. WHERE cvterm.name = 'gene_silenced_by_histone_methylation';
  20117. --- ************************************************
  20118. --- *** relation: gene_silenced_by_histone_deacetylation ***
  20119. --- *** relation type: VIEW ***
  20120. --- *** ***
  20121. --- *** A gene that is silenced by histone deace ***
  20122. --- *** tylation. ***
  20123. --- ************************************************
  20124. ---
  20125. CREATE VIEW gene_silenced_by_histone_deacetylation AS
  20126. SELECT
  20127. feature_id AS gene_silenced_by_histone_deacetylation_id,
  20128. feature.*
  20129. FROM
  20130. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20131. WHERE cvterm.name = 'gene_silenced_by_histone_deacetylation';
  20132. --- ************************************************
  20133. --- *** relation: dihydrouridine ***
  20134. --- *** relation type: VIEW ***
  20135. --- *** ***
  20136. --- *** A modified RNA base in which the 5,6-dih ***
  20137. --- *** ydrouracil is bound to the ribose ring. ***
  20138. --- ************************************************
  20139. ---
  20140. CREATE VIEW dihydrouridine AS
  20141. SELECT
  20142. feature_id AS dihydrouridine_id,
  20143. feature.*
  20144. FROM
  20145. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20146. WHERE cvterm.name = 'dihydrouridine';
  20147. --- ************************************************
  20148. --- *** relation: pseudouridine ***
  20149. --- *** relation type: VIEW ***
  20150. --- *** ***
  20151. --- *** A modified RNA base in which the 5- posi ***
  20152. --- *** tion of the uracil is bound to the ribos ***
  20153. --- *** e ring instead of the 4- position. ***
  20154. --- ************************************************
  20155. ---
  20156. CREATE VIEW pseudouridine AS
  20157. SELECT
  20158. feature_id AS pseudouridine_id,
  20159. feature.*
  20160. FROM
  20161. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20162. WHERE cvterm.name = 'pseudouridine';
  20163. --- ************************************************
  20164. --- *** relation: inosine ***
  20165. --- *** relation type: VIEW ***
  20166. --- *** ***
  20167. --- *** A modified RNA base in which hypoxanthin ***
  20168. --- *** e is bound to the ribose ring. ***
  20169. --- ************************************************
  20170. ---
  20171. CREATE VIEW inosine AS
  20172. SELECT
  20173. feature_id AS inosine_id,
  20174. feature.*
  20175. FROM
  20176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20177. WHERE cvterm.name = 'modified_inosine' OR cvterm.name = 'methylinosine' OR cvterm.name = 'one_methylinosine' OR cvterm.name = 'one_two_prime_O_dimethylinosine' OR cvterm.name = 'two_prime_O_methylinosine' OR cvterm.name = 'inosine';
  20178. --- ************************************************
  20179. --- *** relation: seven_methylguanine ***
  20180. --- *** relation type: VIEW ***
  20181. --- *** ***
  20182. --- *** A modified RNA base in which guanine is ***
  20183. --- *** methylated at the 7- position. ***
  20184. --- ************************************************
  20185. ---
  20186. CREATE VIEW seven_methylguanine AS
  20187. SELECT
  20188. feature_id AS seven_methylguanine_id,
  20189. feature.*
  20190. FROM
  20191. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20192. WHERE cvterm.name = 'seven_methylguanine';
  20193. --- ************************************************
  20194. --- *** relation: ribothymidine ***
  20195. --- *** relation type: VIEW ***
  20196. --- *** ***
  20197. --- *** A modified RNA base in which thymine is ***
  20198. --- *** bound to the ribose ring. ***
  20199. --- ************************************************
  20200. ---
  20201. CREATE VIEW ribothymidine AS
  20202. SELECT
  20203. feature_id AS ribothymidine_id,
  20204. feature.*
  20205. FROM
  20206. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20207. WHERE cvterm.name = 'ribothymidine';
  20208. --- ************************************************
  20209. --- *** relation: methylinosine ***
  20210. --- *** relation type: VIEW ***
  20211. --- *** ***
  20212. --- *** A modified RNA base in which methylhypox ***
  20213. --- *** anthine is bound to the ribose ring. ***
  20214. --- ************************************************
  20215. ---
  20216. CREATE VIEW methylinosine AS
  20217. SELECT
  20218. feature_id AS methylinosine_id,
  20219. feature.*
  20220. FROM
  20221. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20222. WHERE cvterm.name = 'methylinosine';
  20223. --- ************************************************
  20224. --- *** relation: mobile ***
  20225. --- *** relation type: VIEW ***
  20226. --- *** ***
  20227. --- *** An attribute describing a feature that h ***
  20228. --- *** as either intra-genome or intracellular ***
  20229. --- *** mobility. ***
  20230. --- ************************************************
  20231. ---
  20232. CREATE VIEW mobile AS
  20233. SELECT
  20234. feature_id AS mobile_id,
  20235. feature.*
  20236. FROM
  20237. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20238. WHERE cvterm.name = 'mobile';
  20239. --- ************************************************
  20240. --- *** relation: replicon ***
  20241. --- *** relation type: VIEW ***
  20242. --- *** ***
  20243. --- *** A region containing at least one unique ***
  20244. --- *** origin of replication and a unique termi ***
  20245. --- *** nation site. ***
  20246. --- ************************************************
  20247. ---
  20248. CREATE VIEW replicon AS
  20249. SELECT
  20250. feature_id AS replicon_id,
  20251. feature.*
  20252. FROM
  20253. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20254. WHERE cvterm.name = 'plasmid' OR cvterm.name = 'chromosome' OR cvterm.name = 'vector_replicon' OR cvterm.name = 'maxicircle' OR cvterm.name = 'minicircle' OR cvterm.name = 'viral_sequence' OR cvterm.name = 'engineered_plasmid' OR cvterm.name = 'episome' OR cvterm.name = 'natural_plasmid' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'gene_trap_construct' OR cvterm.name = 'promoter_trap_construct' OR cvterm.name = 'enhancer_trap_construct' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'mitochondrial_chromosome' OR cvterm.name = 'chloroplast_chromosome' OR cvterm.name = 'chromoplast_chromosome' OR cvterm.name = 'cyanelle_chromosome' OR cvterm.name = 'leucoplast_chromosome' OR cvterm.name = 'macronuclear_chromosome' OR cvterm.name = 'micronuclear_chromosome' OR cvterm.name = 'nuclear_chromosome' OR cvterm.name = 'nucleomorphic_chromosome' OR cvterm.name = 'DNA_chromosome' OR cvterm.name = 'RNA_chromosome' OR cvterm.name = 'apicoplast_chromosome' OR cvterm.name = 'double_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_DNA_chromosome' OR cvterm.name = 'linear_double_stranded_DNA_chromosome' OR cvterm.name = 'circular_double_stranded_DNA_chromosome' OR cvterm.name = 'linear_single_stranded_DNA_chromosome' OR cvterm.name = 'circular_single_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_RNA_chromosome' OR cvterm.name = 'double_stranded_RNA_chromosome' OR cvterm.name = 'linear_single_stranded_RNA_chromosome' OR cvterm.name = 'circular_single_stranded_RNA_chromosome' OR cvterm.name = 'linear_double_stranded_RNA_chromosome' OR cvterm.name = 'circular_double_stranded_RNA_chromosome' OR cvterm.name = 'YAC' OR cvterm.name = 'BAC' OR cvterm.name = 'PAC' OR cvterm.name = 'cosmid' OR cvterm.name = 'phagemid' OR cvterm.name = 'fosmid' OR cvterm.name = 'lambda_vector' OR cvterm.name = 'plasmid_vector' OR cvterm.name = 'targeting_vector' OR cvterm.name = 'phage_sequence' OR cvterm.name = 'ds_RNA_viral_sequence' OR cvterm.name = 'ds_DNA_viral_sequence' OR cvterm.name = 'ss_RNA_viral_sequence' OR cvterm.name = 'negative_sense_ssRNA_viral_sequence' OR cvterm.name = 'positive_sense_ssRNA_viral_sequence' OR cvterm.name = 'ambisense_ssRNA_viral_sequence' OR cvterm.name = 'replicon';
  20255. --- ************************************************
  20256. --- *** relation: base ***
  20257. --- *** relation type: VIEW ***
  20258. --- *** ***
  20259. --- *** A base is a sequence feature that corres ***
  20260. --- *** ponds to a single unit of a nucleotide p ***
  20261. --- *** olymer. ***
  20262. --- ************************************************
  20263. ---
  20264. CREATE VIEW base AS
  20265. SELECT
  20266. feature_id AS base_id,
  20267. feature.*
  20268. FROM
  20269. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20270. WHERE cvterm.name = 'modified_RNA_base_feature' OR cvterm.name = 'inosine' OR cvterm.name = 'seven_methylguanine' OR cvterm.name = 'ribothymidine' OR cvterm.name = 'modified_adenosine' OR cvterm.name = 'modified_cytidine' OR cvterm.name = 'modified_guanosine' OR cvterm.name = 'modified_uridine' OR cvterm.name = 'modified_inosine' OR cvterm.name = 'methylinosine' OR cvterm.name = 'one_methylinosine' OR cvterm.name = 'one_two_prime_O_dimethylinosine' OR cvterm.name = 'two_prime_O_methylinosine' OR cvterm.name = 'one_methyladenosine' OR cvterm.name = 'two_methyladenosine' OR cvterm.name = 'N6_methyladenosine' OR cvterm.name = 'two_prime_O_methyladenosine' OR cvterm.name = 'two_methylthio_N6_methyladenosine' OR cvterm.name = 'N6_isopentenyladenosine' OR cvterm.name = 'two_methylthio_N6_isopentenyladenosine' OR cvterm.name = 'N6_cis_hydroxyisopentenyl_adenosine' OR cvterm.name = 'two_methylthio_N6_cis_hydroxyisopentenyl_adenosine' OR cvterm.name = 'N6_glycinylcarbamoyladenosine' OR cvterm.name = 'N6_threonylcarbamoyladenosine' OR cvterm.name = 'two_methylthio_N6_threonyl_carbamoyladenosine' OR cvterm.name = 'N6_methyl_N6_threonylcarbamoyladenosine' OR cvterm.name = 'N6_hydroxynorvalylcarbamoyladenosine' OR cvterm.name = 'two_methylthio_N6_hydroxynorvalyl_carbamoyladenosine' OR cvterm.name = 'two_prime_O_ribosyladenosine_phosphate' OR cvterm.name = 'N6_N6_dimethyladenosine' OR cvterm.name = 'N6_2_prime_O_dimethyladenosine' OR cvterm.name = 'N6_N6_2_prime_O_trimethyladenosine' OR cvterm.name = 'one_two_prime_O_dimethyladenosine' OR cvterm.name = 'N6_acetyladenosine' OR cvterm.name = 'three_methylcytidine' OR cvterm.name = 'five_methylcytidine' OR cvterm.name = 'two_prime_O_methylcytidine' OR cvterm.name = 'two_thiocytidine' OR cvterm.name = 'N4_acetylcytidine' OR cvterm.name = 'five_formylcytidine' OR cvterm.name = 'five_two_prime_O_dimethylcytidine' OR cvterm.name = 'N4_acetyl_2_prime_O_methylcytidine' OR cvterm.name = 'lysidine' OR cvterm.name = 'N4_methylcytidine' OR cvterm.name = 'N4_2_prime_O_dimethylcytidine' OR cvterm.name = 'five_hydroxymethylcytidine' OR cvterm.name = 'five_formyl_two_prime_O_methylcytidine' OR cvterm.name = 'N4_N4_2_prime_O_trimethylcytidine' OR cvterm.name = 'seven_deazaguanosine' OR cvterm.name = 'one_methylguanosine' OR cvterm.name = 'N2_methylguanosine' OR cvterm.name = 'seven_methylguanosine' OR cvterm.name = 'two_prime_O_methylguanosine' OR cvterm.name = 'N2_N2_dimethylguanosine' OR cvterm.name = 'N2_2_prime_O_dimethylguanosine' OR cvterm.name = 'N2_N2_2_prime_O_trimethylguanosine' OR cvterm.name = 'two_prime_O_ribosylguanosine_phosphate' OR cvterm.name = 'wybutosine' OR cvterm.name = 'peroxywybutosine' OR cvterm.name = 'hydroxywybutosine' OR cvterm.name = 'undermodified_hydroxywybutosine' OR cvterm.name = 'wyosine' OR cvterm.name = 'methylwyosine' OR cvterm.name = 'N2_7_dimethylguanosine' OR cvterm.name = 'N2_N2_7_trimethylguanosine' OR cvterm.name = 'one_two_prime_O_dimethylguanosine' OR cvterm.name = 'four_demethylwyosine' OR cvterm.name = 'isowyosine' OR cvterm.name = 'N2_7_2prirme_O_trimethylguanosine' OR cvterm.name = 'queuosine' OR cvterm.name = 'epoxyqueuosine' OR cvterm.name = 'galactosyl_queuosine' OR cvterm.name = 'mannosyl_queuosine' OR cvterm.name = 'seven_cyano_seven_deazaguanosine' OR cvterm.name = 'seven_aminomethyl_seven_deazaguanosine' OR cvterm.name = 'archaeosine' OR cvterm.name = 'dihydrouridine' OR cvterm.name = 'pseudouridine' OR cvterm.name = 'five_methyluridine' OR cvterm.name = 'two_prime_O_methyluridine' OR cvterm.name = 'five_two_prime_O_dimethyluridine' OR cvterm.name = 'one_methylpseudouridine' OR cvterm.name = 'two_prime_O_methylpseudouridine' OR cvterm.name = 'two_thiouridine' OR cvterm.name = 'four_thiouridine' OR cvterm.name = 'five_methyl_2_thiouridine' OR cvterm.name = 'two_thio_two_prime_O_methyluridine' OR cvterm.name = 'three_three_amino_three_carboxypropyl_uridine' OR cvterm.name = 'five_hydroxyuridine' OR cvterm.name = 'five_methoxyuridine' OR cvterm.name = 'uridine_five_oxyacetic_acid' OR cvterm.name = 'uridine_five_oxyacetic_acid_methyl_ester' OR cvterm.name = 'five_carboxyhydroxymethyl_uridine' OR cvterm.name = 'five_carboxyhydroxymethyl_uridine_methyl_ester' OR cvterm.name = 'five_methoxycarbonylmethyluridine' OR cvterm.name = 'five_methoxycarbonylmethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_methoxycarbonylmethyl_two_thiouridine' OR cvterm.name = 'five_aminomethyl_two_thiouridine' OR cvterm.name = 'five_methylaminomethyluridine' OR cvterm.name = 'five_methylaminomethyl_two_thiouridine' OR cvterm.name = 'five_methylaminomethyl_two_selenouridine' OR cvterm.name = 'five_carbamoylmethyluridine' OR cvterm.name = 'five_carbamoylmethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_carboxymethylaminomethyluridine' OR cvterm.name = 'five_carboxymethylaminomethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_carboxymethylaminomethyl_two_thiouridine' OR cvterm.name = 'three_methyluridine' OR cvterm.name = 'one_methyl_three_three_amino_three_carboxypropyl_pseudouridine' OR cvterm.name = 'five_carboxymethyluridine' OR cvterm.name = 'three_two_prime_O_dimethyluridine' OR cvterm.name = 'five_methyldihydrouridine' OR cvterm.name = 'three_methylpseudouridine' OR cvterm.name = 'five_taurinomethyluridine' OR cvterm.name = 'five_taurinomethyl_two_thiouridine' OR cvterm.name = 'five_isopentenylaminomethyl_uridine' OR cvterm.name = 'five_isopentenylaminomethyl_two_thiouridine' OR cvterm.name = 'five_isopentenylaminomethyl_two_prime_O_methyluridine' OR cvterm.name = 'base';
  20271. --- ************************************************
  20272. --- *** relation: amino_acid ***
  20273. --- *** relation type: VIEW ***
  20274. --- *** ***
  20275. --- *** A sequence feature that corresponds to a ***
  20276. --- *** single amino acid residue in a polypept ***
  20277. --- *** ide. ***
  20278. --- ************************************************
  20279. ---
  20280. CREATE VIEW amino_acid AS
  20281. SELECT
  20282. feature_id AS amino_acid_id,
  20283. feature.*
  20284. FROM
  20285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20286. WHERE cvterm.name = 'catalytic_residue' OR cvterm.name = 'modified_amino_acid_feature' OR cvterm.name = 'alanine' OR cvterm.name = 'valine' OR cvterm.name = 'leucine' OR cvterm.name = 'isoleucine' OR cvterm.name = 'proline' OR cvterm.name = 'tryptophan' OR cvterm.name = 'phenylalanine' OR cvterm.name = 'methionine' OR cvterm.name = 'glycine' OR cvterm.name = 'serine' OR cvterm.name = 'threonine' OR cvterm.name = 'tyrosine' OR cvterm.name = 'cysteine' OR cvterm.name = 'glutamine' OR cvterm.name = 'asparagine' OR cvterm.name = 'lysine' OR cvterm.name = 'arginine' OR cvterm.name = 'histidine' OR cvterm.name = 'aspartic_acid' OR cvterm.name = 'glutamic_acid' OR cvterm.name = 'selenocysteine' OR cvterm.name = 'pyrrolysine' OR cvterm.name = 'modified_glycine' OR cvterm.name = 'modified_L_alanine' OR cvterm.name = 'modified_L_asparagine' OR cvterm.name = 'modified_L_aspartic_acid' OR cvterm.name = 'modified_L_cysteine' OR cvterm.name = 'modified_L_glutamic_acid' OR cvterm.name = 'modified_L_threonine' OR cvterm.name = 'modified_L_tryptophan' OR cvterm.name = 'modified_L_glutamine' OR cvterm.name = 'modified_L_methionine' OR cvterm.name = 'modified_L_isoleucine' OR cvterm.name = 'modified_L_phenylalanine' OR cvterm.name = 'modified_L_histidine' OR cvterm.name = 'modified_L_serine' OR cvterm.name = 'modified_L_lysine' OR cvterm.name = 'modified_L_leucine' OR cvterm.name = 'modified_L_selenocysteine' OR cvterm.name = 'modified_L_valine' OR cvterm.name = 'modified_L_proline' OR cvterm.name = 'modified_L_tyrosine' OR cvterm.name = 'modified_L_arginine' OR cvterm.name = 'amino_acid';
  20287. --- ************************************************
  20288. --- *** relation: major_tss ***
  20289. --- *** relation type: VIEW ***
  20290. --- *** ***
  20291. --- ************************************************
  20292. ---
  20293. CREATE VIEW major_tss AS
  20294. SELECT
  20295. feature_id AS major_tss_id,
  20296. feature.*
  20297. FROM
  20298. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20299. WHERE cvterm.name = 'major_TSS';
  20300. --- ************************************************
  20301. --- *** relation: minor_tss ***
  20302. --- *** relation type: VIEW ***
  20303. --- *** ***
  20304. --- ************************************************
  20305. ---
  20306. CREATE VIEW minor_tss AS
  20307. SELECT
  20308. feature_id AS minor_tss_id,
  20309. feature.*
  20310. FROM
  20311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20312. WHERE cvterm.name = 'minor_TSS';
  20313. --- ************************************************
  20314. --- *** relation: tss_region ***
  20315. --- *** relation type: VIEW ***
  20316. --- *** ***
  20317. --- *** The region of a gene from the 5' most TS ***
  20318. --- *** S to the 3' TSS. ***
  20319. --- ************************************************
  20320. ---
  20321. CREATE VIEW tss_region AS
  20322. SELECT
  20323. feature_id AS tss_region_id,
  20324. feature.*
  20325. FROM
  20326. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20327. WHERE cvterm.name = 'TSS_region';
  20328. --- ************************************************
  20329. --- *** relation: encodes_alternate_transcription_start_sites ***
  20330. --- *** relation type: VIEW ***
  20331. --- *** ***
  20332. --- ************************************************
  20333. ---
  20334. CREATE VIEW encodes_alternate_transcription_start_sites AS
  20335. SELECT
  20336. feature_id AS encodes_alternate_transcription_start_sites_id,
  20337. feature.*
  20338. FROM
  20339. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20340. WHERE cvterm.name = 'encodes_alternate_transcription_start_sites';
  20341. --- ************************************************
  20342. --- *** relation: mirna_primary_transcript_region ***
  20343. --- *** relation type: VIEW ***
  20344. --- *** ***
  20345. --- *** A part of an miRNA primary_transcript. ***
  20346. --- ************************************************
  20347. ---
  20348. CREATE VIEW mirna_primary_transcript_region AS
  20349. SELECT
  20350. feature_id AS mirna_primary_transcript_region_id,
  20351. feature.*
  20352. FROM
  20353. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20354. WHERE cvterm.name = 'pre_miRNA' OR cvterm.name = 'miRNA_stem' OR cvterm.name = 'miRNA_loop' OR cvterm.name = 'miRNA_antiguide' OR cvterm.name = 'miRNA_primary_transcript_region';
  20355. --- ************************************************
  20356. --- *** relation: pre_mirna ***
  20357. --- *** relation type: VIEW ***
  20358. --- *** ***
  20359. --- *** The 60-70 nucleotide region remain after ***
  20360. --- *** Drosha processing of the primary transc ***
  20361. --- *** ript, that folds back upon itself to for ***
  20362. --- *** m a hairpin sructure. ***
  20363. --- ************************************************
  20364. ---
  20365. CREATE VIEW pre_mirna AS
  20366. SELECT
  20367. feature_id AS pre_mirna_id,
  20368. feature.*
  20369. FROM
  20370. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20371. WHERE cvterm.name = 'pre_miRNA';
  20372. --- ************************************************
  20373. --- *** relation: mirna_stem ***
  20374. --- *** relation type: VIEW ***
  20375. --- *** ***
  20376. --- *** The stem of the hairpin loop formed by f ***
  20377. --- *** olding of the pre-miRNA. ***
  20378. --- ************************************************
  20379. ---
  20380. CREATE VIEW mirna_stem AS
  20381. SELECT
  20382. feature_id AS mirna_stem_id,
  20383. feature.*
  20384. FROM
  20385. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20386. WHERE cvterm.name = 'miRNA_stem';
  20387. --- ************************************************
  20388. --- *** relation: mirna_loop ***
  20389. --- *** relation type: VIEW ***
  20390. --- *** ***
  20391. --- *** The loop of the hairpin loop formed by f ***
  20392. --- *** olding of the pre-miRNA. ***
  20393. --- ************************************************
  20394. ---
  20395. CREATE VIEW mirna_loop AS
  20396. SELECT
  20397. feature_id AS mirna_loop_id,
  20398. feature.*
  20399. FROM
  20400. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20401. WHERE cvterm.name = 'miRNA_loop';
  20402. --- ************************************************
  20403. --- *** relation: synthetic_oligo ***
  20404. --- *** relation type: VIEW ***
  20405. --- *** ***
  20406. --- *** An oligo composed of synthetic nucleotid ***
  20407. --- *** es. ***
  20408. --- ************************************************
  20409. ---
  20410. CREATE VIEW synthetic_oligo AS
  20411. SELECT
  20412. feature_id AS synthetic_oligo_id,
  20413. feature.*
  20414. FROM
  20415. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20416. WHERE cvterm.name = 'morpholino_oligo' OR cvterm.name = 'PNA_oligo' OR cvterm.name = 'LNA_oligo' OR cvterm.name = 'TNA_oligo' OR cvterm.name = 'GNA_oligo' OR cvterm.name = 'R_GNA_oligo' OR cvterm.name = 'S_GNA_oligo' OR cvterm.name = 'synthetic_oligo';
  20417. --- ************************************************
  20418. --- *** relation: assembly ***
  20419. --- *** relation type: VIEW ***
  20420. --- *** ***
  20421. --- *** A region of the genome of known length t ***
  20422. --- *** hat is composed by ordering and aligning ***
  20423. --- *** two or more different regions. ***
  20424. --- ************************************************
  20425. ---
  20426. CREATE VIEW assembly AS
  20427. SELECT
  20428. feature_id AS assembly_id,
  20429. feature.*
  20430. FROM
  20431. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20432. WHERE cvterm.name = 'sequence_assembly' OR cvterm.name = 'fragment_assembly' OR cvterm.name = 'supercontig' OR cvterm.name = 'contig' OR cvterm.name = 'tiling_path' OR cvterm.name = 'virtual_sequence' OR cvterm.name = 'golden_path' OR cvterm.name = 'ultracontig' OR cvterm.name = 'expressed_sequence_assembly' OR cvterm.name = 'fingerprint_map' OR cvterm.name = 'STS_map' OR cvterm.name = 'RH_map' OR cvterm.name = 'assembly';
  20433. --- ************************************************
  20434. --- *** relation: fragment_assembly ***
  20435. --- *** relation type: VIEW ***
  20436. --- *** ***
  20437. --- *** A fragment assembly is a genome assembly ***
  20438. --- *** that orders overlapping fragments of th ***
  20439. --- *** e genome based on landmark sequences. Th ***
  20440. --- *** e base pair distance between the landmar ***
  20441. --- *** ks is known allowing additivity of lengt ***
  20442. --- *** hs. ***
  20443. --- ************************************************
  20444. ---
  20445. CREATE VIEW fragment_assembly AS
  20446. SELECT
  20447. feature_id AS fragment_assembly_id,
  20448. feature.*
  20449. FROM
  20450. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20451. WHERE cvterm.name = 'fingerprint_map' OR cvterm.name = 'STS_map' OR cvterm.name = 'RH_map' OR cvterm.name = 'fragment_assembly';
  20452. --- ************************************************
  20453. --- *** relation: fingerprint_map ***
  20454. --- *** relation type: VIEW ***
  20455. --- *** ***
  20456. --- *** A fingerprint_map is a physical map comp ***
  20457. --- *** osed of restriction fragments. ***
  20458. --- ************************************************
  20459. ---
  20460. CREATE VIEW fingerprint_map AS
  20461. SELECT
  20462. feature_id AS fingerprint_map_id,
  20463. feature.*
  20464. FROM
  20465. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20466. WHERE cvterm.name = 'fingerprint_map';
  20467. --- ************************************************
  20468. --- *** relation: sts_map ***
  20469. --- *** relation type: VIEW ***
  20470. --- *** ***
  20471. --- *** An STS map is a physical map organized b ***
  20472. --- *** y the unique STS landmarks. ***
  20473. --- ************************************************
  20474. ---
  20475. CREATE VIEW sts_map AS
  20476. SELECT
  20477. feature_id AS sts_map_id,
  20478. feature.*
  20479. FROM
  20480. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20481. WHERE cvterm.name = 'STS_map';
  20482. --- ************************************************
  20483. --- *** relation: rh_map ***
  20484. --- *** relation type: VIEW ***
  20485. --- *** ***
  20486. --- *** A radiation hybrid map is a physical map ***
  20487. --- *** . ***
  20488. --- ************************************************
  20489. ---
  20490. CREATE VIEW rh_map AS
  20491. SELECT
  20492. feature_id AS rh_map_id,
  20493. feature.*
  20494. FROM
  20495. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20496. WHERE cvterm.name = 'RH_map';
  20497. --- ************************************************
  20498. --- *** relation: sonicate_fragment ***
  20499. --- *** relation type: VIEW ***
  20500. --- *** ***
  20501. --- *** A DNA fragment generated by sonication. ***
  20502. --- *** Sonication is a technique used to sheer ***
  20503. --- *** DNA into smaller fragments. ***
  20504. --- ************************************************
  20505. ---
  20506. CREATE VIEW sonicate_fragment AS
  20507. SELECT
  20508. feature_id AS sonicate_fragment_id,
  20509. feature.*
  20510. FROM
  20511. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20512. WHERE cvterm.name = 'sonicate_fragment';
  20513. --- ************************************************
  20514. --- *** relation: polyploid ***
  20515. --- *** relation type: VIEW ***
  20516. --- *** ***
  20517. --- *** A kind of chromosome variation where the ***
  20518. --- *** chromosome complement is an exact multi ***
  20519. --- *** ple of the haploid number and is greater ***
  20520. --- *** than the diploid number. ***
  20521. --- ************************************************
  20522. ---
  20523. CREATE VIEW polyploid AS
  20524. SELECT
  20525. feature_id AS polyploid_id,
  20526. feature.*
  20527. FROM
  20528. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20529. WHERE cvterm.name = 'autopolyploid' OR cvterm.name = 'allopolyploid' OR cvterm.name = 'polyploid';
  20530. --- ************************************************
  20531. --- *** relation: autopolyploid ***
  20532. --- *** relation type: VIEW ***
  20533. --- *** ***
  20534. --- *** A polyploid where the multiple chromosom ***
  20535. --- *** e set was derived from the same organism ***
  20536. --- *** . ***
  20537. --- ************************************************
  20538. ---
  20539. CREATE VIEW autopolyploid AS
  20540. SELECT
  20541. feature_id AS autopolyploid_id,
  20542. feature.*
  20543. FROM
  20544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20545. WHERE cvterm.name = 'autopolyploid';
  20546. --- ************************************************
  20547. --- *** relation: allopolyploid ***
  20548. --- *** relation type: VIEW ***
  20549. --- *** ***
  20550. --- *** A polyploid where the multiple chromosom ***
  20551. --- *** e set was derived from a different organ ***
  20552. --- *** ism. ***
  20553. --- ************************************************
  20554. ---
  20555. CREATE VIEW allopolyploid AS
  20556. SELECT
  20557. feature_id AS allopolyploid_id,
  20558. feature.*
  20559. FROM
  20560. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20561. WHERE cvterm.name = 'allopolyploid';
  20562. --- ************************************************
  20563. --- *** relation: homing_endonuclease_binding_site ***
  20564. --- *** relation type: VIEW ***
  20565. --- *** ***
  20566. --- *** The binding site (recognition site) of a ***
  20567. --- *** homing endonuclease. The binding site i ***
  20568. --- *** s typically large. ***
  20569. --- ************************************************
  20570. ---
  20571. CREATE VIEW homing_endonuclease_binding_site AS
  20572. SELECT
  20573. feature_id AS homing_endonuclease_binding_site_id,
  20574. feature.*
  20575. FROM
  20576. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20577. WHERE cvterm.name = 'homing_endonuclease_binding_site';
  20578. --- ************************************************
  20579. --- *** relation: octamer_motif ***
  20580. --- *** relation type: VIEW ***
  20581. --- *** ***
  20582. --- *** A sequence element characteristic of som ***
  20583. --- *** e RNA polymerase II promoters with seque ***
  20584. --- *** nce ATTGCAT that binds Pou-domain transc ***
  20585. --- *** ription factors. ***
  20586. --- ************************************************
  20587. ---
  20588. CREATE VIEW octamer_motif AS
  20589. SELECT
  20590. feature_id AS octamer_motif_id,
  20591. feature.*
  20592. FROM
  20593. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20594. WHERE cvterm.name = 'octamer_motif';
  20595. --- ************************************************
  20596. --- *** relation: apicoplast_chromosome ***
  20597. --- *** relation type: VIEW ***
  20598. --- *** ***
  20599. --- *** A chromosome originating in an apicoplas ***
  20600. --- *** t. ***
  20601. --- ************************************************
  20602. ---
  20603. CREATE VIEW apicoplast_chromosome AS
  20604. SELECT
  20605. feature_id AS apicoplast_chromosome_id,
  20606. feature.*
  20607. FROM
  20608. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20609. WHERE cvterm.name = 'apicoplast_chromosome';
  20610. --- ************************************************
  20611. --- *** relation: sequence_collection ***
  20612. --- *** relation type: VIEW ***
  20613. --- *** ***
  20614. --- *** A collection of discontinuous sequences. ***
  20615. --- ************************************************
  20616. ---
  20617. CREATE VIEW sequence_collection AS
  20618. SELECT
  20619. feature_id AS sequence_collection_id,
  20620. feature.*
  20621. FROM
  20622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20623. WHERE cvterm.name = 'kinetoplast' OR cvterm.name = 'genome' OR cvterm.name = 'contig_collection' OR cvterm.name = 'peptide_collection' OR cvterm.name = 'variant_collection' OR cvterm.name = 'kinetoplast' OR cvterm.name = 'reference_genome' OR cvterm.name = 'variant_genome' OR cvterm.name = 'chromosomally_aberrant_genome' OR cvterm.name = 'chromosome_variation' OR cvterm.name = 'allele' OR cvterm.name = 'haplotype' OR cvterm.name = 'genotype' OR cvterm.name = 'diplotype' OR cvterm.name = 'assortment_derived_variation' OR cvterm.name = 'chromosome_number_variation' OR cvterm.name = 'chromosome_structure_variation' OR cvterm.name = 'assortment_derived_duplication' OR cvterm.name = 'assortment_derived_deficiency_plus_duplication' OR cvterm.name = 'assortment_derived_deficiency' OR cvterm.name = 'assortment_derived_aneuploid' OR cvterm.name = 'aneuploid' OR cvterm.name = 'polyploid' OR cvterm.name = 'hyperploid' OR cvterm.name = 'hypoploid' OR cvterm.name = 'autopolyploid' OR cvterm.name = 'allopolyploid' OR cvterm.name = 'free_chromosome_arm' OR cvterm.name = 'chromosomal_transposition' OR cvterm.name = 'aneuploid_chromosome' OR cvterm.name = 'intrachromosomal_mutation' OR cvterm.name = 'interchromosomal_mutation' OR cvterm.name = 'chromosomal_duplication' OR cvterm.name = 'compound_chromosome' OR cvterm.name = 'autosynaptic_chromosome' OR cvterm.name = 'complex_chromosomal_mutation' OR cvterm.name = 'uncharacterised_chromosomal_mutation' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'interchromosomal_transposition' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unoriented_interchromosomal_transposition' OR cvterm.name = 'inversion_derived_aneuploid_chromosome' OR cvterm.name = 'chromosomal_deletion' OR cvterm.name = 'chromosomal_inversion' OR cvterm.name = 'intrachromosomal_duplication' OR cvterm.name = 'ring_chromosome' OR cvterm.name = 'chromosome_fission' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inversion_derived_bipartite_deficiency' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_deficiency_plus_aneuploid' OR cvterm.name = 'deficient_translocation' OR cvterm.name = 'deficient_inversion' OR cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'pericentric_inversion' OR cvterm.name = 'paracentric_inversion' OR cvterm.name = 'inversion_cum_translocation' OR cvterm.name = 'bipartite_inversion' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'deficient_inversion' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_bipartite_duplication' OR cvterm.name = 'inversion_derived_duplication_plus_aneuploid' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'chromosomal_translocation' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'interchromosomal_transposition' OR cvterm.name = 'translocation_element' OR cvterm.name = 'Robertsonian_fusion' OR cvterm.name = 'reciprocal_chromosomal_translocation' OR cvterm.name = 'deficient_translocation' OR cvterm.name = 'inversion_cum_translocation' OR cvterm.name = 'cyclic_translocation' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unoriented_interchromosomal_transposition' OR cvterm.name = 'interchromosomal_duplication' OR cvterm.name = 'intrachromosomal_duplication' OR cvterm.name = 'free_duplication' OR cvterm.name = 'insertional_duplication' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_bipartite_duplication' OR cvterm.name = 'inversion_derived_duplication_plus_aneuploid' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'uninverted_insertional_duplication' OR cvterm.name = 'inverted_insertional_duplication' OR cvterm.name = 'unoriented_insertional_duplication' OR cvterm.name = 'compound_chromosome_arm' OR cvterm.name = 'homo_compound_chromosome' OR cvterm.name = 'hetero_compound_chromosome' OR cvterm.name = 'dexstrosynaptic_chromosome' OR cvterm.name = 'laevosynaptic_chromosome' OR cvterm.name = 'partially_characterised_chromosomal_mutation' OR cvterm.name = 'polymorphic_sequence_variant' OR cvterm.name = 'sequence_collection';
  20624. --- ************************************************
  20625. --- *** relation: overlapping_feature_set ***
  20626. --- *** relation type: VIEW ***
  20627. --- *** ***
  20628. --- *** A continuous region of sequence composed ***
  20629. --- *** of the overlapping of multiple sequence ***
  20630. --- *** _features, which ultimately provides evi ***
  20631. --- *** dence for another sequence_feature. ***
  20632. --- ************************************************
  20633. ---
  20634. CREATE VIEW overlapping_feature_set AS
  20635. SELECT
  20636. feature_id AS overlapping_feature_set_id,
  20637. feature.*
  20638. FROM
  20639. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20640. WHERE cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'overlapping_feature_set';
  20641. --- ************************************************
  20642. --- *** relation: overlapping_est_set ***
  20643. --- *** relation type: VIEW ***
  20644. --- *** ***
  20645. --- *** A continous experimental result region e ***
  20646. --- *** xtending the length of multiple overlapp ***
  20647. --- *** ing EST's. ***
  20648. --- ************************************************
  20649. ---
  20650. CREATE VIEW overlapping_est_set AS
  20651. SELECT
  20652. feature_id AS overlapping_est_set_id,
  20653. feature.*
  20654. FROM
  20655. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20656. WHERE cvterm.name = 'overlapping_EST_set';
  20657. --- ************************************************
  20658. --- *** relation: ncrna_gene ***
  20659. --- *** relation type: VIEW ***
  20660. --- *** ***
  20661. --- ************************************************
  20662. ---
  20663. CREATE VIEW ncrna_gene AS
  20664. SELECT
  20665. feature_id AS ncrna_gene_id,
  20666. feature.*
  20667. FROM
  20668. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20669. WHERE cvterm.name = 'gRNA_gene' OR cvterm.name = 'miRNA_gene' OR cvterm.name = 'scRNA_gene' OR cvterm.name = 'snoRNA_gene' OR cvterm.name = 'snRNA_gene' OR cvterm.name = 'SRP_RNA_gene' OR cvterm.name = 'stRNA_gene' OR cvterm.name = 'tmRNA_gene' OR cvterm.name = 'tRNA_gene' OR cvterm.name = 'rRNA_gene' OR cvterm.name = 'piRNA_gene' OR cvterm.name = 'RNase_P_RNA_gene' OR cvterm.name = 'RNase_MRP_RNA_gene' OR cvterm.name = 'lincRNA_gene' OR cvterm.name = 'telomerase_RNA_gene' OR cvterm.name = 'ncRNA_gene';
  20670. --- ************************************************
  20671. --- *** relation: grna_gene ***
  20672. --- *** relation type: VIEW ***
  20673. --- *** ***
  20674. --- ************************************************
  20675. ---
  20676. CREATE VIEW grna_gene AS
  20677. SELECT
  20678. feature_id AS grna_gene_id,
  20679. feature.*
  20680. FROM
  20681. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20682. WHERE cvterm.name = 'gRNA_gene';
  20683. --- ************************************************
  20684. --- *** relation: mirna_gene ***
  20685. --- *** relation type: VIEW ***
  20686. --- *** ***
  20687. --- ************************************************
  20688. ---
  20689. CREATE VIEW mirna_gene AS
  20690. SELECT
  20691. feature_id AS mirna_gene_id,
  20692. feature.*
  20693. FROM
  20694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20695. WHERE cvterm.name = 'miRNA_gene';
  20696. --- ************************************************
  20697. --- *** relation: scrna_gene ***
  20698. --- *** relation type: VIEW ***
  20699. --- *** ***
  20700. --- ************************************************
  20701. ---
  20702. CREATE VIEW scrna_gene AS
  20703. SELECT
  20704. feature_id AS scrna_gene_id,
  20705. feature.*
  20706. FROM
  20707. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20708. WHERE cvterm.name = 'scRNA_gene';
  20709. --- ************************************************
  20710. --- *** relation: snorna_gene ***
  20711. --- *** relation type: VIEW ***
  20712. --- *** ***
  20713. --- ************************************************
  20714. ---
  20715. CREATE VIEW snorna_gene AS
  20716. SELECT
  20717. feature_id AS snorna_gene_id,
  20718. feature.*
  20719. FROM
  20720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20721. WHERE cvterm.name = 'snoRNA_gene';
  20722. --- ************************************************
  20723. --- *** relation: snrna_gene ***
  20724. --- *** relation type: VIEW ***
  20725. --- *** ***
  20726. --- ************************************************
  20727. ---
  20728. CREATE VIEW snrna_gene AS
  20729. SELECT
  20730. feature_id AS snrna_gene_id,
  20731. feature.*
  20732. FROM
  20733. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20734. WHERE cvterm.name = 'snRNA_gene';
  20735. --- ************************************************
  20736. --- *** relation: srp_rna_gene ***
  20737. --- *** relation type: VIEW ***
  20738. --- *** ***
  20739. --- ************************************************
  20740. ---
  20741. CREATE VIEW srp_rna_gene AS
  20742. SELECT
  20743. feature_id AS srp_rna_gene_id,
  20744. feature.*
  20745. FROM
  20746. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20747. WHERE cvterm.name = 'SRP_RNA_gene';
  20748. --- ************************************************
  20749. --- *** relation: strna_gene ***
  20750. --- *** relation type: VIEW ***
  20751. --- *** ***
  20752. --- ************************************************
  20753. ---
  20754. CREATE VIEW strna_gene AS
  20755. SELECT
  20756. feature_id AS strna_gene_id,
  20757. feature.*
  20758. FROM
  20759. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20760. WHERE cvterm.name = 'stRNA_gene';
  20761. --- ************************************************
  20762. --- *** relation: tmrna_gene ***
  20763. --- *** relation type: VIEW ***
  20764. --- *** ***
  20765. --- ************************************************
  20766. ---
  20767. CREATE VIEW tmrna_gene AS
  20768. SELECT
  20769. feature_id AS tmrna_gene_id,
  20770. feature.*
  20771. FROM
  20772. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20773. WHERE cvterm.name = 'tmRNA_gene';
  20774. --- ************************************************
  20775. --- *** relation: trna_gene ***
  20776. --- *** relation type: VIEW ***
  20777. --- *** ***
  20778. --- ************************************************
  20779. ---
  20780. CREATE VIEW trna_gene AS
  20781. SELECT
  20782. feature_id AS trna_gene_id,
  20783. feature.*
  20784. FROM
  20785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20786. WHERE cvterm.name = 'tRNA_gene';
  20787. --- ************************************************
  20788. --- *** relation: modified_adenosine ***
  20789. --- *** relation type: VIEW ***
  20790. --- *** ***
  20791. --- *** A modified adenine is an adenine base fe ***
  20792. --- *** ature that has been altered. ***
  20793. --- ************************************************
  20794. ---
  20795. CREATE VIEW modified_adenosine AS
  20796. SELECT
  20797. feature_id AS modified_adenosine_id,
  20798. feature.*
  20799. FROM
  20800. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20801. WHERE cvterm.name = 'one_methyladenosine' OR cvterm.name = 'two_methyladenosine' OR cvterm.name = 'N6_methyladenosine' OR cvterm.name = 'two_prime_O_methyladenosine' OR cvterm.name = 'two_methylthio_N6_methyladenosine' OR cvterm.name = 'N6_isopentenyladenosine' OR cvterm.name = 'two_methylthio_N6_isopentenyladenosine' OR cvterm.name = 'N6_cis_hydroxyisopentenyl_adenosine' OR cvterm.name = 'two_methylthio_N6_cis_hydroxyisopentenyl_adenosine' OR cvterm.name = 'N6_glycinylcarbamoyladenosine' OR cvterm.name = 'N6_threonylcarbamoyladenosine' OR cvterm.name = 'two_methylthio_N6_threonyl_carbamoyladenosine' OR cvterm.name = 'N6_methyl_N6_threonylcarbamoyladenosine' OR cvterm.name = 'N6_hydroxynorvalylcarbamoyladenosine' OR cvterm.name = 'two_methylthio_N6_hydroxynorvalyl_carbamoyladenosine' OR cvterm.name = 'two_prime_O_ribosyladenosine_phosphate' OR cvterm.name = 'N6_N6_dimethyladenosine' OR cvterm.name = 'N6_2_prime_O_dimethyladenosine' OR cvterm.name = 'N6_N6_2_prime_O_trimethyladenosine' OR cvterm.name = 'one_two_prime_O_dimethyladenosine' OR cvterm.name = 'N6_acetyladenosine' OR cvterm.name = 'modified_adenosine';
  20802. --- ************************************************
  20803. --- *** relation: modified_inosine ***
  20804. --- *** relation type: VIEW ***
  20805. --- *** ***
  20806. --- *** A modified inosine is an inosine base fe ***
  20807. --- *** ature that has been altered. ***
  20808. --- ************************************************
  20809. ---
  20810. CREATE VIEW modified_inosine AS
  20811. SELECT
  20812. feature_id AS modified_inosine_id,
  20813. feature.*
  20814. FROM
  20815. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20816. WHERE cvterm.name = 'methylinosine' OR cvterm.name = 'one_methylinosine' OR cvterm.name = 'one_two_prime_O_dimethylinosine' OR cvterm.name = 'two_prime_O_methylinosine' OR cvterm.name = 'modified_inosine';
  20817. --- ************************************************
  20818. --- *** relation: modified_cytidine ***
  20819. --- *** relation type: VIEW ***
  20820. --- *** ***
  20821. --- *** A modified cytidine is a cytidine base f ***
  20822. --- *** eature which has been altered. ***
  20823. --- ************************************************
  20824. ---
  20825. CREATE VIEW modified_cytidine AS
  20826. SELECT
  20827. feature_id AS modified_cytidine_id,
  20828. feature.*
  20829. FROM
  20830. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20831. WHERE cvterm.name = 'three_methylcytidine' OR cvterm.name = 'five_methylcytidine' OR cvterm.name = 'two_prime_O_methylcytidine' OR cvterm.name = 'two_thiocytidine' OR cvterm.name = 'N4_acetylcytidine' OR cvterm.name = 'five_formylcytidine' OR cvterm.name = 'five_two_prime_O_dimethylcytidine' OR cvterm.name = 'N4_acetyl_2_prime_O_methylcytidine' OR cvterm.name = 'lysidine' OR cvterm.name = 'N4_methylcytidine' OR cvterm.name = 'N4_2_prime_O_dimethylcytidine' OR cvterm.name = 'five_hydroxymethylcytidine' OR cvterm.name = 'five_formyl_two_prime_O_methylcytidine' OR cvterm.name = 'N4_N4_2_prime_O_trimethylcytidine' OR cvterm.name = 'modified_cytidine';
  20832. --- ************************************************
  20833. --- *** relation: modified_guanosine ***
  20834. --- *** relation type: VIEW ***
  20835. --- *** ***
  20836. --- ************************************************
  20837. ---
  20838. CREATE VIEW modified_guanosine AS
  20839. SELECT
  20840. feature_id AS modified_guanosine_id,
  20841. feature.*
  20842. FROM
  20843. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20844. WHERE cvterm.name = 'seven_deazaguanosine' OR cvterm.name = 'one_methylguanosine' OR cvterm.name = 'N2_methylguanosine' OR cvterm.name = 'seven_methylguanosine' OR cvterm.name = 'two_prime_O_methylguanosine' OR cvterm.name = 'N2_N2_dimethylguanosine' OR cvterm.name = 'N2_2_prime_O_dimethylguanosine' OR cvterm.name = 'N2_N2_2_prime_O_trimethylguanosine' OR cvterm.name = 'two_prime_O_ribosylguanosine_phosphate' OR cvterm.name = 'wybutosine' OR cvterm.name = 'peroxywybutosine' OR cvterm.name = 'hydroxywybutosine' OR cvterm.name = 'undermodified_hydroxywybutosine' OR cvterm.name = 'wyosine' OR cvterm.name = 'methylwyosine' OR cvterm.name = 'N2_7_dimethylguanosine' OR cvterm.name = 'N2_N2_7_trimethylguanosine' OR cvterm.name = 'one_two_prime_O_dimethylguanosine' OR cvterm.name = 'four_demethylwyosine' OR cvterm.name = 'isowyosine' OR cvterm.name = 'N2_7_2prirme_O_trimethylguanosine' OR cvterm.name = 'queuosine' OR cvterm.name = 'epoxyqueuosine' OR cvterm.name = 'galactosyl_queuosine' OR cvterm.name = 'mannosyl_queuosine' OR cvterm.name = 'seven_cyano_seven_deazaguanosine' OR cvterm.name = 'seven_aminomethyl_seven_deazaguanosine' OR cvterm.name = 'archaeosine' OR cvterm.name = 'modified_guanosine';
  20845. --- ************************************************
  20846. --- *** relation: modified_uridine ***
  20847. --- *** relation type: VIEW ***
  20848. --- *** ***
  20849. --- ************************************************
  20850. ---
  20851. CREATE VIEW modified_uridine AS
  20852. SELECT
  20853. feature_id AS modified_uridine_id,
  20854. feature.*
  20855. FROM
  20856. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20857. WHERE cvterm.name = 'dihydrouridine' OR cvterm.name = 'pseudouridine' OR cvterm.name = 'five_methyluridine' OR cvterm.name = 'two_prime_O_methyluridine' OR cvterm.name = 'five_two_prime_O_dimethyluridine' OR cvterm.name = 'one_methylpseudouridine' OR cvterm.name = 'two_prime_O_methylpseudouridine' OR cvterm.name = 'two_thiouridine' OR cvterm.name = 'four_thiouridine' OR cvterm.name = 'five_methyl_2_thiouridine' OR cvterm.name = 'two_thio_two_prime_O_methyluridine' OR cvterm.name = 'three_three_amino_three_carboxypropyl_uridine' OR cvterm.name = 'five_hydroxyuridine' OR cvterm.name = 'five_methoxyuridine' OR cvterm.name = 'uridine_five_oxyacetic_acid' OR cvterm.name = 'uridine_five_oxyacetic_acid_methyl_ester' OR cvterm.name = 'five_carboxyhydroxymethyl_uridine' OR cvterm.name = 'five_carboxyhydroxymethyl_uridine_methyl_ester' OR cvterm.name = 'five_methoxycarbonylmethyluridine' OR cvterm.name = 'five_methoxycarbonylmethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_methoxycarbonylmethyl_two_thiouridine' OR cvterm.name = 'five_aminomethyl_two_thiouridine' OR cvterm.name = 'five_methylaminomethyluridine' OR cvterm.name = 'five_methylaminomethyl_two_thiouridine' OR cvterm.name = 'five_methylaminomethyl_two_selenouridine' OR cvterm.name = 'five_carbamoylmethyluridine' OR cvterm.name = 'five_carbamoylmethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_carboxymethylaminomethyluridine' OR cvterm.name = 'five_carboxymethylaminomethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_carboxymethylaminomethyl_two_thiouridine' OR cvterm.name = 'three_methyluridine' OR cvterm.name = 'one_methyl_three_three_amino_three_carboxypropyl_pseudouridine' OR cvterm.name = 'five_carboxymethyluridine' OR cvterm.name = 'three_two_prime_O_dimethyluridine' OR cvterm.name = 'five_methyldihydrouridine' OR cvterm.name = 'three_methylpseudouridine' OR cvterm.name = 'five_taurinomethyluridine' OR cvterm.name = 'five_taurinomethyl_two_thiouridine' OR cvterm.name = 'five_isopentenylaminomethyl_uridine' OR cvterm.name = 'five_isopentenylaminomethyl_two_thiouridine' OR cvterm.name = 'five_isopentenylaminomethyl_two_prime_O_methyluridine' OR cvterm.name = 'modified_uridine';
  20858. --- ************************************************
  20859. --- *** relation: one_methylinosine ***
  20860. --- *** relation type: VIEW ***
  20861. --- *** ***
  20862. --- *** 1-methylinosine is a modified insosine. ***
  20863. --- ************************************************
  20864. ---
  20865. CREATE VIEW one_methylinosine AS
  20866. SELECT
  20867. feature_id AS one_methylinosine_id,
  20868. feature.*
  20869. FROM
  20870. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20871. WHERE cvterm.name = 'one_methylinosine';
  20872. --- ************************************************
  20873. --- *** relation: one_two_prime_o_dimethylinosine ***
  20874. --- *** relation type: VIEW ***
  20875. --- *** ***
  20876. --- *** 1,2'-O-dimethylinosine is a modified ino ***
  20877. --- *** sine. ***
  20878. --- ************************************************
  20879. ---
  20880. CREATE VIEW one_two_prime_o_dimethylinosine AS
  20881. SELECT
  20882. feature_id AS one_two_prime_o_dimethylinosine_id,
  20883. feature.*
  20884. FROM
  20885. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20886. WHERE cvterm.name = 'one_two_prime_O_dimethylinosine';
  20887. --- ************************************************
  20888. --- *** relation: two_prime_o_methylinosine ***
  20889. --- *** relation type: VIEW ***
  20890. --- *** ***
  20891. --- *** 2'-O-methylinosine is a modified inosine ***
  20892. --- *** . ***
  20893. --- ************************************************
  20894. ---
  20895. CREATE VIEW two_prime_o_methylinosine AS
  20896. SELECT
  20897. feature_id AS two_prime_o_methylinosine_id,
  20898. feature.*
  20899. FROM
  20900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20901. WHERE cvterm.name = 'two_prime_O_methylinosine';
  20902. --- ************************************************
  20903. --- *** relation: three_methylcytidine ***
  20904. --- *** relation type: VIEW ***
  20905. --- *** ***
  20906. --- *** 3-methylcytidine is a modified cytidine. ***
  20907. --- ************************************************
  20908. ---
  20909. CREATE VIEW three_methylcytidine AS
  20910. SELECT
  20911. feature_id AS three_methylcytidine_id,
  20912. feature.*
  20913. FROM
  20914. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20915. WHERE cvterm.name = 'three_methylcytidine';
  20916. --- ************************************************
  20917. --- *** relation: five_methylcytidine ***
  20918. --- *** relation type: VIEW ***
  20919. --- *** ***
  20920. --- *** 5-methylcytidine is a modified cytidine. ***
  20921. --- ************************************************
  20922. ---
  20923. CREATE VIEW five_methylcytidine AS
  20924. SELECT
  20925. feature_id AS five_methylcytidine_id,
  20926. feature.*
  20927. FROM
  20928. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20929. WHERE cvterm.name = 'five_methylcytidine';
  20930. --- ************************************************
  20931. --- *** relation: two_prime_o_methylcytidine ***
  20932. --- *** relation type: VIEW ***
  20933. --- *** ***
  20934. --- *** 2'-O-methylcytidine is a modified cytidi ***
  20935. --- *** ne. ***
  20936. --- ************************************************
  20937. ---
  20938. CREATE VIEW two_prime_o_methylcytidine AS
  20939. SELECT
  20940. feature_id AS two_prime_o_methylcytidine_id,
  20941. feature.*
  20942. FROM
  20943. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20944. WHERE cvterm.name = 'two_prime_O_methylcytidine';
  20945. --- ************************************************
  20946. --- *** relation: two_thiocytidine ***
  20947. --- *** relation type: VIEW ***
  20948. --- *** ***
  20949. --- *** 2-thiocytidine is a modified cytidine. ***
  20950. --- ************************************************
  20951. ---
  20952. CREATE VIEW two_thiocytidine AS
  20953. SELECT
  20954. feature_id AS two_thiocytidine_id,
  20955. feature.*
  20956. FROM
  20957. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20958. WHERE cvterm.name = 'two_thiocytidine';
  20959. --- ************************************************
  20960. --- *** relation: n4_acetylcytidine ***
  20961. --- *** relation type: VIEW ***
  20962. --- *** ***
  20963. --- *** N4-acetylcytidine is a modified cytidine ***
  20964. --- *** . ***
  20965. --- ************************************************
  20966. ---
  20967. CREATE VIEW n4_acetylcytidine AS
  20968. SELECT
  20969. feature_id AS n4_acetylcytidine_id,
  20970. feature.*
  20971. FROM
  20972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20973. WHERE cvterm.name = 'N4_acetylcytidine';
  20974. --- ************************************************
  20975. --- *** relation: five_formylcytidine ***
  20976. --- *** relation type: VIEW ***
  20977. --- *** ***
  20978. --- *** 5-formylcytidine is a modified cytidine. ***
  20979. --- ************************************************
  20980. ---
  20981. CREATE VIEW five_formylcytidine AS
  20982. SELECT
  20983. feature_id AS five_formylcytidine_id,
  20984. feature.*
  20985. FROM
  20986. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20987. WHERE cvterm.name = 'five_formylcytidine';
  20988. --- ************************************************
  20989. --- *** relation: five_two_prime_o_dimethylcytidine ***
  20990. --- *** relation type: VIEW ***
  20991. --- *** ***
  20992. --- *** 5,2'-O-dimethylcytidine is a modified cy ***
  20993. --- *** tidine. ***
  20994. --- ************************************************
  20995. ---
  20996. CREATE VIEW five_two_prime_o_dimethylcytidine AS
  20997. SELECT
  20998. feature_id AS five_two_prime_o_dimethylcytidine_id,
  20999. feature.*
  21000. FROM
  21001. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21002. WHERE cvterm.name = 'five_two_prime_O_dimethylcytidine';
  21003. --- ************************************************
  21004. --- *** relation: n4_acetyl_2_prime_o_methylcytidine ***
  21005. --- *** relation type: VIEW ***
  21006. --- *** ***
  21007. --- *** N4-acetyl-2'-O-methylcytidine is a modif ***
  21008. --- *** ied cytidine. ***
  21009. --- ************************************************
  21010. ---
  21011. CREATE VIEW n4_acetyl_2_prime_o_methylcytidine AS
  21012. SELECT
  21013. feature_id AS n4_acetyl_2_prime_o_methylcytidine_id,
  21014. feature.*
  21015. FROM
  21016. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21017. WHERE cvterm.name = 'N4_acetyl_2_prime_O_methylcytidine';
  21018. --- ************************************************
  21019. --- *** relation: lysidine ***
  21020. --- *** relation type: VIEW ***
  21021. --- *** ***
  21022. --- *** Lysidine is a modified cytidine. ***
  21023. --- ************************************************
  21024. ---
  21025. CREATE VIEW lysidine AS
  21026. SELECT
  21027. feature_id AS lysidine_id,
  21028. feature.*
  21029. FROM
  21030. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21031. WHERE cvterm.name = 'lysidine';
  21032. --- ************************************************
  21033. --- *** relation: n4_methylcytidine ***
  21034. --- *** relation type: VIEW ***
  21035. --- *** ***
  21036. --- *** N4-methylcytidine is a modified cytidine ***
  21037. --- *** . ***
  21038. --- ************************************************
  21039. ---
  21040. CREATE VIEW n4_methylcytidine AS
  21041. SELECT
  21042. feature_id AS n4_methylcytidine_id,
  21043. feature.*
  21044. FROM
  21045. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21046. WHERE cvterm.name = 'N4_methylcytidine';
  21047. --- ************************************************
  21048. --- *** relation: n4_2_prime_o_dimethylcytidine ***
  21049. --- *** relation type: VIEW ***
  21050. --- *** ***
  21051. --- *** N4,2'-O-dimethylcytidine is a modified c ***
  21052. --- *** ytidine. ***
  21053. --- ************************************************
  21054. ---
  21055. CREATE VIEW n4_2_prime_o_dimethylcytidine AS
  21056. SELECT
  21057. feature_id AS n4_2_prime_o_dimethylcytidine_id,
  21058. feature.*
  21059. FROM
  21060. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21061. WHERE cvterm.name = 'N4_2_prime_O_dimethylcytidine';
  21062. --- ************************************************
  21063. --- *** relation: five_hydroxymethylcytidine ***
  21064. --- *** relation type: VIEW ***
  21065. --- *** ***
  21066. --- *** 5-hydroxymethylcytidine is a modified cy ***
  21067. --- *** tidine. ***
  21068. --- ************************************************
  21069. ---
  21070. CREATE VIEW five_hydroxymethylcytidine AS
  21071. SELECT
  21072. feature_id AS five_hydroxymethylcytidine_id,
  21073. feature.*
  21074. FROM
  21075. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21076. WHERE cvterm.name = 'five_hydroxymethylcytidine';
  21077. --- ************************************************
  21078. --- *** relation: five_formyl_two_prime_o_methylcytidine ***
  21079. --- *** relation type: VIEW ***
  21080. --- *** ***
  21081. --- *** 5-formyl-2'-O-methylcytidine is a modifi ***
  21082. --- *** ed cytidine. ***
  21083. --- ************************************************
  21084. ---
  21085. CREATE VIEW five_formyl_two_prime_o_methylcytidine AS
  21086. SELECT
  21087. feature_id AS five_formyl_two_prime_o_methylcytidine_id,
  21088. feature.*
  21089. FROM
  21090. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21091. WHERE cvterm.name = 'five_formyl_two_prime_O_methylcytidine';
  21092. --- ************************************************
  21093. --- *** relation: n4_n4_2_prime_o_trimethylcytidine ***
  21094. --- *** relation type: VIEW ***
  21095. --- *** ***
  21096. --- *** N4_N4_2_prime_O_trimethylcytidine is a m ***
  21097. --- *** odified cytidine. ***
  21098. --- ************************************************
  21099. ---
  21100. CREATE VIEW n4_n4_2_prime_o_trimethylcytidine AS
  21101. SELECT
  21102. feature_id AS n4_n4_2_prime_o_trimethylcytidine_id,
  21103. feature.*
  21104. FROM
  21105. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21106. WHERE cvterm.name = 'N4_N4_2_prime_O_trimethylcytidine';
  21107. --- ************************************************
  21108. --- *** relation: one_methyladenosine ***
  21109. --- *** relation type: VIEW ***
  21110. --- *** ***
  21111. --- *** 1_methyladenosine is a modified adenosin ***
  21112. --- *** e. ***
  21113. --- ************************************************
  21114. ---
  21115. CREATE VIEW one_methyladenosine AS
  21116. SELECT
  21117. feature_id AS one_methyladenosine_id,
  21118. feature.*
  21119. FROM
  21120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21121. WHERE cvterm.name = 'one_methyladenosine';
  21122. --- ************************************************
  21123. --- *** relation: two_methyladenosine ***
  21124. --- *** relation type: VIEW ***
  21125. --- *** ***
  21126. --- *** 2_methyladenosine is a modified adenosin ***
  21127. --- *** e. ***
  21128. --- ************************************************
  21129. ---
  21130. CREATE VIEW two_methyladenosine AS
  21131. SELECT
  21132. feature_id AS two_methyladenosine_id,
  21133. feature.*
  21134. FROM
  21135. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21136. WHERE cvterm.name = 'two_methyladenosine';
  21137. --- ************************************************
  21138. --- *** relation: n6_methyladenosine ***
  21139. --- *** relation type: VIEW ***
  21140. --- *** ***
  21141. --- *** N6_methyladenosine is a modified adenosi ***
  21142. --- *** ne. ***
  21143. --- ************************************************
  21144. ---
  21145. CREATE VIEW n6_methyladenosine AS
  21146. SELECT
  21147. feature_id AS n6_methyladenosine_id,
  21148. feature.*
  21149. FROM
  21150. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21151. WHERE cvterm.name = 'N6_methyladenosine';
  21152. --- ************************************************
  21153. --- *** relation: two_prime_o_methyladenosine ***
  21154. --- *** relation type: VIEW ***
  21155. --- *** ***
  21156. --- *** 2prime_O_methyladenosine is a modified a ***
  21157. --- *** denosine. ***
  21158. --- ************************************************
  21159. ---
  21160. CREATE VIEW two_prime_o_methyladenosine AS
  21161. SELECT
  21162. feature_id AS two_prime_o_methyladenosine_id,
  21163. feature.*
  21164. FROM
  21165. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21166. WHERE cvterm.name = 'two_prime_O_methyladenosine';
  21167. --- ************************************************
  21168. --- *** relation: two_methylthio_n6_methyladenosine ***
  21169. --- *** relation type: VIEW ***
  21170. --- *** ***
  21171. --- *** 2_methylthio_N6_methyladenosine is a mod ***
  21172. --- *** ified adenosine. ***
  21173. --- ************************************************
  21174. ---
  21175. CREATE VIEW two_methylthio_n6_methyladenosine AS
  21176. SELECT
  21177. feature_id AS two_methylthio_n6_methyladenosine_id,
  21178. feature.*
  21179. FROM
  21180. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21181. WHERE cvterm.name = 'two_methylthio_N6_methyladenosine';
  21182. --- ************************************************
  21183. --- *** relation: n6_isopentenyladenosine ***
  21184. --- *** relation type: VIEW ***
  21185. --- *** ***
  21186. --- *** N6_isopentenyladenosine is a modified ad ***
  21187. --- *** enosine. ***
  21188. --- ************************************************
  21189. ---
  21190. CREATE VIEW n6_isopentenyladenosine AS
  21191. SELECT
  21192. feature_id AS n6_isopentenyladenosine_id,
  21193. feature.*
  21194. FROM
  21195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21196. WHERE cvterm.name = 'N6_isopentenyladenosine';
  21197. --- ************************************************
  21198. --- *** relation: two_methylthio_n6_isopentenyladenosine ***
  21199. --- *** relation type: VIEW ***
  21200. --- *** ***
  21201. --- *** 2_methylthio_N6_isopentenyladenosine is ***
  21202. --- *** a modified adenosine. ***
  21203. --- ************************************************
  21204. ---
  21205. CREATE VIEW two_methylthio_n6_isopentenyladenosine AS
  21206. SELECT
  21207. feature_id AS two_methylthio_n6_isopentenyladenosine_id,
  21208. feature.*
  21209. FROM
  21210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21211. WHERE cvterm.name = 'two_methylthio_N6_isopentenyladenosine';
  21212. --- ************************************************
  21213. --- *** relation: n6_cis_hydroxyisopentenyl_adenosine ***
  21214. --- *** relation type: VIEW ***
  21215. --- *** ***
  21216. --- *** N6_cis_hydroxyisopentenyl_adenosine is a ***
  21217. --- *** modified adenosine. ***
  21218. --- ************************************************
  21219. ---
  21220. CREATE VIEW n6_cis_hydroxyisopentenyl_adenosine AS
  21221. SELECT
  21222. feature_id AS n6_cis_hydroxyisopentenyl_adenosine_id,
  21223. feature.*
  21224. FROM
  21225. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21226. WHERE cvterm.name = 'N6_cis_hydroxyisopentenyl_adenosine';
  21227. --- ************************************************
  21228. --- *** relation: two_methylthio_n6_cis_hydroxyisopentenyl_adenosine ***
  21229. --- *** relation type: VIEW ***
  21230. --- *** ***
  21231. --- *** 2_methylthio_N6_cis_hydroxyisopentenyl_a ***
  21232. --- *** denosine is a modified adenosine. ***
  21233. --- ************************************************
  21234. ---
  21235. CREATE VIEW two_methylthio_n6_cis_hydroxyisopentenyl_adenosine AS
  21236. SELECT
  21237. feature_id AS two_methylthio_n6_cis_hydroxyisopentenyl_adenosine_id,
  21238. feature.*
  21239. FROM
  21240. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21241. WHERE cvterm.name = 'two_methylthio_N6_cis_hydroxyisopentenyl_adenosine';
  21242. --- ************************************************
  21243. --- *** relation: n6_glycinylcarbamoyladenosine ***
  21244. --- *** relation type: VIEW ***
  21245. --- *** ***
  21246. --- *** N6_glycinylcarbamoyladenosine is a modif ***
  21247. --- *** ied adenosine. ***
  21248. --- ************************************************
  21249. ---
  21250. CREATE VIEW n6_glycinylcarbamoyladenosine AS
  21251. SELECT
  21252. feature_id AS n6_glycinylcarbamoyladenosine_id,
  21253. feature.*
  21254. FROM
  21255. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21256. WHERE cvterm.name = 'N6_glycinylcarbamoyladenosine';
  21257. --- ************************************************
  21258. --- *** relation: n6_threonylcarbamoyladenosine ***
  21259. --- *** relation type: VIEW ***
  21260. --- *** ***
  21261. --- *** N6_threonylcarbamoyladenosine is a modif ***
  21262. --- *** ied adenosine. ***
  21263. --- ************************************************
  21264. ---
  21265. CREATE VIEW n6_threonylcarbamoyladenosine AS
  21266. SELECT
  21267. feature_id AS n6_threonylcarbamoyladenosine_id,
  21268. feature.*
  21269. FROM
  21270. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21271. WHERE cvterm.name = 'N6_threonylcarbamoyladenosine';
  21272. --- ************************************************
  21273. --- *** relation: two_methylthio_n6_threonyl_carbamoyladenosine ***
  21274. --- *** relation type: VIEW ***
  21275. --- *** ***
  21276. --- *** 2_methylthio_N6_threonyl_carbamoyladenos ***
  21277. --- *** ine is a modified adenosine. ***
  21278. --- ************************************************
  21279. ---
  21280. CREATE VIEW two_methylthio_n6_threonyl_carbamoyladenosine AS
  21281. SELECT
  21282. feature_id AS two_methylthio_n6_threonyl_carbamoyladenosine_id,
  21283. feature.*
  21284. FROM
  21285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21286. WHERE cvterm.name = 'two_methylthio_N6_threonyl_carbamoyladenosine';
  21287. --- ************************************************
  21288. --- *** relation: n6_methyl_n6_threonylcarbamoyladenosine ***
  21289. --- *** relation type: VIEW ***
  21290. --- *** ***
  21291. --- *** N6_methyl_N6_threonylcarbamoyladenosine ***
  21292. --- *** is a modified adenosine. ***
  21293. --- ************************************************
  21294. ---
  21295. CREATE VIEW n6_methyl_n6_threonylcarbamoyladenosine AS
  21296. SELECT
  21297. feature_id AS n6_methyl_n6_threonylcarbamoyladenosine_id,
  21298. feature.*
  21299. FROM
  21300. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21301. WHERE cvterm.name = 'N6_methyl_N6_threonylcarbamoyladenosine';
  21302. --- ************************************************
  21303. --- *** relation: n6_hydroxynorvalylcarbamoyladenosine ***
  21304. --- *** relation type: VIEW ***
  21305. --- *** ***
  21306. --- *** N6_hydroxynorvalylcarbamoyladenosine is ***
  21307. --- *** a modified adenosine. ***
  21308. --- ************************************************
  21309. ---
  21310. CREATE VIEW n6_hydroxynorvalylcarbamoyladenosine AS
  21311. SELECT
  21312. feature_id AS n6_hydroxynorvalylcarbamoyladenosine_id,
  21313. feature.*
  21314. FROM
  21315. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21316. WHERE cvterm.name = 'N6_hydroxynorvalylcarbamoyladenosine';
  21317. --- ************************************************
  21318. --- *** relation: two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine ***
  21319. --- *** relation type: VIEW ***
  21320. --- *** ***
  21321. --- *** 2_methylthio_N6_hydroxynorvalyl_carbamoy ***
  21322. --- *** ladenosine is a modified adenosine. ***
  21323. --- ************************************************
  21324. ---
  21325. CREATE VIEW two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine AS
  21326. SELECT
  21327. feature_id AS two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine_id,
  21328. feature.*
  21329. FROM
  21330. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21331. WHERE cvterm.name = 'two_methylthio_N6_hydroxynorvalyl_carbamoyladenosine';
  21332. --- ************************************************
  21333. --- *** relation: two_prime_o_riboA_phosphate ***
  21334. --- *** relation type: VIEW ***
  21335. --- *** ***
  21336. --- *** 2prime_O_ribosyladenosine_phosphate is a ***
  21337. --- *** modified adenosine. ***
  21338. --- ************************************************
  21339. ---
  21340. CREATE VIEW two_prime_o_riboA_phosphate AS
  21341. SELECT
  21342. feature_id AS two_prime_o_riboA_phosphate_id,
  21343. feature.*
  21344. FROM
  21345. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21346. WHERE cvterm.name = 'two_prime_O_ribosyladenosine_phosphate';
  21347. --- ************************************************
  21348. --- *** relation: n6_n6_dimethyladenosine ***
  21349. --- *** relation type: VIEW ***
  21350. --- *** ***
  21351. --- *** N6_N6_dimethyladenosine is a modified ad ***
  21352. --- *** enosine. ***
  21353. --- ************************************************
  21354. ---
  21355. CREATE VIEW n6_n6_dimethyladenosine AS
  21356. SELECT
  21357. feature_id AS n6_n6_dimethyladenosine_id,
  21358. feature.*
  21359. FROM
  21360. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21361. WHERE cvterm.name = 'N6_N6_dimethyladenosine';
  21362. --- ************************************************
  21363. --- *** relation: n6_2_prime_o_dimethyladenosine ***
  21364. --- *** relation type: VIEW ***
  21365. --- *** ***
  21366. --- *** N6_2prime_O_dimethyladenosine is a modif ***
  21367. --- *** ied adenosine. ***
  21368. --- ************************************************
  21369. ---
  21370. CREATE VIEW n6_2_prime_o_dimethyladenosine AS
  21371. SELECT
  21372. feature_id AS n6_2_prime_o_dimethyladenosine_id,
  21373. feature.*
  21374. FROM
  21375. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21376. WHERE cvterm.name = 'N6_2_prime_O_dimethyladenosine';
  21377. --- ************************************************
  21378. --- *** relation: n6_n6_2_prime_o_trimethyladenosine ***
  21379. --- *** relation type: VIEW ***
  21380. --- *** ***
  21381. --- *** N6_N6_2prime_O_trimethyladenosine is a m ***
  21382. --- *** odified adenosine. ***
  21383. --- ************************************************
  21384. ---
  21385. CREATE VIEW n6_n6_2_prime_o_trimethyladenosine AS
  21386. SELECT
  21387. feature_id AS n6_n6_2_prime_o_trimethyladenosine_id,
  21388. feature.*
  21389. FROM
  21390. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21391. WHERE cvterm.name = 'N6_N6_2_prime_O_trimethyladenosine';
  21392. --- ************************************************
  21393. --- *** relation: one_two_prime_o_dimethyladenosine ***
  21394. --- *** relation type: VIEW ***
  21395. --- *** ***
  21396. --- *** 1,2'-O-dimethyladenosine is a modified a ***
  21397. --- *** denosine. ***
  21398. --- ************************************************
  21399. ---
  21400. CREATE VIEW one_two_prime_o_dimethyladenosine AS
  21401. SELECT
  21402. feature_id AS one_two_prime_o_dimethyladenosine_id,
  21403. feature.*
  21404. FROM
  21405. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21406. WHERE cvterm.name = 'one_two_prime_O_dimethyladenosine';
  21407. --- ************************************************
  21408. --- *** relation: n6_acetyladenosine ***
  21409. --- *** relation type: VIEW ***
  21410. --- *** ***
  21411. --- *** N6_acetyladenosine is a modified adenosi ***
  21412. --- *** ne. ***
  21413. --- ************************************************
  21414. ---
  21415. CREATE VIEW n6_acetyladenosine AS
  21416. SELECT
  21417. feature_id AS n6_acetyladenosine_id,
  21418. feature.*
  21419. FROM
  21420. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21421. WHERE cvterm.name = 'N6_acetyladenosine';
  21422. --- ************************************************
  21423. --- *** relation: seven_deazaguanosine ***
  21424. --- *** relation type: VIEW ***
  21425. --- *** ***
  21426. --- *** 7-deazaguanosine is a moddified guanosin ***
  21427. --- *** e. ***
  21428. --- ************************************************
  21429. ---
  21430. CREATE VIEW seven_deazaguanosine AS
  21431. SELECT
  21432. feature_id AS seven_deazaguanosine_id,
  21433. feature.*
  21434. FROM
  21435. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21436. WHERE cvterm.name = 'queuosine' OR cvterm.name = 'epoxyqueuosine' OR cvterm.name = 'galactosyl_queuosine' OR cvterm.name = 'mannosyl_queuosine' OR cvterm.name = 'seven_cyano_seven_deazaguanosine' OR cvterm.name = 'seven_aminomethyl_seven_deazaguanosine' OR cvterm.name = 'archaeosine' OR cvterm.name = 'seven_deazaguanosine';
  21437. --- ************************************************
  21438. --- *** relation: queuosine ***
  21439. --- *** relation type: VIEW ***
  21440. --- *** ***
  21441. --- *** Queuosine is a modified 7-deazoguanosine ***
  21442. --- *** . ***
  21443. --- ************************************************
  21444. ---
  21445. CREATE VIEW queuosine AS
  21446. SELECT
  21447. feature_id AS queuosine_id,
  21448. feature.*
  21449. FROM
  21450. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21451. WHERE cvterm.name = 'queuosine';
  21452. --- ************************************************
  21453. --- *** relation: epoxyqueuosine ***
  21454. --- *** relation type: VIEW ***
  21455. --- *** ***
  21456. --- *** Epoxyqueuosine is a modified 7-deazoguan ***
  21457. --- *** osine. ***
  21458. --- ************************************************
  21459. ---
  21460. CREATE VIEW epoxyqueuosine AS
  21461. SELECT
  21462. feature_id AS epoxyqueuosine_id,
  21463. feature.*
  21464. FROM
  21465. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21466. WHERE cvterm.name = 'epoxyqueuosine';
  21467. --- ************************************************
  21468. --- *** relation: galactosyl_queuosine ***
  21469. --- *** relation type: VIEW ***
  21470. --- *** ***
  21471. --- *** Galactosyl_queuosine is a modified 7-dea ***
  21472. --- *** zoguanosine. ***
  21473. --- ************************************************
  21474. ---
  21475. CREATE VIEW galactosyl_queuosine AS
  21476. SELECT
  21477. feature_id AS galactosyl_queuosine_id,
  21478. feature.*
  21479. FROM
  21480. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21481. WHERE cvterm.name = 'galactosyl_queuosine';
  21482. --- ************************************************
  21483. --- *** relation: mannosyl_queuosine ***
  21484. --- *** relation type: VIEW ***
  21485. --- *** ***
  21486. --- *** Mannosyl_queuosine is a modified 7-deazo ***
  21487. --- *** guanosine. ***
  21488. --- ************************************************
  21489. ---
  21490. CREATE VIEW mannosyl_queuosine AS
  21491. SELECT
  21492. feature_id AS mannosyl_queuosine_id,
  21493. feature.*
  21494. FROM
  21495. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21496. WHERE cvterm.name = 'mannosyl_queuosine';
  21497. --- ************************************************
  21498. --- *** relation: seven_cyano_seven_deazaguanosine ***
  21499. --- *** relation type: VIEW ***
  21500. --- *** ***
  21501. --- *** 7_cyano_7_deazaguanosine is a modified 7 ***
  21502. --- *** -deazoguanosine. ***
  21503. --- ************************************************
  21504. ---
  21505. CREATE VIEW seven_cyano_seven_deazaguanosine AS
  21506. SELECT
  21507. feature_id AS seven_cyano_seven_deazaguanosine_id,
  21508. feature.*
  21509. FROM
  21510. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21511. WHERE cvterm.name = 'seven_cyano_seven_deazaguanosine';
  21512. --- ************************************************
  21513. --- *** relation: seven_aminomethyl_seven_deazaguanosine ***
  21514. --- *** relation type: VIEW ***
  21515. --- *** ***
  21516. --- *** 7_aminomethyl_7_deazaguanosine is a modi ***
  21517. --- *** fied 7-deazoguanosine. ***
  21518. --- ************************************************
  21519. ---
  21520. CREATE VIEW seven_aminomethyl_seven_deazaguanosine AS
  21521. SELECT
  21522. feature_id AS seven_aminomethyl_seven_deazaguanosine_id,
  21523. feature.*
  21524. FROM
  21525. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21526. WHERE cvterm.name = 'seven_aminomethyl_seven_deazaguanosine';
  21527. --- ************************************************
  21528. --- *** relation: archaeosine ***
  21529. --- *** relation type: VIEW ***
  21530. --- *** ***
  21531. --- *** Archaeosine is a modified 7-deazoguanosi ***
  21532. --- *** ne. ***
  21533. --- ************************************************
  21534. ---
  21535. CREATE VIEW archaeosine AS
  21536. SELECT
  21537. feature_id AS archaeosine_id,
  21538. feature.*
  21539. FROM
  21540. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21541. WHERE cvterm.name = 'archaeosine';
  21542. --- ************************************************
  21543. --- *** relation: one_methylguanosine ***
  21544. --- *** relation type: VIEW ***
  21545. --- *** ***
  21546. --- *** 1_methylguanosine is a modified guanosin ***
  21547. --- *** e base feature. ***
  21548. --- ************************************************
  21549. ---
  21550. CREATE VIEW one_methylguanosine AS
  21551. SELECT
  21552. feature_id AS one_methylguanosine_id,
  21553. feature.*
  21554. FROM
  21555. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21556. WHERE cvterm.name = 'one_methylguanosine';
  21557. --- ************************************************
  21558. --- *** relation: n2_methylguanosine ***
  21559. --- *** relation type: VIEW ***
  21560. --- *** ***
  21561. --- *** N2_methylguanosine is a modified guanosi ***
  21562. --- *** ne base feature. ***
  21563. --- ************************************************
  21564. ---
  21565. CREATE VIEW n2_methylguanosine AS
  21566. SELECT
  21567. feature_id AS n2_methylguanosine_id,
  21568. feature.*
  21569. FROM
  21570. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21571. WHERE cvterm.name = 'N2_methylguanosine';
  21572. --- ************************************************
  21573. --- *** relation: seven_methylguanosine ***
  21574. --- *** relation type: VIEW ***
  21575. --- *** ***
  21576. --- *** 7_methylguanosine is a modified guanosin ***
  21577. --- *** e base feature. ***
  21578. --- ************************************************
  21579. ---
  21580. CREATE VIEW seven_methylguanosine AS
  21581. SELECT
  21582. feature_id AS seven_methylguanosine_id,
  21583. feature.*
  21584. FROM
  21585. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21586. WHERE cvterm.name = 'seven_methylguanosine';
  21587. --- ************************************************
  21588. --- *** relation: two_prime_o_methylguanosine ***
  21589. --- *** relation type: VIEW ***
  21590. --- *** ***
  21591. --- *** 2prime_O_methylguanosine is a modified g ***
  21592. --- *** uanosine base feature. ***
  21593. --- ************************************************
  21594. ---
  21595. CREATE VIEW two_prime_o_methylguanosine AS
  21596. SELECT
  21597. feature_id AS two_prime_o_methylguanosine_id,
  21598. feature.*
  21599. FROM
  21600. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21601. WHERE cvterm.name = 'two_prime_O_methylguanosine';
  21602. --- ************************************************
  21603. --- *** relation: n2_n2_dimethylguanosine ***
  21604. --- *** relation type: VIEW ***
  21605. --- *** ***
  21606. --- *** N2_N2_dimethylguanosine is a modified gu ***
  21607. --- *** anosine base feature. ***
  21608. --- ************************************************
  21609. ---
  21610. CREATE VIEW n2_n2_dimethylguanosine AS
  21611. SELECT
  21612. feature_id AS n2_n2_dimethylguanosine_id,
  21613. feature.*
  21614. FROM
  21615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21616. WHERE cvterm.name = 'N2_N2_dimethylguanosine';
  21617. --- ************************************************
  21618. --- *** relation: n2_2_prime_o_dimethylguanosine ***
  21619. --- *** relation type: VIEW ***
  21620. --- *** ***
  21621. --- *** N2_2prime_O_dimethylguanosine is a modif ***
  21622. --- *** ied guanosine base feature. ***
  21623. --- ************************************************
  21624. ---
  21625. CREATE VIEW n2_2_prime_o_dimethylguanosine AS
  21626. SELECT
  21627. feature_id AS n2_2_prime_o_dimethylguanosine_id,
  21628. feature.*
  21629. FROM
  21630. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21631. WHERE cvterm.name = 'N2_2_prime_O_dimethylguanosine';
  21632. --- ************************************************
  21633. --- *** relation: n2_n2_2_prime_o_trimethylguanosine ***
  21634. --- *** relation type: VIEW ***
  21635. --- *** ***
  21636. --- *** N2_N2_2prime_O_trimethylguanosine is a m ***
  21637. --- *** odified guanosine base feature. ***
  21638. --- ************************************************
  21639. ---
  21640. CREATE VIEW n2_n2_2_prime_o_trimethylguanosine AS
  21641. SELECT
  21642. feature_id AS n2_n2_2_prime_o_trimethylguanosine_id,
  21643. feature.*
  21644. FROM
  21645. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21646. WHERE cvterm.name = 'N2_N2_2_prime_O_trimethylguanosine';
  21647. --- ************************************************
  21648. --- *** relation: two_prime_o_ribosylguanosine_phosphate ***
  21649. --- *** relation type: VIEW ***
  21650. --- *** ***
  21651. --- *** 2prime_O_ribosylguanosine_phosphate is a ***
  21652. --- *** modified guanosine base feature. ***
  21653. --- ************************************************
  21654. ---
  21655. CREATE VIEW two_prime_o_ribosylguanosine_phosphate AS
  21656. SELECT
  21657. feature_id AS two_prime_o_ribosylguanosine_phosphate_id,
  21658. feature.*
  21659. FROM
  21660. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21661. WHERE cvterm.name = 'two_prime_O_ribosylguanosine_phosphate';
  21662. --- ************************************************
  21663. --- *** relation: wybutosine ***
  21664. --- *** relation type: VIEW ***
  21665. --- *** ***
  21666. --- *** Wybutosine is a modified guanosine base ***
  21667. --- *** feature. ***
  21668. --- ************************************************
  21669. ---
  21670. CREATE VIEW wybutosine AS
  21671. SELECT
  21672. feature_id AS wybutosine_id,
  21673. feature.*
  21674. FROM
  21675. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21676. WHERE cvterm.name = 'wybutosine';
  21677. --- ************************************************
  21678. --- *** relation: peroxywybutosine ***
  21679. --- *** relation type: VIEW ***
  21680. --- *** ***
  21681. --- *** Peroxywybutosine is a modified guanosine ***
  21682. --- *** base feature. ***
  21683. --- ************************************************
  21684. ---
  21685. CREATE VIEW peroxywybutosine AS
  21686. SELECT
  21687. feature_id AS peroxywybutosine_id,
  21688. feature.*
  21689. FROM
  21690. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21691. WHERE cvterm.name = 'peroxywybutosine';
  21692. --- ************************************************
  21693. --- *** relation: hydroxywybutosine ***
  21694. --- *** relation type: VIEW ***
  21695. --- *** ***
  21696. --- *** Hydroxywybutosine is a modified guanosin ***
  21697. --- *** e base feature. ***
  21698. --- ************************************************
  21699. ---
  21700. CREATE VIEW hydroxywybutosine AS
  21701. SELECT
  21702. feature_id AS hydroxywybutosine_id,
  21703. feature.*
  21704. FROM
  21705. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21706. WHERE cvterm.name = 'hydroxywybutosine';
  21707. --- ************************************************
  21708. --- *** relation: undermodified_hydroxywybutosine ***
  21709. --- *** relation type: VIEW ***
  21710. --- *** ***
  21711. --- *** Undermodified_hydroxywybutosine is a mod ***
  21712. --- *** ified guanosine base feature. ***
  21713. --- ************************************************
  21714. ---
  21715. CREATE VIEW undermodified_hydroxywybutosine AS
  21716. SELECT
  21717. feature_id AS undermodified_hydroxywybutosine_id,
  21718. feature.*
  21719. FROM
  21720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21721. WHERE cvterm.name = 'undermodified_hydroxywybutosine';
  21722. --- ************************************************
  21723. --- *** relation: wyosine ***
  21724. --- *** relation type: VIEW ***
  21725. --- *** ***
  21726. --- *** Wyosine is a modified guanosine base fea ***
  21727. --- *** ture. ***
  21728. --- ************************************************
  21729. ---
  21730. CREATE VIEW wyosine AS
  21731. SELECT
  21732. feature_id AS wyosine_id,
  21733. feature.*
  21734. FROM
  21735. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21736. WHERE cvterm.name = 'wyosine';
  21737. --- ************************************************
  21738. --- *** relation: methylwyosine ***
  21739. --- *** relation type: VIEW ***
  21740. --- *** ***
  21741. --- *** Methylwyosine is a modified guanosine ba ***
  21742. --- *** se feature. ***
  21743. --- ************************************************
  21744. ---
  21745. CREATE VIEW methylwyosine AS
  21746. SELECT
  21747. feature_id AS methylwyosine_id,
  21748. feature.*
  21749. FROM
  21750. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21751. WHERE cvterm.name = 'methylwyosine';
  21752. --- ************************************************
  21753. --- *** relation: n2_7_dimethylguanosine ***
  21754. --- *** relation type: VIEW ***
  21755. --- *** ***
  21756. --- *** N2_7_dimethylguanosine is a modified gua ***
  21757. --- *** nosine base feature. ***
  21758. --- ************************************************
  21759. ---
  21760. CREATE VIEW n2_7_dimethylguanosine AS
  21761. SELECT
  21762. feature_id AS n2_7_dimethylguanosine_id,
  21763. feature.*
  21764. FROM
  21765. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21766. WHERE cvterm.name = 'N2_7_dimethylguanosine';
  21767. --- ************************************************
  21768. --- *** relation: n2_n2_7_trimethylguanosine ***
  21769. --- *** relation type: VIEW ***
  21770. --- *** ***
  21771. --- *** N2_N2_7_trimethylguanosine is a modified ***
  21772. --- *** guanosine base feature. ***
  21773. --- ************************************************
  21774. ---
  21775. CREATE VIEW n2_n2_7_trimethylguanosine AS
  21776. SELECT
  21777. feature_id AS n2_n2_7_trimethylguanosine_id,
  21778. feature.*
  21779. FROM
  21780. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21781. WHERE cvterm.name = 'N2_N2_7_trimethylguanosine';
  21782. --- ************************************************
  21783. --- *** relation: one_two_prime_o_dimethylguanosine ***
  21784. --- *** relation type: VIEW ***
  21785. --- *** ***
  21786. --- *** 1_2prime_O_dimethylguanosine is a modifi ***
  21787. --- *** ed guanosine base feature. ***
  21788. --- ************************************************
  21789. ---
  21790. CREATE VIEW one_two_prime_o_dimethylguanosine AS
  21791. SELECT
  21792. feature_id AS one_two_prime_o_dimethylguanosine_id,
  21793. feature.*
  21794. FROM
  21795. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21796. WHERE cvterm.name = 'one_two_prime_O_dimethylguanosine';
  21797. --- ************************************************
  21798. --- *** relation: four_demethylwyosine ***
  21799. --- *** relation type: VIEW ***
  21800. --- *** ***
  21801. --- *** 4_demethylwyosine is a modified guanosin ***
  21802. --- *** e base feature. ***
  21803. --- ************************************************
  21804. ---
  21805. CREATE VIEW four_demethylwyosine AS
  21806. SELECT
  21807. feature_id AS four_demethylwyosine_id,
  21808. feature.*
  21809. FROM
  21810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21811. WHERE cvterm.name = 'four_demethylwyosine';
  21812. --- ************************************************
  21813. --- *** relation: isowyosine ***
  21814. --- *** relation type: VIEW ***
  21815. --- *** ***
  21816. --- *** Isowyosine is a modified guanosine base ***
  21817. --- *** feature. ***
  21818. --- ************************************************
  21819. ---
  21820. CREATE VIEW isowyosine AS
  21821. SELECT
  21822. feature_id AS isowyosine_id,
  21823. feature.*
  21824. FROM
  21825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21826. WHERE cvterm.name = 'isowyosine';
  21827. --- ************************************************
  21828. --- *** relation: n2_7_2prirme_o_trimethylguanosine ***
  21829. --- *** relation type: VIEW ***
  21830. --- *** ***
  21831. --- *** N2_7_2prirme_O_trimethylguanosine is a m ***
  21832. --- *** odified guanosine base feature. ***
  21833. --- ************************************************
  21834. ---
  21835. CREATE VIEW n2_7_2prirme_o_trimethylguanosine AS
  21836. SELECT
  21837. feature_id AS n2_7_2prirme_o_trimethylguanosine_id,
  21838. feature.*
  21839. FROM
  21840. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21841. WHERE cvterm.name = 'N2_7_2prirme_O_trimethylguanosine';
  21842. --- ************************************************
  21843. --- *** relation: five_methyluridine ***
  21844. --- *** relation type: VIEW ***
  21845. --- *** ***
  21846. --- *** 5_methyluridine is a modified uridine ba ***
  21847. --- *** se feature. ***
  21848. --- ************************************************
  21849. ---
  21850. CREATE VIEW five_methyluridine AS
  21851. SELECT
  21852. feature_id AS five_methyluridine_id,
  21853. feature.*
  21854. FROM
  21855. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21856. WHERE cvterm.name = 'five_methyluridine';
  21857. --- ************************************************
  21858. --- *** relation: two_prime_o_methyluridine ***
  21859. --- *** relation type: VIEW ***
  21860. --- *** ***
  21861. --- *** 2prime_O_methyluridine is a modified uri ***
  21862. --- *** dine base feature. ***
  21863. --- ************************************************
  21864. ---
  21865. CREATE VIEW two_prime_o_methyluridine AS
  21866. SELECT
  21867. feature_id AS two_prime_o_methyluridine_id,
  21868. feature.*
  21869. FROM
  21870. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21871. WHERE cvterm.name = 'two_prime_O_methyluridine';
  21872. --- ************************************************
  21873. --- *** relation: five_two_prime_o_dimethyluridine ***
  21874. --- *** relation type: VIEW ***
  21875. --- *** ***
  21876. --- *** 5_2_prime_O_dimethyluridine is a modifie ***
  21877. --- *** d uridine base feature. ***
  21878. --- ************************************************
  21879. ---
  21880. CREATE VIEW five_two_prime_o_dimethyluridine AS
  21881. SELECT
  21882. feature_id AS five_two_prime_o_dimethyluridine_id,
  21883. feature.*
  21884. FROM
  21885. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21886. WHERE cvterm.name = 'five_two_prime_O_dimethyluridine';
  21887. --- ************************************************
  21888. --- *** relation: one_methylpseudouridine ***
  21889. --- *** relation type: VIEW ***
  21890. --- *** ***
  21891. --- *** 1_methylpseudouridine is a modified urid ***
  21892. --- *** ine base feature. ***
  21893. --- ************************************************
  21894. ---
  21895. CREATE VIEW one_methylpseudouridine AS
  21896. SELECT
  21897. feature_id AS one_methylpseudouridine_id,
  21898. feature.*
  21899. FROM
  21900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21901. WHERE cvterm.name = 'one_methylpseudouridine';
  21902. --- ************************************************
  21903. --- *** relation: two_prime_o_methylpseudouridine ***
  21904. --- *** relation type: VIEW ***
  21905. --- *** ***
  21906. --- *** 2prime_O_methylpseudouridine is a modifi ***
  21907. --- *** ed uridine base feature. ***
  21908. --- ************************************************
  21909. ---
  21910. CREATE VIEW two_prime_o_methylpseudouridine AS
  21911. SELECT
  21912. feature_id AS two_prime_o_methylpseudouridine_id,
  21913. feature.*
  21914. FROM
  21915. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21916. WHERE cvterm.name = 'two_prime_O_methylpseudouridine';
  21917. --- ************************************************
  21918. --- *** relation: two_thiouridine ***
  21919. --- *** relation type: VIEW ***
  21920. --- *** ***
  21921. --- *** 2_thiouridine is a modified uridine base ***
  21922. --- *** feature. ***
  21923. --- ************************************************
  21924. ---
  21925. CREATE VIEW two_thiouridine AS
  21926. SELECT
  21927. feature_id AS two_thiouridine_id,
  21928. feature.*
  21929. FROM
  21930. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21931. WHERE cvterm.name = 'two_thiouridine';
  21932. --- ************************************************
  21933. --- *** relation: four_thiouridine ***
  21934. --- *** relation type: VIEW ***
  21935. --- *** ***
  21936. --- *** 4_thiouridine is a modified uridine base ***
  21937. --- *** feature. ***
  21938. --- ************************************************
  21939. ---
  21940. CREATE VIEW four_thiouridine AS
  21941. SELECT
  21942. feature_id AS four_thiouridine_id,
  21943. feature.*
  21944. FROM
  21945. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21946. WHERE cvterm.name = 'four_thiouridine';
  21947. --- ************************************************
  21948. --- *** relation: five_methyl_2_thiouridine ***
  21949. --- *** relation type: VIEW ***
  21950. --- *** ***
  21951. --- *** 5_methyl_2_thiouridine is a modified uri ***
  21952. --- *** dine base feature. ***
  21953. --- ************************************************
  21954. ---
  21955. CREATE VIEW five_methyl_2_thiouridine AS
  21956. SELECT
  21957. feature_id AS five_methyl_2_thiouridine_id,
  21958. feature.*
  21959. FROM
  21960. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21961. WHERE cvterm.name = 'five_methyl_2_thiouridine';
  21962. --- ************************************************
  21963. --- *** relation: two_thio_two_prime_o_methyluridine ***
  21964. --- *** relation type: VIEW ***
  21965. --- *** ***
  21966. --- *** 2_thio_2prime_O_methyluridine is a modif ***
  21967. --- *** ied uridine base feature. ***
  21968. --- ************************************************
  21969. ---
  21970. CREATE VIEW two_thio_two_prime_o_methyluridine AS
  21971. SELECT
  21972. feature_id AS two_thio_two_prime_o_methyluridine_id,
  21973. feature.*
  21974. FROM
  21975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21976. WHERE cvterm.name = 'two_thio_two_prime_O_methyluridine';
  21977. --- ************************************************
  21978. --- *** relation: three_three_amino_three_carboxypropyl_uridine ***
  21979. --- *** relation type: VIEW ***
  21980. --- *** ***
  21981. --- *** 3_3_amino_3_carboxypropyl_uridine is a m ***
  21982. --- *** odified uridine base feature. ***
  21983. --- ************************************************
  21984. ---
  21985. CREATE VIEW three_three_amino_three_carboxypropyl_uridine AS
  21986. SELECT
  21987. feature_id AS three_three_amino_three_carboxypropyl_uridine_id,
  21988. feature.*
  21989. FROM
  21990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21991. WHERE cvterm.name = 'three_three_amino_three_carboxypropyl_uridine';
  21992. --- ************************************************
  21993. --- *** relation: five_hydroxyuridine ***
  21994. --- *** relation type: VIEW ***
  21995. --- *** ***
  21996. --- *** 5_hydroxyuridine is a modified uridine b ***
  21997. --- *** ase feature. ***
  21998. --- ************************************************
  21999. ---
  22000. CREATE VIEW five_hydroxyuridine AS
  22001. SELECT
  22002. feature_id AS five_hydroxyuridine_id,
  22003. feature.*
  22004. FROM
  22005. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22006. WHERE cvterm.name = 'five_hydroxyuridine';
  22007. --- ************************************************
  22008. --- *** relation: five_methoxyuridine ***
  22009. --- *** relation type: VIEW ***
  22010. --- *** ***
  22011. --- *** 5_methoxyuridine is a modified uridine b ***
  22012. --- *** ase feature. ***
  22013. --- ************************************************
  22014. ---
  22015. CREATE VIEW five_methoxyuridine AS
  22016. SELECT
  22017. feature_id AS five_methoxyuridine_id,
  22018. feature.*
  22019. FROM
  22020. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22021. WHERE cvterm.name = 'five_methoxyuridine';
  22022. --- ************************************************
  22023. --- *** relation: uridine_five_oxyacetic_acid ***
  22024. --- *** relation type: VIEW ***
  22025. --- *** ***
  22026. --- *** Uridine_5_oxyacetic_acid is a modified u ***
  22027. --- *** ridine base feature. ***
  22028. --- ************************************************
  22029. ---
  22030. CREATE VIEW uridine_five_oxyacetic_acid AS
  22031. SELECT
  22032. feature_id AS uridine_five_oxyacetic_acid_id,
  22033. feature.*
  22034. FROM
  22035. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22036. WHERE cvterm.name = 'uridine_five_oxyacetic_acid';
  22037. --- ************************************************
  22038. --- *** relation: uridine_five_oxyacetic_acid_methyl_ester ***
  22039. --- *** relation type: VIEW ***
  22040. --- *** ***
  22041. --- *** Uridine_5_oxyacetic_acid_methyl_ester is ***
  22042. --- *** a modified uridine base feature. ***
  22043. --- ************************************************
  22044. ---
  22045. CREATE VIEW uridine_five_oxyacetic_acid_methyl_ester AS
  22046. SELECT
  22047. feature_id AS uridine_five_oxyacetic_acid_methyl_ester_id,
  22048. feature.*
  22049. FROM
  22050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22051. WHERE cvterm.name = 'uridine_five_oxyacetic_acid_methyl_ester';
  22052. --- ************************************************
  22053. --- *** relation: five_carboxyhydroxymethyl_uridine ***
  22054. --- *** relation type: VIEW ***
  22055. --- *** ***
  22056. --- *** 5_carboxyhydroxymethyl_uridine is a modi ***
  22057. --- *** fied uridine base feature. ***
  22058. --- ************************************************
  22059. ---
  22060. CREATE VIEW five_carboxyhydroxymethyl_uridine AS
  22061. SELECT
  22062. feature_id AS five_carboxyhydroxymethyl_uridine_id,
  22063. feature.*
  22064. FROM
  22065. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22066. WHERE cvterm.name = 'five_carboxyhydroxymethyl_uridine';
  22067. --- ************************************************
  22068. --- *** relation: five_carboxyhydroxymethyl_uridine_methyl_ester ***
  22069. --- *** relation type: VIEW ***
  22070. --- *** ***
  22071. --- *** 5_carboxyhydroxymethyl_uridine_methyl_es ***
  22072. --- *** ter is a modified uridine base feature. ***
  22073. --- ************************************************
  22074. ---
  22075. CREATE VIEW five_carboxyhydroxymethyl_uridine_methyl_ester AS
  22076. SELECT
  22077. feature_id AS five_carboxyhydroxymethyl_uridine_methyl_ester_id,
  22078. feature.*
  22079. FROM
  22080. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22081. WHERE cvterm.name = 'five_carboxyhydroxymethyl_uridine_methyl_ester';
  22082. --- ************************************************
  22083. --- *** relation: five_methoxycarbonylmethyluridine ***
  22084. --- *** relation type: VIEW ***
  22085. --- *** ***
  22086. --- *** Five_methoxycarbonylmethyluridine is a m ***
  22087. --- *** odified uridine base feature. ***
  22088. --- ************************************************
  22089. ---
  22090. CREATE VIEW five_methoxycarbonylmethyluridine AS
  22091. SELECT
  22092. feature_id AS five_methoxycarbonylmethyluridine_id,
  22093. feature.*
  22094. FROM
  22095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22096. WHERE cvterm.name = 'five_methoxycarbonylmethyluridine';
  22097. --- ************************************************
  22098. --- *** relation: five_methoxycarbonylmethyl_two_prime_o_methyluridine ***
  22099. --- *** relation type: VIEW ***
  22100. --- *** ***
  22101. --- *** Five_methoxycarbonylmethyl_2_prime_O_met ***
  22102. --- *** hyluridine is a modified uridine base fe ***
  22103. --- *** ature. ***
  22104. --- ************************************************
  22105. ---
  22106. CREATE VIEW five_methoxycarbonylmethyl_two_prime_o_methyluridine AS
  22107. SELECT
  22108. feature_id AS five_methoxycarbonylmethyl_two_prime_o_methyluridine_id,
  22109. feature.*
  22110. FROM
  22111. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22112. WHERE cvterm.name = 'five_methoxycarbonylmethyl_two_prime_O_methyluridine';
  22113. --- ************************************************
  22114. --- *** relation: five_mcm_2_thiouridine ***
  22115. --- *** relation type: VIEW ***
  22116. --- *** ***
  22117. --- *** 5_methoxycarbonylmethyl_2_thiouridine is ***
  22118. --- *** a modified uridine base feature. ***
  22119. --- ************************************************
  22120. ---
  22121. CREATE VIEW five_mcm_2_thiouridine AS
  22122. SELECT
  22123. feature_id AS five_mcm_2_thiouridine_id,
  22124. feature.*
  22125. FROM
  22126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22127. WHERE cvterm.name = 'five_methoxycarbonylmethyl_two_thiouridine';
  22128. --- ************************************************
  22129. --- *** relation: five_aminomethyl_two_thiouridine ***
  22130. --- *** relation type: VIEW ***
  22131. --- *** ***
  22132. --- *** 5_aminomethyl_2_thiouridine is a modifie ***
  22133. --- *** d uridine base feature. ***
  22134. --- ************************************************
  22135. ---
  22136. CREATE VIEW five_aminomethyl_two_thiouridine AS
  22137. SELECT
  22138. feature_id AS five_aminomethyl_two_thiouridine_id,
  22139. feature.*
  22140. FROM
  22141. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22142. WHERE cvterm.name = 'five_aminomethyl_two_thiouridine';
  22143. --- ************************************************
  22144. --- *** relation: five_methylaminomethyluridine ***
  22145. --- *** relation type: VIEW ***
  22146. --- *** ***
  22147. --- *** 5_methylaminomethyluridine is a modified ***
  22148. --- *** uridine base feature. ***
  22149. --- ************************************************
  22150. ---
  22151. CREATE VIEW five_methylaminomethyluridine AS
  22152. SELECT
  22153. feature_id AS five_methylaminomethyluridine_id,
  22154. feature.*
  22155. FROM
  22156. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22157. WHERE cvterm.name = 'five_methylaminomethyluridine';
  22158. --- ************************************************
  22159. --- *** relation: five_mam_2_thiouridine ***
  22160. --- *** relation type: VIEW ***
  22161. --- *** ***
  22162. --- *** 5_methylaminomethyl_2_thiouridine is a m ***
  22163. --- *** odified uridine base feature. ***
  22164. --- ************************************************
  22165. ---
  22166. CREATE VIEW five_mam_2_thiouridine AS
  22167. SELECT
  22168. feature_id AS five_mam_2_thiouridine_id,
  22169. feature.*
  22170. FROM
  22171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22172. WHERE cvterm.name = 'five_methylaminomethyl_two_thiouridine';
  22173. --- ************************************************
  22174. --- *** relation: five_methylaminomethyl_two_selenouridine ***
  22175. --- *** relation type: VIEW ***
  22176. --- *** ***
  22177. --- *** 5_methylaminomethyl_2_selenouridine is a ***
  22178. --- *** modified uridine base feature. ***
  22179. --- ************************************************
  22180. ---
  22181. CREATE VIEW five_methylaminomethyl_two_selenouridine AS
  22182. SELECT
  22183. feature_id AS five_methylaminomethyl_two_selenouridine_id,
  22184. feature.*
  22185. FROM
  22186. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22187. WHERE cvterm.name = 'five_methylaminomethyl_two_selenouridine';
  22188. --- ************************************************
  22189. --- *** relation: five_carbamoylmethyluridine ***
  22190. --- *** relation type: VIEW ***
  22191. --- *** ***
  22192. --- *** 5_carbamoylmethyluridine is a modified u ***
  22193. --- *** ridine base feature. ***
  22194. --- ************************************************
  22195. ---
  22196. CREATE VIEW five_carbamoylmethyluridine AS
  22197. SELECT
  22198. feature_id AS five_carbamoylmethyluridine_id,
  22199. feature.*
  22200. FROM
  22201. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22202. WHERE cvterm.name = 'five_carbamoylmethyluridine';
  22203. --- ************************************************
  22204. --- *** relation: five_cm_2_prime_o_methU ***
  22205. --- *** relation type: VIEW ***
  22206. --- *** ***
  22207. --- *** 5_carbamoylmethyl_2_prime_O_methyluridin ***
  22208. --- *** e is a modified uridine base feature. ***
  22209. --- ************************************************
  22210. ---
  22211. CREATE VIEW five_cm_2_prime_o_methU AS
  22212. SELECT
  22213. feature_id AS five_cm_2_prime_o_methU_id,
  22214. feature.*
  22215. FROM
  22216. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22217. WHERE cvterm.name = 'five_carbamoylmethyl_two_prime_O_methyluridine';
  22218. --- ************************************************
  22219. --- *** relation: five_carboxymethylaminomethyluridine ***
  22220. --- *** relation type: VIEW ***
  22221. --- *** ***
  22222. --- *** 5_carboxymethylaminomethyluridine is a m ***
  22223. --- *** odified uridine base feature. ***
  22224. --- ************************************************
  22225. ---
  22226. CREATE VIEW five_carboxymethylaminomethyluridine AS
  22227. SELECT
  22228. feature_id AS five_carboxymethylaminomethyluridine_id,
  22229. feature.*
  22230. FROM
  22231. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22232. WHERE cvterm.name = 'five_carboxymethylaminomethyluridine';
  22233. --- ************************************************
  22234. --- *** relation: five_carboxymethylaminomethyl_two_prime_o_methyluridine ***
  22235. --- *** relation type: VIEW ***
  22236. --- *** ***
  22237. --- *** 5_carboxymethylaminomethyl_2_prime_O_met ***
  22238. --- *** hyluridine is a modified uridine base fe ***
  22239. --- *** ature. ***
  22240. --- ************************************************
  22241. ---
  22242. CREATE VIEW five_carboxymethylaminomethyl_two_prime_o_methyluridine AS
  22243. SELECT
  22244. feature_id AS five_carboxymethylaminomethyl_two_prime_o_methyluridine_id,
  22245. feature.*
  22246. FROM
  22247. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22248. WHERE cvterm.name = 'five_carboxymethylaminomethyl_two_prime_O_methyluridine';
  22249. --- ************************************************
  22250. --- *** relation: five_carboxymethylaminomethyl_two_thiouridine ***
  22251. --- *** relation type: VIEW ***
  22252. --- *** ***
  22253. --- *** 5_carboxymethylaminomethyl_2_thiouridine ***
  22254. --- *** is a modified uridine base feature. ***
  22255. --- ************************************************
  22256. ---
  22257. CREATE VIEW five_carboxymethylaminomethyl_two_thiouridine AS
  22258. SELECT
  22259. feature_id AS five_carboxymethylaminomethyl_two_thiouridine_id,
  22260. feature.*
  22261. FROM
  22262. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22263. WHERE cvterm.name = 'five_carboxymethylaminomethyl_two_thiouridine';
  22264. --- ************************************************
  22265. --- *** relation: three_methyluridine ***
  22266. --- *** relation type: VIEW ***
  22267. --- *** ***
  22268. --- *** 3_methyluridine is a modified uridine ba ***
  22269. --- *** se feature. ***
  22270. --- ************************************************
  22271. ---
  22272. CREATE VIEW three_methyluridine AS
  22273. SELECT
  22274. feature_id AS three_methyluridine_id,
  22275. feature.*
  22276. FROM
  22277. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22278. WHERE cvterm.name = 'three_methyluridine';
  22279. --- ************************************************
  22280. --- *** relation: one_methyl_3_3_amino_three_carboxypropyl_pseudouridine ***
  22281. --- *** relation type: VIEW ***
  22282. --- *** ***
  22283. --- *** 1_methyl_3_3_amino_3_carboxypropyl_pseud ***
  22284. --- *** ouridine is a modified uridine base feat ***
  22285. --- *** ure. ***
  22286. --- ************************************************
  22287. ---
  22288. CREATE VIEW one_methyl_3_3_amino_three_carboxypropyl_pseudouridine AS
  22289. SELECT
  22290. feature_id AS one_methyl_3_3_amino_three_carboxypropyl_pseudouridine_id,
  22291. feature.*
  22292. FROM
  22293. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22294. WHERE cvterm.name = 'one_methyl_three_three_amino_three_carboxypropyl_pseudouridine';
  22295. --- ************************************************
  22296. --- *** relation: five_carboxymethyluridine ***
  22297. --- *** relation type: VIEW ***
  22298. --- *** ***
  22299. --- *** 5_carboxymethyluridine is a modified uri ***
  22300. --- *** dine base feature. ***
  22301. --- ************************************************
  22302. ---
  22303. CREATE VIEW five_carboxymethyluridine AS
  22304. SELECT
  22305. feature_id AS five_carboxymethyluridine_id,
  22306. feature.*
  22307. FROM
  22308. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22309. WHERE cvterm.name = 'five_carboxymethyluridine';
  22310. --- ************************************************
  22311. --- *** relation: three_two_prime_o_dimethyluridine ***
  22312. --- *** relation type: VIEW ***
  22313. --- *** ***
  22314. --- *** 3_2prime_O_dimethyluridine is a modified ***
  22315. --- *** uridine base feature. ***
  22316. --- ************************************************
  22317. ---
  22318. CREATE VIEW three_two_prime_o_dimethyluridine AS
  22319. SELECT
  22320. feature_id AS three_two_prime_o_dimethyluridine_id,
  22321. feature.*
  22322. FROM
  22323. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22324. WHERE cvterm.name = 'three_two_prime_O_dimethyluridine';
  22325. --- ************************************************
  22326. --- *** relation: five_methyldihydrouridine ***
  22327. --- *** relation type: VIEW ***
  22328. --- *** ***
  22329. --- *** 5_methyldihydrouridine is a modified uri ***
  22330. --- *** dine base feature. ***
  22331. --- ************************************************
  22332. ---
  22333. CREATE VIEW five_methyldihydrouridine AS
  22334. SELECT
  22335. feature_id AS five_methyldihydrouridine_id,
  22336. feature.*
  22337. FROM
  22338. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22339. WHERE cvterm.name = 'five_methyldihydrouridine';
  22340. --- ************************************************
  22341. --- *** relation: three_methylpseudouridine ***
  22342. --- *** relation type: VIEW ***
  22343. --- *** ***
  22344. --- *** 3_methylpseudouridine is a modified urid ***
  22345. --- *** ine base feature. ***
  22346. --- ************************************************
  22347. ---
  22348. CREATE VIEW three_methylpseudouridine AS
  22349. SELECT
  22350. feature_id AS three_methylpseudouridine_id,
  22351. feature.*
  22352. FROM
  22353. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22354. WHERE cvterm.name = 'three_methylpseudouridine';
  22355. --- ************************************************
  22356. --- *** relation: five_taurinomethyluridine ***
  22357. --- *** relation type: VIEW ***
  22358. --- *** ***
  22359. --- *** 5_taurinomethyluridine is a modified uri ***
  22360. --- *** dine base feature. ***
  22361. --- ************************************************
  22362. ---
  22363. CREATE VIEW five_taurinomethyluridine AS
  22364. SELECT
  22365. feature_id AS five_taurinomethyluridine_id,
  22366. feature.*
  22367. FROM
  22368. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22369. WHERE cvterm.name = 'five_taurinomethyluridine';
  22370. --- ************************************************
  22371. --- *** relation: five_taurinomethyl_two_thiouridine ***
  22372. --- *** relation type: VIEW ***
  22373. --- *** ***
  22374. --- *** 5_taurinomethyl_2_thiouridineis a modifi ***
  22375. --- *** ed uridine base feature. ***
  22376. --- ************************************************
  22377. ---
  22378. CREATE VIEW five_taurinomethyl_two_thiouridine AS
  22379. SELECT
  22380. feature_id AS five_taurinomethyl_two_thiouridine_id,
  22381. feature.*
  22382. FROM
  22383. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22384. WHERE cvterm.name = 'five_taurinomethyl_two_thiouridine';
  22385. --- ************************************************
  22386. --- *** relation: five_isopentenylaminomethyl_uridine ***
  22387. --- *** relation type: VIEW ***
  22388. --- *** ***
  22389. --- *** 5_isopentenylaminomethyl_uridine is a mo ***
  22390. --- *** dified uridine base feature. ***
  22391. --- ************************************************
  22392. ---
  22393. CREATE VIEW five_isopentenylaminomethyl_uridine AS
  22394. SELECT
  22395. feature_id AS five_isopentenylaminomethyl_uridine_id,
  22396. feature.*
  22397. FROM
  22398. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22399. WHERE cvterm.name = 'five_isopentenylaminomethyl_uridine';
  22400. --- ************************************************
  22401. --- *** relation: five_isopentenylaminomethyl_two_thiouridine ***
  22402. --- *** relation type: VIEW ***
  22403. --- *** ***
  22404. --- *** 5_isopentenylaminomethyl_2_thiouridine i ***
  22405. --- *** s a modified uridine base feature. ***
  22406. --- ************************************************
  22407. ---
  22408. CREATE VIEW five_isopentenylaminomethyl_two_thiouridine AS
  22409. SELECT
  22410. feature_id AS five_isopentenylaminomethyl_two_thiouridine_id,
  22411. feature.*
  22412. FROM
  22413. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22414. WHERE cvterm.name = 'five_isopentenylaminomethyl_two_thiouridine';
  22415. --- ************************************************
  22416. --- *** relation: five_isopentenylaminomethyl_two_prime_o_methyluridine ***
  22417. --- *** relation type: VIEW ***
  22418. --- *** ***
  22419. --- *** 5_isopentenylaminomethyl_2prime_O_methyl ***
  22420. --- *** uridine is a modified uridine base featu ***
  22421. --- *** re. ***
  22422. --- ************************************************
  22423. ---
  22424. CREATE VIEW five_isopentenylaminomethyl_two_prime_o_methyluridine AS
  22425. SELECT
  22426. feature_id AS five_isopentenylaminomethyl_two_prime_o_methyluridine_id,
  22427. feature.*
  22428. FROM
  22429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22430. WHERE cvterm.name = 'five_isopentenylaminomethyl_two_prime_O_methyluridine';
  22431. --- ************************************************
  22432. --- *** relation: histone_binding_site ***
  22433. --- *** relation type: VIEW ***
  22434. --- *** ***
  22435. --- *** A binding site that, in the nucleotide m ***
  22436. --- *** olecule, interacts selectively and non-c ***
  22437. --- *** ovalently with polypeptide residues of a ***
  22438. --- *** histone. ***
  22439. --- ************************************************
  22440. ---
  22441. CREATE VIEW histone_binding_site AS
  22442. SELECT
  22443. feature_id AS histone_binding_site_id,
  22444. feature.*
  22445. FROM
  22446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22447. WHERE cvterm.name = 'histone_binding_site';
  22448. --- ************************************************
  22449. --- *** relation: cds_fragment ***
  22450. --- *** relation type: VIEW ***
  22451. --- *** ***
  22452. --- ************************************************
  22453. ---
  22454. CREATE VIEW cds_fragment AS
  22455. SELECT
  22456. feature_id AS cds_fragment_id,
  22457. feature.*
  22458. FROM
  22459. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22460. WHERE cvterm.name = 'CDS_fragment';
  22461. --- ************************************************
  22462. --- *** relation: modified_amino_acid_feature ***
  22463. --- *** relation type: VIEW ***
  22464. --- *** ***
  22465. --- *** A post translationally modified amino ac ***
  22466. --- *** id feature. ***
  22467. --- ************************************************
  22468. ---
  22469. CREATE VIEW modified_amino_acid_feature AS
  22470. SELECT
  22471. feature_id AS modified_amino_acid_feature_id,
  22472. feature.*
  22473. FROM
  22474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22475. WHERE cvterm.name = 'modified_glycine' OR cvterm.name = 'modified_L_alanine' OR cvterm.name = 'modified_L_asparagine' OR cvterm.name = 'modified_L_aspartic_acid' OR cvterm.name = 'modified_L_cysteine' OR cvterm.name = 'modified_L_glutamic_acid' OR cvterm.name = 'modified_L_threonine' OR cvterm.name = 'modified_L_tryptophan' OR cvterm.name = 'modified_L_glutamine' OR cvterm.name = 'modified_L_methionine' OR cvterm.name = 'modified_L_isoleucine' OR cvterm.name = 'modified_L_phenylalanine' OR cvterm.name = 'modified_L_histidine' OR cvterm.name = 'modified_L_serine' OR cvterm.name = 'modified_L_lysine' OR cvterm.name = 'modified_L_leucine' OR cvterm.name = 'modified_L_selenocysteine' OR cvterm.name = 'modified_L_valine' OR cvterm.name = 'modified_L_proline' OR cvterm.name = 'modified_L_tyrosine' OR cvterm.name = 'modified_L_arginine' OR cvterm.name = 'modified_amino_acid_feature';
  22476. --- ************************************************
  22477. --- *** relation: modified_glycine ***
  22478. --- *** relation type: VIEW ***
  22479. --- *** ***
  22480. --- *** A post translationally modified glycine ***
  22481. --- *** amino acid feature. ***
  22482. --- ************************************************
  22483. ---
  22484. CREATE VIEW modified_glycine AS
  22485. SELECT
  22486. feature_id AS modified_glycine_id,
  22487. feature.*
  22488. FROM
  22489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22490. WHERE cvterm.name = 'modified_glycine';
  22491. --- ************************************************
  22492. --- *** relation: modified_l_alanine ***
  22493. --- *** relation type: VIEW ***
  22494. --- *** ***
  22495. --- *** A post translationally modified alanine ***
  22496. --- *** amino acid feature. ***
  22497. --- ************************************************
  22498. ---
  22499. CREATE VIEW modified_l_alanine AS
  22500. SELECT
  22501. feature_id AS modified_l_alanine_id,
  22502. feature.*
  22503. FROM
  22504. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22505. WHERE cvterm.name = 'modified_L_alanine';
  22506. --- ************************************************
  22507. --- *** relation: modified_l_asparagine ***
  22508. --- *** relation type: VIEW ***
  22509. --- *** ***
  22510. --- *** A post translationally modified asparagi ***
  22511. --- *** ne amino acid feature. ***
  22512. --- ************************************************
  22513. ---
  22514. CREATE VIEW modified_l_asparagine AS
  22515. SELECT
  22516. feature_id AS modified_l_asparagine_id,
  22517. feature.*
  22518. FROM
  22519. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22520. WHERE cvterm.name = 'modified_L_asparagine';
  22521. --- ************************************************
  22522. --- *** relation: modified_l_aspartic_acid ***
  22523. --- *** relation type: VIEW ***
  22524. --- *** ***
  22525. --- *** A post translationally modified aspartic ***
  22526. --- *** acid amino acid feature. ***
  22527. --- ************************************************
  22528. ---
  22529. CREATE VIEW modified_l_aspartic_acid AS
  22530. SELECT
  22531. feature_id AS modified_l_aspartic_acid_id,
  22532. feature.*
  22533. FROM
  22534. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22535. WHERE cvterm.name = 'modified_L_aspartic_acid';
  22536. --- ************************************************
  22537. --- *** relation: modified_l_cysteine ***
  22538. --- *** relation type: VIEW ***
  22539. --- *** ***
  22540. --- *** A post translationally modified cysteine ***
  22541. --- *** amino acid feature. ***
  22542. --- ************************************************
  22543. ---
  22544. CREATE VIEW modified_l_cysteine AS
  22545. SELECT
  22546. feature_id AS modified_l_cysteine_id,
  22547. feature.*
  22548. FROM
  22549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22550. WHERE cvterm.name = 'modified_L_cysteine';
  22551. --- ************************************************
  22552. --- *** relation: modified_l_glutamic_acid ***
  22553. --- *** relation type: VIEW ***
  22554. --- *** ***
  22555. --- ************************************************
  22556. ---
  22557. CREATE VIEW modified_l_glutamic_acid AS
  22558. SELECT
  22559. feature_id AS modified_l_glutamic_acid_id,
  22560. feature.*
  22561. FROM
  22562. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22563. WHERE cvterm.name = 'modified_L_glutamic_acid';
  22564. --- ************************************************
  22565. --- *** relation: modified_l_threonine ***
  22566. --- *** relation type: VIEW ***
  22567. --- *** ***
  22568. --- *** A post translationally modified threonin ***
  22569. --- *** e amino acid feature. ***
  22570. --- ************************************************
  22571. ---
  22572. CREATE VIEW modified_l_threonine AS
  22573. SELECT
  22574. feature_id AS modified_l_threonine_id,
  22575. feature.*
  22576. FROM
  22577. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22578. WHERE cvterm.name = 'modified_L_threonine';
  22579. --- ************************************************
  22580. --- *** relation: modified_l_tryptophan ***
  22581. --- *** relation type: VIEW ***
  22582. --- *** ***
  22583. --- *** A post translationally modified tryptoph ***
  22584. --- *** an amino acid feature. ***
  22585. --- ************************************************
  22586. ---
  22587. CREATE VIEW modified_l_tryptophan AS
  22588. SELECT
  22589. feature_id AS modified_l_tryptophan_id,
  22590. feature.*
  22591. FROM
  22592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22593. WHERE cvterm.name = 'modified_L_tryptophan';
  22594. --- ************************************************
  22595. --- *** relation: modified_l_glutamine ***
  22596. --- *** relation type: VIEW ***
  22597. --- *** ***
  22598. --- *** A post translationally modified glutamin ***
  22599. --- *** e amino acid feature. ***
  22600. --- ************************************************
  22601. ---
  22602. CREATE VIEW modified_l_glutamine AS
  22603. SELECT
  22604. feature_id AS modified_l_glutamine_id,
  22605. feature.*
  22606. FROM
  22607. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22608. WHERE cvterm.name = 'modified_L_glutamine';
  22609. --- ************************************************
  22610. --- *** relation: modified_l_methionine ***
  22611. --- *** relation type: VIEW ***
  22612. --- *** ***
  22613. --- *** A post translationally modified methioni ***
  22614. --- *** ne amino acid feature. ***
  22615. --- ************************************************
  22616. ---
  22617. CREATE VIEW modified_l_methionine AS
  22618. SELECT
  22619. feature_id AS modified_l_methionine_id,
  22620. feature.*
  22621. FROM
  22622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22623. WHERE cvterm.name = 'modified_L_methionine';
  22624. --- ************************************************
  22625. --- *** relation: modified_l_isoleucine ***
  22626. --- *** relation type: VIEW ***
  22627. --- *** ***
  22628. --- *** A post translationally modified isoleuci ***
  22629. --- *** ne amino acid feature. ***
  22630. --- ************************************************
  22631. ---
  22632. CREATE VIEW modified_l_isoleucine AS
  22633. SELECT
  22634. feature_id AS modified_l_isoleucine_id,
  22635. feature.*
  22636. FROM
  22637. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22638. WHERE cvterm.name = 'modified_L_isoleucine';
  22639. --- ************************************************
  22640. --- *** relation: modified_l_phenylalanine ***
  22641. --- *** relation type: VIEW ***
  22642. --- *** ***
  22643. --- *** A post translationally modified phenylal ***
  22644. --- *** anine amino acid feature. ***
  22645. --- ************************************************
  22646. ---
  22647. CREATE VIEW modified_l_phenylalanine AS
  22648. SELECT
  22649. feature_id AS modified_l_phenylalanine_id,
  22650. feature.*
  22651. FROM
  22652. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22653. WHERE cvterm.name = 'modified_L_phenylalanine';
  22654. --- ************************************************
  22655. --- *** relation: modified_l_histidine ***
  22656. --- *** relation type: VIEW ***
  22657. --- *** ***
  22658. --- *** A post translationally modified histidie ***
  22659. --- *** amino acid feature. ***
  22660. --- ************************************************
  22661. ---
  22662. CREATE VIEW modified_l_histidine AS
  22663. SELECT
  22664. feature_id AS modified_l_histidine_id,
  22665. feature.*
  22666. FROM
  22667. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22668. WHERE cvterm.name = 'modified_L_histidine';
  22669. --- ************************************************
  22670. --- *** relation: modified_l_serine ***
  22671. --- *** relation type: VIEW ***
  22672. --- *** ***
  22673. --- *** A post translationally modified serine a ***
  22674. --- *** mino acid feature. ***
  22675. --- ************************************************
  22676. ---
  22677. CREATE VIEW modified_l_serine AS
  22678. SELECT
  22679. feature_id AS modified_l_serine_id,
  22680. feature.*
  22681. FROM
  22682. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22683. WHERE cvterm.name = 'modified_L_serine';
  22684. --- ************************************************
  22685. --- *** relation: modified_l_lysine ***
  22686. --- *** relation type: VIEW ***
  22687. --- *** ***
  22688. --- *** A post translationally modified lysine a ***
  22689. --- *** mino acid feature. ***
  22690. --- ************************************************
  22691. ---
  22692. CREATE VIEW modified_l_lysine AS
  22693. SELECT
  22694. feature_id AS modified_l_lysine_id,
  22695. feature.*
  22696. FROM
  22697. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22698. WHERE cvterm.name = 'modified_L_lysine';
  22699. --- ************************************************
  22700. --- *** relation: modified_l_leucine ***
  22701. --- *** relation type: VIEW ***
  22702. --- *** ***
  22703. --- *** A post translationally modified leucine ***
  22704. --- *** amino acid feature. ***
  22705. --- ************************************************
  22706. ---
  22707. CREATE VIEW modified_l_leucine AS
  22708. SELECT
  22709. feature_id AS modified_l_leucine_id,
  22710. feature.*
  22711. FROM
  22712. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22713. WHERE cvterm.name = 'modified_L_leucine';
  22714. --- ************************************************
  22715. --- *** relation: modified_l_selenocysteine ***
  22716. --- *** relation type: VIEW ***
  22717. --- *** ***
  22718. --- *** A post translationally modified selenocy ***
  22719. --- *** steine amino acid feature. ***
  22720. --- ************************************************
  22721. ---
  22722. CREATE VIEW modified_l_selenocysteine AS
  22723. SELECT
  22724. feature_id AS modified_l_selenocysteine_id,
  22725. feature.*
  22726. FROM
  22727. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22728. WHERE cvterm.name = 'modified_L_selenocysteine';
  22729. --- ************************************************
  22730. --- *** relation: modified_l_valine ***
  22731. --- *** relation type: VIEW ***
  22732. --- *** ***
  22733. --- *** A post translationally modified valine a ***
  22734. --- *** mino acid feature. ***
  22735. --- ************************************************
  22736. ---
  22737. CREATE VIEW modified_l_valine AS
  22738. SELECT
  22739. feature_id AS modified_l_valine_id,
  22740. feature.*
  22741. FROM
  22742. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22743. WHERE cvterm.name = 'modified_L_valine';
  22744. --- ************************************************
  22745. --- *** relation: modified_l_proline ***
  22746. --- *** relation type: VIEW ***
  22747. --- *** ***
  22748. --- *** A post translationally modified proline ***
  22749. --- *** amino acid feature. ***
  22750. --- ************************************************
  22751. ---
  22752. CREATE VIEW modified_l_proline AS
  22753. SELECT
  22754. feature_id AS modified_l_proline_id,
  22755. feature.*
  22756. FROM
  22757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22758. WHERE cvterm.name = 'modified_L_proline';
  22759. --- ************************************************
  22760. --- *** relation: modified_l_tyrosine ***
  22761. --- *** relation type: VIEW ***
  22762. --- *** ***
  22763. --- *** A post translationally modified tyrosine ***
  22764. --- *** amino acid feature. ***
  22765. --- ************************************************
  22766. ---
  22767. CREATE VIEW modified_l_tyrosine AS
  22768. SELECT
  22769. feature_id AS modified_l_tyrosine_id,
  22770. feature.*
  22771. FROM
  22772. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22773. WHERE cvterm.name = 'modified_L_tyrosine';
  22774. --- ************************************************
  22775. --- *** relation: modified_l_arginine ***
  22776. --- *** relation type: VIEW ***
  22777. --- *** ***
  22778. --- *** A post translationally modified arginine ***
  22779. --- *** amino acid feature. ***
  22780. --- ************************************************
  22781. ---
  22782. CREATE VIEW modified_l_arginine AS
  22783. SELECT
  22784. feature_id AS modified_l_arginine_id,
  22785. feature.*
  22786. FROM
  22787. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22788. WHERE cvterm.name = 'modified_L_arginine';
  22789. --- ************************************************
  22790. --- *** relation: peptidyl ***
  22791. --- *** relation type: VIEW ***
  22792. --- *** ***
  22793. --- *** An attribute describing the nature of a ***
  22794. --- *** proteinaceous polymer, where by the amin ***
  22795. --- *** o acid units are joined by peptide bonds ***
  22796. --- *** . ***
  22797. --- ************************************************
  22798. ---
  22799. CREATE VIEW peptidyl AS
  22800. SELECT
  22801. feature_id AS peptidyl_id,
  22802. feature.*
  22803. FROM
  22804. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22805. WHERE cvterm.name = 'peptidyl';
  22806. --- ************************************************
  22807. --- *** relation: cleaved_for_gpi_anchor_region ***
  22808. --- *** relation type: VIEW ***
  22809. --- *** ***
  22810. --- *** The C-terminal residues of a polypeptide ***
  22811. --- *** which are exchanged for a GPI-anchor. ***
  22812. --- ************************************************
  22813. ---
  22814. CREATE VIEW cleaved_for_gpi_anchor_region AS
  22815. SELECT
  22816. feature_id AS cleaved_for_gpi_anchor_region_id,
  22817. feature.*
  22818. FROM
  22819. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22820. WHERE cvterm.name = 'cleaved_for_gpi_anchor_region';
  22821. --- ************************************************
  22822. --- *** relation: biomaterial_region ***
  22823. --- *** relation type: VIEW ***
  22824. --- *** ***
  22825. --- *** A region which is intended for use in an ***
  22826. --- *** experiment. ***
  22827. --- ************************************************
  22828. ---
  22829. CREATE VIEW biomaterial_region AS
  22830. SELECT
  22831. feature_id AS biomaterial_region_id,
  22832. feature.*
  22833. FROM
  22834. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22835. WHERE cvterm.name = 'reagent' OR cvterm.name = 'engineered_region' OR cvterm.name = 'PCR_product' OR cvterm.name = 'clone' OR cvterm.name = 'rescue_region' OR cvterm.name = 'oligo' OR cvterm.name = 'clone_insert' OR cvterm.name = 'cloned_region' OR cvterm.name = 'databank_entry' OR cvterm.name = 'RAPD' OR cvterm.name = 'genomic_clone' OR cvterm.name = 'cDNA_clone' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'validated_cDNA_clone' OR cvterm.name = 'invalidated_cDNA_clone' OR cvterm.name = 'three_prime_RACE_clone' OR cvterm.name = 'chimeric_cDNA_clone' OR cvterm.name = 'genomically_contaminated_cDNA_clone' OR cvterm.name = 'polyA_primed_cDNA_clone' OR cvterm.name = 'partially_processed_cDNA_clone' OR cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'aptamer' OR cvterm.name = 'probe' OR cvterm.name = 'tag' OR cvterm.name = 'ss_oligo' OR cvterm.name = 'ds_oligo' OR cvterm.name = 'DNAzyme' OR cvterm.name = 'synthetic_oligo' OR cvterm.name = 'DNA_aptamer' OR cvterm.name = 'RNA_aptamer' OR cvterm.name = 'microarray_oligo' OR cvterm.name = 'SAGE_tag' OR cvterm.name = 'STS' OR cvterm.name = 'EST' OR cvterm.name = 'engineered_tag' OR cvterm.name = 'five_prime_EST' OR cvterm.name = 'three_prime_EST' OR cvterm.name = 'UST' OR cvterm.name = 'RST' OR cvterm.name = 'three_prime_UST' OR cvterm.name = 'five_prime_UST' OR cvterm.name = 'three_prime_RST' OR cvterm.name = 'five_prime_RST' OR cvterm.name = 'primer' OR cvterm.name = 'sequencing_primer' OR cvterm.name = 'forward_primer' OR cvterm.name = 'reverse_primer' OR cvterm.name = 'ASPE_primer' OR cvterm.name = 'dCAPS_primer' OR cvterm.name = 'RNAi_reagent' OR cvterm.name = 'DNA_constraint_sequence' OR cvterm.name = 'morpholino_oligo' OR cvterm.name = 'PNA_oligo' OR cvterm.name = 'LNA_oligo' OR cvterm.name = 'TNA_oligo' OR cvterm.name = 'GNA_oligo' OR cvterm.name = 'R_GNA_oligo' OR cvterm.name = 'S_GNA_oligo' OR cvterm.name = 'cloned_cDNA_insert' OR cvterm.name = 'cloned_genomic_insert' OR cvterm.name = 'engineered_insert' OR cvterm.name = 'BAC_cloned_genomic_insert' OR cvterm.name = 'engineered_gene' OR cvterm.name = 'engineered_plasmid' OR cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'engineered_transposable_element' OR cvterm.name = 'engineered_foreign_region' OR cvterm.name = 'engineered_tag' OR cvterm.name = 'engineered_insert' OR cvterm.name = 'targeting_vector' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'gene_trap_construct' OR cvterm.name = 'promoter_trap_construct' OR cvterm.name = 'enhancer_trap_construct' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_repetitive_element' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'biomaterial_region';
  22836. --- ************************************************
  22837. --- *** relation: experimental_feature ***
  22838. --- *** relation type: VIEW ***
  22839. --- *** ***
  22840. --- *** A region which is the result of some arb ***
  22841. --- *** itrary experimental procedure. The proce ***
  22842. --- *** dure may be carried out with biological ***
  22843. --- *** material or inside a computer. ***
  22844. --- ************************************************
  22845. ---
  22846. CREATE VIEW experimental_feature AS
  22847. SELECT
  22848. feature_id AS experimental_feature_id,
  22849. feature.*
  22850. FROM
  22851. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22852. WHERE cvterm.name = 'match_part' OR cvterm.name = 'assembly_component' OR cvterm.name = 'conserved_region' OR cvterm.name = 'match' OR cvterm.name = 'remark' OR cvterm.name = 'reading_frame' OR cvterm.name = 'consensus_region' OR cvterm.name = 'low_complexity_region' OR cvterm.name = 'assembly' OR cvterm.name = 'transcribed_fragment' OR cvterm.name = 'transcribed_cluster' OR cvterm.name = 'high_identity_region' OR cvterm.name = 'mathematically_defined_repeat' OR cvterm.name = 'experimentally_defined_binding_region' OR cvterm.name = 'contig' OR cvterm.name = 'read' OR cvterm.name = 'restriction_fragment' OR cvterm.name = 'golden_path_fragment' OR cvterm.name = 'tiling_path_fragment' OR cvterm.name = 'gap' OR cvterm.name = 'sonicate_fragment' OR cvterm.name = 'paired_end_fragment' OR cvterm.name = 'read_pair' OR cvterm.name = 'contig_read' OR cvterm.name = 'BAC_end' OR cvterm.name = 'dye_terminator_read' OR cvterm.name = 'pyrosequenced_read' OR cvterm.name = 'ligation_based_read' OR cvterm.name = 'polymerase_synthesis_read' OR cvterm.name = 'PAC_end' OR cvterm.name = 'YAC_end' OR cvterm.name = 'clone_end' OR cvterm.name = 'RFLP_fragment' OR cvterm.name = 'tiling_path_clone' OR cvterm.name = 'coding_conserved_region' OR cvterm.name = 'nc_conserved_region' OR cvterm.name = 'RR_tract' OR cvterm.name = 'homologous_region' OR cvterm.name = 'centromere_DNA_Element_I' OR cvterm.name = 'centromere_DNA_Element_II' OR cvterm.name = 'centromere_DNA_Element_III' OR cvterm.name = 'X_element' OR cvterm.name = 'U_box' OR cvterm.name = 'regional_centromere_central_core' OR cvterm.name = 'syntenic_region' OR cvterm.name = 'paralogous_region' OR cvterm.name = 'orthologous_region' OR cvterm.name = 'nucleotide_match' OR cvterm.name = 'protein_match' OR cvterm.name = 'expressed_sequence_match' OR cvterm.name = 'cross_genome_match' OR cvterm.name = 'translated_nucleotide_match' OR cvterm.name = 'primer_match' OR cvterm.name = 'EST_match' OR cvterm.name = 'cDNA_match' OR cvterm.name = 'UST_match' OR cvterm.name = 'RST_match' OR cvterm.name = 'sequence_difference' OR cvterm.name = 'experimental_result_region' OR cvterm.name = 'polypeptide_sequencing_information' OR cvterm.name = 'possible_base_call_error' OR cvterm.name = 'possible_assembly_error' OR cvterm.name = 'assembly_error_correction' OR cvterm.name = 'base_call_error_correction' OR cvterm.name = 'overlapping_feature_set' OR cvterm.name = 'no_output' OR cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'non_adjacent_residues' OR cvterm.name = 'non_terminal_residue' OR cvterm.name = 'sequence_conflict' OR cvterm.name = 'sequence_uncertainty' OR cvterm.name = 'contig_collection' OR cvterm.name = 'ORF' OR cvterm.name = 'blocked_reading_frame' OR cvterm.name = 'mini_gene' OR cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'consensus_mRNA' OR cvterm.name = 'sequence_assembly' OR cvterm.name = 'fragment_assembly' OR cvterm.name = 'supercontig' OR cvterm.name = 'contig' OR cvterm.name = 'tiling_path' OR cvterm.name = 'virtual_sequence' OR cvterm.name = 'golden_path' OR cvterm.name = 'ultracontig' OR cvterm.name = 'expressed_sequence_assembly' OR cvterm.name = 'fingerprint_map' OR cvterm.name = 'STS_map' OR cvterm.name = 'RH_map' OR cvterm.name = 'unigene_cluster' OR cvterm.name = 'CHiP_seq_region' OR cvterm.name = 'experimental_feature';
  22853. --- ************************************************
  22854. --- *** relation: biological_region ***
  22855. --- *** relation type: VIEW ***
  22856. --- *** ***
  22857. --- *** A region defined by its disposition to b ***
  22858. --- *** e involved in a biological process. ***
  22859. --- ************************************************
  22860. ---
  22861. CREATE VIEW biological_region AS
  22862. SELECT
  22863. feature_id AS biological_region_id,
  22864. feature.*
  22865. FROM
  22866. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22867. WHERE cvterm.name = 'sequence_secondary_structure' OR cvterm.name = 'linkage_group' OR cvterm.name = 'polypeptide' OR cvterm.name = 'deletion' OR cvterm.name = 'origin_of_replication' OR cvterm.name = 'recombination_feature' OR cvterm.name = 'CpG_island' OR cvterm.name = 'pseudogene' OR cvterm.name = 'binding_site' OR cvterm.name = 'pseudogenic_region' OR cvterm.name = 'cap' OR cvterm.name = 'intergenic_region' OR cvterm.name = 'oligo_U_tail' OR cvterm.name = 'polyA_sequence' OR cvterm.name = 'repeat_region' OR cvterm.name = 'insertion' OR cvterm.name = 'gene' OR cvterm.name = 'repeat_unit' OR cvterm.name = 'QTL' OR cvterm.name = 'chromosome_part' OR cvterm.name = 'gene_member_region' OR cvterm.name = 'transcript_region' OR cvterm.name = 'polypeptide_region' OR cvterm.name = 'gene_component_region' OR cvterm.name = 'mobile_genetic_element' OR cvterm.name = 'replicon' OR cvterm.name = 'base' OR cvterm.name = 'amino_acid' OR cvterm.name = 'genetic_marker' OR cvterm.name = 'sequence_motif' OR cvterm.name = 'restriction_enzyme_recognition_site' OR cvterm.name = 'restriction_enzyme_single_strand_overhang' OR cvterm.name = 'epigenetically_modified_region' OR cvterm.name = 'open_chromatin_region' OR cvterm.name = 'gene_group' OR cvterm.name = 'substitution' OR cvterm.name = 'inversion' OR cvterm.name = 'retron' OR cvterm.name = 'G_quartet' OR cvterm.name = 'base_pair' OR cvterm.name = 'RNA_sequence_secondary_structure' OR cvterm.name = 'DNA_sequence_secondary_structure' OR cvterm.name = 'pseudoknot' OR cvterm.name = 'WC_base_pair' OR cvterm.name = 'sugar_edge_base_pair' OR cvterm.name = 'Hoogsteen_base_pair' OR cvterm.name = 'reverse_Hoogsteen_base_pair' OR cvterm.name = 'wobble_base_pair' OR cvterm.name = 'stem_loop' OR cvterm.name = 'tetraloop' OR cvterm.name = 'i_motif' OR cvterm.name = 'recoding_pseudoknot' OR cvterm.name = 'H_pseudoknot' OR cvterm.name = 'D_loop' OR cvterm.name = 'ARS' OR cvterm.name = 'oriT' OR cvterm.name = 'amplification_origin' OR cvterm.name = 'oriV' OR cvterm.name = 'oriC' OR cvterm.name = 'recombination_hotspot' OR cvterm.name = 'haplotype_block' OR cvterm.name = 'sequence_rearrangement_feature' OR cvterm.name = 'iDNA' OR cvterm.name = 'specific_recombination_site' OR cvterm.name = 'chromosome_breakage_sequence' OR cvterm.name = 'internal_eliminated_sequence' OR cvterm.name = 'macronucleus_destined_segment' OR cvterm.name = 'recombination_feature_of_rearranged_gene' OR cvterm.name = 'site_specific_recombination_target_region' OR cvterm.name = 'recombination_signal_sequence' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_feature' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_spacer' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_segment' OR cvterm.name = 'vertebrate_immunoglobulin_T_cell_receptor_rearranged_gene_cluster' OR cvterm.name = 'vertebrate_immune_system_gene_recombination_signal_feature' OR cvterm.name = 'D_gene' OR cvterm.name = 'V_gene' OR cvterm.name = 'J_gene' OR cvterm.name = 'C_gene' OR cvterm.name = 'D_J_C_cluster' OR cvterm.name = 'J_C_cluster' OR cvterm.name = 'J_cluster' OR cvterm.name = 'V_cluster' OR cvterm.name = 'V_J_cluster' OR cvterm.name = 'V_J_C_cluster' OR cvterm.name = 'C_cluster' OR cvterm.name = 'D_cluster' OR cvterm.name = 'D_J_cluster' OR cvterm.name = 'three_prime_D_spacer' OR cvterm.name = 'five_prime_D_spacer' OR cvterm.name = 'J_spacer' OR cvterm.name = 'V_spacer' OR cvterm.name = 'VD_gene' OR cvterm.name = 'DJ_gene' OR cvterm.name = 'VDJ_gene' OR cvterm.name = 'VJ_gene' OR cvterm.name = 'DJ_J_cluster' OR cvterm.name = 'VDJ_J_C_cluster' OR cvterm.name = 'VDJ_J_cluster' OR cvterm.name = 'VJ_C_cluster' OR cvterm.name = 'VJ_J_C_cluster' OR cvterm.name = 'VJ_J_cluster' OR cvterm.name = 'D_DJ_C_cluster' OR cvterm.name = 'D_DJ_cluster' OR cvterm.name = 'D_DJ_J_C_cluster' OR cvterm.name = 'D_DJ_J_cluster' OR cvterm.name = 'V_DJ_cluster' OR cvterm.name = 'V_DJ_J_cluster' OR cvterm.name = 'V_VDJ_C_cluster' OR cvterm.name = 'V_VDJ_cluster' OR cvterm.name = 'V_VDJ_J_cluster' OR cvterm.name = 'V_VJ_C_cluster' OR cvterm.name = 'V_VJ_cluster' OR cvterm.name = 'V_VJ_J_cluster' OR cvterm.name = 'V_D_DJ_C_cluster' OR cvterm.name = 'V_D_DJ_cluster' OR cvterm.name = 'V_D_DJ_J_C_cluster' OR cvterm.name = 'V_D_DJ_J_cluster' OR cvterm.name = 'V_D_J_C_cluster' OR cvterm.name = 'V_D_J_cluster' OR cvterm.name = 'DJ_C_cluster' OR cvterm.name = 'DJ_J_C_cluster' OR cvterm.name = 'VDJ_C_cluster' OR cvterm.name = 'V_DJ_C_cluster' OR cvterm.name = 'V_DJ_J_C_cluster' OR cvterm.name = 'V_VDJ_J_C_cluster' OR cvterm.name = 'V_VJ_J_C_cluster' OR cvterm.name = 'J_gene_recombination_feature' OR cvterm.name = 'D_gene_recombination_feature' OR cvterm.name = 'V_gene_recombination_feature' OR cvterm.name = 'heptamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'nonamer_of_recombination_feature_of_vertebrate_immune_system_gene' OR cvterm.name = 'five_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_recombination_signal_sequence' OR cvterm.name = 'three_prime_D_heptamer' OR cvterm.name = 'five_prime_D_heptamer' OR cvterm.name = 'J_heptamer' OR cvterm.name = 'V_heptamer' OR cvterm.name = 'three_prime_D_nonamer' OR cvterm.name = 'five_prime_D_nonamer' OR cvterm.name = 'J_nonamer' OR cvterm.name = 'V_nonamer' OR cvterm.name = 'integration_excision_site' OR cvterm.name = 'resolution_site' OR cvterm.name = 'inversion_site' OR cvterm.name = 'inversion_site_part' OR cvterm.name = 'attI_site' OR cvterm.name = 'attP_site' OR cvterm.name = 'attB_site' OR cvterm.name = 'attL_site' OR cvterm.name = 'attR_site' OR cvterm.name = 'attC_site' OR cvterm.name = 'attCtn_site' OR cvterm.name = 'loxP_site' OR cvterm.name = 'dif_site' OR cvterm.name = 'FRT_site' OR cvterm.name = 'IRLinv_site' OR cvterm.name = 'IRRinv_site' OR cvterm.name = 'processed_pseudogene' OR cvterm.name = 'non_processed_pseudogene' OR cvterm.name = 'pseudogene_by_unequal_crossing_over' OR cvterm.name = 'nuclear_mt_pseudogene' OR cvterm.name = 'cassette_pseudogene' OR cvterm.name = 'duplicated_pseudogene' OR cvterm.name = 'unitary_pseudogene' OR cvterm.name = 'protein_binding_site' OR cvterm.name = 'epitope' OR cvterm.name = 'nucleotide_binding_site' OR cvterm.name = 'metal_binding_site' OR cvterm.name = 'ligand_binding_site' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'nucleotide_to_protein_binding_site' OR cvterm.name = 'nuclease_binding_site' OR cvterm.name = 'TF_binding_site' OR cvterm.name = 'histone_binding_site' OR cvterm.name = 'insulator_binding_site' OR cvterm.name = 'enhancer_binding_site' OR cvterm.name = 'restriction_enzyme_binding_site' OR cvterm.name = 'nuclease_sensitive_site' OR cvterm.name = 'homing_endonuclease_binding_site' OR cvterm.name = 'nuclease_hypersensitive_site' OR cvterm.name = 'group_1_intron_homing_endonuclease_target_region' OR cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'miRNA_target_site' OR cvterm.name = 'DNA_binding_site' OR cvterm.name = 'primer_binding_site' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'decayed_exon' OR cvterm.name = 'pseudogenic_exon' OR cvterm.name = 'pseudogenic_transcript' OR cvterm.name = 'pseudogenic_rRNA' OR cvterm.name = 'pseudogenic_tRNA' OR cvterm.name = 'long_terminal_repeat' OR cvterm.name = 'engineered_foreign_repetitive_element' OR cvterm.name = 'inverted_repeat' OR cvterm.name = 'direct_repeat' OR cvterm.name = 'non_LTR_retrotransposon_polymeric_tract' OR cvterm.name = 'dispersed_repeat' OR cvterm.name = 'tandem_repeat' OR cvterm.name = 'X_element_combinatorial_repeat' OR cvterm.name = 'Y_prime_element' OR cvterm.name = 'telomeric_repeat' OR cvterm.name = 'nested_repeat' OR cvterm.name = 'centromeric_repeat' OR cvterm.name = 'five_prime_LTR' OR cvterm.name = 'three_prime_LTR' OR cvterm.name = 'solo_LTR' OR cvterm.name = 'terminal_inverted_repeat' OR cvterm.name = 'five_prime_terminal_inverted_repeat' OR cvterm.name = 'three_prime_terminal_inverted_repeat' OR cvterm.name = 'target_site_duplication' OR cvterm.name = 'CRISPR' OR cvterm.name = 'satellite_DNA' OR cvterm.name = 'microsatellite' OR cvterm.name = 'minisatellite' OR cvterm.name = 'dinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'trinucleotide_repeat_microsatellite_feature' OR cvterm.name = 'tetranucleotide_repeat_microsatellite_feature' OR cvterm.name = 'nested_tandem_repeat' OR cvterm.name = 'regional_centromere_inner_repeat_region' OR cvterm.name = 'regional_centromere_outer_repeat_region' OR cvterm.name = 'transgenic_insertion' OR cvterm.name = 'duplication' OR cvterm.name = 'tandem_duplication' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'nuclear_gene' OR cvterm.name = 'mt_gene' OR cvterm.name = 'plastid_gene' OR cvterm.name = 'nucleomorph_gene' OR cvterm.name = 'plasmid_gene' OR cvterm.name = 'proviral_gene' OR cvterm.name = 'transposable_element_gene' OR cvterm.name = 'silenced_gene' OR cvterm.name = 'engineered_gene' OR cvterm.name = 'foreign_gene' OR cvterm.name = 'fusion_gene' OR cvterm.name = 'recombinationally_rearranged_gene' OR cvterm.name = 'gene_with_trans_spliced_transcript' OR cvterm.name = 'gene_with_polycistronic_transcript' OR cvterm.name = 'rescue_gene' OR cvterm.name = 'post_translationally_regulated_gene' OR cvterm.name = 'negatively_autoregulated_gene' OR cvterm.name = 'positively_autoregulated_gene' OR cvterm.name = 'translationally_regulated_gene' OR cvterm.name = 'epigenetically_modified_gene' OR cvterm.name = 'transgene' OR cvterm.name = 'predicted_gene' OR cvterm.name = 'protein_coding_gene' OR cvterm.name = 'retrogene' OR cvterm.name = 'ncRNA_gene' OR cvterm.name = 'cryptic_gene' OR cvterm.name = 'gene_with_non_canonical_start_codon' OR cvterm.name = 'gene_cassette' OR cvterm.name = 'kinetoplast_gene' OR cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'apicoplast_gene' OR cvterm.name = 'ct_gene' OR cvterm.name = 'chromoplast_gene' OR cvterm.name = 'cyanelle_gene' OR cvterm.name = 'leucoplast_gene' OR cvterm.name = 'proplastid_gene' OR cvterm.name = 'endogenous_retroviral_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'gene_silenced_by_DNA_modification' OR cvterm.name = 'gene_silenced_by_RNA_interference' OR cvterm.name = 'gene_silenced_by_histone_modification' OR cvterm.name = 'gene_silenced_by_DNA_methylation' OR cvterm.name = 'gene_silenced_by_histone_methylation' OR cvterm.name = 'gene_silenced_by_histone_deacetylation' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'recombinationally_inverted_gene' OR cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene' OR cvterm.name = 'gene_with_dicistronic_transcript' OR cvterm.name = 'gene_with_dicistronic_primary_transcript' OR cvterm.name = 'gene_with_dicistronic_mRNA' OR cvterm.name = 'wild_type_rescue_gene' OR cvterm.name = 'gene_rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted_gene' OR cvterm.name = 'paternally_imprinted_gene' OR cvterm.name = 'allelically_excluded_gene' OR cvterm.name = 'floxed_gene' OR cvterm.name = 'gene_with_polyadenylated_mRNA' OR cvterm.name = 'gene_with_mRNA_with_frameshift' OR cvterm.name = 'gene_with_edited_transcript' OR cvterm.name = 'gene_with_recoded_mRNA' OR cvterm.name = 'gene_with_stop_codon_read_through' OR cvterm.name = 'gene_with_mRNA_recoded_by_translational_bypass' OR cvterm.name = 'gene_with_transcript_with_translational_frameshift' OR cvterm.name = 'gene_with_stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'gene_with_stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'gRNA_gene' OR cvterm.name = 'miRNA_gene' OR cvterm.name = 'scRNA_gene' OR cvterm.name = 'snoRNA_gene' OR cvterm.name = 'snRNA_gene' OR cvterm.name = 'SRP_RNA_gene' OR cvterm.name = 'stRNA_gene' OR cvterm.name = 'tmRNA_gene' OR cvterm.name = 'tRNA_gene' OR cvterm.name = 'rRNA_gene' OR cvterm.name = 'piRNA_gene' OR cvterm.name = 'RNase_P_RNA_gene' OR cvterm.name = 'RNase_MRP_RNA_gene' OR cvterm.name = 'lincRNA_gene' OR cvterm.name = 'telomerase_RNA_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'gene_with_start_codon_CUG' OR cvterm.name = 'chromosome_arm' OR cvterm.name = 'chromosome_band' OR cvterm.name = 'interband' OR cvterm.name = 'chromosomal_regulatory_element' OR cvterm.name = 'chromosomal_structural_element' OR cvterm.name = 'introgressed_chromosome_region' OR cvterm.name = 'matrix_attachment_site' OR cvterm.name = 'centromere' OR cvterm.name = 'telomere' OR cvterm.name = 'point_centromere' OR cvterm.name = 'regional_centromere' OR cvterm.name = 'transcript' OR cvterm.name = 'regulatory_region' OR cvterm.name = 'polycistronic_transcript' OR cvterm.name = 'transcript_with_translational_frameshift' OR cvterm.name = 'primary_transcript' OR cvterm.name = 'mature_transcript' OR cvterm.name = 'transcript_bound_by_nucleic_acid' OR cvterm.name = 'transcript_bound_by_protein' OR cvterm.name = 'enzymatic_RNA' OR cvterm.name = 'trans_spliced_transcript' OR cvterm.name = 'monocistronic_transcript' OR cvterm.name = 'aberrant_processed_transcript' OR cvterm.name = 'edited_transcript' OR cvterm.name = 'processed_transcript' OR cvterm.name = 'alternatively_spliced_transcript' OR cvterm.name = 'dicistronic_transcript' OR cvterm.name = 'polycistronic_primary_transcript' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'protein_coding_primary_transcript' OR cvterm.name = 'nc_primary_transcript' OR cvterm.name = 'polycistronic_primary_transcript' OR cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'mini_exon_donor_RNA' OR cvterm.name = 'antisense_primary_transcript' OR cvterm.name = 'capped_primary_transcript' OR cvterm.name = 'pre_edited_mRNA' OR cvterm.name = 'scRNA_primary_transcript' OR cvterm.name = 'rRNA_primary_transcript' OR cvterm.name = 'tRNA_primary_transcript' OR cvterm.name = 'snRNA_primary_transcript' OR cvterm.name = 'snoRNA_primary_transcript' OR cvterm.name = 'tmRNA_primary_transcript' OR cvterm.name = 'SRP_RNA_primary_transcript' OR cvterm.name = 'miRNA_primary_transcript' OR cvterm.name = 'tasiRNA_primary_transcript' OR cvterm.name = 'rRNA_small_subunit_primary_transcript' OR cvterm.name = 'rRNA_large_subunit_primary_transcript' OR cvterm.name = 'alanine_tRNA_primary_transcript' OR cvterm.name = 'arginine_tRNA_primary_transcript' OR cvterm.name = 'asparagine_tRNA_primary_transcript' OR cvterm.name = 'aspartic_acid_tRNA_primary_transcript' OR cvterm.name = 'cysteine_tRNA_primary_transcript' OR cvterm.name = 'glutamic_acid_tRNA_primary_transcript' OR cvterm.name = 'glutamine_tRNA_primary_transcript' OR cvterm.name = 'glycine_tRNA_primary_transcript' OR cvterm.name = 'histidine_tRNA_primary_transcript' OR cvterm.name = 'isoleucine_tRNA_primary_transcript' OR cvterm.name = 'leucine_tRNA_primary_transcript' OR cvterm.name = 'lysine_tRNA_primary_transcript' OR cvterm.name = 'methionine_tRNA_primary_transcript' OR cvterm.name = 'phenylalanine_tRNA_primary_transcript' OR cvterm.name = 'proline_tRNA_primary_transcript' OR cvterm.name = 'serine_tRNA_primary_transcript' OR cvterm.name = 'threonine_tRNA_primary_transcript' OR cvterm.name = 'tryptophan_tRNA_primary_transcript' OR cvterm.name = 'tyrosine_tRNA_primary_transcript' OR cvterm.name = 'valine_tRNA_primary_transcript' OR cvterm.name = 'pyrrolysine_tRNA_primary_transcript' OR cvterm.name = 'selenocysteine_tRNA_primary_transcript' OR cvterm.name = 'methylation_guide_snoRNA_primary_transcript' OR cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript' OR cvterm.name = 'C_D_box_snoRNA_primary_transcript' OR cvterm.name = 'H_ACA_box_snoRNA_primary_transcript' OR cvterm.name = 'U14_snoRNA_primary_transcript' OR cvterm.name = 'stRNA_primary_transcript' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'mRNA' OR cvterm.name = 'ncRNA' OR cvterm.name = 'mRNA_with_frameshift' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'polycistronic_mRNA' OR cvterm.name = 'exemplar_mRNA' OR cvterm.name = 'capped_mRNA' OR cvterm.name = 'polyadenylated_mRNA' OR cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'consensus_mRNA' OR cvterm.name = 'recoded_mRNA' OR cvterm.name = 'mRNA_with_minus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_1_frameshift' OR cvterm.name = 'mRNA_with_plus_2_frameshift' OR cvterm.name = 'mRNA_with_minus_2_frameshift' OR cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'mRNA_recoded_by_translational_bypass' OR cvterm.name = 'mRNA_recoded_by_codon_redefinition' OR cvterm.name = 'scRNA' OR cvterm.name = 'rRNA' OR cvterm.name = 'tRNA' OR cvterm.name = 'snRNA' OR cvterm.name = 'snoRNA' OR cvterm.name = 'small_regulatory_ncRNA' OR cvterm.name = 'RNase_MRP_RNA' OR cvterm.name = 'RNase_P_RNA' OR cvterm.name = 'telomerase_RNA' OR cvterm.name = 'vault_RNA' OR cvterm.name = 'Y_RNA' OR cvterm.name = 'rasiRNA' OR cvterm.name = 'SRP_RNA' OR cvterm.name = 'guide_RNA' OR cvterm.name = 'antisense_RNA' OR cvterm.name = 'siRNA' OR cvterm.name = 'stRNA' OR cvterm.name = 'class_II_RNA' OR cvterm.name = 'class_I_RNA' OR cvterm.name = 'piRNA' OR cvterm.name = 'lincRNA' OR cvterm.name = 'tasiRNA' OR cvterm.name = 'rRNA_cleavage_RNA' OR cvterm.name = 'small_subunit_rRNA' OR cvterm.name = 'large_subunit_rRNA' OR cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'rRNA_5_8S' OR cvterm.name = 'rRNA_5S' OR cvterm.name = 'rRNA_28S' OR cvterm.name = 'rRNA_23S' OR cvterm.name = 'rRNA_25S' OR cvterm.name = 'rRNA_21S' OR cvterm.name = 'alanyl_tRNA' OR cvterm.name = 'asparaginyl_tRNA' OR cvterm.name = 'aspartyl_tRNA' OR cvterm.name = 'cysteinyl_tRNA' OR cvterm.name = 'glutaminyl_tRNA' OR cvterm.name = 'glutamyl_tRNA' OR cvterm.name = 'glycyl_tRNA' OR cvterm.name = 'histidyl_tRNA' OR cvterm.name = 'isoleucyl_tRNA' OR cvterm.name = 'leucyl_tRNA' OR cvterm.name = 'lysyl_tRNA' OR cvterm.name = 'methionyl_tRNA' OR cvterm.name = 'phenylalanyl_tRNA' OR cvterm.name = 'prolyl_tRNA' OR cvterm.name = 'seryl_tRNA' OR cvterm.name = 'threonyl_tRNA' OR cvterm.name = 'tryptophanyl_tRNA' OR cvterm.name = 'tyrosyl_tRNA' OR cvterm.name = 'valyl_tRNA' OR cvterm.name = 'pyrrolysyl_tRNA' OR cvterm.name = 'arginyl_tRNA' OR cvterm.name = 'selenocysteinyl_tRNA' OR cvterm.name = 'U1_snRNA' OR cvterm.name = 'U2_snRNA' OR cvterm.name = 'U4_snRNA' OR cvterm.name = 'U4atac_snRNA' OR cvterm.name = 'U5_snRNA' OR cvterm.name = 'U6_snRNA' OR cvterm.name = 'U6atac_snRNA' OR cvterm.name = 'U11_snRNA' OR cvterm.name = 'U12_snRNA' OR cvterm.name = 'C_D_box_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA' OR cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'miRNA' OR cvterm.name = 'RNA_6S' OR cvterm.name = 'CsrB_RsmB_RNA' OR cvterm.name = 'DsrA_RNA' OR cvterm.name = 'OxyS_RNA' OR cvterm.name = 'RprA_RNA' OR cvterm.name = 'RRE_RNA' OR cvterm.name = 'spot_42_RNA' OR cvterm.name = 'tmRNA' OR cvterm.name = 'GcvB_RNA' OR cvterm.name = 'MicF_RNA' OR cvterm.name = 'ribozyme' OR cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'transcription_regulatory_region' OR cvterm.name = 'translation_regulatory_region' OR cvterm.name = 'recombination_regulatory_region' OR cvterm.name = 'replication_regulatory_region' OR cvterm.name = 'terminator' OR cvterm.name = 'TF_binding_site' OR cvterm.name = 'polyA_signal_sequence' OR cvterm.name = 'gene_group_regulatory_region' OR cvterm.name = 'transcriptional_cis_regulatory_region' OR cvterm.name = 'splicing_regulatory_region' OR cvterm.name = 'cis_regulatory_frameshift_element' OR cvterm.name = 'intronic_regulatory_region' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'eukaryotic_terminator' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'terminator_of_type_2_RNApol_III_promoter' OR cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'promoter' OR cvterm.name = 'insulator' OR cvterm.name = 'CRM' OR cvterm.name = 'promoter_targeting_sequence' OR cvterm.name = 'ISRE' OR cvterm.name = 'bidirectional_promoter' OR cvterm.name = 'RNA_polymerase_promoter' OR cvterm.name = 'RNApol_I_promoter' OR cvterm.name = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'Phage_RNA_Polymerase_Promoter' OR cvterm.name = 'RNApol_II_core_promoter' OR cvterm.name = 'RNApol_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'SP6_RNA_Polymerase_Promoter' OR cvterm.name = 'T3_RNA_Polymerase_Promoter' OR cvterm.name = 'T7_RNA_Polymerase_Promoter' OR cvterm.name = 'locus_control_region' OR cvterm.name = 'enhancer' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'attenuator' OR cvterm.name = 'exon' OR cvterm.name = 'edited_transcript_feature' OR cvterm.name = 'mature_transcript_region' OR cvterm.name = 'primary_transcript_region' OR cvterm.name = 'exon_region' OR cvterm.name = 'anchor_binding_site' OR cvterm.name = 'coding_exon' OR cvterm.name = 'noncoding_exon' OR cvterm.name = 'interior_exon' OR cvterm.name = 'exon_of_single_exon_gene' OR cvterm.name = 'interior_coding_exon' OR cvterm.name = 'five_prime_coding_exon' OR cvterm.name = 'three_prime_coding_exon' OR cvterm.name = 'three_prime_noncoding_exon' OR cvterm.name = 'five_prime_noncoding_exon' OR cvterm.name = 'pre_edited_region' OR cvterm.name = 'editing_block' OR cvterm.name = 'editing_domain' OR cvterm.name = 'unedited_region' OR cvterm.name = 'mRNA_region' OR cvterm.name = 'tmRNA_region' OR cvterm.name = 'guide_RNA_region' OR cvterm.name = 'tRNA_region' OR cvterm.name = 'riboswitch' OR cvterm.name = 'ribosome_entry_site' OR cvterm.name = 'UTR' OR cvterm.name = 'CDS' OR cvterm.name = 'five_prime_open_reading_frame' OR cvterm.name = 'UTR_region' OR cvterm.name = 'CDS_region' OR cvterm.name = 'translational_frameshift' OR cvterm.name = 'recoding_stimulatory_region' OR cvterm.name = 'internal_ribosome_entry_site' OR cvterm.name = 'Shine_Dalgarno_sequence' OR cvterm.name = 'kozak_sequence' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'five_prime_UTR' OR cvterm.name = 'three_prime_UTR' OR cvterm.name = 'internal_UTR' OR cvterm.name = 'untranslated_region_polycistronic_mRNA' OR cvterm.name = 'edited_CDS' OR cvterm.name = 'CDS_fragment' OR cvterm.name = 'CDS_independently_known' OR cvterm.name = 'CDS_predicted' OR cvterm.name = 'orphan_CDS' OR cvterm.name = 'CDS_supported_by_sequence_similarity_data' OR cvterm.name = 'CDS_supported_by_domain_match_data' OR cvterm.name = 'CDS_supported_by_EST_or_cDNA_data' OR cvterm.name = 'upstream_AUG_codon' OR cvterm.name = 'AU_rich_element' OR cvterm.name = 'Bruno_response_element' OR cvterm.name = 'iron_responsive_element' OR cvterm.name = 'coding_start' OR cvterm.name = 'coding_end' OR cvterm.name = 'codon' OR cvterm.name = 'recoded_codon' OR cvterm.name = 'start_codon' OR cvterm.name = 'stop_codon' OR cvterm.name = 'stop_codon_read_through' OR cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'non_canonical_start_codon' OR cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'plus_1_translational_frameshift' OR cvterm.name = 'plus_2_translational_frameshift' OR cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'SECIS_element' OR cvterm.name = 'three_prime_recoding_site' OR cvterm.name = 'five_prime_recoding_site' OR cvterm.name = 'stop_codon_signal' OR cvterm.name = 'three_prime_stem_loop_structure' OR cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal' OR cvterm.name = 'three_prime_repeat_recoding_signal' OR cvterm.name = 'distant_three_prime_recoding_signal' OR cvterm.name = 'UAG_stop_codon_signal' OR cvterm.name = 'UAA_stop_codon_signal' OR cvterm.name = 'UGA_stop_codon_signal' OR cvterm.name = 'tmRNA_coding_piece' OR cvterm.name = 'tmRNA_acceptor_piece' OR cvterm.name = 'anchor_region' OR cvterm.name = 'template_region' OR cvterm.name = 'anticodon_loop' OR cvterm.name = 'anticodon' OR cvterm.name = 'CCA_tail' OR cvterm.name = 'DHU_loop' OR cvterm.name = 'T_loop' OR cvterm.name = 'splice_site' OR cvterm.name = 'intron' OR cvterm.name = 'clip' OR cvterm.name = 'TSS' OR cvterm.name = 'transcription_end_site' OR cvterm.name = 'spliced_leader_RNA' OR cvterm.name = 'rRNA_primary_transcript_region' OR cvterm.name = 'spliceosomal_intron_region' OR cvterm.name = 'intron_domain' OR cvterm.name = 'miRNA_primary_transcript_region' OR cvterm.name = 'outron' OR cvterm.name = 'cis_splice_site' OR cvterm.name = 'trans_splice_site' OR cvterm.name = 'cryptic_splice_site' OR cvterm.name = 'five_prime_cis_splice_site' OR cvterm.name = 'three_prime_cis_splice_site' OR cvterm.name = 'recursive_splice_site' OR cvterm.name = 'canonical_five_prime_splice_site' OR cvterm.name = 'non_canonical_five_prime_splice_site' OR cvterm.name = 'canonical_three_prime_splice_site' OR cvterm.name = 'non_canonical_three_prime_splice_site' OR cvterm.name = 'trans_splice_acceptor_site' OR cvterm.name = 'trans_splice_donor_site' OR cvterm.name = 'SL1_acceptor_site' OR cvterm.name = 'SL2_acceptor_site' OR cvterm.name = 'SL3_acceptor_site' OR cvterm.name = 'SL4_acceptor_site' OR cvterm.name = 'SL5_acceptor_site' OR cvterm.name = 'SL6_acceptor_site' OR cvterm.name = 'SL7_acceptor_site' OR cvterm.name = 'SL8_acceptor_site' OR cvterm.name = 'SL9_acceptor_site' OR cvterm.name = 'SL10_accceptor_site' OR cvterm.name = 'SL11_acceptor_site' OR cvterm.name = 'SL12_acceptor_site' OR cvterm.name = 'five_prime_intron' OR cvterm.name = 'interior_intron' OR cvterm.name = 'three_prime_intron' OR cvterm.name = 'twintron' OR cvterm.name = 'UTR_intron' OR cvterm.name = 'autocatalytically_spliced_intron' OR cvterm.name = 'spliceosomal_intron' OR cvterm.name = 'mobile_intron' OR cvterm.name = 'endonuclease_spliced_intron' OR cvterm.name = 'five_prime_UTR_intron' OR cvterm.name = 'three_prime_UTR_intron' OR cvterm.name = 'group_I_intron' OR cvterm.name = 'group_II_intron' OR cvterm.name = 'group_III_intron' OR cvterm.name = 'group_IIA_intron' OR cvterm.name = 'group_IIB_intron' OR cvterm.name = 'U2_intron' OR cvterm.name = 'U12_intron' OR cvterm.name = 'archaeal_intron' OR cvterm.name = 'tRNA_intron' OR cvterm.name = 'five_prime_clip' OR cvterm.name = 'three_prime_clip' OR cvterm.name = 'major_TSS' OR cvterm.name = 'minor_TSS' OR cvterm.name = 'transcribed_spacer_region' OR cvterm.name = 'internal_transcribed_spacer_region' OR cvterm.name = 'external_transcribed_spacer_region' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'branch_site' OR cvterm.name = 'polypyrimidine_tract' OR cvterm.name = 'internal_guide_sequence' OR cvterm.name = 'mirtron' OR cvterm.name = 'pre_miRNA' OR cvterm.name = 'miRNA_stem' OR cvterm.name = 'miRNA_loop' OR cvterm.name = 'miRNA_antiguide' OR cvterm.name = 'noncoding_region_of_exon' OR cvterm.name = 'coding_region_of_exon' OR cvterm.name = 'three_prime_coding_exon_noncoding_region' OR cvterm.name = 'five_prime_coding_exon_noncoding_region' OR cvterm.name = 'five_prime_coding_exon_coding_region' OR cvterm.name = 'three_prime_coding_exon_coding_region' OR cvterm.name = 'mature_protein_region' OR cvterm.name = 'immature_peptide_region' OR cvterm.name = 'compositionally_biased_region_of_peptide' OR cvterm.name = 'polypeptide_structural_region' OR cvterm.name = 'polypeptide_variation_site' OR cvterm.name = 'peptide_localization_signal' OR cvterm.name = 'cleaved_peptide_region' OR cvterm.name = 'hydrophobic_region_of_peptide' OR cvterm.name = 'polypeptide_conserved_region' OR cvterm.name = 'active_peptide' OR cvterm.name = 'polypeptide_domain' OR cvterm.name = 'membrane_structure' OR cvterm.name = 'extramembrane_polypeptide_region' OR cvterm.name = 'intramembrane_polypeptide_region' OR cvterm.name = 'polypeptide_secondary_structure' OR cvterm.name = 'polypeptide_structural_motif' OR cvterm.name = 'intrinsically_unstructured_polypeptide_region' OR cvterm.name = 'cytoplasmic_polypeptide_region' OR cvterm.name = 'non_cytoplasmic_polypeptide_region' OR cvterm.name = 'membrane_peptide_loop' OR cvterm.name = 'transmembrane_polypeptide_region' OR cvterm.name = 'asx_motif' OR cvterm.name = 'beta_bulge' OR cvterm.name = 'beta_bulge_loop' OR cvterm.name = 'beta_strand' OR cvterm.name = 'peptide_helix' OR cvterm.name = 'polypeptide_nest_motif' OR cvterm.name = 'schellmann_loop' OR cvterm.name = 'serine_threonine_motif' OR cvterm.name = 'serine_threonine_staple_motif' OR cvterm.name = 'polypeptide_turn_motif' OR cvterm.name = 'catmat_left_handed_three' OR cvterm.name = 'catmat_left_handed_four' OR cvterm.name = 'catmat_right_handed_three' OR cvterm.name = 'catmat_right_handed_four' OR cvterm.name = 'alpha_beta_motif' OR cvterm.name = 'peptide_coil' OR cvterm.name = 'beta_bulge_loop_five' OR cvterm.name = 'beta_bulge_loop_six' OR cvterm.name = 'antiparallel_beta_strand' OR cvterm.name = 'parallel_beta_strand' OR cvterm.name = 'left_handed_peptide_helix' OR cvterm.name = 'right_handed_peptide_helix' OR cvterm.name = 'alpha_helix' OR cvterm.name = 'pi_helix' OR cvterm.name = 'three_ten_helix' OR cvterm.name = 'polypeptide_nest_left_right_motif' OR cvterm.name = 'polypeptide_nest_right_left_motif' OR cvterm.name = 'schellmann_loop_seven' OR cvterm.name = 'schellmann_loop_six' OR cvterm.name = 'asx_turn' OR cvterm.name = 'beta_turn' OR cvterm.name = 'gamma_turn' OR cvterm.name = 'serine_threonine_turn' OR cvterm.name = 'asx_turn_left_handed_type_one' OR cvterm.name = 'asx_turn_left_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_two' OR cvterm.name = 'asx_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_one' OR cvterm.name = 'beta_turn_left_handed_type_two' OR cvterm.name = 'beta_turn_right_handed_type_one' OR cvterm.name = 'beta_turn_right_handed_type_two' OR cvterm.name = 'beta_turn_type_six' OR cvterm.name = 'beta_turn_type_eight' OR cvterm.name = 'beta_turn_type_six_a' OR cvterm.name = 'beta_turn_type_six_b' OR cvterm.name = 'beta_turn_type_six_a_one' OR cvterm.name = 'beta_turn_type_six_a_two' OR cvterm.name = 'gamma_turn_classic' OR cvterm.name = 'gamma_turn_inverse' OR cvterm.name = 'st_turn_left_handed_type_one' OR cvterm.name = 'st_turn_left_handed_type_two' OR cvterm.name = 'st_turn_right_handed_type_one' OR cvterm.name = 'st_turn_right_handed_type_two' OR cvterm.name = 'coiled_coil' OR cvterm.name = 'helix_turn_helix' OR cvterm.name = 'natural_variant_site' OR cvterm.name = 'mutated_variant_site' OR cvterm.name = 'alternate_sequence_site' OR cvterm.name = 'signal_peptide' OR cvterm.name = 'transit_peptide' OR cvterm.name = 'nuclear_localization_signal' OR cvterm.name = 'endosomal_localization_signal' OR cvterm.name = 'lysosomal_localization_signal' OR cvterm.name = 'nuclear_export_signal' OR cvterm.name = 'nuclear_rim_localization_signal' OR cvterm.name = 'cleaved_initiator_methionine' OR cvterm.name = 'intein' OR cvterm.name = 'propeptide_cleavage_site' OR cvterm.name = 'propeptide' OR cvterm.name = 'cleaved_for_gpi_anchor_region' OR cvterm.name = 'lipoprotein_signal_peptide' OR cvterm.name = 'n_terminal_region' OR cvterm.name = 'c_terminal_region' OR cvterm.name = 'central_hydrophobic_region_of_signal_peptide' OR cvterm.name = 'polypeptide_domain' OR cvterm.name = 'polypeptide_motif' OR cvterm.name = 'polypeptide_repeat' OR cvterm.name = 'biochemical_region_of_peptide' OR cvterm.name = 'polypeptide_conserved_motif' OR cvterm.name = 'post_translationally_modified_region' OR cvterm.name = 'conformational_switch' OR cvterm.name = 'molecular_contact_region' OR cvterm.name = 'polypeptide_binding_motif' OR cvterm.name = 'polypeptide_catalytic_motif' OR cvterm.name = 'histone_modification' OR cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'non_transcribed_region' OR cvterm.name = 'gene_fragment' OR cvterm.name = 'TSS_region' OR cvterm.name = 'gene_segment' OR cvterm.name = 'pseudogenic_gene_segment' OR cvterm.name = 'mobile_intron' OR cvterm.name = 'extrachromosomal_mobile_genetic_element' OR cvterm.name = 'integrated_mobile_genetic_element' OR cvterm.name = 'natural_transposable_element' OR cvterm.name = 'viral_sequence' OR cvterm.name = 'natural_plasmid' OR cvterm.name = 'phage_sequence' OR cvterm.name = 'ds_RNA_viral_sequence' OR cvterm.name = 'ds_DNA_viral_sequence' OR cvterm.name = 'ss_RNA_viral_sequence' OR cvterm.name = 'negative_sense_ssRNA_viral_sequence' OR cvterm.name = 'positive_sense_ssRNA_viral_sequence' OR cvterm.name = 'ambisense_ssRNA_viral_sequence' OR cvterm.name = 'transposable_element' OR cvterm.name = 'proviral_region' OR cvterm.name = 'integron' OR cvterm.name = 'genomic_island' OR cvterm.name = 'integrated_plasmid' OR cvterm.name = 'cointegrated_plasmid' OR cvterm.name = 'retrotransposon' OR cvterm.name = 'DNA_transposon' OR cvterm.name = 'foreign_transposable_element' OR cvterm.name = 'transgenic_transposable_element' OR cvterm.name = 'natural_transposable_element' OR cvterm.name = 'engineered_transposable_element' OR cvterm.name = 'nested_transposon' OR cvterm.name = 'LTR_retrotransposon' OR cvterm.name = 'non_LTR_retrotransposon' OR cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'terminal_inverted_repeat_element' OR cvterm.name = 'foldback_element' OR cvterm.name = 'conjugative_transposon' OR cvterm.name = 'helitron' OR cvterm.name = 'p_element' OR cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'prophage' OR cvterm.name = 'pathogenic_island' OR cvterm.name = 'metabolic_island' OR cvterm.name = 'adaptive_island' OR cvterm.name = 'symbiosis_island' OR cvterm.name = 'cryptic_prophage' OR cvterm.name = 'defective_conjugative_transposon' OR cvterm.name = 'plasmid' OR cvterm.name = 'chromosome' OR cvterm.name = 'vector_replicon' OR cvterm.name = 'maxicircle' OR cvterm.name = 'minicircle' OR cvterm.name = 'viral_sequence' OR cvterm.name = 'engineered_plasmid' OR cvterm.name = 'episome' OR cvterm.name = 'natural_plasmid' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'gene_trap_construct' OR cvterm.name = 'promoter_trap_construct' OR cvterm.name = 'enhancer_trap_construct' OR cvterm.name = 'engineered_episome' OR cvterm.name = 'mitochondrial_chromosome' OR cvterm.name = 'chloroplast_chromosome' OR cvterm.name = 'chromoplast_chromosome' OR cvterm.name = 'cyanelle_chromosome' OR cvterm.name = 'leucoplast_chromosome' OR cvterm.name = 'macronuclear_chromosome' OR cvterm.name = 'micronuclear_chromosome' OR cvterm.name = 'nuclear_chromosome' OR cvterm.name = 'nucleomorphic_chromosome' OR cvterm.name = 'DNA_chromosome' OR cvterm.name = 'RNA_chromosome' OR cvterm.name = 'apicoplast_chromosome' OR cvterm.name = 'double_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_DNA_chromosome' OR cvterm.name = 'linear_double_stranded_DNA_chromosome' OR cvterm.name = 'circular_double_stranded_DNA_chromosome' OR cvterm.name = 'linear_single_stranded_DNA_chromosome' OR cvterm.name = 'circular_single_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_RNA_chromosome' OR cvterm.name = 'double_stranded_RNA_chromosome' OR cvterm.name = 'linear_single_stranded_RNA_chromosome' OR cvterm.name = 'circular_single_stranded_RNA_chromosome' OR cvterm.name = 'linear_double_stranded_RNA_chromosome' OR cvterm.name = 'circular_double_stranded_RNA_chromosome' OR cvterm.name = 'YAC' OR cvterm.name = 'BAC' OR cvterm.name = 'PAC' OR cvterm.name = 'cosmid' OR cvterm.name = 'phagemid' OR cvterm.name = 'fosmid' OR cvterm.name = 'lambda_vector' OR cvterm.name = 'plasmid_vector' OR cvterm.name = 'targeting_vector' OR cvterm.name = 'phage_sequence' OR cvterm.name = 'ds_RNA_viral_sequence' OR cvterm.name = 'ds_DNA_viral_sequence' OR cvterm.name = 'ss_RNA_viral_sequence' OR cvterm.name = 'negative_sense_ssRNA_viral_sequence' OR cvterm.name = 'positive_sense_ssRNA_viral_sequence' OR cvterm.name = 'ambisense_ssRNA_viral_sequence' OR cvterm.name = 'modified_RNA_base_feature' OR cvterm.name = 'inosine' OR cvterm.name = 'seven_methylguanine' OR cvterm.name = 'ribothymidine' OR cvterm.name = 'modified_adenosine' OR cvterm.name = 'modified_cytidine' OR cvterm.name = 'modified_guanosine' OR cvterm.name = 'modified_uridine' OR cvterm.name = 'modified_inosine' OR cvterm.name = 'methylinosine' OR cvterm.name = 'one_methylinosine' OR cvterm.name = 'one_two_prime_O_dimethylinosine' OR cvterm.name = 'two_prime_O_methylinosine' OR cvterm.name = 'one_methyladenosine' OR cvterm.name = 'two_methyladenosine' OR cvterm.name = 'N6_methyladenosine' OR cvterm.name = 'two_prime_O_methyladenosine' OR cvterm.name = 'two_methylthio_N6_methyladenosine' OR cvterm.name = 'N6_isopentenyladenosine' OR cvterm.name = 'two_methylthio_N6_isopentenyladenosine' OR cvterm.name = 'N6_cis_hydroxyisopentenyl_adenosine' OR cvterm.name = 'two_methylthio_N6_cis_hydroxyisopentenyl_adenosine' OR cvterm.name = 'N6_glycinylcarbamoyladenosine' OR cvterm.name = 'N6_threonylcarbamoyladenosine' OR cvterm.name = 'two_methylthio_N6_threonyl_carbamoyladenosine' OR cvterm.name = 'N6_methyl_N6_threonylcarbamoyladenosine' OR cvterm.name = 'N6_hydroxynorvalylcarbamoyladenosine' OR cvterm.name = 'two_methylthio_N6_hydroxynorvalyl_carbamoyladenosine' OR cvterm.name = 'two_prime_O_ribosyladenosine_phosphate' OR cvterm.name = 'N6_N6_dimethyladenosine' OR cvterm.name = 'N6_2_prime_O_dimethyladenosine' OR cvterm.name = 'N6_N6_2_prime_O_trimethyladenosine' OR cvterm.name = 'one_two_prime_O_dimethyladenosine' OR cvterm.name = 'N6_acetyladenosine' OR cvterm.name = 'three_methylcytidine' OR cvterm.name = 'five_methylcytidine' OR cvterm.name = 'two_prime_O_methylcytidine' OR cvterm.name = 'two_thiocytidine' OR cvterm.name = 'N4_acetylcytidine' OR cvterm.name = 'five_formylcytidine' OR cvterm.name = 'five_two_prime_O_dimethylcytidine' OR cvterm.name = 'N4_acetyl_2_prime_O_methylcytidine' OR cvterm.name = 'lysidine' OR cvterm.name = 'N4_methylcytidine' OR cvterm.name = 'N4_2_prime_O_dimethylcytidine' OR cvterm.name = 'five_hydroxymethylcytidine' OR cvterm.name = 'five_formyl_two_prime_O_methylcytidine' OR cvterm.name = 'N4_N4_2_prime_O_trimethylcytidine' OR cvterm.name = 'seven_deazaguanosine' OR cvterm.name = 'one_methylguanosine' OR cvterm.name = 'N2_methylguanosine' OR cvterm.name = 'seven_methylguanosine' OR cvterm.name = 'two_prime_O_methylguanosine' OR cvterm.name = 'N2_N2_dimethylguanosine' OR cvterm.name = 'N2_2_prime_O_dimethylguanosine' OR cvterm.name = 'N2_N2_2_prime_O_trimethylguanosine' OR cvterm.name = 'two_prime_O_ribosylguanosine_phosphate' OR cvterm.name = 'wybutosine' OR cvterm.name = 'peroxywybutosine' OR cvterm.name = 'hydroxywybutosine' OR cvterm.name = 'undermodified_hydroxywybutosine' OR cvterm.name = 'wyosine' OR cvterm.name = 'methylwyosine' OR cvterm.name = 'N2_7_dimethylguanosine' OR cvterm.name = 'N2_N2_7_trimethylguanosine' OR cvterm.name = 'one_two_prime_O_dimethylguanosine' OR cvterm.name = 'four_demethylwyosine' OR cvterm.name = 'isowyosine' OR cvterm.name = 'N2_7_2prirme_O_trimethylguanosine' OR cvterm.name = 'queuosine' OR cvterm.name = 'epoxyqueuosine' OR cvterm.name = 'galactosyl_queuosine' OR cvterm.name = 'mannosyl_queuosine' OR cvterm.name = 'seven_cyano_seven_deazaguanosine' OR cvterm.name = 'seven_aminomethyl_seven_deazaguanosine' OR cvterm.name = 'archaeosine' OR cvterm.name = 'dihydrouridine' OR cvterm.name = 'pseudouridine' OR cvterm.name = 'five_methyluridine' OR cvterm.name = 'two_prime_O_methyluridine' OR cvterm.name = 'five_two_prime_O_dimethyluridine' OR cvterm.name = 'one_methylpseudouridine' OR cvterm.name = 'two_prime_O_methylpseudouridine' OR cvterm.name = 'two_thiouridine' OR cvterm.name = 'four_thiouridine' OR cvterm.name = 'five_methyl_2_thiouridine' OR cvterm.name = 'two_thio_two_prime_O_methyluridine' OR cvterm.name = 'three_three_amino_three_carboxypropyl_uridine' OR cvterm.name = 'five_hydroxyuridine' OR cvterm.name = 'five_methoxyuridine' OR cvterm.name = 'uridine_five_oxyacetic_acid' OR cvterm.name = 'uridine_five_oxyacetic_acid_methyl_ester' OR cvterm.name = 'five_carboxyhydroxymethyl_uridine' OR cvterm.name = 'five_carboxyhydroxymethyl_uridine_methyl_ester' OR cvterm.name = 'five_methoxycarbonylmethyluridine' OR cvterm.name = 'five_methoxycarbonylmethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_methoxycarbonylmethyl_two_thiouridine' OR cvterm.name = 'five_aminomethyl_two_thiouridine' OR cvterm.name = 'five_methylaminomethyluridine' OR cvterm.name = 'five_methylaminomethyl_two_thiouridine' OR cvterm.name = 'five_methylaminomethyl_two_selenouridine' OR cvterm.name = 'five_carbamoylmethyluridine' OR cvterm.name = 'five_carbamoylmethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_carboxymethylaminomethyluridine' OR cvterm.name = 'five_carboxymethylaminomethyl_two_prime_O_methyluridine' OR cvterm.name = 'five_carboxymethylaminomethyl_two_thiouridine' OR cvterm.name = 'three_methyluridine' OR cvterm.name = 'one_methyl_three_three_amino_three_carboxypropyl_pseudouridine' OR cvterm.name = 'five_carboxymethyluridine' OR cvterm.name = 'three_two_prime_O_dimethyluridine' OR cvterm.name = 'five_methyldihydrouridine' OR cvterm.name = 'three_methylpseudouridine' OR cvterm.name = 'five_taurinomethyluridine' OR cvterm.name = 'five_taurinomethyl_two_thiouridine' OR cvterm.name = 'five_isopentenylaminomethyl_uridine' OR cvterm.name = 'five_isopentenylaminomethyl_two_thiouridine' OR cvterm.name = 'five_isopentenylaminomethyl_two_prime_O_methyluridine' OR cvterm.name = 'catalytic_residue' OR cvterm.name = 'modified_amino_acid_feature' OR cvterm.name = 'alanine' OR cvterm.name = 'valine' OR cvterm.name = 'leucine' OR cvterm.name = 'isoleucine' OR cvterm.name = 'proline' OR cvterm.name = 'tryptophan' OR cvterm.name = 'phenylalanine' OR cvterm.name = 'methionine' OR cvterm.name = 'glycine' OR cvterm.name = 'serine' OR cvterm.name = 'threonine' OR cvterm.name = 'tyrosine' OR cvterm.name = 'cysteine' OR cvterm.name = 'glutamine' OR cvterm.name = 'asparagine' OR cvterm.name = 'lysine' OR cvterm.name = 'arginine' OR cvterm.name = 'histidine' OR cvterm.name = 'aspartic_acid' OR cvterm.name = 'glutamic_acid' OR cvterm.name = 'selenocysteine' OR cvterm.name = 'pyrrolysine' OR cvterm.name = 'modified_glycine' OR cvterm.name = 'modified_L_alanine' OR cvterm.name = 'modified_L_asparagine' OR cvterm.name = 'modified_L_aspartic_acid' OR cvterm.name = 'modified_L_cysteine' OR cvterm.name = 'modified_L_glutamic_acid' OR cvterm.name = 'modified_L_threonine' OR cvterm.name = 'modified_L_tryptophan' OR cvterm.name = 'modified_L_glutamine' OR cvterm.name = 'modified_L_methionine' OR cvterm.name = 'modified_L_isoleucine' OR cvterm.name = 'modified_L_phenylalanine' OR cvterm.name = 'modified_L_histidine' OR cvterm.name = 'modified_L_serine' OR cvterm.name = 'modified_L_lysine' OR cvterm.name = 'modified_L_leucine' OR cvterm.name = 'modified_L_selenocysteine' OR cvterm.name = 'modified_L_valine' OR cvterm.name = 'modified_L_proline' OR cvterm.name = 'modified_L_tyrosine' OR cvterm.name = 'modified_L_arginine' OR cvterm.name = 'heritable_phenotypic_marker' OR cvterm.name = 'DArT_marker' OR cvterm.name = 'nucleotide_motif' OR cvterm.name = 'DNA_motif' OR cvterm.name = 'RNA_motif' OR cvterm.name = 'PSE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'minus_10_signal' OR cvterm.name = 'minus_35_signal' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'retinoic_acid_responsive_element' OR cvterm.name = 'promoter_element' OR cvterm.name = 'DCE_SI' OR cvterm.name = 'DCE_SII' OR cvterm.name = 'DCE_SIII' OR cvterm.name = 'minus_12_signal' OR cvterm.name = 'minus_24_signal' OR cvterm.name = 'GC_rich_promoter_region' OR cvterm.name = 'DMv4_motif' OR cvterm.name = 'DMv5_motif' OR cvterm.name = 'DMv3_motif' OR cvterm.name = 'DMv2_motif' OR cvterm.name = 'DPE1_motif' OR cvterm.name = 'DMv1_motif' OR cvterm.name = 'NDM2_motif' OR cvterm.name = 'NDM3_motif' OR cvterm.name = 'core_promoter_element' OR cvterm.name = 'regulatory_promoter_element' OR cvterm.name = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BREu_motif' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'MTE' OR cvterm.name = 'BREd_motif' OR cvterm.name = 'DCE' OR cvterm.name = 'intermediate_element' OR cvterm.name = 'RNA_polymerase_II_TATA_box' OR cvterm.name = 'RNA_polymerase_III_TATA_box' OR cvterm.name = 'A_box_type_1' OR cvterm.name = 'A_box_type_2' OR cvterm.name = 'proximal_promoter_element' OR cvterm.name = 'distal_promoter_element' OR cvterm.name = 'RNA_internal_loop' OR cvterm.name = 'A_minor_RNA_motif' OR cvterm.name = 'RNA_junction_loop' OR cvterm.name = 'hammerhead_ribozyme' OR cvterm.name = 'asymmetric_RNA_internal_loop' OR cvterm.name = 'symmetric_RNA_internal_loop' OR cvterm.name = 'K_turn_RNA_motif' OR cvterm.name = 'sarcin_like_RNA_motif' OR cvterm.name = 'RNA_hook_turn' OR cvterm.name = 'blunt_end_restriction_enzyme_cleavage_site' OR cvterm.name = 'sticky_end_restriction_enzyme_cleavage_site' OR cvterm.name = 'modified_base' OR cvterm.name = 'epigenetically_modified_gene' OR cvterm.name = 'histone_modification' OR cvterm.name = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'gene_rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted_gene' OR cvterm.name = 'paternally_imprinted_gene' OR cvterm.name = 'allelically_excluded_gene' OR cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'operon' OR cvterm.name = 'mating_type_region' OR cvterm.name = 'gene_array' OR cvterm.name = 'gene_subarray' OR cvterm.name = 'gene_cassette_array' OR cvterm.name = 'regulon' OR cvterm.name = 'sequence_length_variation' OR cvterm.name = 'MNP' OR cvterm.name = 'SNV' OR cvterm.name = 'complex_substitution' OR cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'SNP' OR cvterm.name = 'point_mutation' OR cvterm.name = 'transition' OR cvterm.name = 'transversion' OR cvterm.name = 'pyrimidine_transition' OR cvterm.name = 'purine_transition' OR cvterm.name = 'C_to_T_transition' OR cvterm.name = 'T_to_C_transition' OR cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'pyrimidine_to_purine_transversion' OR cvterm.name = 'purine_to_pyrimidine_transversion' OR cvterm.name = 'C_to_A_transversion' OR cvterm.name = 'C_to_G_transversion' OR cvterm.name = 'T_to_A_transversion' OR cvterm.name = 'T_to_G_transversion' OR cvterm.name = 'A_to_C_transversion' OR cvterm.name = 'A_to_T_transversion' OR cvterm.name = 'G_to_C_transversion' OR cvterm.name = 'G_to_T_transversion' OR cvterm.name = 'biological_region';
  22868. --- ************************************************
  22869. --- *** relation: topologically_defined_region ***
  22870. --- *** relation type: VIEW ***
  22871. --- *** ***
  22872. --- *** A region that is defined according to it ***
  22873. --- *** s relations with other regions within th ***
  22874. --- *** e same sequence. ***
  22875. --- ************************************************
  22876. ---
  22877. CREATE VIEW topologically_defined_region AS
  22878. SELECT
  22879. feature_id AS topologically_defined_region_id,
  22880. feature.*
  22881. FROM
  22882. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22883. WHERE cvterm.name = 'flanking_region' OR cvterm.name = 'repeat_component' OR cvterm.name = 'transposable_element_flanking_region' OR cvterm.name = 'five_prime_flanking_region' OR cvterm.name = 'three_prime_flanking_region' OR cvterm.name = 'non_LTR_retrotransposon_polymeric_tract' OR cvterm.name = 'LTR_component' OR cvterm.name = 'repeat_fragment' OR cvterm.name = 'transposon_fragment' OR cvterm.name = 'U5_LTR_region' OR cvterm.name = 'R_LTR_region' OR cvterm.name = 'U3_LTR_region' OR cvterm.name = 'three_prime_LTR_component' OR cvterm.name = 'five_prime_LTR_component' OR cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'R_three_prime_LTR_region' OR cvterm.name = 'U3_three_prime_LTR_region' OR cvterm.name = 'U5_three_prime_LTR_region' OR cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'topologically_defined_region';
  22884. --- ************************************************
  22885. --- *** relation: translocation_breakpoint ***
  22886. --- *** relation type: VIEW ***
  22887. --- *** ***
  22888. --- *** The point within a chromosome where a tr ***
  22889. --- *** anslocation begins or ends. ***
  22890. --- ************************************************
  22891. ---
  22892. CREATE VIEW translocation_breakpoint AS
  22893. SELECT
  22894. feature_id AS translocation_breakpoint_id,
  22895. feature.*
  22896. FROM
  22897. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22898. WHERE cvterm.name = 'translocation_breakpoint';
  22899. --- ************************************************
  22900. --- *** relation: insertion_breakpoint ***
  22901. --- *** relation type: VIEW ***
  22902. --- *** ***
  22903. --- *** The point within a chromosome where a in ***
  22904. --- *** sertion begins or ends. ***
  22905. --- ************************************************
  22906. ---
  22907. CREATE VIEW insertion_breakpoint AS
  22908. SELECT
  22909. feature_id AS insertion_breakpoint_id,
  22910. feature.*
  22911. FROM
  22912. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22913. WHERE cvterm.name = 'insertion_breakpoint';
  22914. --- ************************************************
  22915. --- *** relation: deletion_breakpoint ***
  22916. --- *** relation type: VIEW ***
  22917. --- *** ***
  22918. --- *** The point within a chromosome where a de ***
  22919. --- *** letion begins or ends. ***
  22920. --- ************************************************
  22921. ---
  22922. CREATE VIEW deletion_breakpoint AS
  22923. SELECT
  22924. feature_id AS deletion_breakpoint_id,
  22925. feature.*
  22926. FROM
  22927. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22928. WHERE cvterm.name = 'deletion_breakpoint';
  22929. --- ************************************************
  22930. --- *** relation: five_prime_flanking_region ***
  22931. --- *** relation type: VIEW ***
  22932. --- *** ***
  22933. --- *** A flanking region located five prime of ***
  22934. --- *** a specific region. ***
  22935. --- ************************************************
  22936. ---
  22937. CREATE VIEW five_prime_flanking_region AS
  22938. SELECT
  22939. feature_id AS five_prime_flanking_region_id,
  22940. feature.*
  22941. FROM
  22942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22943. WHERE cvterm.name = 'five_prime_flanking_region';
  22944. --- ************************************************
  22945. --- *** relation: three_prime_flanking_region ***
  22946. --- *** relation type: VIEW ***
  22947. --- *** ***
  22948. --- *** A flanking region located three prime of ***
  22949. --- *** a specific region. ***
  22950. --- ************************************************
  22951. ---
  22952. CREATE VIEW three_prime_flanking_region AS
  22953. SELECT
  22954. feature_id AS three_prime_flanking_region_id,
  22955. feature.*
  22956. FROM
  22957. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22958. WHERE cvterm.name = 'three_prime_flanking_region';
  22959. --- ************************************************
  22960. --- *** relation: transcribed_fragment ***
  22961. --- *** relation type: VIEW ***
  22962. --- *** ***
  22963. --- *** An experimental region, defined by a til ***
  22964. --- *** ing array experiment to be transcribed a ***
  22965. --- *** t some level. ***
  22966. --- ************************************************
  22967. ---
  22968. CREATE VIEW transcribed_fragment AS
  22969. SELECT
  22970. feature_id AS transcribed_fragment_id,
  22971. feature.*
  22972. FROM
  22973. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22974. WHERE cvterm.name = 'transcribed_fragment';
  22975. --- ************************************************
  22976. --- *** relation: cis_splice_site ***
  22977. --- *** relation type: VIEW ***
  22978. --- *** ***
  22979. --- *** Intronic 2 bp region bordering exon. A s ***
  22980. --- *** plice_site that adjacent_to exon and ove ***
  22981. --- *** rlaps intron. ***
  22982. --- ************************************************
  22983. ---
  22984. CREATE VIEW cis_splice_site AS
  22985. SELECT
  22986. feature_id AS cis_splice_site_id,
  22987. feature.*
  22988. FROM
  22989. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22990. WHERE cvterm.name = 'five_prime_cis_splice_site' OR cvterm.name = 'three_prime_cis_splice_site' OR cvterm.name = 'recursive_splice_site' OR cvterm.name = 'canonical_five_prime_splice_site' OR cvterm.name = 'non_canonical_five_prime_splice_site' OR cvterm.name = 'canonical_three_prime_splice_site' OR cvterm.name = 'non_canonical_three_prime_splice_site' OR cvterm.name = 'cis_splice_site';
  22991. --- ************************************************
  22992. --- *** relation: trans_splice_site ***
  22993. --- *** relation type: VIEW ***
  22994. --- *** ***
  22995. --- *** Primary transcript region bordering tran ***
  22996. --- *** s-splice junction. ***
  22997. --- ************************************************
  22998. ---
  22999. CREATE VIEW trans_splice_site AS
  23000. SELECT
  23001. feature_id AS trans_splice_site_id,
  23002. feature.*
  23003. FROM
  23004. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23005. WHERE cvterm.name = 'trans_splice_acceptor_site' OR cvterm.name = 'trans_splice_donor_site' OR cvterm.name = 'SL1_acceptor_site' OR cvterm.name = 'SL2_acceptor_site' OR cvterm.name = 'SL3_acceptor_site' OR cvterm.name = 'SL4_acceptor_site' OR cvterm.name = 'SL5_acceptor_site' OR cvterm.name = 'SL6_acceptor_site' OR cvterm.name = 'SL7_acceptor_site' OR cvterm.name = 'SL8_acceptor_site' OR cvterm.name = 'SL9_acceptor_site' OR cvterm.name = 'SL10_accceptor_site' OR cvterm.name = 'SL11_acceptor_site' OR cvterm.name = 'SL12_acceptor_site' OR cvterm.name = 'trans_splice_site';
  23006. --- ************************************************
  23007. --- *** relation: splice_junction ***
  23008. --- *** relation type: VIEW ***
  23009. --- *** ***
  23010. --- *** The boundary between an intron and an ex ***
  23011. --- *** on. ***
  23012. --- ************************************************
  23013. ---
  23014. CREATE VIEW splice_junction AS
  23015. SELECT
  23016. feature_id AS splice_junction_id,
  23017. feature.*
  23018. FROM
  23019. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23020. WHERE cvterm.name = 'splice_junction';
  23021. --- ************************************************
  23022. --- *** relation: conformational_switch ***
  23023. --- *** relation type: VIEW ***
  23024. --- *** ***
  23025. --- *** A region of a polypeptide, involved in t ***
  23026. --- *** he transition from one conformational st ***
  23027. --- *** ate to another. ***
  23028. --- ************************************************
  23029. ---
  23030. CREATE VIEW conformational_switch AS
  23031. SELECT
  23032. feature_id AS conformational_switch_id,
  23033. feature.*
  23034. FROM
  23035. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23036. WHERE cvterm.name = 'conformational_switch';
  23037. --- ************************************************
  23038. --- *** relation: dye_terminator_read ***
  23039. --- *** relation type: VIEW ***
  23040. --- *** ***
  23041. --- *** A read produced by the dye terminator me ***
  23042. --- *** thod of sequencing. ***
  23043. --- ************************************************
  23044. ---
  23045. CREATE VIEW dye_terminator_read AS
  23046. SELECT
  23047. feature_id AS dye_terminator_read_id,
  23048. feature.*
  23049. FROM
  23050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23051. WHERE cvterm.name = 'dye_terminator_read';
  23052. --- ************************************************
  23053. --- *** relation: pyrosequenced_read ***
  23054. --- *** relation type: VIEW ***
  23055. --- *** ***
  23056. --- *** A read produced by pyrosequencing techno ***
  23057. --- *** logy. ***
  23058. --- ************************************************
  23059. ---
  23060. CREATE VIEW pyrosequenced_read AS
  23061. SELECT
  23062. feature_id AS pyrosequenced_read_id,
  23063. feature.*
  23064. FROM
  23065. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23066. WHERE cvterm.name = 'pyrosequenced_read';
  23067. --- ************************************************
  23068. --- *** relation: ligation_based_read ***
  23069. --- *** relation type: VIEW ***
  23070. --- *** ***
  23071. --- *** A read produced by ligation based sequen ***
  23072. --- *** cing technologies. ***
  23073. --- ************************************************
  23074. ---
  23075. CREATE VIEW ligation_based_read AS
  23076. SELECT
  23077. feature_id AS ligation_based_read_id,
  23078. feature.*
  23079. FROM
  23080. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23081. WHERE cvterm.name = 'ligation_based_read';
  23082. --- ************************************************
  23083. --- *** relation: polymerase_synthesis_read ***
  23084. --- *** relation type: VIEW ***
  23085. --- *** ***
  23086. --- *** A read produced by the polymerase based ***
  23087. --- *** sequence by synthesis method. ***
  23088. --- ************************************************
  23089. ---
  23090. CREATE VIEW polymerase_synthesis_read AS
  23091. SELECT
  23092. feature_id AS polymerase_synthesis_read_id,
  23093. feature.*
  23094. FROM
  23095. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23096. WHERE cvterm.name = 'polymerase_synthesis_read';
  23097. --- ************************************************
  23098. --- *** relation: cis_regulatory_frameshift_element ***
  23099. --- *** relation type: VIEW ***
  23100. --- *** ***
  23101. --- *** A structural region in an RNA molecule w ***
  23102. --- *** hich promotes ribosomal frameshifting of ***
  23103. --- *** cis coding sequence. ***
  23104. --- ************************************************
  23105. ---
  23106. CREATE VIEW cis_regulatory_frameshift_element AS
  23107. SELECT
  23108. feature_id AS cis_regulatory_frameshift_element_id,
  23109. feature.*
  23110. FROM
  23111. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23112. WHERE cvterm.name = 'cis_regulatory_frameshift_element';
  23113. --- ************************************************
  23114. --- *** relation: expressed_sequence_assembly ***
  23115. --- *** relation type: VIEW ***
  23116. --- *** ***
  23117. --- *** A sequence assembly derived from express ***
  23118. --- *** ed sequences. ***
  23119. --- ************************************************
  23120. ---
  23121. CREATE VIEW expressed_sequence_assembly AS
  23122. SELECT
  23123. feature_id AS expressed_sequence_assembly_id,
  23124. feature.*
  23125. FROM
  23126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23127. WHERE cvterm.name = 'expressed_sequence_assembly';
  23128. --- ************************************************
  23129. --- *** relation: dna_binding_site ***
  23130. --- *** relation type: VIEW ***
  23131. --- *** ***
  23132. --- *** A binding site that, in the molecule, in ***
  23133. --- *** teracts selectively and non-covalently w ***
  23134. --- *** ith DNA. ***
  23135. --- ************************************************
  23136. ---
  23137. CREATE VIEW dna_binding_site AS
  23138. SELECT
  23139. feature_id AS dna_binding_site_id,
  23140. feature.*
  23141. FROM
  23142. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23143. WHERE cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'DNA_binding_site';
  23144. --- ************************************************
  23145. --- *** relation: cryptic_gene ***
  23146. --- *** relation type: VIEW ***
  23147. --- *** ***
  23148. --- *** A gene that is not transcribed under nor ***
  23149. --- *** mal conditions and is not critical to no ***
  23150. --- *** rmal cellular functioning. ***
  23151. --- ************************************************
  23152. ---
  23153. CREATE VIEW cryptic_gene AS
  23154. SELECT
  23155. feature_id AS cryptic_gene_id,
  23156. feature.*
  23157. FROM
  23158. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23159. WHERE cvterm.name = 'cryptogene' OR cvterm.name = 'cryptic_gene';
  23160. --- ************************************************
  23161. --- *** relation: three_prime_race_clone ***
  23162. --- *** relation type: VIEW ***
  23163. --- *** ***
  23164. --- *** A three prime RACE (Rapid Amplification ***
  23165. --- *** of cDNA Ends) clone is a cDNA clone copi ***
  23166. --- *** ed from the 3' end of an mRNA (using a p ***
  23167. --- *** oly-dT primer to capture the polyA tail ***
  23168. --- *** and a gene-specific or randomly primed 5 ***
  23169. --- *** ' primer), and spliced into a vector for ***
  23170. --- *** propagation in a suitable host. ***
  23171. --- ************************************************
  23172. ---
  23173. CREATE VIEW three_prime_race_clone AS
  23174. SELECT
  23175. feature_id AS three_prime_race_clone_id,
  23176. feature.*
  23177. FROM
  23178. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23179. WHERE cvterm.name = 'three_prime_RACE_clone';
  23180. --- ************************************************
  23181. --- *** relation: cassette_pseudogene ***
  23182. --- *** relation type: VIEW ***
  23183. --- *** ***
  23184. --- *** A cassette pseudogene is a kind of gene ***
  23185. --- *** in an inactive form which may recombine ***
  23186. --- *** at a telomeric locus to form a functiona ***
  23187. --- *** l copy. ***
  23188. --- ************************************************
  23189. ---
  23190. CREATE VIEW cassette_pseudogene AS
  23191. SELECT
  23192. feature_id AS cassette_pseudogene_id,
  23193. feature.*
  23194. FROM
  23195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23196. WHERE cvterm.name = 'cassette_pseudogene';
  23197. --- ************************************************
  23198. --- *** relation: alanine ***
  23199. --- *** relation type: VIEW ***
  23200. --- *** ***
  23201. --- ************************************************
  23202. ---
  23203. CREATE VIEW alanine AS
  23204. SELECT
  23205. feature_id AS alanine_id,
  23206. feature.*
  23207. FROM
  23208. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23209. WHERE cvterm.name = 'alanine';
  23210. --- ************************************************
  23211. --- *** relation: valine ***
  23212. --- *** relation type: VIEW ***
  23213. --- *** ***
  23214. --- ************************************************
  23215. ---
  23216. CREATE VIEW valine AS
  23217. SELECT
  23218. feature_id AS valine_id,
  23219. feature.*
  23220. FROM
  23221. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23222. WHERE cvterm.name = 'valine';
  23223. --- ************************************************
  23224. --- *** relation: leucine ***
  23225. --- *** relation type: VIEW ***
  23226. --- *** ***
  23227. --- ************************************************
  23228. ---
  23229. CREATE VIEW leucine AS
  23230. SELECT
  23231. feature_id AS leucine_id,
  23232. feature.*
  23233. FROM
  23234. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23235. WHERE cvterm.name = 'leucine';
  23236. --- ************************************************
  23237. --- *** relation: isoleucine ***
  23238. --- *** relation type: VIEW ***
  23239. --- *** ***
  23240. --- ************************************************
  23241. ---
  23242. CREATE VIEW isoleucine AS
  23243. SELECT
  23244. feature_id AS isoleucine_id,
  23245. feature.*
  23246. FROM
  23247. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23248. WHERE cvterm.name = 'isoleucine';
  23249. --- ************************************************
  23250. --- *** relation: proline ***
  23251. --- *** relation type: VIEW ***
  23252. --- *** ***
  23253. --- ************************************************
  23254. ---
  23255. CREATE VIEW proline AS
  23256. SELECT
  23257. feature_id AS proline_id,
  23258. feature.*
  23259. FROM
  23260. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23261. WHERE cvterm.name = 'proline';
  23262. --- ************************************************
  23263. --- *** relation: tryptophan ***
  23264. --- *** relation type: VIEW ***
  23265. --- *** ***
  23266. --- ************************************************
  23267. ---
  23268. CREATE VIEW tryptophan AS
  23269. SELECT
  23270. feature_id AS tryptophan_id,
  23271. feature.*
  23272. FROM
  23273. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23274. WHERE cvterm.name = 'tryptophan';
  23275. --- ************************************************
  23276. --- *** relation: phenylalanine ***
  23277. --- *** relation type: VIEW ***
  23278. --- *** ***
  23279. --- ************************************************
  23280. ---
  23281. CREATE VIEW phenylalanine AS
  23282. SELECT
  23283. feature_id AS phenylalanine_id,
  23284. feature.*
  23285. FROM
  23286. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23287. WHERE cvterm.name = 'phenylalanine';
  23288. --- ************************************************
  23289. --- *** relation: methionine ***
  23290. --- *** relation type: VIEW ***
  23291. --- *** ***
  23292. --- ************************************************
  23293. ---
  23294. CREATE VIEW methionine AS
  23295. SELECT
  23296. feature_id AS methionine_id,
  23297. feature.*
  23298. FROM
  23299. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23300. WHERE cvterm.name = 'methionine';
  23301. --- ************************************************
  23302. --- *** relation: glycine ***
  23303. --- *** relation type: VIEW ***
  23304. --- *** ***
  23305. --- ************************************************
  23306. ---
  23307. CREATE VIEW glycine AS
  23308. SELECT
  23309. feature_id AS glycine_id,
  23310. feature.*
  23311. FROM
  23312. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23313. WHERE cvterm.name = 'glycine';
  23314. --- ************************************************
  23315. --- *** relation: serine ***
  23316. --- *** relation type: VIEW ***
  23317. --- *** ***
  23318. --- ************************************************
  23319. ---
  23320. CREATE VIEW serine AS
  23321. SELECT
  23322. feature_id AS serine_id,
  23323. feature.*
  23324. FROM
  23325. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23326. WHERE cvterm.name = 'serine';
  23327. --- ************************************************
  23328. --- *** relation: threonine ***
  23329. --- *** relation type: VIEW ***
  23330. --- *** ***
  23331. --- ************************************************
  23332. ---
  23333. CREATE VIEW threonine AS
  23334. SELECT
  23335. feature_id AS threonine_id,
  23336. feature.*
  23337. FROM
  23338. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23339. WHERE cvterm.name = 'threonine';
  23340. --- ************************************************
  23341. --- *** relation: tyrosine ***
  23342. --- *** relation type: VIEW ***
  23343. --- *** ***
  23344. --- ************************************************
  23345. ---
  23346. CREATE VIEW tyrosine AS
  23347. SELECT
  23348. feature_id AS tyrosine_id,
  23349. feature.*
  23350. FROM
  23351. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23352. WHERE cvterm.name = 'tyrosine';
  23353. --- ************************************************
  23354. --- *** relation: cysteine ***
  23355. --- *** relation type: VIEW ***
  23356. --- *** ***
  23357. --- ************************************************
  23358. ---
  23359. CREATE VIEW cysteine AS
  23360. SELECT
  23361. feature_id AS cysteine_id,
  23362. feature.*
  23363. FROM
  23364. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23365. WHERE cvterm.name = 'cysteine';
  23366. --- ************************************************
  23367. --- *** relation: glutamine ***
  23368. --- *** relation type: VIEW ***
  23369. --- *** ***
  23370. --- ************************************************
  23371. ---
  23372. CREATE VIEW glutamine AS
  23373. SELECT
  23374. feature_id AS glutamine_id,
  23375. feature.*
  23376. FROM
  23377. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23378. WHERE cvterm.name = 'glutamine';
  23379. --- ************************************************
  23380. --- *** relation: asparagine ***
  23381. --- *** relation type: VIEW ***
  23382. --- *** ***
  23383. --- ************************************************
  23384. ---
  23385. CREATE VIEW asparagine AS
  23386. SELECT
  23387. feature_id AS asparagine_id,
  23388. feature.*
  23389. FROM
  23390. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23391. WHERE cvterm.name = 'asparagine';
  23392. --- ************************************************
  23393. --- *** relation: lysine ***
  23394. --- *** relation type: VIEW ***
  23395. --- *** ***
  23396. --- ************************************************
  23397. ---
  23398. CREATE VIEW lysine AS
  23399. SELECT
  23400. feature_id AS lysine_id,
  23401. feature.*
  23402. FROM
  23403. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23404. WHERE cvterm.name = 'lysine';
  23405. --- ************************************************
  23406. --- *** relation: arginine ***
  23407. --- *** relation type: VIEW ***
  23408. --- *** ***
  23409. --- ************************************************
  23410. ---
  23411. CREATE VIEW arginine AS
  23412. SELECT
  23413. feature_id AS arginine_id,
  23414. feature.*
  23415. FROM
  23416. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23417. WHERE cvterm.name = 'arginine';
  23418. --- ************************************************
  23419. --- *** relation: histidine ***
  23420. --- *** relation type: VIEW ***
  23421. --- *** ***
  23422. --- ************************************************
  23423. ---
  23424. CREATE VIEW histidine AS
  23425. SELECT
  23426. feature_id AS histidine_id,
  23427. feature.*
  23428. FROM
  23429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23430. WHERE cvterm.name = 'histidine';
  23431. --- ************************************************
  23432. --- *** relation: aspartic_acid ***
  23433. --- *** relation type: VIEW ***
  23434. --- *** ***
  23435. --- ************************************************
  23436. ---
  23437. CREATE VIEW aspartic_acid AS
  23438. SELECT
  23439. feature_id AS aspartic_acid_id,
  23440. feature.*
  23441. FROM
  23442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23443. WHERE cvterm.name = 'aspartic_acid';
  23444. --- ************************************************
  23445. --- *** relation: glutamic_acid ***
  23446. --- *** relation type: VIEW ***
  23447. --- *** ***
  23448. --- ************************************************
  23449. ---
  23450. CREATE VIEW glutamic_acid AS
  23451. SELECT
  23452. feature_id AS glutamic_acid_id,
  23453. feature.*
  23454. FROM
  23455. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23456. WHERE cvterm.name = 'glutamic_acid';
  23457. --- ************************************************
  23458. --- *** relation: selenocysteine ***
  23459. --- *** relation type: VIEW ***
  23460. --- *** ***
  23461. --- ************************************************
  23462. ---
  23463. CREATE VIEW selenocysteine AS
  23464. SELECT
  23465. feature_id AS selenocysteine_id,
  23466. feature.*
  23467. FROM
  23468. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23469. WHERE cvterm.name = 'selenocysteine';
  23470. --- ************************************************
  23471. --- *** relation: pyrrolysine ***
  23472. --- *** relation type: VIEW ***
  23473. --- *** ***
  23474. --- ************************************************
  23475. ---
  23476. CREATE VIEW pyrrolysine AS
  23477. SELECT
  23478. feature_id AS pyrrolysine_id,
  23479. feature.*
  23480. FROM
  23481. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23482. WHERE cvterm.name = 'pyrrolysine';
  23483. --- ************************************************
  23484. --- *** relation: transcribed_cluster ***
  23485. --- *** relation type: VIEW ***
  23486. --- *** ***
  23487. --- *** A region defined by a set of transcribed ***
  23488. --- *** sequences from the same gene or express ***
  23489. --- *** ed pseudogene. ***
  23490. --- ************************************************
  23491. ---
  23492. CREATE VIEW transcribed_cluster AS
  23493. SELECT
  23494. feature_id AS transcribed_cluster_id,
  23495. feature.*
  23496. FROM
  23497. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23498. WHERE cvterm.name = 'unigene_cluster' OR cvterm.name = 'transcribed_cluster';
  23499. --- ************************************************
  23500. --- *** relation: unigene_cluster ***
  23501. --- *** relation type: VIEW ***
  23502. --- *** ***
  23503. --- *** A kind of transcribed_cluster defined by ***
  23504. --- *** a set of transcribed sequences from the ***
  23505. --- *** a unique gene. ***
  23506. --- ************************************************
  23507. ---
  23508. CREATE VIEW unigene_cluster AS
  23509. SELECT
  23510. feature_id AS unigene_cluster_id,
  23511. feature.*
  23512. FROM
  23513. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23514. WHERE cvterm.name = 'unigene_cluster';
  23515. --- ************************************************
  23516. --- *** relation: crispr ***
  23517. --- *** relation type: VIEW ***
  23518. --- *** ***
  23519. --- *** Clustered Palindromic Repeats interspers ***
  23520. --- *** ed with bacteriophage derived spacer seq ***
  23521. --- *** uences. ***
  23522. --- ************************************************
  23523. ---
  23524. CREATE VIEW crispr AS
  23525. SELECT
  23526. feature_id AS crispr_id,
  23527. feature.*
  23528. FROM
  23529. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23530. WHERE cvterm.name = 'CRISPR';
  23531. --- ************************************************
  23532. --- *** relation: insulator_binding_site ***
  23533. --- *** relation type: VIEW ***
  23534. --- *** ***
  23535. --- *** A binding site that, in an insulator reg ***
  23536. --- *** ion of a nucleotide molecule, interacts ***
  23537. --- *** selectively and non-covalently with poly ***
  23538. --- *** peptide residues. ***
  23539. --- ************************************************
  23540. ---
  23541. CREATE VIEW insulator_binding_site AS
  23542. SELECT
  23543. feature_id AS insulator_binding_site_id,
  23544. feature.*
  23545. FROM
  23546. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23547. WHERE cvterm.name = 'insulator_binding_site';
  23548. --- ************************************************
  23549. --- *** relation: enhancer_binding_site ***
  23550. --- *** relation type: VIEW ***
  23551. --- *** ***
  23552. --- *** A binding site that, in the enhancer reg ***
  23553. --- *** ion of a nucleotide molecule, interacts ***
  23554. --- *** selectively and non-covalently with poly ***
  23555. --- *** peptide residues. ***
  23556. --- ************************************************
  23557. ---
  23558. CREATE VIEW enhancer_binding_site AS
  23559. SELECT
  23560. feature_id AS enhancer_binding_site_id,
  23561. feature.*
  23562. FROM
  23563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23564. WHERE cvterm.name = 'enhancer_binding_site';
  23565. --- ************************************************
  23566. --- *** relation: contig_collection ***
  23567. --- *** relation type: VIEW ***
  23568. --- *** ***
  23569. --- *** A collection of contigs. ***
  23570. --- ************************************************
  23571. ---
  23572. CREATE VIEW contig_collection AS
  23573. SELECT
  23574. feature_id AS contig_collection_id,
  23575. feature.*
  23576. FROM
  23577. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23578. WHERE cvterm.name = 'contig_collection';
  23579. --- ************************************************
  23580. --- *** relation: lincrna ***
  23581. --- *** relation type: VIEW ***
  23582. --- *** ***
  23583. --- *** A multiexonic non-coding RNA transcribed ***
  23584. --- *** by RNA polymerase II. ***
  23585. --- ************************************************
  23586. ---
  23587. CREATE VIEW lincrna AS
  23588. SELECT
  23589. feature_id AS lincrna_id,
  23590. feature.*
  23591. FROM
  23592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23593. WHERE cvterm.name = 'lincRNA';
  23594. --- ************************************************
  23595. --- *** relation: ust ***
  23596. --- *** relation type: VIEW ***
  23597. --- *** ***
  23598. --- *** An EST spanning part or all of the untra ***
  23599. --- *** nslated regions of a protein-coding tran ***
  23600. --- *** script. ***
  23601. --- ************************************************
  23602. ---
  23603. CREATE VIEW ust AS
  23604. SELECT
  23605. feature_id AS ust_id,
  23606. feature.*
  23607. FROM
  23608. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23609. WHERE cvterm.name = 'three_prime_UST' OR cvterm.name = 'five_prime_UST' OR cvterm.name = 'UST';
  23610. --- ************************************************
  23611. --- *** relation: three_prime_ust ***
  23612. --- *** relation type: VIEW ***
  23613. --- *** ***
  23614. --- *** A UST located in the 3'UTR of a protein- ***
  23615. --- *** coding transcript. ***
  23616. --- ************************************************
  23617. ---
  23618. CREATE VIEW three_prime_ust AS
  23619. SELECT
  23620. feature_id AS three_prime_ust_id,
  23621. feature.*
  23622. FROM
  23623. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23624. WHERE cvterm.name = 'three_prime_UST';
  23625. --- ************************************************
  23626. --- *** relation: five_prime_ust ***
  23627. --- *** relation type: VIEW ***
  23628. --- *** ***
  23629. --- *** An UST located in the 5'UTR of a protein ***
  23630. --- *** -coding transcript. ***
  23631. --- ************************************************
  23632. ---
  23633. CREATE VIEW five_prime_ust AS
  23634. SELECT
  23635. feature_id AS five_prime_ust_id,
  23636. feature.*
  23637. FROM
  23638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23639. WHERE cvterm.name = 'five_prime_UST';
  23640. --- ************************************************
  23641. --- *** relation: rst ***
  23642. --- *** relation type: VIEW ***
  23643. --- *** ***
  23644. --- *** A tag produced from a single sequencing ***
  23645. --- *** read from a RACE product; typically a fe ***
  23646. --- *** w hundred base pairs long. ***
  23647. --- ************************************************
  23648. ---
  23649. CREATE VIEW rst AS
  23650. SELECT
  23651. feature_id AS rst_id,
  23652. feature.*
  23653. FROM
  23654. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23655. WHERE cvterm.name = 'three_prime_RST' OR cvterm.name = 'five_prime_RST' OR cvterm.name = 'RST';
  23656. --- ************************************************
  23657. --- *** relation: three_prime_rst ***
  23658. --- *** relation type: VIEW ***
  23659. --- *** ***
  23660. --- *** A tag produced from a single sequencing ***
  23661. --- *** read from a 3'-RACE product; typically a ***
  23662. --- *** few hundred base pairs long. ***
  23663. --- ************************************************
  23664. ---
  23665. CREATE VIEW three_prime_rst AS
  23666. SELECT
  23667. feature_id AS three_prime_rst_id,
  23668. feature.*
  23669. FROM
  23670. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23671. WHERE cvterm.name = 'three_prime_RST';
  23672. --- ************************************************
  23673. --- *** relation: five_prime_rst ***
  23674. --- *** relation type: VIEW ***
  23675. --- *** ***
  23676. --- *** A tag produced from a single sequencing ***
  23677. --- *** read from a 5'-RACE product; typically a ***
  23678. --- *** few hundred base pairs long. ***
  23679. --- ************************************************
  23680. ---
  23681. CREATE VIEW five_prime_rst AS
  23682. SELECT
  23683. feature_id AS five_prime_rst_id,
  23684. feature.*
  23685. FROM
  23686. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23687. WHERE cvterm.name = 'five_prime_RST';
  23688. --- ************************************************
  23689. --- *** relation: ust_match ***
  23690. --- *** relation type: VIEW ***
  23691. --- *** ***
  23692. --- *** A match against an UST sequence. ***
  23693. --- ************************************************
  23694. ---
  23695. CREATE VIEW ust_match AS
  23696. SELECT
  23697. feature_id AS ust_match_id,
  23698. feature.*
  23699. FROM
  23700. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23701. WHERE cvterm.name = 'UST_match';
  23702. --- ************************************************
  23703. --- *** relation: rst_match ***
  23704. --- *** relation type: VIEW ***
  23705. --- *** ***
  23706. --- *** A match against an RST sequence. ***
  23707. --- ************************************************
  23708. ---
  23709. CREATE VIEW rst_match AS
  23710. SELECT
  23711. feature_id AS rst_match_id,
  23712. feature.*
  23713. FROM
  23714. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23715. WHERE cvterm.name = 'RST_match';
  23716. --- ************************************************
  23717. --- *** relation: primer_match ***
  23718. --- *** relation type: VIEW ***
  23719. --- *** ***
  23720. --- *** A nucleotide match to a primer sequence. ***
  23721. --- ************************************************
  23722. ---
  23723. CREATE VIEW primer_match AS
  23724. SELECT
  23725. feature_id AS primer_match_id,
  23726. feature.*
  23727. FROM
  23728. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23729. WHERE cvterm.name = 'primer_match';
  23730. --- ************************************************
  23731. --- *** relation: mirna_antiguide ***
  23732. --- *** relation type: VIEW ***
  23733. --- *** ***
  23734. --- *** A region of the pri miRNA that basepairs ***
  23735. --- *** with the guide to form the hairpin. ***
  23736. --- ************************************************
  23737. ---
  23738. CREATE VIEW mirna_antiguide AS
  23739. SELECT
  23740. feature_id AS mirna_antiguide_id,
  23741. feature.*
  23742. FROM
  23743. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23744. WHERE cvterm.name = 'miRNA_antiguide';
  23745. --- ************************************************
  23746. --- *** relation: trans_splice_junction ***
  23747. --- *** relation type: VIEW ***
  23748. --- *** ***
  23749. --- *** The boundary between the spliced leader ***
  23750. --- *** and the first exon of the mRNA. ***
  23751. --- ************************************************
  23752. ---
  23753. CREATE VIEW trans_splice_junction AS
  23754. SELECT
  23755. feature_id AS trans_splice_junction_id,
  23756. feature.*
  23757. FROM
  23758. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23759. WHERE cvterm.name = 'trans_splice_junction';
  23760. --- ************************************************
  23761. --- *** relation: outron ***
  23762. --- *** relation type: VIEW ***
  23763. --- *** ***
  23764. --- *** A region of a primary transcript, that i ***
  23765. --- *** s removed via trans splicing. ***
  23766. --- ************************************************
  23767. ---
  23768. CREATE VIEW outron AS
  23769. SELECT
  23770. feature_id AS outron_id,
  23771. feature.*
  23772. FROM
  23773. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23774. WHERE cvterm.name = 'outron';
  23775. --- ************************************************
  23776. --- *** relation: natural_plasmid ***
  23777. --- *** relation type: VIEW ***
  23778. --- *** ***
  23779. --- *** A plasmid that occurs naturally. ***
  23780. --- ************************************************
  23781. ---
  23782. CREATE VIEW natural_plasmid AS
  23783. SELECT
  23784. feature_id AS natural_plasmid_id,
  23785. feature.*
  23786. FROM
  23787. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23788. WHERE cvterm.name = 'natural_plasmid';
  23789. --- ************************************************
  23790. --- *** relation: gene_trap_construct ***
  23791. --- *** relation type: VIEW ***
  23792. --- *** ***
  23793. --- *** A gene trap construct is a type of engin ***
  23794. --- *** eered plasmid which is designed to integ ***
  23795. --- *** rate into a genome and produce a fusion ***
  23796. --- *** transcript between exons of the gene int ***
  23797. --- *** o which it inserts and a reporter elemen ***
  23798. --- *** t in the construct. Gene traps contain a ***
  23799. --- *** splice acceptor, do not contain promote ***
  23800. --- *** r elements for the reporter, and are mut ***
  23801. --- *** agenic. Gene traps may be bicistronic wi ***
  23802. --- *** th the second cassette containing a prom ***
  23803. --- *** oter driving an a selectable marker. ***
  23804. --- ************************************************
  23805. ---
  23806. CREATE VIEW gene_trap_construct AS
  23807. SELECT
  23808. feature_id AS gene_trap_construct_id,
  23809. feature.*
  23810. FROM
  23811. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23812. WHERE cvterm.name = 'gene_trap_construct';
  23813. --- ************************************************
  23814. --- *** relation: promoter_trap_construct ***
  23815. --- *** relation type: VIEW ***
  23816. --- *** ***
  23817. --- *** A promoter trap construct is a type of e ***
  23818. --- *** ngineered plasmid which is designed to i ***
  23819. --- *** ntegrate into a genome and express a rep ***
  23820. --- *** orter when inserted in close proximity t ***
  23821. --- *** o a promoter element. Promoter traps typ ***
  23822. --- *** ically do not contain promoter elements ***
  23823. --- *** and are mutagenic. ***
  23824. --- ************************************************
  23825. ---
  23826. CREATE VIEW promoter_trap_construct AS
  23827. SELECT
  23828. feature_id AS promoter_trap_construct_id,
  23829. feature.*
  23830. FROM
  23831. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23832. WHERE cvterm.name = 'promoter_trap_construct';
  23833. --- ************************************************
  23834. --- *** relation: enhancer_trap_construct ***
  23835. --- *** relation type: VIEW ***
  23836. --- *** ***
  23837. --- *** An enhancer trap construct is a type of ***
  23838. --- *** engineered plasmid which is designed to ***
  23839. --- *** integrate into a genome and express a re ***
  23840. --- *** porter when the expression from a basic ***
  23841. --- *** minimal promoter is enhanced by genomic ***
  23842. --- *** enhancer elements. Enhancer traps contai ***
  23843. --- *** n promoter elements and are not usually ***
  23844. --- *** mutagenic. ***
  23845. --- ************************************************
  23846. ---
  23847. CREATE VIEW enhancer_trap_construct AS
  23848. SELECT
  23849. feature_id AS enhancer_trap_construct_id,
  23850. feature.*
  23851. FROM
  23852. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23853. WHERE cvterm.name = 'enhancer_trap_construct';
  23854. --- ************************************************
  23855. --- *** relation: pac_end ***
  23856. --- *** relation type: VIEW ***
  23857. --- *** ***
  23858. --- *** A region of sequence from the end of a P ***
  23859. --- *** AC clone that may provide a highly speci ***
  23860. --- *** fic marker. ***
  23861. --- ************************************************
  23862. ---
  23863. CREATE VIEW pac_end AS
  23864. SELECT
  23865. feature_id AS pac_end_id,
  23866. feature.*
  23867. FROM
  23868. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23869. WHERE cvterm.name = 'PAC_end';
  23870. --- ************************************************
  23871. --- *** relation: rapd ***
  23872. --- *** relation type: VIEW ***
  23873. --- *** ***
  23874. --- *** RAPD is a 'PCR product' where a sequence ***
  23875. --- *** variant is identified through the use o ***
  23876. --- *** f PCR with random primers. ***
  23877. --- ************************************************
  23878. ---
  23879. CREATE VIEW rapd AS
  23880. SELECT
  23881. feature_id AS rapd_id,
  23882. feature.*
  23883. FROM
  23884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23885. WHERE cvterm.name = 'RAPD';
  23886. --- ************************************************
  23887. --- *** relation: shadow_enhancer ***
  23888. --- *** relation type: VIEW ***
  23889. --- *** ***
  23890. --- ************************************************
  23891. ---
  23892. CREATE VIEW shadow_enhancer AS
  23893. SELECT
  23894. feature_id AS shadow_enhancer_id,
  23895. feature.*
  23896. FROM
  23897. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23898. WHERE cvterm.name = 'shadow_enhancer';
  23899. --- ************************************************
  23900. --- *** relation: snv ***
  23901. --- *** relation type: VIEW ***
  23902. --- *** ***
  23903. --- *** SNVs are single nucleotide positions in ***
  23904. --- *** genomic DNA at which different sequence ***
  23905. --- *** alternatives exist. ***
  23906. --- ************************************************
  23907. ---
  23908. CREATE VIEW snv AS
  23909. SELECT
  23910. feature_id AS snv_id,
  23911. feature.*
  23912. FROM
  23913. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23914. WHERE cvterm.name = 'SNP' OR cvterm.name = 'point_mutation' OR cvterm.name = 'transition' OR cvterm.name = 'transversion' OR cvterm.name = 'pyrimidine_transition' OR cvterm.name = 'purine_transition' OR cvterm.name = 'C_to_T_transition' OR cvterm.name = 'T_to_C_transition' OR cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'pyrimidine_to_purine_transversion' OR cvterm.name = 'purine_to_pyrimidine_transversion' OR cvterm.name = 'C_to_A_transversion' OR cvterm.name = 'C_to_G_transversion' OR cvterm.name = 'T_to_A_transversion' OR cvterm.name = 'T_to_G_transversion' OR cvterm.name = 'A_to_C_transversion' OR cvterm.name = 'A_to_T_transversion' OR cvterm.name = 'G_to_C_transversion' OR cvterm.name = 'G_to_T_transversion' OR cvterm.name = 'SNV';
  23915. --- ************************************************
  23916. --- *** relation: x_element_combinatorial_repeat ***
  23917. --- *** relation type: VIEW ***
  23918. --- *** ***
  23919. --- *** An X element combinatorial repeat is a r ***
  23920. --- *** epeat region located between the X eleme ***
  23921. --- *** nt and the telomere or adjacent Y' eleme ***
  23922. --- *** nt. ***
  23923. --- ************************************************
  23924. ---
  23925. CREATE VIEW x_element_combinatorial_repeat AS
  23926. SELECT
  23927. feature_id AS x_element_combinatorial_repeat_id,
  23928. feature.*
  23929. FROM
  23930. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23931. WHERE cvterm.name = 'X_element_combinatorial_repeat';
  23932. --- ************************************************
  23933. --- *** relation: y_prime_element ***
  23934. --- *** relation type: VIEW ***
  23935. --- *** ***
  23936. --- *** A Y' element is a repeat region (SO:0000 ***
  23937. --- *** 657) located adjacent to telomeric repea ***
  23938. --- *** ts or X element combinatorial repeats, e ***
  23939. --- *** ither as a single copy or tandem repeat ***
  23940. --- *** of two to four copies. ***
  23941. --- ************************************************
  23942. ---
  23943. CREATE VIEW y_prime_element AS
  23944. SELECT
  23945. feature_id AS y_prime_element_id,
  23946. feature.*
  23947. FROM
  23948. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23949. WHERE cvterm.name = 'Y_prime_element';
  23950. --- ************************************************
  23951. --- *** relation: standard_draft ***
  23952. --- *** relation type: VIEW ***
  23953. --- *** ***
  23954. --- *** The status of a whole genome sequence, w ***
  23955. --- *** here the data is minimally filtered or u ***
  23956. --- *** n-filtered, from any number of sequencin ***
  23957. --- *** g platforms, and is assembled into conti ***
  23958. --- *** gs. Genome sequence of this quality may ***
  23959. --- *** harbour regions of poor quality and can ***
  23960. --- *** be relatively incomplete. ***
  23961. --- ************************************************
  23962. ---
  23963. CREATE VIEW standard_draft AS
  23964. SELECT
  23965. feature_id AS standard_draft_id,
  23966. feature.*
  23967. FROM
  23968. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23969. WHERE cvterm.name = 'standard_draft';
  23970. --- ************************************************
  23971. --- *** relation: high_quality_draft ***
  23972. --- *** relation type: VIEW ***
  23973. --- *** ***
  23974. --- *** The status of a whole genome sequence, w ***
  23975. --- *** here overall coverage represents at leas ***
  23976. --- *** t 90 percent of the genome. ***
  23977. --- ************************************************
  23978. ---
  23979. CREATE VIEW high_quality_draft AS
  23980. SELECT
  23981. feature_id AS high_quality_draft_id,
  23982. feature.*
  23983. FROM
  23984. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23985. WHERE cvterm.name = 'high_quality_draft';
  23986. --- ************************************************
  23987. --- *** relation: improved_high_quality_draft ***
  23988. --- *** relation type: VIEW ***
  23989. --- *** ***
  23990. --- *** The status of a whole genome sequence, w ***
  23991. --- *** here additional work has been performed, ***
  23992. --- *** using either manual or automated method ***
  23993. --- *** s, such as gap resolution. ***
  23994. --- ************************************************
  23995. ---
  23996. CREATE VIEW improved_high_quality_draft AS
  23997. SELECT
  23998. feature_id AS improved_high_quality_draft_id,
  23999. feature.*
  24000. FROM
  24001. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24002. WHERE cvterm.name = 'improved_high_quality_draft';
  24003. --- ************************************************
  24004. --- *** relation: annotation_directed_improved_draft ***
  24005. --- *** relation type: VIEW ***
  24006. --- *** ***
  24007. --- *** The status of a whole genome sequence,wh ***
  24008. --- *** ere annotation, and verification of codi ***
  24009. --- *** ng regions has occurred. ***
  24010. --- ************************************************
  24011. ---
  24012. CREATE VIEW annotation_directed_improved_draft AS
  24013. SELECT
  24014. feature_id AS annotation_directed_improved_draft_id,
  24015. feature.*
  24016. FROM
  24017. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24018. WHERE cvterm.name = 'annotation_directed_improved_draft';
  24019. --- ************************************************
  24020. --- *** relation: noncontiguous_finished ***
  24021. --- *** relation type: VIEW ***
  24022. --- *** ***
  24023. --- *** The status of a whole genome sequence, w ***
  24024. --- *** here the assembly is high quality, closu ***
  24025. --- *** re approaches have been successful for m ***
  24026. --- *** ost gaps, misassemblies and low quality ***
  24027. --- *** regions. ***
  24028. --- ************************************************
  24029. ---
  24030. CREATE VIEW noncontiguous_finished AS
  24031. SELECT
  24032. feature_id AS noncontiguous_finished_id,
  24033. feature.*
  24034. FROM
  24035. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24036. WHERE cvterm.name = 'noncontiguous_finished';
  24037. --- ************************************************
  24038. --- *** relation: finished_genome ***
  24039. --- *** relation type: VIEW ***
  24040. --- *** ***
  24041. --- *** The status of a whole genome sequence, w ***
  24042. --- *** ith less than 1 error per 100,000 base p ***
  24043. --- *** airs. ***
  24044. --- ************************************************
  24045. ---
  24046. CREATE VIEW finished_genome AS
  24047. SELECT
  24048. feature_id AS finished_genome_id,
  24049. feature.*
  24050. FROM
  24051. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24052. WHERE cvterm.name = 'finished_genome';
  24053. --- ************************************************
  24054. --- *** relation: intronic_regulatory_region ***
  24055. --- *** relation type: VIEW ***
  24056. --- *** ***
  24057. --- *** A regulatory region that is part of an i ***
  24058. --- *** ntron. ***
  24059. --- ************************************************
  24060. ---
  24061. CREATE VIEW intronic_regulatory_region AS
  24062. SELECT
  24063. feature_id AS intronic_regulatory_region_id,
  24064. feature.*
  24065. FROM
  24066. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24067. WHERE cvterm.name = 'intronic_regulatory_region';
  24068. --- ************************************************
  24069. --- *** relation: centromere_dna_element_i ***
  24070. --- *** relation type: VIEW ***
  24071. --- *** ***
  24072. --- *** A centromere DNA Element I (CDEI) is a c ***
  24073. --- *** onserved region, part of the centromere, ***
  24074. --- *** consisting of a consensus region compos ***
  24075. --- *** ed of 8-11bp which enables binding by th ***
  24076. --- *** e centromere binding factor 1(Cbf1p). ***
  24077. --- ************************************************
  24078. ---
  24079. CREATE VIEW centromere_dna_element_i AS
  24080. SELECT
  24081. feature_id AS centromere_dna_element_i_id,
  24082. feature.*
  24083. FROM
  24084. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24085. WHERE cvterm.name = 'centromere_DNA_Element_I';
  24086. --- ************************************************
  24087. --- *** relation: centromere_dna_element_ii ***
  24088. --- *** relation type: VIEW ***
  24089. --- *** ***
  24090. --- *** A centromere DNA Element II (CDEII) is p ***
  24091. --- *** art a conserved region of the centromere ***
  24092. --- *** , consisting of a consensus region that ***
  24093. --- *** is AT-rich and ~ 75-100 bp in length. ***
  24094. --- ************************************************
  24095. ---
  24096. CREATE VIEW centromere_dna_element_ii AS
  24097. SELECT
  24098. feature_id AS centromere_dna_element_ii_id,
  24099. feature.*
  24100. FROM
  24101. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24102. WHERE cvterm.name = 'centromere_DNA_Element_II';
  24103. --- ************************************************
  24104. --- *** relation: centromere_dna_element_iii ***
  24105. --- *** relation type: VIEW ***
  24106. --- *** ***
  24107. --- *** A centromere DNA Element I (CDEI) is a c ***
  24108. --- *** onserved region, part of the centromere, ***
  24109. --- *** consisting of a consensus region that c ***
  24110. --- *** onsists of a 25-bp which enables binding ***
  24111. --- *** by the centromere DNA binding factor 3 ***
  24112. --- *** (CBF3) complex. ***
  24113. --- ************************************************
  24114. ---
  24115. CREATE VIEW centromere_dna_element_iii AS
  24116. SELECT
  24117. feature_id AS centromere_dna_element_iii_id,
  24118. feature.*
  24119. FROM
  24120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24121. WHERE cvterm.name = 'centromere_DNA_Element_III';
  24122. --- ************************************************
  24123. --- *** relation: telomeric_repeat ***
  24124. --- *** relation type: VIEW ***
  24125. --- *** ***
  24126. --- *** The telomeric repeat is a repeat region, ***
  24127. --- *** part of the chromosome, which in yeast, ***
  24128. --- *** is a G-rich terminal sequence of the fo ***
  24129. --- *** rm (TG(1-3))n or more precisely ((TG)(1- ***
  24130. --- *** 6)TG(2-3))n. ***
  24131. --- ************************************************
  24132. ---
  24133. CREATE VIEW telomeric_repeat AS
  24134. SELECT
  24135. feature_id AS telomeric_repeat_id,
  24136. feature.*
  24137. FROM
  24138. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24139. WHERE cvterm.name = 'telomeric_repeat';
  24140. --- ************************************************
  24141. --- *** relation: x_element ***
  24142. --- *** relation type: VIEW ***
  24143. --- *** ***
  24144. --- *** The X element is a conserved region, of ***
  24145. --- *** the telomere, of ~475 bp that contains a ***
  24146. --- *** n ARS sequence and in most cases an Abf1 ***
  24147. --- *** p binding site. ***
  24148. --- ************************************************
  24149. ---
  24150. CREATE VIEW x_element AS
  24151. SELECT
  24152. feature_id AS x_element_id,
  24153. feature.*
  24154. FROM
  24155. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24156. WHERE cvterm.name = 'X_element';
  24157. --- ************************************************
  24158. --- *** relation: yac_end ***
  24159. --- *** relation type: VIEW ***
  24160. --- *** ***
  24161. --- *** A region of sequence from the end of a Y ***
  24162. --- *** AC clone that may provide a highly speci ***
  24163. --- *** fic marker. ***
  24164. --- ************************************************
  24165. ---
  24166. CREATE VIEW yac_end AS
  24167. SELECT
  24168. feature_id AS yac_end_id,
  24169. feature.*
  24170. FROM
  24171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24172. WHERE cvterm.name = 'YAC_end';
  24173. --- ************************************************
  24174. --- *** relation: whole_genome_sequence_status ***
  24175. --- *** relation type: VIEW ***
  24176. --- *** ***
  24177. --- *** The status of whole genome sequence. ***
  24178. --- ************************************************
  24179. ---
  24180. CREATE VIEW whole_genome_sequence_status AS
  24181. SELECT
  24182. feature_id AS whole_genome_sequence_status_id,
  24183. feature.*
  24184. FROM
  24185. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24186. WHERE cvterm.name = 'standard_draft' OR cvterm.name = 'high_quality_draft' OR cvterm.name = 'improved_high_quality_draft' OR cvterm.name = 'annotation_directed_improved_draft' OR cvterm.name = 'noncontiguous_finished' OR cvterm.name = 'finished_genome' OR cvterm.name = 'whole_genome_sequence_status';
  24187. --- ************************************************
  24188. --- *** relation: heritable_phenotypic_marker ***
  24189. --- *** relation type: VIEW ***
  24190. --- *** ***
  24191. --- *** A biological_region characterized as a s ***
  24192. --- *** ingle heritable trait in a phenotype scr ***
  24193. --- *** een. The heritable phenotype may be mapp ***
  24194. --- *** ed to a chromosome but generally has not ***
  24195. --- *** been characterized to a specific gene l ***
  24196. --- *** ocus. ***
  24197. --- ************************************************
  24198. ---
  24199. CREATE VIEW heritable_phenotypic_marker AS
  24200. SELECT
  24201. feature_id AS heritable_phenotypic_marker_id,
  24202. feature.*
  24203. FROM
  24204. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24205. WHERE cvterm.name = 'heritable_phenotypic_marker';
  24206. --- ************************************************
  24207. --- *** relation: peptide_collection ***
  24208. --- *** relation type: VIEW ***
  24209. --- *** ***
  24210. --- *** A collection of peptide sequences. ***
  24211. --- ************************************************
  24212. ---
  24213. CREATE VIEW peptide_collection AS
  24214. SELECT
  24215. feature_id AS peptide_collection_id,
  24216. feature.*
  24217. FROM
  24218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24219. WHERE cvterm.name = 'peptide_collection';
  24220. --- ************************************************
  24221. --- *** relation: high_identity_region ***
  24222. --- *** relation type: VIEW ***
  24223. --- *** ***
  24224. --- *** An experimental feature with high sequen ***
  24225. --- *** ce identity to another sequence. ***
  24226. --- ************************************************
  24227. ---
  24228. CREATE VIEW high_identity_region AS
  24229. SELECT
  24230. feature_id AS high_identity_region_id,
  24231. feature.*
  24232. FROM
  24233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24234. WHERE cvterm.name = 'high_identity_region';
  24235. --- ************************************************
  24236. --- *** relation: processed_transcript ***
  24237. --- *** relation type: VIEW ***
  24238. --- *** ***
  24239. --- *** A transcript for which no open reading f ***
  24240. --- *** rame has been identified and for which n ***
  24241. --- *** o other function has been determined. ***
  24242. --- ************************************************
  24243. ---
  24244. CREATE VIEW processed_transcript AS
  24245. SELECT
  24246. feature_id AS processed_transcript_id,
  24247. feature.*
  24248. FROM
  24249. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24250. WHERE cvterm.name = 'processed_transcript';
  24251. --- ************************************************
  24252. --- *** relation: assortment_derived_variation ***
  24253. --- *** relation type: VIEW ***
  24254. --- *** ***
  24255. --- *** A chromosome variation derived from an e ***
  24256. --- *** vent during meiosis. ***
  24257. --- ************************************************
  24258. ---
  24259. CREATE VIEW assortment_derived_variation AS
  24260. SELECT
  24261. feature_id AS assortment_derived_variation_id,
  24262. feature.*
  24263. FROM
  24264. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24265. WHERE cvterm.name = 'assortment_derived_duplication' OR cvterm.name = 'assortment_derived_deficiency_plus_duplication' OR cvterm.name = 'assortment_derived_deficiency' OR cvterm.name = 'assortment_derived_aneuploid' OR cvterm.name = 'assortment_derived_variation';
  24266. --- ************************************************
  24267. --- *** relation: reference_genome ***
  24268. --- *** relation type: VIEW ***
  24269. --- *** ***
  24270. --- *** A collection of sequences (often chromos ***
  24271. --- *** omes) taken as the standard for a given ***
  24272. --- *** organism and genome assembly. ***
  24273. --- ************************************************
  24274. ---
  24275. CREATE VIEW reference_genome AS
  24276. SELECT
  24277. feature_id AS reference_genome_id,
  24278. feature.*
  24279. FROM
  24280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24281. WHERE cvterm.name = 'reference_genome';
  24282. --- ************************************************
  24283. --- *** relation: variant_genome ***
  24284. --- *** relation type: VIEW ***
  24285. --- *** ***
  24286. --- *** A collection of sequences (often chromos ***
  24287. --- *** omes) of an individual. ***
  24288. --- ************************************************
  24289. ---
  24290. CREATE VIEW variant_genome AS
  24291. SELECT
  24292. feature_id AS variant_genome_id,
  24293. feature.*
  24294. FROM
  24295. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24296. WHERE cvterm.name = 'chromosomally_aberrant_genome' OR cvterm.name = 'variant_genome';
  24297. --- ************************************************
  24298. --- *** relation: variant_collection ***
  24299. --- *** relation type: VIEW ***
  24300. --- *** ***
  24301. --- *** A collection of one or more sequences of ***
  24302. --- *** an individual. ***
  24303. --- ************************************************
  24304. ---
  24305. CREATE VIEW variant_collection AS
  24306. SELECT
  24307. feature_id AS variant_collection_id,
  24308. feature.*
  24309. FROM
  24310. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24311. WHERE cvterm.name = 'chromosome_variation' OR cvterm.name = 'allele' OR cvterm.name = 'haplotype' OR cvterm.name = 'genotype' OR cvterm.name = 'diplotype' OR cvterm.name = 'assortment_derived_variation' OR cvterm.name = 'chromosome_number_variation' OR cvterm.name = 'chromosome_structure_variation' OR cvterm.name = 'assortment_derived_duplication' OR cvterm.name = 'assortment_derived_deficiency_plus_duplication' OR cvterm.name = 'assortment_derived_deficiency' OR cvterm.name = 'assortment_derived_aneuploid' OR cvterm.name = 'aneuploid' OR cvterm.name = 'polyploid' OR cvterm.name = 'hyperploid' OR cvterm.name = 'hypoploid' OR cvterm.name = 'autopolyploid' OR cvterm.name = 'allopolyploid' OR cvterm.name = 'free_chromosome_arm' OR cvterm.name = 'chromosomal_transposition' OR cvterm.name = 'aneuploid_chromosome' OR cvterm.name = 'intrachromosomal_mutation' OR cvterm.name = 'interchromosomal_mutation' OR cvterm.name = 'chromosomal_duplication' OR cvterm.name = 'compound_chromosome' OR cvterm.name = 'autosynaptic_chromosome' OR cvterm.name = 'complex_chromosomal_mutation' OR cvterm.name = 'uncharacterised_chromosomal_mutation' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'interchromosomal_transposition' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unoriented_interchromosomal_transposition' OR cvterm.name = 'inversion_derived_aneuploid_chromosome' OR cvterm.name = 'chromosomal_deletion' OR cvterm.name = 'chromosomal_inversion' OR cvterm.name = 'intrachromosomal_duplication' OR cvterm.name = 'ring_chromosome' OR cvterm.name = 'chromosome_fission' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inversion_derived_bipartite_deficiency' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_deficiency_plus_aneuploid' OR cvterm.name = 'deficient_translocation' OR cvterm.name = 'deficient_inversion' OR cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'pericentric_inversion' OR cvterm.name = 'paracentric_inversion' OR cvterm.name = 'inversion_cum_translocation' OR cvterm.name = 'bipartite_inversion' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'deficient_inversion' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_bipartite_duplication' OR cvterm.name = 'inversion_derived_duplication_plus_aneuploid' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'chromosomal_translocation' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'interchromosomal_transposition' OR cvterm.name = 'translocation_element' OR cvterm.name = 'Robertsonian_fusion' OR cvterm.name = 'reciprocal_chromosomal_translocation' OR cvterm.name = 'deficient_translocation' OR cvterm.name = 'inversion_cum_translocation' OR cvterm.name = 'cyclic_translocation' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unoriented_interchromosomal_transposition' OR cvterm.name = 'interchromosomal_duplication' OR cvterm.name = 'intrachromosomal_duplication' OR cvterm.name = 'free_duplication' OR cvterm.name = 'insertional_duplication' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_bipartite_duplication' OR cvterm.name = 'inversion_derived_duplication_plus_aneuploid' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'uninverted_insertional_duplication' OR cvterm.name = 'inverted_insertional_duplication' OR cvterm.name = 'unoriented_insertional_duplication' OR cvterm.name = 'compound_chromosome_arm' OR cvterm.name = 'homo_compound_chromosome' OR cvterm.name = 'hetero_compound_chromosome' OR cvterm.name = 'dexstrosynaptic_chromosome' OR cvterm.name = 'laevosynaptic_chromosome' OR cvterm.name = 'partially_characterised_chromosomal_mutation' OR cvterm.name = 'polymorphic_sequence_variant' OR cvterm.name = 'variant_collection';
  24312. --- ************************************************
  24313. --- *** relation: alteration_attribute ***
  24314. --- *** relation type: VIEW ***
  24315. --- *** ***
  24316. --- ************************************************
  24317. ---
  24318. CREATE VIEW alteration_attribute AS
  24319. SELECT
  24320. feature_id AS alteration_attribute_id,
  24321. feature.*
  24322. FROM
  24323. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24324. WHERE cvterm.name = 'chromosomal_variation_attribute' OR cvterm.name = 'insertion_attribute' OR cvterm.name = 'inversion_attribute' OR cvterm.name = 'translocaton_attribute' OR cvterm.name = 'duplication_attribute' OR cvterm.name = 'intrachromosomal' OR cvterm.name = 'interchromosomal' OR cvterm.name = 'tandem' OR cvterm.name = 'direct' OR cvterm.name = 'inverted' OR cvterm.name = 'pericentric' OR cvterm.name = 'paracentric' OR cvterm.name = 'reciprocal' OR cvterm.name = 'insertional' OR cvterm.name = 'free' OR cvterm.name = 'alteration_attribute';
  24325. --- ************************************************
  24326. --- *** relation: chromosomal_variation_attribute ***
  24327. --- *** relation type: VIEW ***
  24328. --- *** ***
  24329. --- ************************************************
  24330. ---
  24331. CREATE VIEW chromosomal_variation_attribute AS
  24332. SELECT
  24333. feature_id AS chromosomal_variation_attribute_id,
  24334. feature.*
  24335. FROM
  24336. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24337. WHERE cvterm.name = 'intrachromosomal' OR cvterm.name = 'interchromosomal' OR cvterm.name = 'chromosomal_variation_attribute';
  24338. --- ************************************************
  24339. --- *** relation: intrachromosomal ***
  24340. --- *** relation type: VIEW ***
  24341. --- *** ***
  24342. --- ************************************************
  24343. ---
  24344. CREATE VIEW intrachromosomal AS
  24345. SELECT
  24346. feature_id AS intrachromosomal_id,
  24347. feature.*
  24348. FROM
  24349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24350. WHERE cvterm.name = 'intrachromosomal';
  24351. --- ************************************************
  24352. --- *** relation: interchromosomal ***
  24353. --- *** relation type: VIEW ***
  24354. --- *** ***
  24355. --- ************************************************
  24356. ---
  24357. CREATE VIEW interchromosomal AS
  24358. SELECT
  24359. feature_id AS interchromosomal_id,
  24360. feature.*
  24361. FROM
  24362. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24363. WHERE cvterm.name = 'interchromosomal';
  24364. --- ************************************************
  24365. --- *** relation: insertion_attribute ***
  24366. --- *** relation type: VIEW ***
  24367. --- *** ***
  24368. --- *** A quality of a chromosomal insertion,. ***
  24369. --- ************************************************
  24370. ---
  24371. CREATE VIEW insertion_attribute AS
  24372. SELECT
  24373. feature_id AS insertion_attribute_id,
  24374. feature.*
  24375. FROM
  24376. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24377. WHERE cvterm.name = 'tandem' OR cvterm.name = 'direct' OR cvterm.name = 'inverted' OR cvterm.name = 'insertion_attribute';
  24378. --- ************************************************
  24379. --- *** relation: tandem ***
  24380. --- *** relation type: VIEW ***
  24381. --- *** ***
  24382. --- ************************************************
  24383. ---
  24384. CREATE VIEW tandem AS
  24385. SELECT
  24386. feature_id AS tandem_id,
  24387. feature.*
  24388. FROM
  24389. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24390. WHERE cvterm.name = 'tandem';
  24391. --- ************************************************
  24392. --- *** relation: direct ***
  24393. --- *** relation type: VIEW ***
  24394. --- *** ***
  24395. --- *** A quality of an insertion where the inse ***
  24396. --- *** rt is not in a cytologically inverted or ***
  24397. --- *** ientation. ***
  24398. --- ************************************************
  24399. ---
  24400. CREATE VIEW direct AS
  24401. SELECT
  24402. feature_id AS direct_id,
  24403. feature.*
  24404. FROM
  24405. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24406. WHERE cvterm.name = 'direct';
  24407. --- ************************************************
  24408. --- *** relation: inverted ***
  24409. --- *** relation type: VIEW ***
  24410. --- *** ***
  24411. --- *** A quality of an insertion where the inse ***
  24412. --- *** rt is in a cytologically inverted orient ***
  24413. --- *** ation. ***
  24414. --- ************************************************
  24415. ---
  24416. CREATE VIEW inverted AS
  24417. SELECT
  24418. feature_id AS inverted_id,
  24419. feature.*
  24420. FROM
  24421. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24422. WHERE cvterm.name = 'inverted';
  24423. --- ************************************************
  24424. --- *** relation: free ***
  24425. --- *** relation type: VIEW ***
  24426. --- *** ***
  24427. --- *** The quality of a duplication where the n ***
  24428. --- *** ew region exists independently of the or ***
  24429. --- *** iginal. ***
  24430. --- ************************************************
  24431. ---
  24432. CREATE VIEW free AS
  24433. SELECT
  24434. feature_id AS free_id,
  24435. feature.*
  24436. FROM
  24437. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24438. WHERE cvterm.name = 'free';
  24439. --- ************************************************
  24440. --- *** relation: inversion_attribute ***
  24441. --- *** relation type: VIEW ***
  24442. --- *** ***
  24443. --- ************************************************
  24444. ---
  24445. CREATE VIEW inversion_attribute AS
  24446. SELECT
  24447. feature_id AS inversion_attribute_id,
  24448. feature.*
  24449. FROM
  24450. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24451. WHERE cvterm.name = 'pericentric' OR cvterm.name = 'paracentric' OR cvterm.name = 'inversion_attribute';
  24452. --- ************************************************
  24453. --- *** relation: pericentric ***
  24454. --- *** relation type: VIEW ***
  24455. --- *** ***
  24456. --- ************************************************
  24457. ---
  24458. CREATE VIEW pericentric AS
  24459. SELECT
  24460. feature_id AS pericentric_id,
  24461. feature.*
  24462. FROM
  24463. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24464. WHERE cvterm.name = 'pericentric';
  24465. --- ************************************************
  24466. --- *** relation: paracentric ***
  24467. --- *** relation type: VIEW ***
  24468. --- *** ***
  24469. --- ************************************************
  24470. ---
  24471. CREATE VIEW paracentric AS
  24472. SELECT
  24473. feature_id AS paracentric_id,
  24474. feature.*
  24475. FROM
  24476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24477. WHERE cvterm.name = 'paracentric';
  24478. --- ************************************************
  24479. --- *** relation: translocaton_attribute ***
  24480. --- *** relation type: VIEW ***
  24481. --- *** ***
  24482. --- ************************************************
  24483. ---
  24484. CREATE VIEW translocaton_attribute AS
  24485. SELECT
  24486. feature_id AS translocaton_attribute_id,
  24487. feature.*
  24488. FROM
  24489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24490. WHERE cvterm.name = 'reciprocal' OR cvterm.name = 'insertional' OR cvterm.name = 'translocaton_attribute';
  24491. --- ************************************************
  24492. --- *** relation: reciprocal ***
  24493. --- *** relation type: VIEW ***
  24494. --- *** ***
  24495. --- ************************************************
  24496. ---
  24497. CREATE VIEW reciprocal AS
  24498. SELECT
  24499. feature_id AS reciprocal_id,
  24500. feature.*
  24501. FROM
  24502. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24503. WHERE cvterm.name = 'reciprocal';
  24504. --- ************************************************
  24505. --- *** relation: insertional ***
  24506. --- *** relation type: VIEW ***
  24507. --- *** ***
  24508. --- ************************************************
  24509. ---
  24510. CREATE VIEW insertional AS
  24511. SELECT
  24512. feature_id AS insertional_id,
  24513. feature.*
  24514. FROM
  24515. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24516. WHERE cvterm.name = 'insertional';
  24517. --- ************************************************
  24518. --- *** relation: duplication_attribute ***
  24519. --- *** relation type: VIEW ***
  24520. --- *** ***
  24521. --- ************************************************
  24522. ---
  24523. CREATE VIEW duplication_attribute AS
  24524. SELECT
  24525. feature_id AS duplication_attribute_id,
  24526. feature.*
  24527. FROM
  24528. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24529. WHERE cvterm.name = 'free' OR cvterm.name = 'duplication_attribute';
  24530. --- ************************************************
  24531. --- *** relation: chromosomally_aberrant_genome ***
  24532. --- *** relation type: VIEW ***
  24533. --- *** ***
  24534. --- ************************************************
  24535. ---
  24536. CREATE VIEW chromosomally_aberrant_genome AS
  24537. SELECT
  24538. feature_id AS chromosomally_aberrant_genome_id,
  24539. feature.*
  24540. FROM
  24541. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24542. WHERE cvterm.name = 'chromosomally_aberrant_genome';
  24543. --- ************************************************
  24544. --- *** relation: assembly_error_correction ***
  24545. --- *** relation type: VIEW ***
  24546. --- *** ***
  24547. --- *** A region of sequence where the final nuc ***
  24548. --- *** leotide assignment differs from the orig ***
  24549. --- *** inal assembly due to an improvement that ***
  24550. --- *** replaces a mistake. ***
  24551. --- ************************************************
  24552. ---
  24553. CREATE VIEW assembly_error_correction AS
  24554. SELECT
  24555. feature_id AS assembly_error_correction_id,
  24556. feature.*
  24557. FROM
  24558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24559. WHERE cvterm.name = 'assembly_error_correction';
  24560. --- ************************************************
  24561. --- *** relation: base_call_error_correction ***
  24562. --- *** relation type: VIEW ***
  24563. --- *** ***
  24564. --- *** A region of sequence where the final nuc ***
  24565. --- *** leotide assignment is different from tha ***
  24566. --- *** t given by the base caller due to an imp ***
  24567. --- *** rovement that replaces a mistake. ***
  24568. --- ************************************************
  24569. ---
  24570. CREATE VIEW base_call_error_correction AS
  24571. SELECT
  24572. feature_id AS base_call_error_correction_id,
  24573. feature.*
  24574. FROM
  24575. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24576. WHERE cvterm.name = 'base_call_error_correction';
  24577. --- ************************************************
  24578. --- *** relation: peptide_localization_signal ***
  24579. --- *** relation type: VIEW ***
  24580. --- *** ***
  24581. --- *** A region of peptide sequence used to tar ***
  24582. --- *** get the polypeptide molecule to a specif ***
  24583. --- *** ic organelle. ***
  24584. --- ************************************************
  24585. ---
  24586. CREATE VIEW peptide_localization_signal AS
  24587. SELECT
  24588. feature_id AS peptide_localization_signal_id,
  24589. feature.*
  24590. FROM
  24591. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24592. WHERE cvterm.name = 'signal_peptide' OR cvterm.name = 'transit_peptide' OR cvterm.name = 'nuclear_localization_signal' OR cvterm.name = 'endosomal_localization_signal' OR cvterm.name = 'lysosomal_localization_signal' OR cvterm.name = 'nuclear_export_signal' OR cvterm.name = 'nuclear_rim_localization_signal' OR cvterm.name = 'peptide_localization_signal';
  24593. --- ************************************************
  24594. --- *** relation: nuclear_localization_signal ***
  24595. --- *** relation type: VIEW ***
  24596. --- *** ***
  24597. --- *** A polypeptide region that targets a poly ***
  24598. --- *** peptide to the nucleus. ***
  24599. --- ************************************************
  24600. ---
  24601. CREATE VIEW nuclear_localization_signal AS
  24602. SELECT
  24603. feature_id AS nuclear_localization_signal_id,
  24604. feature.*
  24605. FROM
  24606. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24607. WHERE cvterm.name = 'nuclear_localization_signal';
  24608. --- ************************************************
  24609. --- *** relation: endosomal_localization_signal ***
  24610. --- *** relation type: VIEW ***
  24611. --- *** ***
  24612. --- *** A polypeptide region that targets a poly ***
  24613. --- *** peptide to the endosome. ***
  24614. --- ************************************************
  24615. ---
  24616. CREATE VIEW endosomal_localization_signal AS
  24617. SELECT
  24618. feature_id AS endosomal_localization_signal_id,
  24619. feature.*
  24620. FROM
  24621. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24622. WHERE cvterm.name = 'endosomal_localization_signal';
  24623. --- ************************************************
  24624. --- *** relation: lysosomal_localization_signal ***
  24625. --- *** relation type: VIEW ***
  24626. --- *** ***
  24627. --- *** A polypeptide region that targets a poly ***
  24628. --- *** peptide to the lysosome. ***
  24629. --- ************************************************
  24630. ---
  24631. CREATE VIEW lysosomal_localization_signal AS
  24632. SELECT
  24633. feature_id AS lysosomal_localization_signal_id,
  24634. feature.*
  24635. FROM
  24636. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24637. WHERE cvterm.name = 'lysosomal_localization_signal';
  24638. --- ************************************************
  24639. --- *** relation: nuclear_export_signal ***
  24640. --- *** relation type: VIEW ***
  24641. --- *** ***
  24642. --- *** A polypeptide region that targets a poly ***
  24643. --- *** peptide to he cytoplasm. ***
  24644. --- ************************************************
  24645. ---
  24646. CREATE VIEW nuclear_export_signal AS
  24647. SELECT
  24648. feature_id AS nuclear_export_signal_id,
  24649. feature.*
  24650. FROM
  24651. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24652. WHERE cvterm.name = 'nuclear_export_signal';
  24653. --- ************************************************
  24654. --- *** relation: recombination_signal_sequence ***
  24655. --- *** relation type: VIEW ***
  24656. --- *** ***
  24657. --- *** A region recognized by a recombinase. ***
  24658. --- ************************************************
  24659. ---
  24660. CREATE VIEW recombination_signal_sequence AS
  24661. SELECT
  24662. feature_id AS recombination_signal_sequence_id,
  24663. feature.*
  24664. FROM
  24665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24666. WHERE cvterm.name = 'recombination_signal_sequence';
  24667. --- ************************************************
  24668. --- *** relation: cryptic_splice_site ***
  24669. --- *** relation type: VIEW ***
  24670. --- *** ***
  24671. --- *** A splice site that is in part of the tra ***
  24672. --- *** nscript not normally spliced. They occur ***
  24673. --- *** via mutation or transcriptional error. ***
  24674. --- ************************************************
  24675. ---
  24676. CREATE VIEW cryptic_splice_site AS
  24677. SELECT
  24678. feature_id AS cryptic_splice_site_id,
  24679. feature.*
  24680. FROM
  24681. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24682. WHERE cvterm.name = 'cryptic_splice_site';
  24683. --- ************************************************
  24684. --- *** relation: nuclear_rim_localization_signal ***
  24685. --- *** relation type: VIEW ***
  24686. --- *** ***
  24687. --- *** A polypeptide region that targets a poly ***
  24688. --- *** peptide to the nuclear rim. ***
  24689. --- ************************************************
  24690. ---
  24691. CREATE VIEW nuclear_rim_localization_signal AS
  24692. SELECT
  24693. feature_id AS nuclear_rim_localization_signal_id,
  24694. feature.*
  24695. FROM
  24696. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24697. WHERE cvterm.name = 'nuclear_rim_localization_signal';
  24698. --- ************************************************
  24699. --- *** relation: p_element ***
  24700. --- *** relation type: VIEW ***
  24701. --- *** ***
  24702. --- *** A P_element is a DNA transposon responsi ***
  24703. --- *** ble for hybrid dysgenesis. ***
  24704. --- ************************************************
  24705. ---
  24706. CREATE VIEW p_element AS
  24707. SELECT
  24708. feature_id AS p_element_id,
  24709. feature.*
  24710. FROM
  24711. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24712. WHERE cvterm.name = 'p_element';
  24713. --- ************************************************
  24714. --- *** relation: functional_variant ***
  24715. --- *** relation type: VIEW ***
  24716. --- *** ***
  24717. --- *** A sequence variant in which the function ***
  24718. --- *** of a gene product is altered with respe ***
  24719. --- *** ct to a reference. ***
  24720. --- ************************************************
  24721. ---
  24722. CREATE VIEW functional_variant AS
  24723. SELECT
  24724. feature_id AS functional_variant_id,
  24725. feature.*
  24726. FROM
  24727. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24728. WHERE cvterm.name = 'transcript_function_variant' OR cvterm.name = 'translational_product_function_variant' OR cvterm.name = 'level_of_transcript_variant' OR cvterm.name = 'transcript_processing_variant' OR cvterm.name = 'transcript_stability_variant' OR cvterm.name = 'transcription_variant' OR cvterm.name = 'decreased_transcript_level_variant' OR cvterm.name = 'increased_transcript_level_variant' OR cvterm.name = 'editing_variant' OR cvterm.name = 'polyadenylation_variant' OR cvterm.name = 'increased_polyadenylation_variant' OR cvterm.name = 'decreased_polyadenylation_variant' OR cvterm.name = 'decreased_transcript_stability_variant' OR cvterm.name = 'increased_transcript_stability_variant' OR cvterm.name = 'rate_of_transcription_variant' OR cvterm.name = 'increased_transcription_rate_variant' OR cvterm.name = 'decreased_transcription_rate_variant' OR cvterm.name = 'translational_product_level_variant' OR cvterm.name = 'polypeptide_function_variant' OR cvterm.name = 'decreased_translational_product_level' OR cvterm.name = 'increased_translational_product_level' OR cvterm.name = 'polypeptide_gain_of_function_variant' OR cvterm.name = 'polypeptide_localization_variant' OR cvterm.name = 'polypeptide_loss_of_function_variant' OR cvterm.name = 'polypeptide_post_translational_processing_variant' OR cvterm.name = 'inactive_ligand_binding_site' OR cvterm.name = 'polypeptide_partial_loss_of_function' OR cvterm.name = 'inactive_catalytic_site' OR cvterm.name = 'functional_variant';
  24729. --- ************************************************
  24730. --- *** relation: structural_variant ***
  24731. --- *** relation type: VIEW ***
  24732. --- *** ***
  24733. --- *** A sequence variant that changes one or m ***
  24734. --- *** ore sequence features. ***
  24735. --- ************************************************
  24736. ---
  24737. CREATE VIEW structural_variant AS
  24738. SELECT
  24739. feature_id AS structural_variant_id,
  24740. feature.*
  24741. FROM
  24742. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24743. WHERE cvterm.name = 'silent_mutation' OR cvterm.name = 'copy_number_change' OR cvterm.name = 'gene_variant' OR cvterm.name = 'regulatory_region_variant' OR cvterm.name = 'intergenic_variant' OR cvterm.name = 'upstream_gene_variant' OR cvterm.name = 'downstream_gene_variant' OR cvterm.name = 'gene_fusion' OR cvterm.name = 'splicing_variant' OR cvterm.name = 'transcript_variant' OR cvterm.name = 'translational_product_structure_variant' OR cvterm.name = 'cryptic_splice_site_variant' OR cvterm.name = 'exon_loss' OR cvterm.name = 'intron_gain' OR cvterm.name = 'splice_region_variant' OR cvterm.name = 'cryptic_splice_acceptor' OR cvterm.name = 'cryptic_splice_donor' OR cvterm.name = 'complex_change_in_transcript' OR cvterm.name = 'transcript_secondary_structure_variant' OR cvterm.name = 'nc_transcript_variant' OR cvterm.name = 'NMD_transcript_variant' OR cvterm.name = 'UTR_variant' OR cvterm.name = 'intron_variant' OR cvterm.name = 'exon_variant' OR cvterm.name = 'compensatory_transcript_secondary_structure_variant' OR cvterm.name = 'mature_miRNA_variant' OR cvterm.name = '5_prime_UTR_variant' OR cvterm.name = '3_prime_UTR_variant' OR cvterm.name = 'splice_site_variant' OR cvterm.name = 'splice_acceptor_variant' OR cvterm.name = 'splice_donor_variant' OR cvterm.name = 'splice_donor_5th_base_variant' OR cvterm.name = 'coding_sequence_variant' OR cvterm.name = 'non_coding_exon_variant' OR cvterm.name = 'codon_variant' OR cvterm.name = 'frameshift_variant' OR cvterm.name = 'inframe_variant' OR cvterm.name = 'initiator_codon_change' OR cvterm.name = 'non_synonymous_codon' OR cvterm.name = 'synonymous_codon' OR cvterm.name = 'terminal_codon_variant' OR cvterm.name = 'stop_gained' OR cvterm.name = 'missense_codon' OR cvterm.name = 'conservative_missense_codon' OR cvterm.name = 'non_conservative_missense_codon' OR cvterm.name = 'terminator_codon_variant' OR cvterm.name = 'incomplete_terminal_codon_variant' OR cvterm.name = 'stop_retained_variant' OR cvterm.name = 'stop_lost' OR cvterm.name = 'frame_restoring_variant' OR cvterm.name = 'minus_1_frameshift_variant' OR cvterm.name = 'minus_2_frameshift_variant' OR cvterm.name = 'plus_1_frameshift_variant' OR cvterm.name = 'plus_2_frameshift variant' OR cvterm.name = 'inframe_codon_gain' OR cvterm.name = 'inframe_codon_loss' OR cvterm.name = '3D_polypeptide_structure_variant' OR cvterm.name = 'complex_change_of_translational_product_variant' OR cvterm.name = 'polypeptide_sequence_variant' OR cvterm.name = 'complex_3D_structural_variant' OR cvterm.name = 'conformational_change_variant' OR cvterm.name = 'amino_acid_deletion' OR cvterm.name = 'amino_acid_insertion' OR cvterm.name = 'amino_acid_substitution' OR cvterm.name = 'elongated_polypeptide' OR cvterm.name = 'polypeptide_fusion' OR cvterm.name = 'polypeptide_truncation' OR cvterm.name = 'conservative_amino_acid_substitution' OR cvterm.name = 'non_conservative_amino_acid_substitution' OR cvterm.name = 'elongated_polypeptide_C_terminal' OR cvterm.name = 'elongated_polypeptide_N_terminal' OR cvterm.name = 'elongated_in_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_out_of_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_in_frame_polypeptide_N_terminal_elongation' OR cvterm.name = 'elongated_out_of_frame_polypeptide_N_terminal' OR cvterm.name = 'TF_binding_site_variant' OR cvterm.name = '5KB_upstream_variant' OR cvterm.name = '2KB_upstream_variant' OR cvterm.name = '5KB_downstream_variant' OR cvterm.name = '500B_downstream_variant' OR cvterm.name = 'structural_variant';
  24744. --- ************************************************
  24745. --- *** relation: transcript_function_variant ***
  24746. --- *** relation type: VIEW ***
  24747. --- *** ***
  24748. --- *** A sequence variant which alters the func ***
  24749. --- *** tioning of a transcript with respect to ***
  24750. --- *** a reference sequence. ***
  24751. --- ************************************************
  24752. ---
  24753. CREATE VIEW transcript_function_variant AS
  24754. SELECT
  24755. feature_id AS transcript_function_variant_id,
  24756. feature.*
  24757. FROM
  24758. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24759. WHERE cvterm.name = 'level_of_transcript_variant' OR cvterm.name = 'transcript_processing_variant' OR cvterm.name = 'transcript_stability_variant' OR cvterm.name = 'transcription_variant' OR cvterm.name = 'decreased_transcript_level_variant' OR cvterm.name = 'increased_transcript_level_variant' OR cvterm.name = 'editing_variant' OR cvterm.name = 'polyadenylation_variant' OR cvterm.name = 'increased_polyadenylation_variant' OR cvterm.name = 'decreased_polyadenylation_variant' OR cvterm.name = 'decreased_transcript_stability_variant' OR cvterm.name = 'increased_transcript_stability_variant' OR cvterm.name = 'rate_of_transcription_variant' OR cvterm.name = 'increased_transcription_rate_variant' OR cvterm.name = 'decreased_transcription_rate_variant' OR cvterm.name = 'transcript_function_variant';
  24760. --- ************************************************
  24761. --- *** relation: translational_product_function_variant ***
  24762. --- *** relation type: VIEW ***
  24763. --- *** ***
  24764. --- *** A sequence variant that affects the func ***
  24765. --- *** tioning of a translational product with ***
  24766. --- *** respect to a reference sequence. ***
  24767. --- ************************************************
  24768. ---
  24769. CREATE VIEW translational_product_function_variant AS
  24770. SELECT
  24771. feature_id AS translational_product_function_variant_id,
  24772. feature.*
  24773. FROM
  24774. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24775. WHERE cvterm.name = 'translational_product_level_variant' OR cvterm.name = 'polypeptide_function_variant' OR cvterm.name = 'decreased_translational_product_level' OR cvterm.name = 'increased_translational_product_level' OR cvterm.name = 'polypeptide_gain_of_function_variant' OR cvterm.name = 'polypeptide_localization_variant' OR cvterm.name = 'polypeptide_loss_of_function_variant' OR cvterm.name = 'polypeptide_post_translational_processing_variant' OR cvterm.name = 'inactive_ligand_binding_site' OR cvterm.name = 'polypeptide_partial_loss_of_function' OR cvterm.name = 'inactive_catalytic_site' OR cvterm.name = 'translational_product_function_variant';
  24776. --- ************************************************
  24777. --- *** relation: level_of_transcript_variant ***
  24778. --- *** relation type: VIEW ***
  24779. --- *** ***
  24780. --- *** A sequence variant which alters the leve ***
  24781. --- *** l of a transcript. ***
  24782. --- ************************************************
  24783. ---
  24784. CREATE VIEW level_of_transcript_variant AS
  24785. SELECT
  24786. feature_id AS level_of_transcript_variant_id,
  24787. feature.*
  24788. FROM
  24789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24790. WHERE cvterm.name = 'decreased_transcript_level_variant' OR cvterm.name = 'increased_transcript_level_variant' OR cvterm.name = 'level_of_transcript_variant';
  24791. --- ************************************************
  24792. --- *** relation: decreased_transcript_level_variant ***
  24793. --- *** relation type: VIEW ***
  24794. --- *** ***
  24795. --- *** A sequence variant that increases the le ***
  24796. --- *** vel of mature, spliced and processed RNA ***
  24797. --- *** with respect to a reference sequence. ***
  24798. --- ************************************************
  24799. ---
  24800. CREATE VIEW decreased_transcript_level_variant AS
  24801. SELECT
  24802. feature_id AS decreased_transcript_level_variant_id,
  24803. feature.*
  24804. FROM
  24805. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24806. WHERE cvterm.name = 'decreased_transcript_level_variant';
  24807. --- ************************************************
  24808. --- *** relation: increased_transcript_level_variant ***
  24809. --- *** relation type: VIEW ***
  24810. --- *** ***
  24811. --- *** A sequence variant that increases the le ***
  24812. --- *** vel of mature, spliced and processed RNA ***
  24813. --- *** with respect to a reference sequence. ***
  24814. --- ************************************************
  24815. ---
  24816. CREATE VIEW increased_transcript_level_variant AS
  24817. SELECT
  24818. feature_id AS increased_transcript_level_variant_id,
  24819. feature.*
  24820. FROM
  24821. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24822. WHERE cvterm.name = 'increased_transcript_level_variant';
  24823. --- ************************************************
  24824. --- *** relation: transcript_processing_variant ***
  24825. --- *** relation type: VIEW ***
  24826. --- *** ***
  24827. --- *** A sequence variant that affects the post ***
  24828. --- *** transcriptional processing of a transcr ***
  24829. --- *** ipt with respect to a reference sequence ***
  24830. --- *** . ***
  24831. --- ************************************************
  24832. ---
  24833. CREATE VIEW transcript_processing_variant AS
  24834. SELECT
  24835. feature_id AS transcript_processing_variant_id,
  24836. feature.*
  24837. FROM
  24838. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24839. WHERE cvterm.name = 'editing_variant' OR cvterm.name = 'polyadenylation_variant' OR cvterm.name = 'increased_polyadenylation_variant' OR cvterm.name = 'decreased_polyadenylation_variant' OR cvterm.name = 'transcript_processing_variant';
  24840. --- ************************************************
  24841. --- *** relation: editing_variant ***
  24842. --- *** relation type: VIEW ***
  24843. --- *** ***
  24844. --- *** A transcript processing variant whereby ***
  24845. --- *** the process of editing is disrupted with ***
  24846. --- *** respect to the reference. ***
  24847. --- ************************************************
  24848. ---
  24849. CREATE VIEW editing_variant AS
  24850. SELECT
  24851. feature_id AS editing_variant_id,
  24852. feature.*
  24853. FROM
  24854. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24855. WHERE cvterm.name = 'editing_variant';
  24856. --- ************************************************
  24857. --- *** relation: polyadenylation_variant ***
  24858. --- *** relation type: VIEW ***
  24859. --- *** ***
  24860. --- *** A sequence variant that changes polyaden ***
  24861. --- *** ylation with respect to a reference sequ ***
  24862. --- *** ence. ***
  24863. --- ************************************************
  24864. ---
  24865. CREATE VIEW polyadenylation_variant AS
  24866. SELECT
  24867. feature_id AS polyadenylation_variant_id,
  24868. feature.*
  24869. FROM
  24870. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24871. WHERE cvterm.name = 'increased_polyadenylation_variant' OR cvterm.name = 'decreased_polyadenylation_variant' OR cvterm.name = 'polyadenylation_variant';
  24872. --- ************************************************
  24873. --- *** relation: transcript_stability_variant ***
  24874. --- *** relation type: VIEW ***
  24875. --- *** ***
  24876. --- *** A variant that changes the stability of ***
  24877. --- *** a transcript with respect to a reference ***
  24878. --- *** sequence. ***
  24879. --- ************************************************
  24880. ---
  24881. CREATE VIEW transcript_stability_variant AS
  24882. SELECT
  24883. feature_id AS transcript_stability_variant_id,
  24884. feature.*
  24885. FROM
  24886. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24887. WHERE cvterm.name = 'decreased_transcript_stability_variant' OR cvterm.name = 'increased_transcript_stability_variant' OR cvterm.name = 'transcript_stability_variant';
  24888. --- ************************************************
  24889. --- *** relation: decreased_transcript_stability_variant ***
  24890. --- *** relation type: VIEW ***
  24891. --- *** ***
  24892. --- *** A sequence variant that decreases transc ***
  24893. --- *** ript stability with respect to a referen ***
  24894. --- *** ce sequence. ***
  24895. --- ************************************************
  24896. ---
  24897. CREATE VIEW decreased_transcript_stability_variant AS
  24898. SELECT
  24899. feature_id AS decreased_transcript_stability_variant_id,
  24900. feature.*
  24901. FROM
  24902. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24903. WHERE cvterm.name = 'decreased_transcript_stability_variant';
  24904. --- ************************************************
  24905. --- *** relation: increased_transcript_stability_variant ***
  24906. --- *** relation type: VIEW ***
  24907. --- *** ***
  24908. --- *** A sequence variant that increases transc ***
  24909. --- *** ript stability with respect to a referen ***
  24910. --- *** ce sequence. ***
  24911. --- ************************************************
  24912. ---
  24913. CREATE VIEW increased_transcript_stability_variant AS
  24914. SELECT
  24915. feature_id AS increased_transcript_stability_variant_id,
  24916. feature.*
  24917. FROM
  24918. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24919. WHERE cvterm.name = 'increased_transcript_stability_variant';
  24920. --- ************************************************
  24921. --- *** relation: transcription_variant ***
  24922. --- *** relation type: VIEW ***
  24923. --- *** ***
  24924. --- *** A variant that changes alters the transc ***
  24925. --- *** ription of a transcript with respect to ***
  24926. --- *** a reference sequence. ***
  24927. --- ************************************************
  24928. ---
  24929. CREATE VIEW transcription_variant AS
  24930. SELECT
  24931. feature_id AS transcription_variant_id,
  24932. feature.*
  24933. FROM
  24934. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24935. WHERE cvterm.name = 'rate_of_transcription_variant' OR cvterm.name = 'increased_transcription_rate_variant' OR cvterm.name = 'decreased_transcription_rate_variant' OR cvterm.name = 'transcription_variant';
  24936. --- ************************************************
  24937. --- *** relation: rate_of_transcription_variant ***
  24938. --- *** relation type: VIEW ***
  24939. --- *** ***
  24940. --- *** A sequence variant that changes the rate ***
  24941. --- *** of transcription with respect to a refe ***
  24942. --- *** rence sequence. ***
  24943. --- ************************************************
  24944. ---
  24945. CREATE VIEW rate_of_transcription_variant AS
  24946. SELECT
  24947. feature_id AS rate_of_transcription_variant_id,
  24948. feature.*
  24949. FROM
  24950. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24951. WHERE cvterm.name = 'increased_transcription_rate_variant' OR cvterm.name = 'decreased_transcription_rate_variant' OR cvterm.name = 'rate_of_transcription_variant';
  24952. --- ************************************************
  24953. --- *** relation: increased_transcription_rate_variant ***
  24954. --- *** relation type: VIEW ***
  24955. --- *** ***
  24956. --- *** A sequence variant that increases the ra ***
  24957. --- *** te of transcription with respect to a re ***
  24958. --- *** ference sequence. ***
  24959. --- ************************************************
  24960. ---
  24961. CREATE VIEW increased_transcription_rate_variant AS
  24962. SELECT
  24963. feature_id AS increased_transcription_rate_variant_id,
  24964. feature.*
  24965. FROM
  24966. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24967. WHERE cvterm.name = 'increased_transcription_rate_variant';
  24968. --- ************************************************
  24969. --- *** relation: decreased_transcription_rate_variant ***
  24970. --- *** relation type: VIEW ***
  24971. --- *** ***
  24972. --- *** A sequence variant that decreases the ra ***
  24973. --- *** te of transcription with respect to a re ***
  24974. --- *** ference sequence. ***
  24975. --- ************************************************
  24976. ---
  24977. CREATE VIEW decreased_transcription_rate_variant AS
  24978. SELECT
  24979. feature_id AS decreased_transcription_rate_variant_id,
  24980. feature.*
  24981. FROM
  24982. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24983. WHERE cvterm.name = 'decreased_transcription_rate_variant';
  24984. --- ************************************************
  24985. --- *** relation: translational_product_level_variant ***
  24986. --- *** relation type: VIEW ***
  24987. --- *** ***
  24988. --- *** A functional variant that changes the tr ***
  24989. --- *** anslational product level with respect t ***
  24990. --- *** o a reference sequence. ***
  24991. --- ************************************************
  24992. ---
  24993. CREATE VIEW translational_product_level_variant AS
  24994. SELECT
  24995. feature_id AS translational_product_level_variant_id,
  24996. feature.*
  24997. FROM
  24998. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24999. WHERE cvterm.name = 'decreased_translational_product_level' OR cvterm.name = 'increased_translational_product_level' OR cvterm.name = 'translational_product_level_variant';
  25000. --- ************************************************
  25001. --- *** relation: polypeptide_function_variant ***
  25002. --- *** relation type: VIEW ***
  25003. --- *** ***
  25004. --- *** A sequence variant which changes polypep ***
  25005. --- *** tide functioning with respect to a refer ***
  25006. --- *** ence sequence. ***
  25007. --- ************************************************
  25008. ---
  25009. CREATE VIEW polypeptide_function_variant AS
  25010. SELECT
  25011. feature_id AS polypeptide_function_variant_id,
  25012. feature.*
  25013. FROM
  25014. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25015. WHERE cvterm.name = 'polypeptide_gain_of_function_variant' OR cvterm.name = 'polypeptide_localization_variant' OR cvterm.name = 'polypeptide_loss_of_function_variant' OR cvterm.name = 'polypeptide_post_translational_processing_variant' OR cvterm.name = 'inactive_ligand_binding_site' OR cvterm.name = 'polypeptide_partial_loss_of_function' OR cvterm.name = 'inactive_catalytic_site' OR cvterm.name = 'polypeptide_function_variant';
  25016. --- ************************************************
  25017. --- *** relation: decreased_translational_product_level ***
  25018. --- *** relation type: VIEW ***
  25019. --- *** ***
  25020. --- *** A sequence variant which decreases the t ***
  25021. --- *** ranslational product level with respect ***
  25022. --- *** to a reference sequence. ***
  25023. --- ************************************************
  25024. ---
  25025. CREATE VIEW decreased_translational_product_level AS
  25026. SELECT
  25027. feature_id AS decreased_translational_product_level_id,
  25028. feature.*
  25029. FROM
  25030. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25031. WHERE cvterm.name = 'decreased_translational_product_level';
  25032. --- ************************************************
  25033. --- *** relation: increased_translational_product_level ***
  25034. --- *** relation type: VIEW ***
  25035. --- *** ***
  25036. --- *** A sequence variant which increases the t ***
  25037. --- *** ranslational product level with respect ***
  25038. --- *** to a reference sequence. ***
  25039. --- ************************************************
  25040. ---
  25041. CREATE VIEW increased_translational_product_level AS
  25042. SELECT
  25043. feature_id AS increased_translational_product_level_id,
  25044. feature.*
  25045. FROM
  25046. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25047. WHERE cvterm.name = 'increased_translational_product_level';
  25048. --- ************************************************
  25049. --- *** relation: polypeptide_gain_of_function_variant ***
  25050. --- *** relation type: VIEW ***
  25051. --- *** ***
  25052. --- *** A sequence variant which causes gain of ***
  25053. --- *** polypeptide function with respect to a r ***
  25054. --- *** eference sequence. ***
  25055. --- ************************************************
  25056. ---
  25057. CREATE VIEW polypeptide_gain_of_function_variant AS
  25058. SELECT
  25059. feature_id AS polypeptide_gain_of_function_variant_id,
  25060. feature.*
  25061. FROM
  25062. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25063. WHERE cvterm.name = 'polypeptide_gain_of_function_variant';
  25064. --- ************************************************
  25065. --- *** relation: polypeptide_localization_variant ***
  25066. --- *** relation type: VIEW ***
  25067. --- *** ***
  25068. --- *** A sequence variant which changes the loc ***
  25069. --- *** alization of a polypeptide with respect ***
  25070. --- *** to a reference sequence. ***
  25071. --- ************************************************
  25072. ---
  25073. CREATE VIEW polypeptide_localization_variant AS
  25074. SELECT
  25075. feature_id AS polypeptide_localization_variant_id,
  25076. feature.*
  25077. FROM
  25078. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25079. WHERE cvterm.name = 'polypeptide_localization_variant';
  25080. --- ************************************************
  25081. --- *** relation: polypeptide_loss_of_function_variant ***
  25082. --- *** relation type: VIEW ***
  25083. --- *** ***
  25084. --- *** A sequence variant that causes the loss ***
  25085. --- *** of a polypeptide function with respect t ***
  25086. --- *** o a reference sequence. ***
  25087. --- ************************************************
  25088. ---
  25089. CREATE VIEW polypeptide_loss_of_function_variant AS
  25090. SELECT
  25091. feature_id AS polypeptide_loss_of_function_variant_id,
  25092. feature.*
  25093. FROM
  25094. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25095. WHERE cvterm.name = 'inactive_ligand_binding_site' OR cvterm.name = 'polypeptide_partial_loss_of_function' OR cvterm.name = 'inactive_catalytic_site' OR cvterm.name = 'polypeptide_loss_of_function_variant';
  25096. --- ************************************************
  25097. --- *** relation: inactive_ligand_binding_site ***
  25098. --- *** relation type: VIEW ***
  25099. --- *** ***
  25100. --- *** A sequence variant that causes the inact ***
  25101. --- *** ivation of a ligand binding site with re ***
  25102. --- *** spect to a reference sequence. ***
  25103. --- ************************************************
  25104. ---
  25105. CREATE VIEW inactive_ligand_binding_site AS
  25106. SELECT
  25107. feature_id AS inactive_ligand_binding_site_id,
  25108. feature.*
  25109. FROM
  25110. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25111. WHERE cvterm.name = 'inactive_catalytic_site' OR cvterm.name = 'inactive_ligand_binding_site';
  25112. --- ************************************************
  25113. --- *** relation: polypeptide_partial_loss_of_function ***
  25114. --- *** relation type: VIEW ***
  25115. --- *** ***
  25116. --- *** A sequence variant that causes some but ***
  25117. --- *** not all loss of polypeptide function wit ***
  25118. --- *** h respect to a reference sequence. ***
  25119. --- ************************************************
  25120. ---
  25121. CREATE VIEW polypeptide_partial_loss_of_function AS
  25122. SELECT
  25123. feature_id AS polypeptide_partial_loss_of_function_id,
  25124. feature.*
  25125. FROM
  25126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25127. WHERE cvterm.name = 'polypeptide_partial_loss_of_function';
  25128. --- ************************************************
  25129. --- *** relation: polypeptide_post_translational_processing_variant ***
  25130. --- *** relation type: VIEW ***
  25131. --- *** ***
  25132. --- *** A sequence variant that causes a change ***
  25133. --- *** in post translational processing of the ***
  25134. --- *** peptide with respect to a reference sequ ***
  25135. --- *** ence. ***
  25136. --- ************************************************
  25137. ---
  25138. CREATE VIEW polypeptide_post_translational_processing_variant AS
  25139. SELECT
  25140. feature_id AS polypeptide_post_translational_processing_variant_id,
  25141. feature.*
  25142. FROM
  25143. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25144. WHERE cvterm.name = 'polypeptide_post_translational_processing_variant';
  25145. --- ************************************************
  25146. --- *** relation: copy_number_change ***
  25147. --- *** relation type: VIEW ***
  25148. --- *** ***
  25149. --- *** A sequence variant where copies of a fea ***
  25150. --- *** ture (CNV) are either increased or decre ***
  25151. --- *** ased. ***
  25152. --- ************************************************
  25153. ---
  25154. CREATE VIEW copy_number_change AS
  25155. SELECT
  25156. feature_id AS copy_number_change_id,
  25157. feature.*
  25158. FROM
  25159. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25160. WHERE cvterm.name = 'copy_number_change';
  25161. --- ************************************************
  25162. --- *** relation: gene_variant ***
  25163. --- *** relation type: VIEW ***
  25164. --- *** ***
  25165. --- *** A sequence variant where the structure o ***
  25166. --- *** f the gene is changed. ***
  25167. --- ************************************************
  25168. ---
  25169. CREATE VIEW gene_variant AS
  25170. SELECT
  25171. feature_id AS gene_variant_id,
  25172. feature.*
  25173. FROM
  25174. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25175. WHERE cvterm.name = 'gene_fusion' OR cvterm.name = 'splicing_variant' OR cvterm.name = 'transcript_variant' OR cvterm.name = 'translational_product_structure_variant' OR cvterm.name = 'cryptic_splice_site_variant' OR cvterm.name = 'exon_loss' OR cvterm.name = 'intron_gain' OR cvterm.name = 'splice_region_variant' OR cvterm.name = 'cryptic_splice_acceptor' OR cvterm.name = 'cryptic_splice_donor' OR cvterm.name = 'complex_change_in_transcript' OR cvterm.name = 'transcript_secondary_structure_variant' OR cvterm.name = 'nc_transcript_variant' OR cvterm.name = 'NMD_transcript_variant' OR cvterm.name = 'UTR_variant' OR cvterm.name = 'intron_variant' OR cvterm.name = 'exon_variant' OR cvterm.name = 'compensatory_transcript_secondary_structure_variant' OR cvterm.name = 'mature_miRNA_variant' OR cvterm.name = '5_prime_UTR_variant' OR cvterm.name = '3_prime_UTR_variant' OR cvterm.name = 'splice_site_variant' OR cvterm.name = 'splice_acceptor_variant' OR cvterm.name = 'splice_donor_variant' OR cvterm.name = 'splice_donor_5th_base_variant' OR cvterm.name = 'coding_sequence_variant' OR cvterm.name = 'non_coding_exon_variant' OR cvterm.name = 'codon_variant' OR cvterm.name = 'frameshift_variant' OR cvterm.name = 'inframe_variant' OR cvterm.name = 'initiator_codon_change' OR cvterm.name = 'non_synonymous_codon' OR cvterm.name = 'synonymous_codon' OR cvterm.name = 'terminal_codon_variant' OR cvterm.name = 'stop_gained' OR cvterm.name = 'missense_codon' OR cvterm.name = 'conservative_missense_codon' OR cvterm.name = 'non_conservative_missense_codon' OR cvterm.name = 'terminator_codon_variant' OR cvterm.name = 'incomplete_terminal_codon_variant' OR cvterm.name = 'stop_retained_variant' OR cvterm.name = 'stop_lost' OR cvterm.name = 'frame_restoring_variant' OR cvterm.name = 'minus_1_frameshift_variant' OR cvterm.name = 'minus_2_frameshift_variant' OR cvterm.name = 'plus_1_frameshift_variant' OR cvterm.name = 'plus_2_frameshift variant' OR cvterm.name = 'inframe_codon_gain' OR cvterm.name = 'inframe_codon_loss' OR cvterm.name = '3D_polypeptide_structure_variant' OR cvterm.name = 'complex_change_of_translational_product_variant' OR cvterm.name = 'polypeptide_sequence_variant' OR cvterm.name = 'complex_3D_structural_variant' OR cvterm.name = 'conformational_change_variant' OR cvterm.name = 'amino_acid_deletion' OR cvterm.name = 'amino_acid_insertion' OR cvterm.name = 'amino_acid_substitution' OR cvterm.name = 'elongated_polypeptide' OR cvterm.name = 'polypeptide_fusion' OR cvterm.name = 'polypeptide_truncation' OR cvterm.name = 'conservative_amino_acid_substitution' OR cvterm.name = 'non_conservative_amino_acid_substitution' OR cvterm.name = 'elongated_polypeptide_C_terminal' OR cvterm.name = 'elongated_polypeptide_N_terminal' OR cvterm.name = 'elongated_in_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_out_of_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_in_frame_polypeptide_N_terminal_elongation' OR cvterm.name = 'elongated_out_of_frame_polypeptide_N_terminal' OR cvterm.name = 'gene_variant';
  25176. --- ************************************************
  25177. --- *** relation: gene_fusion ***
  25178. --- *** relation type: VIEW ***
  25179. --- *** ***
  25180. --- *** A sequence variant whereby a two genes h ***
  25181. --- *** ave become joined. ***
  25182. --- ************************************************
  25183. ---
  25184. CREATE VIEW gene_fusion AS
  25185. SELECT
  25186. feature_id AS gene_fusion_id,
  25187. feature.*
  25188. FROM
  25189. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25190. WHERE cvterm.name = 'gene_fusion';
  25191. --- ************************************************
  25192. --- *** relation: regulatory_region_variant ***
  25193. --- *** relation type: VIEW ***
  25194. --- *** ***
  25195. --- *** A sequence variant located within a regu ***
  25196. --- *** latory region. ***
  25197. --- ************************************************
  25198. ---
  25199. CREATE VIEW regulatory_region_variant AS
  25200. SELECT
  25201. feature_id AS regulatory_region_variant_id,
  25202. feature.*
  25203. FROM
  25204. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25205. WHERE cvterm.name = 'TF_binding_site_variant' OR cvterm.name = 'regulatory_region_variant';
  25206. --- ************************************************
  25207. --- *** relation: stop_retained_variant ***
  25208. --- *** relation type: VIEW ***
  25209. --- *** ***
  25210. --- *** A sequence variant where at least one ba ***
  25211. --- *** se in the terminator codon is changed, b ***
  25212. --- *** ut the terminator remains. ***
  25213. --- ************************************************
  25214. ---
  25215. CREATE VIEW stop_retained_variant AS
  25216. SELECT
  25217. feature_id AS stop_retained_variant_id,
  25218. feature.*
  25219. FROM
  25220. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25221. WHERE cvterm.name = 'stop_retained_variant';
  25222. --- ************************************************
  25223. --- *** relation: splicing_variant ***
  25224. --- *** relation type: VIEW ***
  25225. --- *** ***
  25226. --- *** A sequence variant that changes the proc ***
  25227. --- *** ess of splicing. ***
  25228. --- ************************************************
  25229. ---
  25230. CREATE VIEW splicing_variant AS
  25231. SELECT
  25232. feature_id AS splicing_variant_id,
  25233. feature.*
  25234. FROM
  25235. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25236. WHERE cvterm.name = 'cryptic_splice_site_variant' OR cvterm.name = 'exon_loss' OR cvterm.name = 'intron_gain' OR cvterm.name = 'splice_region_variant' OR cvterm.name = 'cryptic_splice_acceptor' OR cvterm.name = 'cryptic_splice_donor' OR cvterm.name = 'splicing_variant';
  25237. --- ************************************************
  25238. --- *** relation: cryptic_splice_site_variant ***
  25239. --- *** relation type: VIEW ***
  25240. --- *** ***
  25241. --- *** A sequence variant causing a new (functi ***
  25242. --- *** onal) splice site. ***
  25243. --- ************************************************
  25244. ---
  25245. CREATE VIEW cryptic_splice_site_variant AS
  25246. SELECT
  25247. feature_id AS cryptic_splice_site_variant_id,
  25248. feature.*
  25249. FROM
  25250. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25251. WHERE cvterm.name = 'cryptic_splice_acceptor' OR cvterm.name = 'cryptic_splice_donor' OR cvterm.name = 'cryptic_splice_site_variant';
  25252. --- ************************************************
  25253. --- *** relation: cryptic_splice_acceptor ***
  25254. --- *** relation type: VIEW ***
  25255. --- *** ***
  25256. --- *** A sequence variant whereby a new splice ***
  25257. --- *** site is created due to the activation of ***
  25258. --- *** a new acceptor. ***
  25259. --- ************************************************
  25260. ---
  25261. CREATE VIEW cryptic_splice_acceptor AS
  25262. SELECT
  25263. feature_id AS cryptic_splice_acceptor_id,
  25264. feature.*
  25265. FROM
  25266. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25267. WHERE cvterm.name = 'cryptic_splice_acceptor';
  25268. --- ************************************************
  25269. --- *** relation: cryptic_splice_donor ***
  25270. --- *** relation type: VIEW ***
  25271. --- *** ***
  25272. --- *** A sequence variant whereby a new splice ***
  25273. --- *** site is created due to the activation of ***
  25274. --- *** a new donor. ***
  25275. --- ************************************************
  25276. ---
  25277. CREATE VIEW cryptic_splice_donor AS
  25278. SELECT
  25279. feature_id AS cryptic_splice_donor_id,
  25280. feature.*
  25281. FROM
  25282. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25283. WHERE cvterm.name = 'cryptic_splice_donor';
  25284. --- ************************************************
  25285. --- *** relation: exon_loss ***
  25286. --- *** relation type: VIEW ***
  25287. --- *** ***
  25288. --- *** A sequence variant whereby an exon is lo ***
  25289. --- *** st from the transcript. ***
  25290. --- ************************************************
  25291. ---
  25292. CREATE VIEW exon_loss AS
  25293. SELECT
  25294. feature_id AS exon_loss_id,
  25295. feature.*
  25296. FROM
  25297. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25298. WHERE cvterm.name = 'exon_loss';
  25299. --- ************************************************
  25300. --- *** relation: intron_gain ***
  25301. --- *** relation type: VIEW ***
  25302. --- *** ***
  25303. --- *** A sequence variant whereby an intron is ***
  25304. --- *** gained by the processed transcript; usua ***
  25305. --- *** lly a result of an alteration of the don ***
  25306. --- *** or or acceptor. ***
  25307. --- ************************************************
  25308. ---
  25309. CREATE VIEW intron_gain AS
  25310. SELECT
  25311. feature_id AS intron_gain_id,
  25312. feature.*
  25313. FROM
  25314. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25315. WHERE cvterm.name = 'intron_gain';
  25316. --- ************************************************
  25317. --- *** relation: splice_acceptor_variant ***
  25318. --- *** relation type: VIEW ***
  25319. --- *** ***
  25320. --- *** A splice variant that changes the 2 base ***
  25321. --- *** region at the 3' end of an intron. ***
  25322. --- ************************************************
  25323. ---
  25324. CREATE VIEW splice_acceptor_variant AS
  25325. SELECT
  25326. feature_id AS splice_acceptor_variant_id,
  25327. feature.*
  25328. FROM
  25329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25330. WHERE cvterm.name = 'splice_acceptor_variant';
  25331. --- ************************************************
  25332. --- *** relation: splice_donor_variant ***
  25333. --- *** relation type: VIEW ***
  25334. --- *** ***
  25335. --- *** A splice variant that changes the2 base ***
  25336. --- *** region at the 5' end of an intron. ***
  25337. --- ************************************************
  25338. ---
  25339. CREATE VIEW splice_donor_variant AS
  25340. SELECT
  25341. feature_id AS splice_donor_variant_id,
  25342. feature.*
  25343. FROM
  25344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25345. WHERE cvterm.name = 'splice_donor_variant';
  25346. --- ************************************************
  25347. --- *** relation: transcript_variant ***
  25348. --- *** relation type: VIEW ***
  25349. --- *** ***
  25350. --- *** A sequence variant that changes the stru ***
  25351. --- *** cture of the transcript. ***
  25352. --- ************************************************
  25353. ---
  25354. CREATE VIEW transcript_variant AS
  25355. SELECT
  25356. feature_id AS transcript_variant_id,
  25357. feature.*
  25358. FROM
  25359. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25360. WHERE cvterm.name = 'complex_change_in_transcript' OR cvterm.name = 'transcript_secondary_structure_variant' OR cvterm.name = 'nc_transcript_variant' OR cvterm.name = 'NMD_transcript_variant' OR cvterm.name = 'UTR_variant' OR cvterm.name = 'intron_variant' OR cvterm.name = 'exon_variant' OR cvterm.name = 'compensatory_transcript_secondary_structure_variant' OR cvterm.name = 'mature_miRNA_variant' OR cvterm.name = '5_prime_UTR_variant' OR cvterm.name = '3_prime_UTR_variant' OR cvterm.name = 'splice_site_variant' OR cvterm.name = 'splice_acceptor_variant' OR cvterm.name = 'splice_donor_variant' OR cvterm.name = 'splice_donor_5th_base_variant' OR cvterm.name = 'coding_sequence_variant' OR cvterm.name = 'non_coding_exon_variant' OR cvterm.name = 'codon_variant' OR cvterm.name = 'frameshift_variant' OR cvterm.name = 'inframe_variant' OR cvterm.name = 'initiator_codon_change' OR cvterm.name = 'non_synonymous_codon' OR cvterm.name = 'synonymous_codon' OR cvterm.name = 'terminal_codon_variant' OR cvterm.name = 'stop_gained' OR cvterm.name = 'missense_codon' OR cvterm.name = 'conservative_missense_codon' OR cvterm.name = 'non_conservative_missense_codon' OR cvterm.name = 'terminator_codon_variant' OR cvterm.name = 'incomplete_terminal_codon_variant' OR cvterm.name = 'stop_retained_variant' OR cvterm.name = 'stop_lost' OR cvterm.name = 'frame_restoring_variant' OR cvterm.name = 'minus_1_frameshift_variant' OR cvterm.name = 'minus_2_frameshift_variant' OR cvterm.name = 'plus_1_frameshift_variant' OR cvterm.name = 'plus_2_frameshift variant' OR cvterm.name = 'inframe_codon_gain' OR cvterm.name = 'inframe_codon_loss' OR cvterm.name = 'transcript_variant';
  25361. --- ************************************************
  25362. --- *** relation: complex_change_in_transcript ***
  25363. --- *** relation type: VIEW ***
  25364. --- *** ***
  25365. --- *** A transcript variant with a complex INDE ***
  25366. --- *** L- Insertion or deletion that spans an e ***
  25367. --- *** xon/intron border or a coding sequence/U ***
  25368. --- *** TR border. ***
  25369. --- ************************************************
  25370. ---
  25371. CREATE VIEW complex_change_in_transcript AS
  25372. SELECT
  25373. feature_id AS complex_change_in_transcript_id,
  25374. feature.*
  25375. FROM
  25376. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25377. WHERE cvterm.name = 'complex_change_in_transcript';
  25378. --- ************************************************
  25379. --- *** relation: stop_lost ***
  25380. --- *** relation type: VIEW ***
  25381. --- *** ***
  25382. --- *** A sequence variant where at least one ba ***
  25383. --- *** se of the terminator codon (stop) is cha ***
  25384. --- *** nged, resulting in an elongated transcri ***
  25385. --- *** pt. ***
  25386. --- ************************************************
  25387. ---
  25388. CREATE VIEW stop_lost AS
  25389. SELECT
  25390. feature_id AS stop_lost_id,
  25391. feature.*
  25392. FROM
  25393. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25394. WHERE cvterm.name = 'stop_lost';
  25395. --- ************************************************
  25396. --- *** relation: coding_sequence_variant ***
  25397. --- *** relation type: VIEW ***
  25398. --- *** ***
  25399. --- *** A sequence variant that changes the codi ***
  25400. --- *** ng sequence. ***
  25401. --- ************************************************
  25402. ---
  25403. CREATE VIEW coding_sequence_variant AS
  25404. SELECT
  25405. feature_id AS coding_sequence_variant_id,
  25406. feature.*
  25407. FROM
  25408. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25409. WHERE cvterm.name = 'codon_variant' OR cvterm.name = 'frameshift_variant' OR cvterm.name = 'inframe_variant' OR cvterm.name = 'initiator_codon_change' OR cvterm.name = 'non_synonymous_codon' OR cvterm.name = 'synonymous_codon' OR cvterm.name = 'terminal_codon_variant' OR cvterm.name = 'stop_gained' OR cvterm.name = 'missense_codon' OR cvterm.name = 'conservative_missense_codon' OR cvterm.name = 'non_conservative_missense_codon' OR cvterm.name = 'terminator_codon_variant' OR cvterm.name = 'incomplete_terminal_codon_variant' OR cvterm.name = 'stop_retained_variant' OR cvterm.name = 'stop_lost' OR cvterm.name = 'frame_restoring_variant' OR cvterm.name = 'minus_1_frameshift_variant' OR cvterm.name = 'minus_2_frameshift_variant' OR cvterm.name = 'plus_1_frameshift_variant' OR cvterm.name = 'plus_2_frameshift variant' OR cvterm.name = 'inframe_codon_gain' OR cvterm.name = 'inframe_codon_loss' OR cvterm.name = 'coding_sequence_variant';
  25410. --- ************************************************
  25411. --- *** relation: codon_variant ***
  25412. --- *** relation type: VIEW ***
  25413. --- *** ***
  25414. --- *** A sequence variant that changes at least ***
  25415. --- *** one base in a codon. ***
  25416. --- ************************************************
  25417. ---
  25418. CREATE VIEW codon_variant AS
  25419. SELECT
  25420. feature_id AS codon_variant_id,
  25421. feature.*
  25422. FROM
  25423. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25424. WHERE cvterm.name = 'initiator_codon_change' OR cvterm.name = 'non_synonymous_codon' OR cvterm.name = 'synonymous_codon' OR cvterm.name = 'terminal_codon_variant' OR cvterm.name = 'stop_gained' OR cvterm.name = 'missense_codon' OR cvterm.name = 'conservative_missense_codon' OR cvterm.name = 'non_conservative_missense_codon' OR cvterm.name = 'terminator_codon_variant' OR cvterm.name = 'incomplete_terminal_codon_variant' OR cvterm.name = 'stop_retained_variant' OR cvterm.name = 'stop_lost' OR cvterm.name = 'codon_variant';
  25425. --- ************************************************
  25426. --- *** relation: initiator_codon_change ***
  25427. --- *** relation type: VIEW ***
  25428. --- *** ***
  25429. --- *** A codon variant that changes at least on ***
  25430. --- *** e base of the first codon of a transcrip ***
  25431. --- *** t. ***
  25432. --- ************************************************
  25433. ---
  25434. CREATE VIEW initiator_codon_change AS
  25435. SELECT
  25436. feature_id AS initiator_codon_change_id,
  25437. feature.*
  25438. FROM
  25439. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25440. WHERE cvterm.name = 'initiator_codon_change';
  25441. --- ************************************************
  25442. --- *** relation: non_synonymous_codon ***
  25443. --- *** relation type: VIEW ***
  25444. --- *** ***
  25445. --- *** A sequence variant whereby at least one ***
  25446. --- *** base of a codon is changed resulting in ***
  25447. --- *** a codon that encodes for a different ami ***
  25448. --- *** no acid or stop codon. ***
  25449. --- ************************************************
  25450. ---
  25451. CREATE VIEW non_synonymous_codon AS
  25452. SELECT
  25453. feature_id AS non_synonymous_codon_id,
  25454. feature.*
  25455. FROM
  25456. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25457. WHERE cvterm.name = 'stop_gained' OR cvterm.name = 'missense_codon' OR cvterm.name = 'conservative_missense_codon' OR cvterm.name = 'non_conservative_missense_codon' OR cvterm.name = 'non_synonymous_codon';
  25458. --- ************************************************
  25459. --- *** relation: conservative_missense_codon ***
  25460. --- *** relation type: VIEW ***
  25461. --- *** ***
  25462. --- *** A sequence variant whereby at least one ***
  25463. --- *** base of a codon is changed resulting in ***
  25464. --- *** a codon that encodes for a different but ***
  25465. --- *** similar amino acid. These variants may ***
  25466. --- *** or may not be deleterious. ***
  25467. --- ************************************************
  25468. ---
  25469. CREATE VIEW conservative_missense_codon AS
  25470. SELECT
  25471. feature_id AS conservative_missense_codon_id,
  25472. feature.*
  25473. FROM
  25474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25475. WHERE cvterm.name = 'conservative_missense_codon';
  25476. --- ************************************************
  25477. --- *** relation: non_conservative_missense_codon ***
  25478. --- *** relation type: VIEW ***
  25479. --- *** ***
  25480. --- *** A sequence variant whereby at least one ***
  25481. --- *** base of a codon is changed resulting in ***
  25482. --- *** a codon that encodes for an amino acid w ***
  25483. --- *** ith different biochemical properties. ***
  25484. --- ************************************************
  25485. ---
  25486. CREATE VIEW non_conservative_missense_codon AS
  25487. SELECT
  25488. feature_id AS non_conservative_missense_codon_id,
  25489. feature.*
  25490. FROM
  25491. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25492. WHERE cvterm.name = 'non_conservative_missense_codon';
  25493. --- ************************************************
  25494. --- *** relation: stop_gained ***
  25495. --- *** relation type: VIEW ***
  25496. --- *** ***
  25497. --- *** A sequence variant whereby at least one ***
  25498. --- *** base of a codon is changed, resulting in ***
  25499. --- *** a premature stop codon, leading to a sh ***
  25500. --- *** ortened transcript. ***
  25501. --- ************************************************
  25502. ---
  25503. CREATE VIEW stop_gained AS
  25504. SELECT
  25505. feature_id AS stop_gained_id,
  25506. feature.*
  25507. FROM
  25508. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25509. WHERE cvterm.name = 'stop_gained';
  25510. --- ************************************************
  25511. --- *** relation: synonymous_codon ***
  25512. --- *** relation type: VIEW ***
  25513. --- *** ***
  25514. --- *** A sequence variant whereby a base of a c ***
  25515. --- *** odon is changed, but there is no resulti ***
  25516. --- *** ng change to the encoded amino acid. ***
  25517. --- ************************************************
  25518. ---
  25519. CREATE VIEW synonymous_codon AS
  25520. SELECT
  25521. feature_id AS synonymous_codon_id,
  25522. feature.*
  25523. FROM
  25524. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25525. WHERE cvterm.name = 'synonymous_codon';
  25526. --- ************************************************
  25527. --- *** relation: frameshift_variant ***
  25528. --- *** relation type: VIEW ***
  25529. --- *** ***
  25530. --- *** A sequence variant which causes a disrup ***
  25531. --- *** tion of the translational reading frame, ***
  25532. --- *** because the number of nucleotides inser ***
  25533. --- *** ted or deleted is not a multiple of thre ***
  25534. --- *** e. ***
  25535. --- ************************************************
  25536. ---
  25537. CREATE VIEW frameshift_variant AS
  25538. SELECT
  25539. feature_id AS frameshift_variant_id,
  25540. feature.*
  25541. FROM
  25542. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25543. WHERE cvterm.name = 'frame_restoring_variant' OR cvterm.name = 'minus_1_frameshift_variant' OR cvterm.name = 'minus_2_frameshift_variant' OR cvterm.name = 'plus_1_frameshift_variant' OR cvterm.name = 'plus_2_frameshift variant' OR cvterm.name = 'frameshift_variant';
  25544. --- ************************************************
  25545. --- *** relation: terminator_codon_variant ***
  25546. --- *** relation type: VIEW ***
  25547. --- *** ***
  25548. --- *** A sequence variant whereby at least one ***
  25549. --- *** of the bases in the terminator codon is ***
  25550. --- *** changed. ***
  25551. --- ************************************************
  25552. ---
  25553. CREATE VIEW terminator_codon_variant AS
  25554. SELECT
  25555. feature_id AS terminator_codon_variant_id,
  25556. feature.*
  25557. FROM
  25558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25559. WHERE cvterm.name = 'stop_retained_variant' OR cvterm.name = 'stop_lost' OR cvterm.name = 'terminator_codon_variant';
  25560. --- ************************************************
  25561. --- *** relation: frame_restoring_variant ***
  25562. --- *** relation type: VIEW ***
  25563. --- *** ***
  25564. --- *** A sequence variant that reverts the sequ ***
  25565. --- *** ence of a previous frameshift mutation b ***
  25566. --- *** ack to the initial frame. ***
  25567. --- ************************************************
  25568. ---
  25569. CREATE VIEW frame_restoring_variant AS
  25570. SELECT
  25571. feature_id AS frame_restoring_variant_id,
  25572. feature.*
  25573. FROM
  25574. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25575. WHERE cvterm.name = 'frame_restoring_variant';
  25576. --- ************************************************
  25577. --- *** relation: minus_1_frameshift_variant ***
  25578. --- *** relation type: VIEW ***
  25579. --- *** ***
  25580. --- *** A sequence variant which causes a disrup ***
  25581. --- *** tion of the translational reading frame, ***
  25582. --- *** by shifting one base ahead. ***
  25583. --- ************************************************
  25584. ---
  25585. CREATE VIEW minus_1_frameshift_variant AS
  25586. SELECT
  25587. feature_id AS minus_1_frameshift_variant_id,
  25588. feature.*
  25589. FROM
  25590. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25591. WHERE cvterm.name = 'minus_1_frameshift_variant';
  25592. --- ************************************************
  25593. --- *** relation: minus_2_frameshift_variant ***
  25594. --- *** relation type: VIEW ***
  25595. --- *** ***
  25596. --- ************************************************
  25597. ---
  25598. CREATE VIEW minus_2_frameshift_variant AS
  25599. SELECT
  25600. feature_id AS minus_2_frameshift_variant_id,
  25601. feature.*
  25602. FROM
  25603. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25604. WHERE cvterm.name = 'minus_2_frameshift_variant';
  25605. --- ************************************************
  25606. --- *** relation: plus_1_frameshift_variant ***
  25607. --- *** relation type: VIEW ***
  25608. --- *** ***
  25609. --- *** A sequence variant which causes a disrup ***
  25610. --- *** tion of the translational reading frame, ***
  25611. --- *** by shifting one base backward. ***
  25612. --- ************************************************
  25613. ---
  25614. CREATE VIEW plus_1_frameshift_variant AS
  25615. SELECT
  25616. feature_id AS plus_1_frameshift_variant_id,
  25617. feature.*
  25618. FROM
  25619. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25620. WHERE cvterm.name = 'plus_1_frameshift_variant';
  25621. --- ************************************************
  25622. --- *** relation: plus_2_frameshift_variant ***
  25623. --- *** relation type: VIEW ***
  25624. --- *** ***
  25625. --- ************************************************
  25626. ---
  25627. CREATE VIEW plus_2_frameshift_variant AS
  25628. SELECT
  25629. feature_id AS plus_2_frameshift_variant_id,
  25630. feature.*
  25631. FROM
  25632. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25633. WHERE cvterm.name = 'plus_2_frameshift variant';
  25634. --- ************************************************
  25635. --- *** relation: transcript_secondary_structure_variant ***
  25636. --- *** relation type: VIEW ***
  25637. --- *** ***
  25638. --- *** A sequence variant within a transcript t ***
  25639. --- *** hat changes the secondary structure of t ***
  25640. --- *** he RNA product. ***
  25641. --- ************************************************
  25642. ---
  25643. CREATE VIEW transcript_secondary_structure_variant AS
  25644. SELECT
  25645. feature_id AS transcript_secondary_structure_variant_id,
  25646. feature.*
  25647. FROM
  25648. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25649. WHERE cvterm.name = 'compensatory_transcript_secondary_structure_variant' OR cvterm.name = 'transcript_secondary_structure_variant';
  25650. --- ************************************************
  25651. --- *** relation: compensatory_transcript_secondary_structure_variant ***
  25652. --- *** relation type: VIEW ***
  25653. --- *** ***
  25654. --- *** A secondary structure variant that compe ***
  25655. --- *** nsate for the change made by a previous ***
  25656. --- *** variant. ***
  25657. --- ************************************************
  25658. ---
  25659. CREATE VIEW compensatory_transcript_secondary_structure_variant AS
  25660. SELECT
  25661. feature_id AS compensatory_transcript_secondary_structure_variant_id,
  25662. feature.*
  25663. FROM
  25664. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25665. WHERE cvterm.name = 'compensatory_transcript_secondary_structure_variant';
  25666. --- ************************************************
  25667. --- *** relation: translational_product_structure_variant ***
  25668. --- *** relation type: VIEW ***
  25669. --- *** ***
  25670. --- *** A sequence variant within the transcript ***
  25671. --- *** that changes the structure of the trans ***
  25672. --- *** lational product. ***
  25673. --- ************************************************
  25674. ---
  25675. CREATE VIEW translational_product_structure_variant AS
  25676. SELECT
  25677. feature_id AS translational_product_structure_variant_id,
  25678. feature.*
  25679. FROM
  25680. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25681. WHERE cvterm.name = '3D_polypeptide_structure_variant' OR cvterm.name = 'complex_change_of_translational_product_variant' OR cvterm.name = 'polypeptide_sequence_variant' OR cvterm.name = 'complex_3D_structural_variant' OR cvterm.name = 'conformational_change_variant' OR cvterm.name = 'amino_acid_deletion' OR cvterm.name = 'amino_acid_insertion' OR cvterm.name = 'amino_acid_substitution' OR cvterm.name = 'elongated_polypeptide' OR cvterm.name = 'polypeptide_fusion' OR cvterm.name = 'polypeptide_truncation' OR cvterm.name = 'conservative_amino_acid_substitution' OR cvterm.name = 'non_conservative_amino_acid_substitution' OR cvterm.name = 'elongated_polypeptide_C_terminal' OR cvterm.name = 'elongated_polypeptide_N_terminal' OR cvterm.name = 'elongated_in_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_out_of_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_in_frame_polypeptide_N_terminal_elongation' OR cvterm.name = 'elongated_out_of_frame_polypeptide_N_terminal' OR cvterm.name = 'translational_product_structure_variant';
  25682. --- ************************************************
  25683. --- *** relation: threed_polypeptide_structure_variant ***
  25684. --- *** relation type: VIEW ***
  25685. --- *** ***
  25686. --- *** A sequence variant that changes the resu ***
  25687. --- *** lting polypeptide structure. ***
  25688. --- ************************************************
  25689. ---
  25690. CREATE VIEW threed_polypeptide_structure_variant AS
  25691. SELECT
  25692. feature_id AS threed_polypeptide_structure_variant_id,
  25693. feature.*
  25694. FROM
  25695. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25696. WHERE cvterm.name = 'complex_3D_structural_variant' OR cvterm.name = 'conformational_change_variant' OR cvterm.name = '3D_polypeptide_structure_variant';
  25697. --- ************************************************
  25698. --- *** relation: complex_3d_structural_variant ***
  25699. --- *** relation type: VIEW ***
  25700. --- *** ***
  25701. --- *** A sequence variant that changes the resu ***
  25702. --- *** lting polypeptide structure. ***
  25703. --- ************************************************
  25704. ---
  25705. CREATE VIEW complex_3d_structural_variant AS
  25706. SELECT
  25707. feature_id AS complex_3d_structural_variant_id,
  25708. feature.*
  25709. FROM
  25710. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25711. WHERE cvterm.name = 'complex_3D_structural_variant';
  25712. --- ************************************************
  25713. --- *** relation: conformational_change_variant ***
  25714. --- *** relation type: VIEW ***
  25715. --- *** ***
  25716. --- *** A sequence variant in the CDS region tha ***
  25717. --- *** t causes a conformational change in the ***
  25718. --- *** resulting polypeptide sequence. ***
  25719. --- ************************************************
  25720. ---
  25721. CREATE VIEW conformational_change_variant AS
  25722. SELECT
  25723. feature_id AS conformational_change_variant_id,
  25724. feature.*
  25725. FROM
  25726. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25727. WHERE cvterm.name = 'conformational_change_variant';
  25728. --- ************************************************
  25729. --- *** relation: complex_change_of_translational_product_variant ***
  25730. --- *** relation type: VIEW ***
  25731. --- *** ***
  25732. --- ************************************************
  25733. ---
  25734. CREATE VIEW complex_change_of_translational_product_variant AS
  25735. SELECT
  25736. feature_id AS complex_change_of_translational_product_variant_id,
  25737. feature.*
  25738. FROM
  25739. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25740. WHERE cvterm.name = 'complex_change_of_translational_product_variant';
  25741. --- ************************************************
  25742. --- *** relation: polypeptide_sequence_variant ***
  25743. --- *** relation type: VIEW ***
  25744. --- *** ***
  25745. --- *** A sequence variant with in the CDS that ***
  25746. --- *** causes a change in the resulting polypep ***
  25747. --- *** tide sequence. ***
  25748. --- ************************************************
  25749. ---
  25750. CREATE VIEW polypeptide_sequence_variant AS
  25751. SELECT
  25752. feature_id AS polypeptide_sequence_variant_id,
  25753. feature.*
  25754. FROM
  25755. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25756. WHERE cvterm.name = 'amino_acid_deletion' OR cvterm.name = 'amino_acid_insertion' OR cvterm.name = 'amino_acid_substitution' OR cvterm.name = 'elongated_polypeptide' OR cvterm.name = 'polypeptide_fusion' OR cvterm.name = 'polypeptide_truncation' OR cvterm.name = 'conservative_amino_acid_substitution' OR cvterm.name = 'non_conservative_amino_acid_substitution' OR cvterm.name = 'elongated_polypeptide_C_terminal' OR cvterm.name = 'elongated_polypeptide_N_terminal' OR cvterm.name = 'elongated_in_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_out_of_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_in_frame_polypeptide_N_terminal_elongation' OR cvterm.name = 'elongated_out_of_frame_polypeptide_N_terminal' OR cvterm.name = 'polypeptide_sequence_variant';
  25757. --- ************************************************
  25758. --- *** relation: amino_acid_deletion ***
  25759. --- *** relation type: VIEW ***
  25760. --- *** ***
  25761. --- *** A sequence variant within a CDS resultin ***
  25762. --- *** g in the loss of an amino acid from the ***
  25763. --- *** resulting polypeptide. ***
  25764. --- ************************************************
  25765. ---
  25766. CREATE VIEW amino_acid_deletion AS
  25767. SELECT
  25768. feature_id AS amino_acid_deletion_id,
  25769. feature.*
  25770. FROM
  25771. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25772. WHERE cvterm.name = 'amino_acid_deletion';
  25773. --- ************************************************
  25774. --- *** relation: amino_acid_insertion ***
  25775. --- *** relation type: VIEW ***
  25776. --- *** ***
  25777. --- *** A sequence variant within a CDS resultin ***
  25778. --- *** g in the gain of an amino acid to the re ***
  25779. --- *** sulting polypeptide. ***
  25780. --- ************************************************
  25781. ---
  25782. CREATE VIEW amino_acid_insertion AS
  25783. SELECT
  25784. feature_id AS amino_acid_insertion_id,
  25785. feature.*
  25786. FROM
  25787. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25788. WHERE cvterm.name = 'amino_acid_insertion';
  25789. --- ************************************************
  25790. --- *** relation: amino_acid_substitution ***
  25791. --- *** relation type: VIEW ***
  25792. --- *** ***
  25793. --- *** A sequence variant of a codon resulting ***
  25794. --- *** in the substitution of one amino acid fo ***
  25795. --- *** r another in the resulting polypeptide. ***
  25796. --- ************************************************
  25797. ---
  25798. CREATE VIEW amino_acid_substitution AS
  25799. SELECT
  25800. feature_id AS amino_acid_substitution_id,
  25801. feature.*
  25802. FROM
  25803. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25804. WHERE cvterm.name = 'conservative_amino_acid_substitution' OR cvterm.name = 'non_conservative_amino_acid_substitution' OR cvterm.name = 'amino_acid_substitution';
  25805. --- ************************************************
  25806. --- *** relation: conservative_amino_acid_substitution ***
  25807. --- *** relation type: VIEW ***
  25808. --- *** ***
  25809. --- *** A sequence variant of a codon causing th ***
  25810. --- *** e substitution of a similar amino acid f ***
  25811. --- *** or another in the resulting polypeptide. ***
  25812. --- ************************************************
  25813. ---
  25814. CREATE VIEW conservative_amino_acid_substitution AS
  25815. SELECT
  25816. feature_id AS conservative_amino_acid_substitution_id,
  25817. feature.*
  25818. FROM
  25819. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25820. WHERE cvterm.name = 'conservative_amino_acid_substitution';
  25821. --- ************************************************
  25822. --- *** relation: non_conservative_amino_acid_substitution ***
  25823. --- *** relation type: VIEW ***
  25824. --- *** ***
  25825. --- *** A sequence variant of a codon causing th ***
  25826. --- *** e substitution of a non conservative ami ***
  25827. --- *** no acid for another in the resulting pol ***
  25828. --- *** ypeptide. ***
  25829. --- ************************************************
  25830. ---
  25831. CREATE VIEW non_conservative_amino_acid_substitution AS
  25832. SELECT
  25833. feature_id AS non_conservative_amino_acid_substitution_id,
  25834. feature.*
  25835. FROM
  25836. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25837. WHERE cvterm.name = 'non_conservative_amino_acid_substitution';
  25838. --- ************************************************
  25839. --- *** relation: elongated_polypeptide ***
  25840. --- *** relation type: VIEW ***
  25841. --- *** ***
  25842. --- *** A sequence variant with in the CDS that ***
  25843. --- *** causes elongation of the resulting polyp ***
  25844. --- *** eptide sequence. ***
  25845. --- ************************************************
  25846. ---
  25847. CREATE VIEW elongated_polypeptide AS
  25848. SELECT
  25849. feature_id AS elongated_polypeptide_id,
  25850. feature.*
  25851. FROM
  25852. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25853. WHERE cvterm.name = 'elongated_polypeptide_C_terminal' OR cvterm.name = 'elongated_polypeptide_N_terminal' OR cvterm.name = 'elongated_in_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_out_of_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_in_frame_polypeptide_N_terminal_elongation' OR cvterm.name = 'elongated_out_of_frame_polypeptide_N_terminal' OR cvterm.name = 'elongated_polypeptide';
  25854. --- ************************************************
  25855. --- *** relation: elongated_polypeptide_c_terminal ***
  25856. --- *** relation type: VIEW ***
  25857. --- *** ***
  25858. --- *** A sequence variant with in the CDS that ***
  25859. --- *** causes elongation of the resulting polyp ***
  25860. --- *** eptide sequence at the C terminus. ***
  25861. --- ************************************************
  25862. ---
  25863. CREATE VIEW elongated_polypeptide_c_terminal AS
  25864. SELECT
  25865. feature_id AS elongated_polypeptide_c_terminal_id,
  25866. feature.*
  25867. FROM
  25868. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25869. WHERE cvterm.name = 'elongated_in_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_out_of_frame_polypeptide_C_terminal' OR cvterm.name = 'elongated_polypeptide_C_terminal';
  25870. --- ************************************************
  25871. --- *** relation: elongated_polypeptide_n_terminal ***
  25872. --- *** relation type: VIEW ***
  25873. --- *** ***
  25874. --- *** A sequence variant with in the CDS that ***
  25875. --- *** causes elongation of the resulting polyp ***
  25876. --- *** eptide sequence at the N terminus. ***
  25877. --- ************************************************
  25878. ---
  25879. CREATE VIEW elongated_polypeptide_n_terminal AS
  25880. SELECT
  25881. feature_id AS elongated_polypeptide_n_terminal_id,
  25882. feature.*
  25883. FROM
  25884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25885. WHERE cvterm.name = 'elongated_in_frame_polypeptide_N_terminal_elongation' OR cvterm.name = 'elongated_out_of_frame_polypeptide_N_terminal' OR cvterm.name = 'elongated_polypeptide_N_terminal';
  25886. --- ************************************************
  25887. --- *** relation: elongated_in_frame_polypeptide_c_terminal ***
  25888. --- *** relation type: VIEW ***
  25889. --- *** ***
  25890. --- *** A sequence variant with in the CDS that ***
  25891. --- *** causes in frame elongation of the result ***
  25892. --- *** ing polypeptide sequence at the C termin ***
  25893. --- *** us. ***
  25894. --- ************************************************
  25895. ---
  25896. CREATE VIEW elongated_in_frame_polypeptide_c_terminal AS
  25897. SELECT
  25898. feature_id AS elongated_in_frame_polypeptide_c_terminal_id,
  25899. feature.*
  25900. FROM
  25901. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25902. WHERE cvterm.name = 'elongated_in_frame_polypeptide_C_terminal';
  25903. --- ************************************************
  25904. --- *** relation: elongated_out_of_frame_polypeptide_c_terminal ***
  25905. --- *** relation type: VIEW ***
  25906. --- *** ***
  25907. --- *** A sequence variant with in the CDS that ***
  25908. --- *** causes out of frame elongation of the re ***
  25909. --- *** sulting polypeptide sequence at the C te ***
  25910. --- *** rminus. ***
  25911. --- ************************************************
  25912. ---
  25913. CREATE VIEW elongated_out_of_frame_polypeptide_c_terminal AS
  25914. SELECT
  25915. feature_id AS elongated_out_of_frame_polypeptide_c_terminal_id,
  25916. feature.*
  25917. FROM
  25918. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25919. WHERE cvterm.name = 'elongated_out_of_frame_polypeptide_C_terminal';
  25920. --- ************************************************
  25921. --- *** relation: elongated_in_frame_polypeptide_n_terminal_elongation ***
  25922. --- *** relation type: VIEW ***
  25923. --- *** ***
  25924. --- *** A sequence variant with in the CDS that ***
  25925. --- *** causes in frame elongation of the result ***
  25926. --- *** ing polypeptide sequence at the N termin ***
  25927. --- *** us. ***
  25928. --- ************************************************
  25929. ---
  25930. CREATE VIEW elongated_in_frame_polypeptide_n_terminal_elongation AS
  25931. SELECT
  25932. feature_id AS elongated_in_frame_polypeptide_n_terminal_elongation_id,
  25933. feature.*
  25934. FROM
  25935. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25936. WHERE cvterm.name = 'elongated_in_frame_polypeptide_N_terminal_elongation';
  25937. --- ************************************************
  25938. --- *** relation: elongated_out_of_frame_polypeptide_n_terminal ***
  25939. --- *** relation type: VIEW ***
  25940. --- *** ***
  25941. --- *** A sequence variant with in the CDS that ***
  25942. --- *** causes out of frame elongation of the re ***
  25943. --- *** sulting polypeptide sequence at the N te ***
  25944. --- *** rminus. ***
  25945. --- ************************************************
  25946. ---
  25947. CREATE VIEW elongated_out_of_frame_polypeptide_n_terminal AS
  25948. SELECT
  25949. feature_id AS elongated_out_of_frame_polypeptide_n_terminal_id,
  25950. feature.*
  25951. FROM
  25952. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25953. WHERE cvterm.name = 'elongated_out_of_frame_polypeptide_N_terminal';
  25954. --- ************************************************
  25955. --- *** relation: polypeptide_fusion ***
  25956. --- *** relation type: VIEW ***
  25957. --- *** ***
  25958. --- *** A sequence variant that causes a fusion ***
  25959. --- *** of two polypeptide sequences. ***
  25960. --- ************************************************
  25961. ---
  25962. CREATE VIEW polypeptide_fusion AS
  25963. SELECT
  25964. feature_id AS polypeptide_fusion_id,
  25965. feature.*
  25966. FROM
  25967. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25968. WHERE cvterm.name = 'polypeptide_fusion';
  25969. --- ************************************************
  25970. --- *** relation: polypeptide_truncation ***
  25971. --- *** relation type: VIEW ***
  25972. --- *** ***
  25973. --- *** A sequence variant of the CD that causes ***
  25974. --- *** a truncation of the resulting polypepti ***
  25975. --- *** de. ***
  25976. --- ************************************************
  25977. ---
  25978. CREATE VIEW polypeptide_truncation AS
  25979. SELECT
  25980. feature_id AS polypeptide_truncation_id,
  25981. feature.*
  25982. FROM
  25983. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25984. WHERE cvterm.name = 'polypeptide_truncation';
  25985. --- ************************************************
  25986. --- *** relation: inactive_catalytic_site ***
  25987. --- *** relation type: VIEW ***
  25988. --- *** ***
  25989. --- *** A sequence variant that causes the inact ***
  25990. --- *** ivation of a catalytic site with respect ***
  25991. --- *** to a reference sequence. ***
  25992. --- ************************************************
  25993. ---
  25994. CREATE VIEW inactive_catalytic_site AS
  25995. SELECT
  25996. feature_id AS inactive_catalytic_site_id,
  25997. feature.*
  25998. FROM
  25999. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26000. WHERE cvterm.name = 'inactive_catalytic_site';
  26001. --- ************************************************
  26002. --- *** relation: nc_transcript_variant ***
  26003. --- *** relation type: VIEW ***
  26004. --- *** ***
  26005. --- *** A transcript variant of a non coding RNA ***
  26006. --- *** gene. ***
  26007. --- ************************************************
  26008. ---
  26009. CREATE VIEW nc_transcript_variant AS
  26010. SELECT
  26011. feature_id AS nc_transcript_variant_id,
  26012. feature.*
  26013. FROM
  26014. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26015. WHERE cvterm.name = 'mature_miRNA_variant' OR cvterm.name = 'nc_transcript_variant';
  26016. --- ************************************************
  26017. --- *** relation: mature_mirna_variant ***
  26018. --- *** relation type: VIEW ***
  26019. --- *** ***
  26020. --- *** A transcript variant located with the se ***
  26021. --- *** quence of the mature miRNA. ***
  26022. --- ************************************************
  26023. ---
  26024. CREATE VIEW mature_mirna_variant AS
  26025. SELECT
  26026. feature_id AS mature_mirna_variant_id,
  26027. feature.*
  26028. FROM
  26029. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26030. WHERE cvterm.name = 'mature_miRNA_variant';
  26031. --- ************************************************
  26032. --- *** relation: nmd_transcript_variant ***
  26033. --- *** relation type: VIEW ***
  26034. --- *** ***
  26035. --- *** A variant in a transcript that is the ta ***
  26036. --- *** rget of NMD. ***
  26037. --- ************************************************
  26038. ---
  26039. CREATE VIEW nmd_transcript_variant AS
  26040. SELECT
  26041. feature_id AS nmd_transcript_variant_id,
  26042. feature.*
  26043. FROM
  26044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26045. WHERE cvterm.name = 'NMD_transcript_variant';
  26046. --- ************************************************
  26047. --- *** relation: utr_variant ***
  26048. --- *** relation type: VIEW ***
  26049. --- *** ***
  26050. --- *** A transcript variant that is located wit ***
  26051. --- *** hin the UTR. ***
  26052. --- ************************************************
  26053. ---
  26054. CREATE VIEW utr_variant AS
  26055. SELECT
  26056. feature_id AS utr_variant_id,
  26057. feature.*
  26058. FROM
  26059. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26060. WHERE cvterm.name = '5_prime_UTR_variant' OR cvterm.name = '3_prime_UTR_variant' OR cvterm.name = 'UTR_variant';
  26061. --- ************************************************
  26062. --- *** relation: five_prime_utr_variant ***
  26063. --- *** relation type: VIEW ***
  26064. --- *** ***
  26065. --- *** A UTR variant of the 5' UTR. ***
  26066. --- ************************************************
  26067. ---
  26068. CREATE VIEW five_prime_utr_variant AS
  26069. SELECT
  26070. feature_id AS five_prime_utr_variant_id,
  26071. feature.*
  26072. FROM
  26073. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26074. WHERE cvterm.name = '5_prime_UTR_variant';
  26075. --- ************************************************
  26076. --- *** relation: three_prime_utr_variant ***
  26077. --- *** relation type: VIEW ***
  26078. --- *** ***
  26079. --- *** A UTR variant of the 3' UTR. ***
  26080. --- ************************************************
  26081. ---
  26082. CREATE VIEW three_prime_utr_variant AS
  26083. SELECT
  26084. feature_id AS three_prime_utr_variant_id,
  26085. feature.*
  26086. FROM
  26087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26088. WHERE cvterm.name = '3_prime_UTR_variant';
  26089. --- ************************************************
  26090. --- *** relation: terminal_codon_variant ***
  26091. --- *** relation type: VIEW ***
  26092. --- *** ***
  26093. --- *** A codon variant that changes at least on ***
  26094. --- *** e base of the last codon of the transcri ***
  26095. --- *** pt. ***
  26096. --- ************************************************
  26097. ---
  26098. CREATE VIEW terminal_codon_variant AS
  26099. SELECT
  26100. feature_id AS terminal_codon_variant_id,
  26101. feature.*
  26102. FROM
  26103. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26104. WHERE cvterm.name = 'terminator_codon_variant' OR cvterm.name = 'incomplete_terminal_codon_variant' OR cvterm.name = 'stop_retained_variant' OR cvterm.name = 'stop_lost' OR cvterm.name = 'terminal_codon_variant';
  26105. --- ************************************************
  26106. --- *** relation: incomplete_terminal_codon_variant ***
  26107. --- *** relation type: VIEW ***
  26108. --- *** ***
  26109. --- *** A sequence variant where at least one ba ***
  26110. --- *** se of the final codon of an incompletely ***
  26111. --- *** annotated transcript is changed. ***
  26112. --- ************************************************
  26113. ---
  26114. CREATE VIEW incomplete_terminal_codon_variant AS
  26115. SELECT
  26116. feature_id AS incomplete_terminal_codon_variant_id,
  26117. feature.*
  26118. FROM
  26119. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26120. WHERE cvterm.name = 'incomplete_terminal_codon_variant';
  26121. --- ************************************************
  26122. --- *** relation: intron_variant ***
  26123. --- *** relation type: VIEW ***
  26124. --- *** ***
  26125. --- *** A transcript variant occurring within an ***
  26126. --- *** intron. ***
  26127. --- ************************************************
  26128. ---
  26129. CREATE VIEW intron_variant AS
  26130. SELECT
  26131. feature_id AS intron_variant_id,
  26132. feature.*
  26133. FROM
  26134. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26135. WHERE cvterm.name = 'splice_site_variant' OR cvterm.name = 'splice_acceptor_variant' OR cvterm.name = 'splice_donor_variant' OR cvterm.name = 'splice_donor_5th_base_variant' OR cvterm.name = 'intron_variant';
  26136. --- ************************************************
  26137. --- *** relation: intergenic_variant ***
  26138. --- *** relation type: VIEW ***
  26139. --- *** ***
  26140. --- *** A sequence variant located in the interg ***
  26141. --- *** enic region, between genes. ***
  26142. --- ************************************************
  26143. ---
  26144. CREATE VIEW intergenic_variant AS
  26145. SELECT
  26146. feature_id AS intergenic_variant_id,
  26147. feature.*
  26148. FROM
  26149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26150. WHERE cvterm.name = 'intergenic_variant';
  26151. --- ************************************************
  26152. --- *** relation: splice_site_variant ***
  26153. --- *** relation type: VIEW ***
  26154. --- *** ***
  26155. --- *** A sequence variant that changes the firs ***
  26156. --- *** t two or last two bases of an intron, or ***
  26157. --- *** the 5th base from the start of the intr ***
  26158. --- *** on in the orientation of the transcript. ***
  26159. --- ************************************************
  26160. ---
  26161. CREATE VIEW splice_site_variant AS
  26162. SELECT
  26163. feature_id AS splice_site_variant_id,
  26164. feature.*
  26165. FROM
  26166. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26167. WHERE cvterm.name = 'splice_acceptor_variant' OR cvterm.name = 'splice_donor_variant' OR cvterm.name = 'splice_donor_5th_base_variant' OR cvterm.name = 'splice_site_variant';
  26168. --- ************************************************
  26169. --- *** relation: splice_region_variant ***
  26170. --- *** relation type: VIEW ***
  26171. --- *** ***
  26172. --- *** A sequence variant in which a change has ***
  26173. --- *** occurred within the region of the splic ***
  26174. --- *** e site, either within 1-3 bases of the e ***
  26175. --- *** xon or 3-8 bases of the intron. ***
  26176. --- ************************************************
  26177. ---
  26178. CREATE VIEW splice_region_variant AS
  26179. SELECT
  26180. feature_id AS splice_region_variant_id,
  26181. feature.*
  26182. FROM
  26183. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26184. WHERE cvterm.name = 'splice_region_variant';
  26185. --- ************************************************
  26186. --- *** relation: upstream_gene_variant ***
  26187. --- *** relation type: VIEW ***
  26188. --- *** ***
  26189. --- *** A sequence variant located 5' of a gene. ***
  26190. --- ************************************************
  26191. ---
  26192. CREATE VIEW upstream_gene_variant AS
  26193. SELECT
  26194. feature_id AS upstream_gene_variant_id,
  26195. feature.*
  26196. FROM
  26197. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26198. WHERE cvterm.name = '5KB_upstream_variant' OR cvterm.name = '2KB_upstream_variant' OR cvterm.name = 'upstream_gene_variant';
  26199. --- ************************************************
  26200. --- *** relation: downstream_gene_variant ***
  26201. --- *** relation type: VIEW ***
  26202. --- *** ***
  26203. --- *** A sequence variant located 3' of a gene. ***
  26204. --- ************************************************
  26205. ---
  26206. CREATE VIEW downstream_gene_variant AS
  26207. SELECT
  26208. feature_id AS downstream_gene_variant_id,
  26209. feature.*
  26210. FROM
  26211. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26212. WHERE cvterm.name = '5KB_downstream_variant' OR cvterm.name = '500B_downstream_variant' OR cvterm.name = 'downstream_gene_variant';
  26213. --- ************************************************
  26214. --- *** relation: fivekb_downstream_variant ***
  26215. --- *** relation type: VIEW ***
  26216. --- *** ***
  26217. --- *** A sequence variant located within 5 KB o ***
  26218. --- *** f the end of a gene. ***
  26219. --- ************************************************
  26220. ---
  26221. CREATE VIEW fivekb_downstream_variant AS
  26222. SELECT
  26223. feature_id AS fivekb_downstream_variant_id,
  26224. feature.*
  26225. FROM
  26226. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26227. WHERE cvterm.name = '500B_downstream_variant' OR cvterm.name = '5KB_downstream_variant';
  26228. --- ************************************************
  26229. --- *** relation: fivehundred_b_downstream_variant ***
  26230. --- *** relation type: VIEW ***
  26231. --- *** ***
  26232. --- *** A sequence variant located within a half ***
  26233. --- *** KB of the end of a gene. ***
  26234. --- ************************************************
  26235. ---
  26236. CREATE VIEW fivehundred_b_downstream_variant AS
  26237. SELECT
  26238. feature_id AS fivehundred_b_downstream_variant_id,
  26239. feature.*
  26240. FROM
  26241. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26242. WHERE cvterm.name = '500B_downstream_variant';
  26243. --- ************************************************
  26244. --- *** relation: fivekb_upstream_variant ***
  26245. --- *** relation type: VIEW ***
  26246. --- *** ***
  26247. --- *** A sequence variant located within 5KB 5' ***
  26248. --- *** of a gene. ***
  26249. --- ************************************************
  26250. ---
  26251. CREATE VIEW fivekb_upstream_variant AS
  26252. SELECT
  26253. feature_id AS fivekb_upstream_variant_id,
  26254. feature.*
  26255. FROM
  26256. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26257. WHERE cvterm.name = '2KB_upstream_variant' OR cvterm.name = '5KB_upstream_variant';
  26258. --- ************************************************
  26259. --- *** relation: twokb_upstream_variant ***
  26260. --- *** relation type: VIEW ***
  26261. --- *** ***
  26262. --- *** A sequence variant located within 2KB 5' ***
  26263. --- *** of a gene. ***
  26264. --- ************************************************
  26265. ---
  26266. CREATE VIEW twokb_upstream_variant AS
  26267. SELECT
  26268. feature_id AS twokb_upstream_variant_id,
  26269. feature.*
  26270. FROM
  26271. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26272. WHERE cvterm.name = '2KB_upstream_variant';
  26273. --- ************************************************
  26274. --- *** relation: rrna_gene ***
  26275. --- *** relation type: VIEW ***
  26276. --- *** ***
  26277. --- *** A gene that encodes for ribosomal RNA. ***
  26278. --- ************************************************
  26279. ---
  26280. CREATE VIEW rrna_gene AS
  26281. SELECT
  26282. feature_id AS rrna_gene_id,
  26283. feature.*
  26284. FROM
  26285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26286. WHERE cvterm.name = 'rRNA_gene';
  26287. --- ************************************************
  26288. --- *** relation: pirna_gene ***
  26289. --- *** relation type: VIEW ***
  26290. --- *** ***
  26291. --- *** A gene that encodes for an piwi associat ***
  26292. --- *** ed RNA. ***
  26293. --- ************************************************
  26294. ---
  26295. CREATE VIEW pirna_gene AS
  26296. SELECT
  26297. feature_id AS pirna_gene_id,
  26298. feature.*
  26299. FROM
  26300. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26301. WHERE cvterm.name = 'piRNA_gene';
  26302. --- ************************************************
  26303. --- *** relation: rnase_p_rna_gene ***
  26304. --- *** relation type: VIEW ***
  26305. --- *** ***
  26306. --- *** A gene that encodes an RNase P RNA. ***
  26307. --- ************************************************
  26308. ---
  26309. CREATE VIEW rnase_p_rna_gene AS
  26310. SELECT
  26311. feature_id AS rnase_p_rna_gene_id,
  26312. feature.*
  26313. FROM
  26314. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26315. WHERE cvterm.name = 'RNase_P_RNA_gene';
  26316. --- ************************************************
  26317. --- *** relation: rnase_mrp_rna_gene ***
  26318. --- *** relation type: VIEW ***
  26319. --- *** ***
  26320. --- *** A gene that encodes a RNase_MRP_RNA. ***
  26321. --- ************************************************
  26322. ---
  26323. CREATE VIEW rnase_mrp_rna_gene AS
  26324. SELECT
  26325. feature_id AS rnase_mrp_rna_gene_id,
  26326. feature.*
  26327. FROM
  26328. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26329. WHERE cvterm.name = 'RNase_MRP_RNA_gene';
  26330. --- ************************************************
  26331. --- *** relation: lincrna_gene ***
  26332. --- *** relation type: VIEW ***
  26333. --- *** ***
  26334. --- *** A gene that encodes large intervening no ***
  26335. --- *** n-coding RNA. ***
  26336. --- ************************************************
  26337. ---
  26338. CREATE VIEW lincrna_gene AS
  26339. SELECT
  26340. feature_id AS lincrna_gene_id,
  26341. feature.*
  26342. FROM
  26343. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26344. WHERE cvterm.name = 'lincRNA_gene';
  26345. --- ************************************************
  26346. --- *** relation: mathematically_defined_repeat ***
  26347. --- *** relation type: VIEW ***
  26348. --- *** ***
  26349. --- *** A mathematically defined repeat (MDR) is ***
  26350. --- *** a experimental feature that is determin ***
  26351. --- *** ed by querying overlapping oligomers of ***
  26352. --- *** length k against a database of shotgun s ***
  26353. --- *** equence data and identifying regions in ***
  26354. --- *** the query sequence that exceed a statist ***
  26355. --- *** ically determined threshold of repetitiv ***
  26356. --- *** eness. ***
  26357. --- ************************************************
  26358. ---
  26359. CREATE VIEW mathematically_defined_repeat AS
  26360. SELECT
  26361. feature_id AS mathematically_defined_repeat_id,
  26362. feature.*
  26363. FROM
  26364. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26365. WHERE cvterm.name = 'mathematically_defined_repeat';
  26366. --- ************************************************
  26367. --- *** relation: telomerase_rna_gene ***
  26368. --- *** relation type: VIEW ***
  26369. --- *** ***
  26370. --- *** A telomerase RNA gene is a non coding RN ***
  26371. --- *** A gene the RNA product of which is a com ***
  26372. --- *** ponent of telomerase. ***
  26373. --- ************************************************
  26374. ---
  26375. CREATE VIEW telomerase_rna_gene AS
  26376. SELECT
  26377. feature_id AS telomerase_rna_gene_id,
  26378. feature.*
  26379. FROM
  26380. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26381. WHERE cvterm.name = 'telomerase_RNA_gene';
  26382. --- ************************************************
  26383. --- *** relation: targeting_vector ***
  26384. --- *** relation type: VIEW ***
  26385. --- *** ***
  26386. --- *** An engineered vector that is able to tak ***
  26387. --- *** e part in homologous recombination in a ***
  26388. --- *** host with the intent of introducing site ***
  26389. --- *** specific genomic modifications. ***
  26390. --- ************************************************
  26391. ---
  26392. CREATE VIEW targeting_vector AS
  26393. SELECT
  26394. feature_id AS targeting_vector_id,
  26395. feature.*
  26396. FROM
  26397. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26398. WHERE cvterm.name = 'targeting_vector';
  26399. --- ************************************************
  26400. --- *** relation: genetic_marker ***
  26401. --- *** relation type: VIEW ***
  26402. --- *** ***
  26403. --- *** A measurable sequence feature that varie ***
  26404. --- *** s within a population. ***
  26405. --- ************************************************
  26406. ---
  26407. CREATE VIEW genetic_marker AS
  26408. SELECT
  26409. feature_id AS genetic_marker_id,
  26410. feature.*
  26411. FROM
  26412. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26413. WHERE cvterm.name = 'heritable_phenotypic_marker' OR cvterm.name = 'DArT_marker' OR cvterm.name = 'genetic_marker';
  26414. --- ************************************************
  26415. --- *** relation: dart_marker ***
  26416. --- *** relation type: VIEW ***
  26417. --- *** ***
  26418. --- *** A genetic marker, discovered using Diver ***
  26419. --- *** sity Arrays Technology (DArT) technology ***
  26420. --- *** . ***
  26421. --- ************************************************
  26422. ---
  26423. CREATE VIEW dart_marker AS
  26424. SELECT
  26425. feature_id AS dart_marker_id,
  26426. feature.*
  26427. FROM
  26428. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26429. WHERE cvterm.name = 'DArT_marker';
  26430. --- ************************************************
  26431. --- *** relation: kozak_sequence ***
  26432. --- *** relation type: VIEW ***
  26433. --- *** ***
  26434. --- *** A kind of ribosome entry site, specific ***
  26435. --- *** to Eukaryotic organisms that overlaps pa ***
  26436. --- *** rt of both 5' UTR and CDS sequence. ***
  26437. --- ************************************************
  26438. ---
  26439. CREATE VIEW kozak_sequence AS
  26440. SELECT
  26441. feature_id AS kozak_sequence_id,
  26442. feature.*
  26443. FROM
  26444. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26445. WHERE cvterm.name = 'kozak_sequence';
  26446. --- ************************************************
  26447. --- *** relation: nested_transposon ***
  26448. --- *** relation type: VIEW ***
  26449. --- *** ***
  26450. --- *** A transposon that is disrupted by the in ***
  26451. --- *** sertion of another element. ***
  26452. --- ************************************************
  26453. ---
  26454. CREATE VIEW nested_transposon AS
  26455. SELECT
  26456. feature_id AS nested_transposon_id,
  26457. feature.*
  26458. FROM
  26459. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26460. WHERE cvterm.name = 'nested_transposon';
  26461. --- ************************************************
  26462. --- *** relation: nested_repeat ***
  26463. --- *** relation type: VIEW ***
  26464. --- *** ***
  26465. --- *** A repeat that is disrupted by the insert ***
  26466. --- *** ion of another element. ***
  26467. --- ************************************************
  26468. ---
  26469. CREATE VIEW nested_repeat AS
  26470. SELECT
  26471. feature_id AS nested_repeat_id,
  26472. feature.*
  26473. FROM
  26474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26475. WHERE cvterm.name = 'nested_tandem_repeat' OR cvterm.name = 'nested_repeat';
  26476. --- ************************************************
  26477. --- *** relation: inframe_variant ***
  26478. --- *** relation type: VIEW ***
  26479. --- *** ***
  26480. --- *** A sequence variant which does not cause ***
  26481. --- *** a disruption of the translational readin ***
  26482. --- *** g frame. ***
  26483. --- ************************************************
  26484. ---
  26485. CREATE VIEW inframe_variant AS
  26486. SELECT
  26487. feature_id AS inframe_variant_id,
  26488. feature.*
  26489. FROM
  26490. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26491. WHERE cvterm.name = 'inframe_codon_gain' OR cvterm.name = 'inframe_codon_loss' OR cvterm.name = 'inframe_variant';
  26492. --- ************************************************
  26493. --- *** relation: inframe_codon_gain ***
  26494. --- *** relation type: VIEW ***
  26495. --- *** ***
  26496. --- *** A sequence variant which gains a codon, ***
  26497. --- *** and does not cause a disruption of the t ***
  26498. --- *** ranslational reading frame. ***
  26499. --- ************************************************
  26500. ---
  26501. CREATE VIEW inframe_codon_gain AS
  26502. SELECT
  26503. feature_id AS inframe_codon_gain_id,
  26504. feature.*
  26505. FROM
  26506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26507. WHERE cvterm.name = 'inframe_codon_gain';
  26508. --- ************************************************
  26509. --- *** relation: inframe_codon_loss ***
  26510. --- *** relation type: VIEW ***
  26511. --- *** ***
  26512. --- *** A sequence variant which loses a codon, ***
  26513. --- *** and does not cause a disruption of the t ***
  26514. --- *** ranslational reading frame. ***
  26515. --- ************************************************
  26516. ---
  26517. CREATE VIEW inframe_codon_loss AS
  26518. SELECT
  26519. feature_id AS inframe_codon_loss_id,
  26520. feature.*
  26521. FROM
  26522. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26523. WHERE cvterm.name = 'inframe_codon_loss';
  26524. --- ************************************************
  26525. --- *** relation: retinoic_acid_responsive_element ***
  26526. --- *** relation type: VIEW ***
  26527. --- *** ***
  26528. --- *** A transcription factor binding site of v ***
  26529. --- *** ariable direct repeats of the sequence P ***
  26530. --- *** uGGTCA spaced by five nucleotides (DR5) ***
  26531. --- *** found in the promoters of retinoic acid- ***
  26532. --- *** responsive genes, to which retinoic acid ***
  26533. --- *** receptors bind. ***
  26534. --- ************************************************
  26535. ---
  26536. CREATE VIEW retinoic_acid_responsive_element AS
  26537. SELECT
  26538. feature_id AS retinoic_acid_responsive_element_id,
  26539. feature.*
  26540. FROM
  26541. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26542. WHERE cvterm.name = 'retinoic_acid_responsive_element';
  26543. --- ************************************************
  26544. --- *** relation: nucleotide_to_protein_binding_site ***
  26545. --- *** relation type: VIEW ***
  26546. --- *** ***
  26547. --- *** A binding site that, in the nucleotide m ***
  26548. --- *** olecule, interacts selectively and non-c ***
  26549. --- *** ovalently with polypeptide residues. ***
  26550. --- ************************************************
  26551. ---
  26552. CREATE VIEW nucleotide_to_protein_binding_site AS
  26553. SELECT
  26554. feature_id AS nucleotide_to_protein_binding_site_id,
  26555. feature.*
  26556. FROM
  26557. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26558. WHERE cvterm.name = 'nuclease_binding_site' OR cvterm.name = 'TF_binding_site' OR cvterm.name = 'histone_binding_site' OR cvterm.name = 'insulator_binding_site' OR cvterm.name = 'enhancer_binding_site' OR cvterm.name = 'restriction_enzyme_binding_site' OR cvterm.name = 'nuclease_sensitive_site' OR cvterm.name = 'homing_endonuclease_binding_site' OR cvterm.name = 'nuclease_hypersensitive_site' OR cvterm.name = 'group_1_intron_homing_endonuclease_target_region' OR cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'nucleotide_to_protein_binding_site';
  26559. --- ************************************************
  26560. --- *** relation: nucleotide_binding_site ***
  26561. --- *** relation type: VIEW ***
  26562. --- *** ***
  26563. --- *** A binding site that, in the molecule, in ***
  26564. --- *** teracts selectively and non-covalently w ***
  26565. --- *** ith nucleotide residues. ***
  26566. --- ************************************************
  26567. ---
  26568. CREATE VIEW nucleotide_binding_site AS
  26569. SELECT
  26570. feature_id AS nucleotide_binding_site_id,
  26571. feature.*
  26572. FROM
  26573. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26574. WHERE cvterm.name = 'miRNA_target_site' OR cvterm.name = 'DNA_binding_site' OR cvterm.name = 'primer_binding_site' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'nucleotide_binding_site';
  26575. --- ************************************************
  26576. --- *** relation: metal_binding_site ***
  26577. --- *** relation type: VIEW ***
  26578. --- *** ***
  26579. --- *** A binding site that, in the molecule, in ***
  26580. --- *** teracts selectively and non-covalently w ***
  26581. --- *** ith metal ions. ***
  26582. --- ************************************************
  26583. ---
  26584. CREATE VIEW metal_binding_site AS
  26585. SELECT
  26586. feature_id AS metal_binding_site_id,
  26587. feature.*
  26588. FROM
  26589. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26590. WHERE cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'metal_binding_site';
  26591. --- ************************************************
  26592. --- *** relation: ligand_binding_site ***
  26593. --- *** relation type: VIEW ***
  26594. --- *** ***
  26595. --- *** A binding site that, in the molecule, in ***
  26596. --- *** teracts selectively and non-covalently w ***
  26597. --- *** ith a small molecule such as a drug, or ***
  26598. --- *** hormone. ***
  26599. --- ************************************************
  26600. ---
  26601. CREATE VIEW ligand_binding_site AS
  26602. SELECT
  26603. feature_id AS ligand_binding_site_id,
  26604. feature.*
  26605. FROM
  26606. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26607. WHERE cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'ligand_binding_site';
  26608. --- ************************************************
  26609. --- *** relation: nested_tandem_repeat ***
  26610. --- *** relation type: VIEW ***
  26611. --- *** ***
  26612. --- *** An NTR is a nested repeat of two distinc ***
  26613. --- *** t tandem motifs interspersed with each o ***
  26614. --- *** ther. ***
  26615. --- ************************************************
  26616. ---
  26617. CREATE VIEW nested_tandem_repeat AS
  26618. SELECT
  26619. feature_id AS nested_tandem_repeat_id,
  26620. feature.*
  26621. FROM
  26622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26623. WHERE cvterm.name = 'nested_tandem_repeat';
  26624. --- ************************************************
  26625. --- *** relation: promoter_element ***
  26626. --- *** relation type: VIEW ***
  26627. --- *** ***
  26628. --- ************************************************
  26629. ---
  26630. CREATE VIEW promoter_element AS
  26631. SELECT
  26632. feature_id AS promoter_element_id,
  26633. feature.*
  26634. FROM
  26635. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26636. WHERE cvterm.name = 'GC_rich_promoter_region' OR cvterm.name = 'DMv4_motif' OR cvterm.name = 'DMv5_motif' OR cvterm.name = 'DMv3_motif' OR cvterm.name = 'DMv2_motif' OR cvterm.name = 'DPE1_motif' OR cvterm.name = 'DMv1_motif' OR cvterm.name = 'NDM2_motif' OR cvterm.name = 'NDM3_motif' OR cvterm.name = 'core_promoter_element' OR cvterm.name = 'regulatory_promoter_element' OR cvterm.name = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BREu_motif' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'MTE' OR cvterm.name = 'BREd_motif' OR cvterm.name = 'DCE' OR cvterm.name = 'intermediate_element' OR cvterm.name = 'RNA_polymerase_II_TATA_box' OR cvterm.name = 'RNA_polymerase_III_TATA_box' OR cvterm.name = 'A_box_type_1' OR cvterm.name = 'A_box_type_2' OR cvterm.name = 'proximal_promoter_element' OR cvterm.name = 'distal_promoter_element' OR cvterm.name = 'promoter_element';
  26637. --- ************************************************
  26638. --- *** relation: core_promoter_element ***
  26639. --- *** relation type: VIEW ***
  26640. --- *** ***
  26641. --- ************************************************
  26642. ---
  26643. CREATE VIEW core_promoter_element AS
  26644. SELECT
  26645. feature_id AS core_promoter_element_id,
  26646. feature.*
  26647. FROM
  26648. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26649. WHERE cvterm.name = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BREu_motif' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'MTE' OR cvterm.name = 'BREd_motif' OR cvterm.name = 'DCE' OR cvterm.name = 'intermediate_element' OR cvterm.name = 'RNA_polymerase_II_TATA_box' OR cvterm.name = 'RNA_polymerase_III_TATA_box' OR cvterm.name = 'A_box_type_1' OR cvterm.name = 'A_box_type_2' OR cvterm.name = 'core_promoter_element';
  26650. --- ************************************************
  26651. --- *** relation: rna_polymerase_ii_tata_box ***
  26652. --- *** relation type: VIEW ***
  26653. --- *** ***
  26654. --- *** A TATA box core promoter of a gene trans ***
  26655. --- *** cribed by RNA polymerase II. ***
  26656. --- ************************************************
  26657. ---
  26658. CREATE VIEW rna_polymerase_ii_tata_box AS
  26659. SELECT
  26660. feature_id AS rna_polymerase_ii_tata_box_id,
  26661. feature.*
  26662. FROM
  26663. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26664. WHERE cvterm.name = 'RNA_polymerase_II_TATA_box';
  26665. --- ************************************************
  26666. --- *** relation: rna_polymerase_iii_tata_box ***
  26667. --- *** relation type: VIEW ***
  26668. --- *** ***
  26669. --- *** A TATA box core promoter of a gene trans ***
  26670. --- *** cribed by RNA polymerase III. ***
  26671. --- ************************************************
  26672. ---
  26673. CREATE VIEW rna_polymerase_iii_tata_box AS
  26674. SELECT
  26675. feature_id AS rna_polymerase_iii_tata_box_id,
  26676. feature.*
  26677. FROM
  26678. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26679. WHERE cvterm.name = 'RNA_polymerase_III_TATA_box';
  26680. --- ************************************************
  26681. --- *** relation: bred_motif ***
  26682. --- *** relation type: VIEW ***
  26683. --- *** ***
  26684. --- *** A core TRNA polymerase II promoter eleme ***
  26685. --- *** nt with consensus (G/A)T(T/G/A)(T/A)(G/T ***
  26686. --- *** )(T/G)(T/G). ***
  26687. --- ************************************************
  26688. ---
  26689. CREATE VIEW bred_motif AS
  26690. SELECT
  26691. feature_id AS bred_motif_id,
  26692. feature.*
  26693. FROM
  26694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26695. WHERE cvterm.name = 'BREd_motif';
  26696. --- ************************************************
  26697. --- *** relation: dce ***
  26698. --- *** relation type: VIEW ***
  26699. --- *** ***
  26700. --- *** A discontinuous core element of RNA poly ***
  26701. --- *** merase II transcribed genes, situated do ***
  26702. --- *** wnstream of the TSS. It is composed of t ***
  26703. --- *** hree sub elements: SI, SII and SIII. ***
  26704. --- ************************************************
  26705. ---
  26706. CREATE VIEW dce AS
  26707. SELECT
  26708. feature_id AS dce_id,
  26709. feature.*
  26710. FROM
  26711. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26712. WHERE cvterm.name = 'DCE';
  26713. --- ************************************************
  26714. --- *** relation: dce_si ***
  26715. --- *** relation type: VIEW ***
  26716. --- *** ***
  26717. --- *** A sub element of the DCE core promoter e ***
  26718. --- *** lement, with consensus sequence CTTC. ***
  26719. --- ************************************************
  26720. ---
  26721. CREATE VIEW dce_si AS
  26722. SELECT
  26723. feature_id AS dce_si_id,
  26724. feature.*
  26725. FROM
  26726. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26727. WHERE cvterm.name = 'DCE_SI';
  26728. --- ************************************************
  26729. --- *** relation: dce_sii ***
  26730. --- *** relation type: VIEW ***
  26731. --- *** ***
  26732. --- *** A sub element of the DCE core promoter e ***
  26733. --- *** lement with consensus sequence CTGT. ***
  26734. --- ************************************************
  26735. ---
  26736. CREATE VIEW dce_sii AS
  26737. SELECT
  26738. feature_id AS dce_sii_id,
  26739. feature.*
  26740. FROM
  26741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26742. WHERE cvterm.name = 'DCE_SII';
  26743. --- ************************************************
  26744. --- *** relation: dce_siii ***
  26745. --- *** relation type: VIEW ***
  26746. --- *** ***
  26747. --- *** A sub element of the DCE core promoter e ***
  26748. --- *** lement with consensus sequence AGC. ***
  26749. --- ************************************************
  26750. ---
  26751. CREATE VIEW dce_siii AS
  26752. SELECT
  26753. feature_id AS dce_siii_id,
  26754. feature.*
  26755. FROM
  26756. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26757. WHERE cvterm.name = 'DCE_SIII';
  26758. --- ************************************************
  26759. --- *** relation: proximal_promoter_element ***
  26760. --- *** relation type: VIEW ***
  26761. --- *** ***
  26762. --- ************************************************
  26763. ---
  26764. CREATE VIEW proximal_promoter_element AS
  26765. SELECT
  26766. feature_id AS proximal_promoter_element_id,
  26767. feature.*
  26768. FROM
  26769. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26770. WHERE cvterm.name = 'proximal_promoter_element';
  26771. --- ************************************************
  26772. --- *** relation: rnapol_ii_core_promoter ***
  26773. --- *** relation type: VIEW ***
  26774. --- *** ***
  26775. --- *** The minimal portion of the promoter requ ***
  26776. --- *** ired to properly initiate transcription ***
  26777. --- *** in RNA polymerase II transcribed genes. ***
  26778. --- ************************************************
  26779. ---
  26780. CREATE VIEW rnapol_ii_core_promoter AS
  26781. SELECT
  26782. feature_id AS rnapol_ii_core_promoter_id,
  26783. feature.*
  26784. FROM
  26785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26786. WHERE cvterm.name = 'RNApol_II_core_promoter';
  26787. --- ************************************************
  26788. --- *** relation: distal_promoter_element ***
  26789. --- *** relation type: VIEW ***
  26790. --- *** ***
  26791. --- ************************************************
  26792. ---
  26793. CREATE VIEW distal_promoter_element AS
  26794. SELECT
  26795. feature_id AS distal_promoter_element_id,
  26796. feature.*
  26797. FROM
  26798. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26799. WHERE cvterm.name = 'distal_promoter_element';
  26800. --- ************************************************
  26801. --- *** relation: bacterial_rnapol_promoter_sigma_70 ***
  26802. --- *** relation type: VIEW ***
  26803. --- *** ***
  26804. --- ************************************************
  26805. ---
  26806. CREATE VIEW bacterial_rnapol_promoter_sigma_70 AS
  26807. SELECT
  26808. feature_id AS bacterial_rnapol_promoter_sigma_70_id,
  26809. feature.*
  26810. FROM
  26811. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26812. WHERE cvterm.name = 'bacterial_RNApol_promoter_sigma_70';
  26813. --- ************************************************
  26814. --- *** relation: bacterial_rnapol_promoter_sigma54 ***
  26815. --- *** relation type: VIEW ***
  26816. --- *** ***
  26817. --- ************************************************
  26818. ---
  26819. CREATE VIEW bacterial_rnapol_promoter_sigma54 AS
  26820. SELECT
  26821. feature_id AS bacterial_rnapol_promoter_sigma54_id,
  26822. feature.*
  26823. FROM
  26824. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26825. WHERE cvterm.name = 'bacterial_RNApol_promoter_sigma54';
  26826. --- ************************************************
  26827. --- *** relation: minus_12_signal ***
  26828. --- *** relation type: VIEW ***
  26829. --- *** ***
  26830. --- *** A conserved region about 12-bp upstream ***
  26831. --- *** of the start point of bacterial transcri ***
  26832. --- *** ption units, involved with sigma factor ***
  26833. --- *** 54. ***
  26834. --- ************************************************
  26835. ---
  26836. CREATE VIEW minus_12_signal AS
  26837. SELECT
  26838. feature_id AS minus_12_signal_id,
  26839. feature.*
  26840. FROM
  26841. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26842. WHERE cvterm.name = 'minus_12_signal';
  26843. --- ************************************************
  26844. --- *** relation: minus_24_signal ***
  26845. --- *** relation type: VIEW ***
  26846. --- *** ***
  26847. --- *** A conserved region about 12-bp upstream ***
  26848. --- *** of the start point of bacterial transcri ***
  26849. --- *** ption units, involved with sigma factor ***
  26850. --- *** 54. ***
  26851. --- ************************************************
  26852. ---
  26853. CREATE VIEW minus_24_signal AS
  26854. SELECT
  26855. feature_id AS minus_24_signal_id,
  26856. feature.*
  26857. FROM
  26858. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26859. WHERE cvterm.name = 'minus_24_signal';
  26860. --- ************************************************
  26861. --- *** relation: a_box_type_1 ***
  26862. --- *** relation type: VIEW ***
  26863. --- *** ***
  26864. --- *** An A box within an RNA polymerase III ty ***
  26865. --- *** pe 1 promoter. ***
  26866. --- ************************************************
  26867. ---
  26868. CREATE VIEW a_box_type_1 AS
  26869. SELECT
  26870. feature_id AS a_box_type_1_id,
  26871. feature.*
  26872. FROM
  26873. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26874. WHERE cvterm.name = 'A_box_type_1';
  26875. --- ************************************************
  26876. --- *** relation: a_box_type_2 ***
  26877. --- *** relation type: VIEW ***
  26878. --- *** ***
  26879. --- *** An A box within an RNA polymerase III ty ***
  26880. --- *** pe 2 promoter. ***
  26881. --- ************************************************
  26882. ---
  26883. CREATE VIEW a_box_type_2 AS
  26884. SELECT
  26885. feature_id AS a_box_type_2_id,
  26886. feature.*
  26887. FROM
  26888. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26889. WHERE cvterm.name = 'A_box_type_2';
  26890. --- ************************************************
  26891. --- *** relation: intermediate_element ***
  26892. --- *** relation type: VIEW ***
  26893. --- *** ***
  26894. --- *** A core promoter region of RNA polymerase ***
  26895. --- *** III type 1 promoters. ***
  26896. --- ************************************************
  26897. ---
  26898. CREATE VIEW intermediate_element AS
  26899. SELECT
  26900. feature_id AS intermediate_element_id,
  26901. feature.*
  26902. FROM
  26903. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26904. WHERE cvterm.name = 'intermediate_element';
  26905. --- ************************************************
  26906. --- *** relation: regulatory_promoter_element ***
  26907. --- *** relation type: VIEW ***
  26908. --- *** ***
  26909. --- *** A promoter element that is not part of t ***
  26910. --- *** he core promoter, but provides the promo ***
  26911. --- *** ter with a specific regulatory region. ***
  26912. --- ************************************************
  26913. ---
  26914. CREATE VIEW regulatory_promoter_element AS
  26915. SELECT
  26916. feature_id AS regulatory_promoter_element_id,
  26917. feature.*
  26918. FROM
  26919. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26920. WHERE cvterm.name = 'proximal_promoter_element' OR cvterm.name = 'distal_promoter_element' OR cvterm.name = 'regulatory_promoter_element';
  26921. --- ************************************************
  26922. --- *** relation: transcription_regulatory_region ***
  26923. --- *** relation type: VIEW ***
  26924. --- *** ***
  26925. --- *** A regulatory region that is involved in ***
  26926. --- *** the control of the process of transcript ***
  26927. --- *** ion. ***
  26928. --- ************************************************
  26929. ---
  26930. CREATE VIEW transcription_regulatory_region AS
  26931. SELECT
  26932. feature_id AS transcription_regulatory_region_id,
  26933. feature.*
  26934. FROM
  26935. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26936. WHERE cvterm.name = 'terminator' OR cvterm.name = 'TF_binding_site' OR cvterm.name = 'polyA_signal_sequence' OR cvterm.name = 'gene_group_regulatory_region' OR cvterm.name = 'transcriptional_cis_regulatory_region' OR cvterm.name = 'splicing_regulatory_region' OR cvterm.name = 'cis_regulatory_frameshift_element' OR cvterm.name = 'intronic_regulatory_region' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'eukaryotic_terminator' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'terminator_of_type_2_RNApol_III_promoter' OR cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'promoter' OR cvterm.name = 'insulator' OR cvterm.name = 'CRM' OR cvterm.name = 'promoter_targeting_sequence' OR cvterm.name = 'ISRE' OR cvterm.name = 'bidirectional_promoter' OR cvterm.name = 'RNA_polymerase_promoter' OR cvterm.name = 'RNApol_I_promoter' OR cvterm.name = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'Phage_RNA_Polymerase_Promoter' OR cvterm.name = 'RNApol_II_core_promoter' OR cvterm.name = 'RNApol_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'SP6_RNA_Polymerase_Promoter' OR cvterm.name = 'T3_RNA_Polymerase_Promoter' OR cvterm.name = 'T7_RNA_Polymerase_Promoter' OR cvterm.name = 'locus_control_region' OR cvterm.name = 'enhancer' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'transcription_regulatory_region';
  26937. --- ************************************************
  26938. --- *** relation: translation_regulatory_region ***
  26939. --- *** relation type: VIEW ***
  26940. --- *** ***
  26941. --- *** A regulatory region that is involved in ***
  26942. --- *** the control of the process of translatio ***
  26943. --- *** n. ***
  26944. --- ************************************************
  26945. ---
  26946. CREATE VIEW translation_regulatory_region AS
  26947. SELECT
  26948. feature_id AS translation_regulatory_region_id,
  26949. feature.*
  26950. FROM
  26951. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26952. WHERE cvterm.name = 'attenuator' OR cvterm.name = 'translation_regulatory_region';
  26953. --- ************************************************
  26954. --- *** relation: recombination_regulatory_region ***
  26955. --- *** relation type: VIEW ***
  26956. --- *** ***
  26957. --- *** A regulatory region that is involved in ***
  26958. --- *** the control of the process of recombinat ***
  26959. --- *** ion. ***
  26960. --- ************************************************
  26961. ---
  26962. CREATE VIEW recombination_regulatory_region AS
  26963. SELECT
  26964. feature_id AS recombination_regulatory_region_id,
  26965. feature.*
  26966. FROM
  26967. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26968. WHERE cvterm.name = 'recombination_regulatory_region';
  26969. --- ************************************************
  26970. --- *** relation: replication_regulatory_region ***
  26971. --- *** relation type: VIEW ***
  26972. --- *** ***
  26973. --- *** A regulatory region that is involved in ***
  26974. --- *** the control of the process of nucleotide ***
  26975. --- *** replication. ***
  26976. --- ************************************************
  26977. ---
  26978. CREATE VIEW replication_regulatory_region AS
  26979. SELECT
  26980. feature_id AS replication_regulatory_region_id,
  26981. feature.*
  26982. FROM
  26983. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26984. WHERE cvterm.name = 'replication_regulatory_region';
  26985. --- ************************************************
  26986. --- *** relation: sequence_motif ***
  26987. --- *** relation type: VIEW ***
  26988. --- *** ***
  26989. --- *** A sequence motif is a nucleotide or amin ***
  26990. --- *** o-acid sequence pattern that may have bi ***
  26991. --- *** ological significance. ***
  26992. --- ************************************************
  26993. ---
  26994. CREATE VIEW sequence_motif AS
  26995. SELECT
  26996. feature_id AS sequence_motif_id,
  26997. feature.*
  26998. FROM
  26999. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27000. WHERE cvterm.name = 'nucleotide_motif' OR cvterm.name = 'DNA_motif' OR cvterm.name = 'RNA_motif' OR cvterm.name = 'PSE_motif' OR cvterm.name = 'CAAT_signal' OR cvterm.name = 'minus_10_signal' OR cvterm.name = 'minus_35_signal' OR cvterm.name = 'DRE_motif' OR cvterm.name = 'E_box_motif' OR cvterm.name = 'INR1_motif' OR cvterm.name = 'GAGA_motif' OR cvterm.name = 'octamer_motif' OR cvterm.name = 'retinoic_acid_responsive_element' OR cvterm.name = 'promoter_element' OR cvterm.name = 'DCE_SI' OR cvterm.name = 'DCE_SII' OR cvterm.name = 'DCE_SIII' OR cvterm.name = 'minus_12_signal' OR cvterm.name = 'minus_24_signal' OR cvterm.name = 'GC_rich_promoter_region' OR cvterm.name = 'DMv4_motif' OR cvterm.name = 'DMv5_motif' OR cvterm.name = 'DMv3_motif' OR cvterm.name = 'DMv2_motif' OR cvterm.name = 'DPE1_motif' OR cvterm.name = 'DMv1_motif' OR cvterm.name = 'NDM2_motif' OR cvterm.name = 'NDM3_motif' OR cvterm.name = 'core_promoter_element' OR cvterm.name = 'regulatory_promoter_element' OR cvterm.name = 'INR_motif' OR cvterm.name = 'DPE_motif' OR cvterm.name = 'BREu_motif' OR cvterm.name = 'TATA_box' OR cvterm.name = 'A_box' OR cvterm.name = 'B_box' OR cvterm.name = 'C_box' OR cvterm.name = 'MTE' OR cvterm.name = 'BREd_motif' OR cvterm.name = 'DCE' OR cvterm.name = 'intermediate_element' OR cvterm.name = 'RNA_polymerase_II_TATA_box' OR cvterm.name = 'RNA_polymerase_III_TATA_box' OR cvterm.name = 'A_box_type_1' OR cvterm.name = 'A_box_type_2' OR cvterm.name = 'proximal_promoter_element' OR cvterm.name = 'distal_promoter_element' OR cvterm.name = 'RNA_internal_loop' OR cvterm.name = 'A_minor_RNA_motif' OR cvterm.name = 'RNA_junction_loop' OR cvterm.name = 'hammerhead_ribozyme' OR cvterm.name = 'asymmetric_RNA_internal_loop' OR cvterm.name = 'symmetric_RNA_internal_loop' OR cvterm.name = 'K_turn_RNA_motif' OR cvterm.name = 'sarcin_like_RNA_motif' OR cvterm.name = 'RNA_hook_turn' OR cvterm.name = 'sequence_motif';
  27001. --- ************************************************
  27002. --- *** relation: experimental_feature_attribute ***
  27003. --- *** relation type: VIEW ***
  27004. --- *** ***
  27005. --- *** An attribute of an experimentally derive ***
  27006. --- *** d feature. ***
  27007. --- ************************************************
  27008. ---
  27009. CREATE VIEW experimental_feature_attribute AS
  27010. SELECT
  27011. feature_id AS experimental_feature_attribute_id,
  27012. feature.*
  27013. FROM
  27014. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27015. WHERE cvterm.name = 'score' OR cvterm.name = 'quality_value' OR cvterm.name = 'experimental_feature_attribute';
  27016. --- ************************************************
  27017. --- *** relation: score ***
  27018. --- *** relation type: VIEW ***
  27019. --- *** ***
  27020. --- *** The score of an experimentally derived f ***
  27021. --- *** eature such as a p-value. ***
  27022. --- ************************************************
  27023. ---
  27024. CREATE VIEW score AS
  27025. SELECT
  27026. feature_id AS score_id,
  27027. feature.*
  27028. FROM
  27029. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27030. WHERE cvterm.name = 'score';
  27031. --- ************************************************
  27032. --- *** relation: quality_value ***
  27033. --- *** relation type: VIEW ***
  27034. --- *** ***
  27035. --- *** An experimental feature attribute that d ***
  27036. --- *** efines the quality of the feature in a q ***
  27037. --- *** uantitative way, such as a phred quality ***
  27038. --- *** score. ***
  27039. --- ************************************************
  27040. ---
  27041. CREATE VIEW quality_value AS
  27042. SELECT
  27043. feature_id AS quality_value_id,
  27044. feature.*
  27045. FROM
  27046. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27047. WHERE cvterm.name = 'quality_value';
  27048. --- ************************************************
  27049. --- *** relation: restriction_enzyme_recognition_site ***
  27050. --- *** relation type: VIEW ***
  27051. --- *** ***
  27052. --- *** The nucleotide region (usually a palindr ***
  27053. --- *** ome) that is recognized by a restriction ***
  27054. --- *** enzyme. This may or may not be equal to ***
  27055. --- *** the restriction enzyme binding site. ***
  27056. --- ************************************************
  27057. ---
  27058. CREATE VIEW restriction_enzyme_recognition_site AS
  27059. SELECT
  27060. feature_id AS restriction_enzyme_recognition_site_id,
  27061. feature.*
  27062. FROM
  27063. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27064. WHERE cvterm.name = 'blunt_end_restriction_enzyme_cleavage_site' OR cvterm.name = 'sticky_end_restriction_enzyme_cleavage_site' OR cvterm.name = 'restriction_enzyme_recognition_site';
  27065. --- ************************************************
  27066. --- *** relation: restriction_enzyme_cleavage_junction ***
  27067. --- *** relation type: VIEW ***
  27068. --- *** ***
  27069. --- *** The boundary at which a restriction enzy ***
  27070. --- *** me breaks the nucleotide sequence. ***
  27071. --- ************************************************
  27072. ---
  27073. CREATE VIEW restriction_enzyme_cleavage_junction AS
  27074. SELECT
  27075. feature_id AS restriction_enzyme_cleavage_junction_id,
  27076. feature.*
  27077. FROM
  27078. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27079. WHERE cvterm.name = 'blunt_end_restriction_enzyme_cleavage_junction' OR cvterm.name = 'single_strand_restriction_enzyme_cleavage_site' OR cvterm.name = 'five_prime_restriction_enzyme_junction' OR cvterm.name = 'three_prime_restriction_enzyme_junction' OR cvterm.name = 'restriction_enzyme_cleavage_junction';
  27080. --- ************************************************
  27081. --- *** relation: five_prime_restriction_enzyme_junction ***
  27082. --- *** relation type: VIEW ***
  27083. --- *** ***
  27084. --- *** The restriction enzyme cleavage junction ***
  27085. --- *** on the 5' strand of the nucleotide sequ ***
  27086. --- *** ence. ***
  27087. --- ************************************************
  27088. ---
  27089. CREATE VIEW five_prime_restriction_enzyme_junction AS
  27090. SELECT
  27091. feature_id AS five_prime_restriction_enzyme_junction_id,
  27092. feature.*
  27093. FROM
  27094. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27095. WHERE cvterm.name = 'five_prime_restriction_enzyme_junction';
  27096. --- ************************************************
  27097. --- *** relation: three_prime_restriction_enzyme_junction ***
  27098. --- *** relation type: VIEW ***
  27099. --- *** ***
  27100. --- ************************************************
  27101. ---
  27102. CREATE VIEW three_prime_restriction_enzyme_junction AS
  27103. SELECT
  27104. feature_id AS three_prime_restriction_enzyme_junction_id,
  27105. feature.*
  27106. FROM
  27107. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27108. WHERE cvterm.name = 'three_prime_restriction_enzyme_junction';
  27109. --- ************************************************
  27110. --- *** relation: blunt_end_restriction_enzyme_cleavage_site ***
  27111. --- *** relation type: VIEW ***
  27112. --- *** ***
  27113. --- ************************************************
  27114. ---
  27115. CREATE VIEW blunt_end_restriction_enzyme_cleavage_site AS
  27116. SELECT
  27117. feature_id AS blunt_end_restriction_enzyme_cleavage_site_id,
  27118. feature.*
  27119. FROM
  27120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27121. WHERE cvterm.name = 'blunt_end_restriction_enzyme_cleavage_site';
  27122. --- ************************************************
  27123. --- *** relation: sticky_end_restriction_enzyme_cleavage_site ***
  27124. --- *** relation type: VIEW ***
  27125. --- *** ***
  27126. --- ************************************************
  27127. ---
  27128. CREATE VIEW sticky_end_restriction_enzyme_cleavage_site AS
  27129. SELECT
  27130. feature_id AS sticky_end_restriction_enzyme_cleavage_site_id,
  27131. feature.*
  27132. FROM
  27133. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27134. WHERE cvterm.name = 'sticky_end_restriction_enzyme_cleavage_site';
  27135. --- ************************************************
  27136. --- *** relation: blunt_end_restriction_enzyme_cleavage_junction ***
  27137. --- *** relation type: VIEW ***
  27138. --- *** ***
  27139. --- *** A restriction enzyme cleavage site where ***
  27140. --- *** both strands are cut at the same positi ***
  27141. --- *** on. ***
  27142. --- ************************************************
  27143. ---
  27144. CREATE VIEW blunt_end_restriction_enzyme_cleavage_junction AS
  27145. SELECT
  27146. feature_id AS blunt_end_restriction_enzyme_cleavage_junction_id,
  27147. feature.*
  27148. FROM
  27149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27150. WHERE cvterm.name = 'blunt_end_restriction_enzyme_cleavage_junction';
  27151. --- ************************************************
  27152. --- *** relation: single_strand_restriction_enzyme_cleavage_site ***
  27153. --- *** relation type: VIEW ***
  27154. --- *** ***
  27155. --- *** A restriction enzyme cleavage site where ***
  27156. --- *** by only one strand is cut. ***
  27157. --- ************************************************
  27158. ---
  27159. CREATE VIEW single_strand_restriction_enzyme_cleavage_site AS
  27160. SELECT
  27161. feature_id AS single_strand_restriction_enzyme_cleavage_site_id,
  27162. feature.*
  27163. FROM
  27164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27165. WHERE cvterm.name = 'five_prime_restriction_enzyme_junction' OR cvterm.name = 'three_prime_restriction_enzyme_junction' OR cvterm.name = 'single_strand_restriction_enzyme_cleavage_site';
  27166. --- ************************************************
  27167. --- *** relation: restriction_enzyme_single_strand_overhang ***
  27168. --- *** relation type: VIEW ***
  27169. --- *** ***
  27170. --- *** A terminal region of DNA sequence where ***
  27171. --- *** the end of the region is not blunt ended ***
  27172. --- *** . ***
  27173. --- ************************************************
  27174. ---
  27175. CREATE VIEW restriction_enzyme_single_strand_overhang AS
  27176. SELECT
  27177. feature_id AS restriction_enzyme_single_strand_overhang_id,
  27178. feature.*
  27179. FROM
  27180. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27181. WHERE cvterm.name = 'restriction_enzyme_single_strand_overhang';
  27182. --- ************************************************
  27183. --- *** relation: experimentally_defined_binding_region ***
  27184. --- *** relation type: VIEW ***
  27185. --- *** ***
  27186. --- *** A region that has been implicated in bin ***
  27187. --- *** ding although the exact coordinates of b ***
  27188. --- *** inding may be unknown. ***
  27189. --- ************************************************
  27190. ---
  27191. CREATE VIEW experimentally_defined_binding_region AS
  27192. SELECT
  27193. feature_id AS experimentally_defined_binding_region_id,
  27194. feature.*
  27195. FROM
  27196. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27197. WHERE cvterm.name = 'CHiP_seq_region' OR cvterm.name = 'experimentally_defined_binding_region';
  27198. --- ************************************************
  27199. --- *** relation: chip_seq_region ***
  27200. --- *** relation type: VIEW ***
  27201. --- *** ***
  27202. --- *** A region of sequence identified by CHiP ***
  27203. --- *** seq technology to contain a protein bind ***
  27204. --- *** ing site. ***
  27205. --- ************************************************
  27206. ---
  27207. CREATE VIEW chip_seq_region AS
  27208. SELECT
  27209. feature_id AS chip_seq_region_id,
  27210. feature.*
  27211. FROM
  27212. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27213. WHERE cvterm.name = 'CHiP_seq_region';
  27214. --- ************************************************
  27215. --- *** relation: aspe_primer ***
  27216. --- *** relation type: VIEW ***
  27217. --- *** ***
  27218. --- *** "A primer containing an SNV at the 3' en ***
  27219. --- *** d for accurate genotyping. ***
  27220. --- ************************************************
  27221. ---
  27222. CREATE VIEW aspe_primer AS
  27223. SELECT
  27224. feature_id AS aspe_primer_id,
  27225. feature.*
  27226. FROM
  27227. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27228. WHERE cvterm.name = 'ASPE_primer';
  27229. --- ************************************************
  27230. --- *** relation: dcaps_primer ***
  27231. --- *** relation type: VIEW ***
  27232. --- *** ***
  27233. --- *** A primer with one or more mis-matches to ***
  27234. --- *** the DNA template corresponding to a pos ***
  27235. --- *** ition within a restriction enzyme recogn ***
  27236. --- *** ition site. ***
  27237. --- ************************************************
  27238. ---
  27239. CREATE VIEW dcaps_primer AS
  27240. SELECT
  27241. feature_id AS dcaps_primer_id,
  27242. feature.*
  27243. FROM
  27244. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27245. WHERE cvterm.name = 'dCAPS_primer';
  27246. --- ************************************************
  27247. --- *** relation: histone_modification ***
  27248. --- *** relation type: VIEW ***
  27249. --- *** ***
  27250. --- *** Histone modification is a post translati ***
  27251. --- *** onally modified region whereby residues ***
  27252. --- *** of the histone protein are modified by m ***
  27253. --- *** ethylation, acetylation, phosphorylation ***
  27254. --- *** , ubiquitination, sumoylation, citrullin ***
  27255. --- *** ation, or ADP-ribosylation. ***
  27256. --- ************************************************
  27257. ---
  27258. CREATE VIEW histone_modification AS
  27259. SELECT
  27260. feature_id AS histone_modification_id,
  27261. feature.*
  27262. FROM
  27263. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27264. WHERE cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'histone_modification';
  27265. --- ************************************************
  27266. --- *** relation: histone_methylation_site ***
  27267. --- *** relation type: VIEW ***
  27268. --- *** ***
  27269. --- *** A histone modification site where the mo ***
  27270. --- *** dification is the methylation of the res ***
  27271. --- *** idue. ***
  27272. --- ************************************************
  27273. ---
  27274. CREATE VIEW histone_methylation_site AS
  27275. SELECT
  27276. feature_id AS histone_methylation_site_id,
  27277. feature.*
  27278. FROM
  27279. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27280. WHERE cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'histone_methylation_site';
  27281. --- ************************************************
  27282. --- *** relation: histone_acetylation_site ***
  27283. --- *** relation type: VIEW ***
  27284. --- *** ***
  27285. --- *** A histone modification where the modific ***
  27286. --- *** ation is the acylation of the residue. ***
  27287. --- ************************************************
  27288. ---
  27289. CREATE VIEW histone_acetylation_site AS
  27290. SELECT
  27291. feature_id AS histone_acetylation_site_id,
  27292. feature.*
  27293. FROM
  27294. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27295. WHERE cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'histone_acetylation_site';
  27296. --- ************************************************
  27297. --- *** relation: h3k9_acetylation_site ***
  27298. --- *** relation type: VIEW ***
  27299. --- *** ***
  27300. --- *** A kind of histone modification site, whe ***
  27301. --- *** reby the 9th residue (a lysine), from th ***
  27302. --- *** e start of the H3 histone protein is acy ***
  27303. --- *** lated. ***
  27304. --- ************************************************
  27305. ---
  27306. CREATE VIEW h3k9_acetylation_site AS
  27307. SELECT
  27308. feature_id AS h3k9_acetylation_site_id,
  27309. feature.*
  27310. FROM
  27311. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27312. WHERE cvterm.name = 'H3K9_acetylation_site';
  27313. --- ************************************************
  27314. --- *** relation: h3k14_acetylation_site ***
  27315. --- *** relation type: VIEW ***
  27316. --- *** ***
  27317. --- *** A kind of histone modification site, whe ***
  27318. --- *** reby the 14th residue (a lysine), from t ***
  27319. --- *** he start of the H3 histone protein is ac ***
  27320. --- *** ylated. ***
  27321. --- ************************************************
  27322. ---
  27323. CREATE VIEW h3k14_acetylation_site AS
  27324. SELECT
  27325. feature_id AS h3k14_acetylation_site_id,
  27326. feature.*
  27327. FROM
  27328. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27329. WHERE cvterm.name = 'H3K14_acetylation_site';
  27330. --- ************************************************
  27331. --- *** relation: h3k4_monomethylation_site ***
  27332. --- *** relation type: VIEW ***
  27333. --- *** ***
  27334. --- *** A kind of histone modification, whereby ***
  27335. --- *** the 4th residue (a lysine), from the sta ***
  27336. --- *** rt of the H3 protein is mono-methylated. ***
  27337. --- ************************************************
  27338. ---
  27339. CREATE VIEW h3k4_monomethylation_site AS
  27340. SELECT
  27341. feature_id AS h3k4_monomethylation_site_id,
  27342. feature.*
  27343. FROM
  27344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27345. WHERE cvterm.name = 'H3K4_monomethylation_site';
  27346. --- ************************************************
  27347. --- *** relation: h3k4_trimethylation ***
  27348. --- *** relation type: VIEW ***
  27349. --- *** ***
  27350. --- *** A kind of histone modification site, whe ***
  27351. --- *** reby the 4th residue (a lysine), from th ***
  27352. --- *** e start of the H3 protein is tri-methyla ***
  27353. --- *** ted. ***
  27354. --- ************************************************
  27355. ---
  27356. CREATE VIEW h3k4_trimethylation AS
  27357. SELECT
  27358. feature_id AS h3k4_trimethylation_id,
  27359. feature.*
  27360. FROM
  27361. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27362. WHERE cvterm.name = 'H3K4_trimethylation';
  27363. --- ************************************************
  27364. --- *** relation: h3k9_trimethylation_site ***
  27365. --- *** relation type: VIEW ***
  27366. --- *** ***
  27367. --- *** A kind of histone modification site, whe ***
  27368. --- *** reby the 9th residue (a lysine), from th ***
  27369. --- *** e start of the H3 histone protein is tri ***
  27370. --- *** -methylated. ***
  27371. --- ************************************************
  27372. ---
  27373. CREATE VIEW h3k9_trimethylation_site AS
  27374. SELECT
  27375. feature_id AS h3k9_trimethylation_site_id,
  27376. feature.*
  27377. FROM
  27378. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27379. WHERE cvterm.name = 'H3K9_trimethylation_site';
  27380. --- ************************************************
  27381. --- *** relation: h3k27_monomethylation_site ***
  27382. --- *** relation type: VIEW ***
  27383. --- *** ***
  27384. --- *** A kind of histone modification site, whe ***
  27385. --- *** reby the 27th residue (a lysine), from t ***
  27386. --- *** he start of the H3 histone protein is mo ***
  27387. --- *** no-methylated. ***
  27388. --- ************************************************
  27389. ---
  27390. CREATE VIEW h3k27_monomethylation_site AS
  27391. SELECT
  27392. feature_id AS h3k27_monomethylation_site_id,
  27393. feature.*
  27394. FROM
  27395. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27396. WHERE cvterm.name = 'H3K27_monomethylation_site';
  27397. --- ************************************************
  27398. --- *** relation: h3k27_trimethylation_site ***
  27399. --- *** relation type: VIEW ***
  27400. --- *** ***
  27401. --- *** A kind of histone modification site, whe ***
  27402. --- *** reby the 27th residue (a lysine), from t ***
  27403. --- *** he start of the H3 histone protein is tr ***
  27404. --- *** i-methylated. ***
  27405. --- ************************************************
  27406. ---
  27407. CREATE VIEW h3k27_trimethylation_site AS
  27408. SELECT
  27409. feature_id AS h3k27_trimethylation_site_id,
  27410. feature.*
  27411. FROM
  27412. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27413. WHERE cvterm.name = 'H3K27_trimethylation_site';
  27414. --- ************************************************
  27415. --- *** relation: h3k79_monomethylation_site ***
  27416. --- *** relation type: VIEW ***
  27417. --- *** ***
  27418. --- *** A kind of histone modification site, whe ***
  27419. --- *** reby the 79th residue (a lysine), from t ***
  27420. --- *** he start of the H3 histone protein is mo ***
  27421. --- *** no- methylated. ***
  27422. --- ************************************************
  27423. ---
  27424. CREATE VIEW h3k79_monomethylation_site AS
  27425. SELECT
  27426. feature_id AS h3k79_monomethylation_site_id,
  27427. feature.*
  27428. FROM
  27429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27430. WHERE cvterm.name = 'H3K79_monomethylation_site';
  27431. --- ************************************************
  27432. --- *** relation: h3k79_dimethylation_site ***
  27433. --- *** relation type: VIEW ***
  27434. --- *** ***
  27435. --- *** A kind of histone modification site, whe ***
  27436. --- *** reby the 79th residue (a lysine), from t ***
  27437. --- *** he start of the H3 histone protein is di ***
  27438. --- *** -methylated. ***
  27439. --- ************************************************
  27440. ---
  27441. CREATE VIEW h3k79_dimethylation_site AS
  27442. SELECT
  27443. feature_id AS h3k79_dimethylation_site_id,
  27444. feature.*
  27445. FROM
  27446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27447. WHERE cvterm.name = 'H3K79_dimethylation_site';
  27448. --- ************************************************
  27449. --- *** relation: h3k79_trimethylation_site ***
  27450. --- *** relation type: VIEW ***
  27451. --- *** ***
  27452. --- *** A kind of histone modification site, whe ***
  27453. --- *** reby the 79th residue (a lysine), from t ***
  27454. --- *** he start of the H3 histone protein is tr ***
  27455. --- *** i-methylated. ***
  27456. --- ************************************************
  27457. ---
  27458. CREATE VIEW h3k79_trimethylation_site AS
  27459. SELECT
  27460. feature_id AS h3k79_trimethylation_site_id,
  27461. feature.*
  27462. FROM
  27463. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27464. WHERE cvterm.name = 'H3K79_trimethylation_site';
  27465. --- ************************************************
  27466. --- *** relation: h4k20_monomethylation_site ***
  27467. --- *** relation type: VIEW ***
  27468. --- *** ***
  27469. --- *** A kind of histone modification site, whe ***
  27470. --- *** reby the 20th residue (a lysine), from t ***
  27471. --- *** he start of the H34histone protein is mo ***
  27472. --- *** no-methylated. ***
  27473. --- ************************************************
  27474. ---
  27475. CREATE VIEW h4k20_monomethylation_site AS
  27476. SELECT
  27477. feature_id AS h4k20_monomethylation_site_id,
  27478. feature.*
  27479. FROM
  27480. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27481. WHERE cvterm.name = 'H4K20_monomethylation_site';
  27482. --- ************************************************
  27483. --- *** relation: h2bk5_monomethylation_site ***
  27484. --- *** relation type: VIEW ***
  27485. --- *** ***
  27486. --- *** A kind of histone modification site, whe ***
  27487. --- *** reby the 5th residue (a lysine), from th ***
  27488. --- *** e start of the H2B protein is methylated ***
  27489. --- *** . ***
  27490. --- ************************************************
  27491. ---
  27492. CREATE VIEW h2bk5_monomethylation_site AS
  27493. SELECT
  27494. feature_id AS h2bk5_monomethylation_site_id,
  27495. feature.*
  27496. FROM
  27497. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27498. WHERE cvterm.name = 'H2BK5_monomethylation_site';
  27499. --- ************************************************
  27500. --- *** relation: isre ***
  27501. --- *** relation type: VIEW ***
  27502. --- *** ***
  27503. --- *** An ISRE is a transcriptional cis regulat ***
  27504. --- *** ory region, containing the consensus reg ***
  27505. --- *** ion: YAGTTTC(A/T)YTTTYCC, responsible fo ***
  27506. --- *** r increased transcription via interferon ***
  27507. --- *** binding. ***
  27508. --- ************************************************
  27509. ---
  27510. CREATE VIEW isre AS
  27511. SELECT
  27512. feature_id AS isre_id,
  27513. feature.*
  27514. FROM
  27515. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27516. WHERE cvterm.name = 'ISRE';
  27517. --- ************************************************
  27518. --- *** relation: histone_ubiqitination_site ***
  27519. --- *** relation type: VIEW ***
  27520. --- *** ***
  27521. --- *** A histone modification site where ubiqui ***
  27522. --- *** tin may be added. ***
  27523. --- ************************************************
  27524. ---
  27525. CREATE VIEW histone_ubiqitination_site AS
  27526. SELECT
  27527. feature_id AS histone_ubiqitination_site_id,
  27528. feature.*
  27529. FROM
  27530. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27531. WHERE cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'histone_ubiqitination_site';
  27532. --- ************************************************
  27533. --- *** relation: h2b_ubiquitination_site ***
  27534. --- *** relation type: VIEW ***
  27535. --- *** ***
  27536. --- *** A histone modification site on H2B where ***
  27537. --- *** ubiquitin may be added. ***
  27538. --- ************************************************
  27539. ---
  27540. CREATE VIEW h2b_ubiquitination_site AS
  27541. SELECT
  27542. feature_id AS h2b_ubiquitination_site_id,
  27543. feature.*
  27544. FROM
  27545. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27546. WHERE cvterm.name = 'H2B_ubiquitination_site';
  27547. --- ************************************************
  27548. --- *** relation: h3k18_acetylation_site ***
  27549. --- *** relation type: VIEW ***
  27550. --- *** ***
  27551. --- *** A kind of histone modification site, whe ***
  27552. --- *** reby the 14th residue (a lysine), from t ***
  27553. --- *** he start of the H3 histone protein is ac ***
  27554. --- *** ylated. ***
  27555. --- ************************************************
  27556. ---
  27557. CREATE VIEW h3k18_acetylation_site AS
  27558. SELECT
  27559. feature_id AS h3k18_acetylation_site_id,
  27560. feature.*
  27561. FROM
  27562. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27563. WHERE cvterm.name = 'H3K18_acetylation_site';
  27564. --- ************************************************
  27565. --- *** relation: h3k23_acylation_site ***
  27566. --- *** relation type: VIEW ***
  27567. --- *** ***
  27568. --- *** A kind of histone modification, whereby ***
  27569. --- *** the 23rd residue (a lysine), from the st ***
  27570. --- *** art of the H3 histone protein is acylate ***
  27571. --- *** d. ***
  27572. --- ************************************************
  27573. ---
  27574. CREATE VIEW h3k23_acylation_site AS
  27575. SELECT
  27576. feature_id AS h3k23_acylation_site_id,
  27577. feature.*
  27578. FROM
  27579. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27580. WHERE cvterm.name = 'H3K23_acylation site';
  27581. --- ************************************************
  27582. --- *** relation: epigenetically_modified_region ***
  27583. --- *** relation type: VIEW ***
  27584. --- *** ***
  27585. --- *** A biological region implicated in inheri ***
  27586. --- *** ted changes caused by mechanisms other t ***
  27587. --- *** han changes in the underlying DNA sequen ***
  27588. --- *** ce. ***
  27589. --- ************************************************
  27590. ---
  27591. CREATE VIEW epigenetically_modified_region AS
  27592. SELECT
  27593. feature_id AS epigenetically_modified_region_id,
  27594. feature.*
  27595. FROM
  27596. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27597. WHERE cvterm.name = 'modified_base' OR cvterm.name = 'epigenetically_modified_gene' OR cvterm.name = 'histone_modification' OR cvterm.name = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'gene_rearranged_at_DNA_level' OR cvterm.name = 'maternally_imprinted_gene' OR cvterm.name = 'paternally_imprinted_gene' OR cvterm.name = 'allelically_excluded_gene' OR cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'epigenetically_modified_region';
  27598. --- ************************************************
  27599. --- *** relation: h3k27_acylation_site ***
  27600. --- *** relation type: VIEW ***
  27601. --- *** ***
  27602. --- *** A kind of histone modification site, whe ***
  27603. --- *** reby the 27th residue (a lysine), from t ***
  27604. --- *** he start of the H3 histone protein is ac ***
  27605. --- *** ylated. ***
  27606. --- ************************************************
  27607. ---
  27608. CREATE VIEW h3k27_acylation_site AS
  27609. SELECT
  27610. feature_id AS h3k27_acylation_site_id,
  27611. feature.*
  27612. FROM
  27613. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27614. WHERE cvterm.name = 'H3K27_acylation_site';
  27615. --- ************************************************
  27616. --- *** relation: h3k36_monomethylation_site ***
  27617. --- *** relation type: VIEW ***
  27618. --- *** ***
  27619. --- *** A kind of histone modification site, whe ***
  27620. --- *** reby the 36th residue (a lysine), from t ***
  27621. --- *** he start of the H3 histone protein is mo ***
  27622. --- *** no-methylated. ***
  27623. --- ************************************************
  27624. ---
  27625. CREATE VIEW h3k36_monomethylation_site AS
  27626. SELECT
  27627. feature_id AS h3k36_monomethylation_site_id,
  27628. feature.*
  27629. FROM
  27630. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27631. WHERE cvterm.name = 'H3K36_monomethylation_site';
  27632. --- ************************************************
  27633. --- *** relation: h3k36_dimethylation_site ***
  27634. --- *** relation type: VIEW ***
  27635. --- *** ***
  27636. --- *** A kind of histone modification site, whe ***
  27637. --- *** reby the 36th residue (a lysine), from t ***
  27638. --- *** he start of the H3 histone protein is di ***
  27639. --- *** methylated. ***
  27640. --- ************************************************
  27641. ---
  27642. CREATE VIEW h3k36_dimethylation_site AS
  27643. SELECT
  27644. feature_id AS h3k36_dimethylation_site_id,
  27645. feature.*
  27646. FROM
  27647. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27648. WHERE cvterm.name = 'H3K36_dimethylation_site';
  27649. --- ************************************************
  27650. --- *** relation: h3k36_trimethylation_site ***
  27651. --- *** relation type: VIEW ***
  27652. --- *** ***
  27653. --- *** A kind of histone modification site, whe ***
  27654. --- *** reby the 36th residue (a lysine), from t ***
  27655. --- *** he start of the H3 histone protein is tr ***
  27656. --- *** i-methylated. ***
  27657. --- ************************************************
  27658. ---
  27659. CREATE VIEW h3k36_trimethylation_site AS
  27660. SELECT
  27661. feature_id AS h3k36_trimethylation_site_id,
  27662. feature.*
  27663. FROM
  27664. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27665. WHERE cvterm.name = 'H3K36_trimethylation_site';
  27666. --- ************************************************
  27667. --- *** relation: h3k4_dimethylation_site ***
  27668. --- *** relation type: VIEW ***
  27669. --- *** ***
  27670. --- *** A kind of histone modification site, whe ***
  27671. --- *** reby the 4th residue (a lysine), from th ***
  27672. --- *** e start of the H3 histone protein is di- ***
  27673. --- *** methylated. ***
  27674. --- ************************************************
  27675. ---
  27676. CREATE VIEW h3k4_dimethylation_site AS
  27677. SELECT
  27678. feature_id AS h3k4_dimethylation_site_id,
  27679. feature.*
  27680. FROM
  27681. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27682. WHERE cvterm.name = 'H3K4_dimethylation_site';
  27683. --- ************************************************
  27684. --- *** relation: h3k27_dimethylation_site ***
  27685. --- *** relation type: VIEW ***
  27686. --- *** ***
  27687. --- *** A kind of histone modification site, whe ***
  27688. --- *** reby the 27th residue (a lysine), from t ***
  27689. --- *** he start of the H3 histone protein is di ***
  27690. --- *** -methylated. ***
  27691. --- ************************************************
  27692. ---
  27693. CREATE VIEW h3k27_dimethylation_site AS
  27694. SELECT
  27695. feature_id AS h3k27_dimethylation_site_id,
  27696. feature.*
  27697. FROM
  27698. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27699. WHERE cvterm.name = 'H3K27_dimethylation_site';
  27700. --- ************************************************
  27701. --- *** relation: h3k9_monomethylation_site ***
  27702. --- *** relation type: VIEW ***
  27703. --- *** ***
  27704. --- *** A kind of histone modification site, whe ***
  27705. --- *** reby the 9th residue (a lysine), from th ***
  27706. --- *** e start of the H3 histone protein is mon ***
  27707. --- *** o-methylated. ***
  27708. --- ************************************************
  27709. ---
  27710. CREATE VIEW h3k9_monomethylation_site AS
  27711. SELECT
  27712. feature_id AS h3k9_monomethylation_site_id,
  27713. feature.*
  27714. FROM
  27715. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27716. WHERE cvterm.name = 'H3K9_monomethylation_site';
  27717. --- ************************************************
  27718. --- *** relation: h3k9_dimethylation_site ***
  27719. --- *** relation type: VIEW ***
  27720. --- *** ***
  27721. --- *** A kind of histone modification site, whe ***
  27722. --- *** reby the 9th residue (a lysine), from th ***
  27723. --- *** e start of the H3 histone protein may be ***
  27724. --- *** dimethylated. ***
  27725. --- ************************************************
  27726. ---
  27727. CREATE VIEW h3k9_dimethylation_site AS
  27728. SELECT
  27729. feature_id AS h3k9_dimethylation_site_id,
  27730. feature.*
  27731. FROM
  27732. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27733. WHERE cvterm.name = 'H3K9_dimethylation_site';
  27734. --- ************************************************
  27735. --- *** relation: h4k16_acylation_site ***
  27736. --- *** relation type: VIEW ***
  27737. --- *** ***
  27738. --- *** A kind of histone modification site, whe ***
  27739. --- *** reby the 16th residue (a lysine), from t ***
  27740. --- *** he start of the H4 histone protein is ac ***
  27741. --- *** ylated. ***
  27742. --- ************************************************
  27743. ---
  27744. CREATE VIEW h4k16_acylation_site AS
  27745. SELECT
  27746. feature_id AS h4k16_acylation_site_id,
  27747. feature.*
  27748. FROM
  27749. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27750. WHERE cvterm.name = 'H4K16_acylation_site';
  27751. --- ************************************************
  27752. --- *** relation: h4k5_acylation_site ***
  27753. --- *** relation type: VIEW ***
  27754. --- *** ***
  27755. --- *** A kind of histone modification site, whe ***
  27756. --- *** reby the 5th residue (a lysine), from th ***
  27757. --- *** e start of the H4 histone protein is acy ***
  27758. --- *** lated. ***
  27759. --- ************************************************
  27760. ---
  27761. CREATE VIEW h4k5_acylation_site AS
  27762. SELECT
  27763. feature_id AS h4k5_acylation_site_id,
  27764. feature.*
  27765. FROM
  27766. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27767. WHERE cvterm.name = 'H4K5_acylation_site';
  27768. --- ************************************************
  27769. --- *** relation: h4k8_acylation_site ***
  27770. --- *** relation type: VIEW ***
  27771. --- *** ***
  27772. --- *** A kind of histone modification site, whe ***
  27773. --- *** reby the 8th residue (a lysine), from th ***
  27774. --- *** e start of the H4 histone protein is acy ***
  27775. --- *** lated. ***
  27776. --- ************************************************
  27777. ---
  27778. CREATE VIEW h4k8_acylation_site AS
  27779. SELECT
  27780. feature_id AS h4k8_acylation_site_id,
  27781. feature.*
  27782. FROM
  27783. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27784. WHERE cvterm.name = 'H4K8_acylation site';
  27785. --- ************************************************
  27786. --- *** relation: h3k27_methylation_site ***
  27787. --- *** relation type: VIEW ***
  27788. --- *** ***
  27789. --- *** A kind of histone modification site, whe ***
  27790. --- *** reby the 27th residue (a lysine), from t ***
  27791. --- *** he start of the H3 histone protein is me ***
  27792. --- *** thylated. ***
  27793. --- ************************************************
  27794. ---
  27795. CREATE VIEW h3k27_methylation_site AS
  27796. SELECT
  27797. feature_id AS h3k27_methylation_site_id,
  27798. feature.*
  27799. FROM
  27800. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27801. WHERE cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K27_methylation_site';
  27802. --- ************************************************
  27803. --- *** relation: h3k36_methylation_site ***
  27804. --- *** relation type: VIEW ***
  27805. --- *** ***
  27806. --- *** A kind of histone modification site, whe ***
  27807. --- *** reby the 36th residue (a lysine), from t ***
  27808. --- *** he start of the H3 histone protein is me ***
  27809. --- *** thylated. ***
  27810. --- ************************************************
  27811. ---
  27812. CREATE VIEW h3k36_methylation_site AS
  27813. SELECT
  27814. feature_id AS h3k36_methylation_site_id,
  27815. feature.*
  27816. FROM
  27817. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27818. WHERE cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K36_methylation_site';
  27819. --- ************************************************
  27820. --- *** relation: h3k4_methylation_site ***
  27821. --- *** relation type: VIEW ***
  27822. --- *** ***
  27823. --- *** A kind of histone modification, whereby ***
  27824. --- *** the 4th residue (a lysine), from the sta ***
  27825. --- *** rt of the H3 protein is methylated. ***
  27826. --- ************************************************
  27827. ---
  27828. CREATE VIEW h3k4_methylation_site AS
  27829. SELECT
  27830. feature_id AS h3k4_methylation_site_id,
  27831. feature.*
  27832. FROM
  27833. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27834. WHERE cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K4_methylation_site';
  27835. --- ************************************************
  27836. --- *** relation: h3k79_methylation_site ***
  27837. --- *** relation type: VIEW ***
  27838. --- *** ***
  27839. --- *** A kind of histone modification site, whe ***
  27840. --- *** reby the 79th residue (a lysine), from t ***
  27841. --- *** he start of the H3 histone protein is me ***
  27842. --- *** thylated. ***
  27843. --- ************************************************
  27844. ---
  27845. CREATE VIEW h3k79_methylation_site AS
  27846. SELECT
  27847. feature_id AS h3k79_methylation_site_id,
  27848. feature.*
  27849. FROM
  27850. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27851. WHERE cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K79_methylation_site';
  27852. --- ************************************************
  27853. --- *** relation: h3k9_methylation_site ***
  27854. --- *** relation type: VIEW ***
  27855. --- *** ***
  27856. --- *** A kind of histone modification site, whe ***
  27857. --- *** reby the 9th residue (a lysine), from th ***
  27858. --- *** e start of the H3 histone protein is met ***
  27859. --- *** hylated. ***
  27860. --- ************************************************
  27861. ---
  27862. CREATE VIEW h3k9_methylation_site AS
  27863. SELECT
  27864. feature_id AS h3k9_methylation_site_id,
  27865. feature.*
  27866. FROM
  27867. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27868. WHERE cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_methylation_site';
  27869. --- ************************************************
  27870. --- *** relation: histone_acylation_region ***
  27871. --- *** relation type: VIEW ***
  27872. --- *** ***
  27873. --- *** A histone modification, whereby the hist ***
  27874. --- *** one protein is acylated at multiple site ***
  27875. --- *** s in a region. ***
  27876. --- ************************************************
  27877. ---
  27878. CREATE VIEW histone_acylation_region AS
  27879. SELECT
  27880. feature_id AS histone_acylation_region_id,
  27881. feature.*
  27882. FROM
  27883. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27884. WHERE cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'histone_acylation_region';
  27885. --- ************************************************
  27886. --- *** relation: h4k_acylation_region ***
  27887. --- *** relation type: VIEW ***
  27888. --- *** ***
  27889. --- *** A region of the H4 histone whereby multi ***
  27890. --- *** ple lysines are acylated. ***
  27891. --- ************************************************
  27892. ---
  27893. CREATE VIEW h4k_acylation_region AS
  27894. SELECT
  27895. feature_id AS h4k_acylation_region_id,
  27896. feature.*
  27897. FROM
  27898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27899. WHERE cvterm.name = 'H4K_acylation_region';
  27900. --- ************************************************
  27901. --- *** relation: gene_with_non_canonical_start_codon ***
  27902. --- *** relation type: VIEW ***
  27903. --- *** ***
  27904. --- *** A gene with a start codon other than AUG ***
  27905. --- *** . ***
  27906. --- ************************************************
  27907. ---
  27908. CREATE VIEW gene_with_non_canonical_start_codon AS
  27909. SELECT
  27910. feature_id AS gene_with_non_canonical_start_codon_id,
  27911. feature.*
  27912. FROM
  27913. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27914. WHERE cvterm.name = 'gene_with_start_codon_CUG' OR cvterm.name = 'gene_with_non_canonical_start_codon';
  27915. --- ************************************************
  27916. --- *** relation: gene_with_start_codon_cug ***
  27917. --- *** relation type: VIEW ***
  27918. --- *** ***
  27919. --- *** A gene with a translational start codon ***
  27920. --- *** of CUG. ***
  27921. --- ************************************************
  27922. ---
  27923. CREATE VIEW gene_with_start_codon_cug AS
  27924. SELECT
  27925. feature_id AS gene_with_start_codon_cug_id,
  27926. feature.*
  27927. FROM
  27928. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27929. WHERE cvterm.name = 'gene_with_start_codon_CUG';
  27930. --- ************************************************
  27931. --- *** relation: pseudogenic_gene_segment ***
  27932. --- *** relation type: VIEW ***
  27933. --- *** ***
  27934. --- *** A gene segment which when incorporated b ***
  27935. --- *** y somatic recombination in the final gen ***
  27936. --- *** e transcript results in a nonfunctional ***
  27937. --- *** product. ***
  27938. --- ************************************************
  27939. ---
  27940. CREATE VIEW pseudogenic_gene_segment AS
  27941. SELECT
  27942. feature_id AS pseudogenic_gene_segment_id,
  27943. feature.*
  27944. FROM
  27945. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27946. WHERE cvterm.name = 'pseudogenic_gene_segment';
  27947. --- ************************************************
  27948. --- *** relation: copy_number_gain ***
  27949. --- *** relation type: VIEW ***
  27950. --- *** ***
  27951. --- *** A sequence alteration whereby the copy n ***
  27952. --- *** umber of a given regions is greater than ***
  27953. --- *** the reference sequence. ***
  27954. --- ************************************************
  27955. ---
  27956. CREATE VIEW copy_number_gain AS
  27957. SELECT
  27958. feature_id AS copy_number_gain_id,
  27959. feature.*
  27960. FROM
  27961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27962. WHERE cvterm.name = 'copy_number_gain';
  27963. --- ************************************************
  27964. --- *** relation: copy_number_loss ***
  27965. --- *** relation type: VIEW ***
  27966. --- *** ***
  27967. --- *** A sequence alteration whereby the copy n ***
  27968. --- *** umber of a given region is less than the ***
  27969. --- *** reference sequence. ***
  27970. --- ************************************************
  27971. ---
  27972. CREATE VIEW copy_number_loss AS
  27973. SELECT
  27974. feature_id AS copy_number_loss_id,
  27975. feature.*
  27976. FROM
  27977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27978. WHERE cvterm.name = 'copy_number_loss';
  27979. --- ************************************************
  27980. --- *** relation: upd ***
  27981. --- *** relation type: VIEW ***
  27982. --- *** ***
  27983. --- *** Uniparental disomy is a sequence_alterat ***
  27984. --- *** ion where a diploid individual receives ***
  27985. --- *** two copies for all or part of a chromoso ***
  27986. --- *** me from one parent and no copies of the ***
  27987. --- *** same chromosome or region from the other ***
  27988. --- *** parent. ***
  27989. --- ************************************************
  27990. ---
  27991. CREATE VIEW upd AS
  27992. SELECT
  27993. feature_id AS upd_id,
  27994. feature.*
  27995. FROM
  27996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27997. WHERE cvterm.name = 'maternal_uniparental_disomy' OR cvterm.name = 'paternal_uniparental_disomy' OR cvterm.name = 'UPD';
  27998. --- ************************************************
  27999. --- *** relation: maternal_uniparental_disomy ***
  28000. --- *** relation type: VIEW ***
  28001. --- *** ***
  28002. --- *** Uniparental disomy is a sequence_alterat ***
  28003. --- *** ion where a diploid individual receives ***
  28004. --- *** two copies for all or part of a chromoso ***
  28005. --- *** me from the mother and no copies of the ***
  28006. --- *** same chromosome or region from the fathe ***
  28007. --- *** r. ***
  28008. --- ************************************************
  28009. ---
  28010. CREATE VIEW maternal_uniparental_disomy AS
  28011. SELECT
  28012. feature_id AS maternal_uniparental_disomy_id,
  28013. feature.*
  28014. FROM
  28015. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28016. WHERE cvterm.name = 'maternal_uniparental_disomy';
  28017. --- ************************************************
  28018. --- *** relation: paternal_uniparental_disomy ***
  28019. --- *** relation type: VIEW ***
  28020. --- *** ***
  28021. --- *** Uniparental disomy is a sequence_alterat ***
  28022. --- *** ion where a diploid individual receives ***
  28023. --- *** two copies for all or part of a chromoso ***
  28024. --- *** me from the father and no copies of the ***
  28025. --- *** same chromosome or region from the mothe ***
  28026. --- *** r. ***
  28027. --- ************************************************
  28028. ---
  28029. CREATE VIEW paternal_uniparental_disomy AS
  28030. SELECT
  28031. feature_id AS paternal_uniparental_disomy_id,
  28032. feature.*
  28033. FROM
  28034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28035. WHERE cvterm.name = 'paternal_uniparental_disomy';
  28036. --- ************************************************
  28037. --- *** relation: open_chromatin_region ***
  28038. --- *** relation type: VIEW ***
  28039. --- *** ***
  28040. --- *** A DNA sequence that in the normal state ***
  28041. --- *** of the chromosome corresponds to an unfo ***
  28042. --- *** lded, un-complexed stretch of double-str ***
  28043. --- *** anded DNA. ***
  28044. --- ************************************************
  28045. ---
  28046. CREATE VIEW open_chromatin_region AS
  28047. SELECT
  28048. feature_id AS open_chromatin_region_id,
  28049. feature.*
  28050. FROM
  28051. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28052. WHERE cvterm.name = 'open_chromatin_region';
  28053. --- ************************************************
  28054. --- *** relation: sl3_acceptor_site ***
  28055. --- *** relation type: VIEW ***
  28056. --- *** ***
  28057. --- *** A SL2_acceptor_site which appends the SL ***
  28058. --- *** 3 RNA leader sequence to the 5' end of a ***
  28059. --- *** n mRNA. SL3 acceptor sites occur in gene ***
  28060. --- *** s in internal segments of polycistronic ***
  28061. --- *** transcripts. ***
  28062. --- ************************************************
  28063. ---
  28064. CREATE VIEW sl3_acceptor_site AS
  28065. SELECT
  28066. feature_id AS sl3_acceptor_site_id,
  28067. feature.*
  28068. FROM
  28069. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28070. WHERE cvterm.name = 'SL3_acceptor_site';
  28071. --- ************************************************
  28072. --- *** relation: sl4_acceptor_site ***
  28073. --- *** relation type: VIEW ***
  28074. --- *** ***
  28075. --- *** A SL2_acceptor_site which appends the SL ***
  28076. --- *** 4 RNA leader sequence to the 5' end of a ***
  28077. --- *** n mRNA. SL4 acceptor sites occur in gene ***
  28078. --- *** s in internal segments of polycistronic ***
  28079. --- *** transcripts. ***
  28080. --- ************************************************
  28081. ---
  28082. CREATE VIEW sl4_acceptor_site AS
  28083. SELECT
  28084. feature_id AS sl4_acceptor_site_id,
  28085. feature.*
  28086. FROM
  28087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28088. WHERE cvterm.name = 'SL4_acceptor_site';
  28089. --- ************************************************
  28090. --- *** relation: sl5_acceptor_site ***
  28091. --- *** relation type: VIEW ***
  28092. --- *** ***
  28093. --- *** A SL2_acceptor_site which appends the SL ***
  28094. --- *** 5 RNA leader sequence to the 5' end of a ***
  28095. --- *** n mRNA. SL5 acceptor sites occur in gene ***
  28096. --- *** s in internal segments of polycistronic ***
  28097. --- *** transcripts. ***
  28098. --- ************************************************
  28099. ---
  28100. CREATE VIEW sl5_acceptor_site AS
  28101. SELECT
  28102. feature_id AS sl5_acceptor_site_id,
  28103. feature.*
  28104. FROM
  28105. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28106. WHERE cvterm.name = 'SL5_acceptor_site';
  28107. --- ************************************************
  28108. --- *** relation: sl6_acceptor_site ***
  28109. --- *** relation type: VIEW ***
  28110. --- *** ***
  28111. --- *** A SL2_acceptor_site which appends the SL ***
  28112. --- *** 6 RNA leader sequence to the 5' end of a ***
  28113. --- *** n mRNA. SL6 acceptor sites occur in gene ***
  28114. --- *** s in internal segments of polycistronic ***
  28115. --- *** transcripts. ***
  28116. --- ************************************************
  28117. ---
  28118. CREATE VIEW sl6_acceptor_site AS
  28119. SELECT
  28120. feature_id AS sl6_acceptor_site_id,
  28121. feature.*
  28122. FROM
  28123. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28124. WHERE cvterm.name = 'SL6_acceptor_site';
  28125. --- ************************************************
  28126. --- *** relation: sl7_acceptor_site ***
  28127. --- *** relation type: VIEW ***
  28128. --- *** ***
  28129. --- *** A SL2_acceptor_site which appends the SL ***
  28130. --- *** 7 RNA leader sequence to the 5' end of a ***
  28131. --- *** n mRNA. SL7 acceptor sites occur in gene ***
  28132. --- *** s in internal segments of polycistronic ***
  28133. --- *** transcripts. ***
  28134. --- ************************************************
  28135. ---
  28136. CREATE VIEW sl7_acceptor_site AS
  28137. SELECT
  28138. feature_id AS sl7_acceptor_site_id,
  28139. feature.*
  28140. FROM
  28141. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28142. WHERE cvterm.name = 'SL7_acceptor_site';
  28143. --- ************************************************
  28144. --- *** relation: sl8_acceptor_site ***
  28145. --- *** relation type: VIEW ***
  28146. --- *** ***
  28147. --- *** A SL2_acceptor_site which appends the SL ***
  28148. --- *** 8 RNA leader sequence to the 5' end of a ***
  28149. --- *** n mRNA. SL8 acceptor sites occur in gene ***
  28150. --- *** s in internal segments of polycistronic ***
  28151. --- *** transcripts. ***
  28152. --- ************************************************
  28153. ---
  28154. CREATE VIEW sl8_acceptor_site AS
  28155. SELECT
  28156. feature_id AS sl8_acceptor_site_id,
  28157. feature.*
  28158. FROM
  28159. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28160. WHERE cvterm.name = 'SL8_acceptor_site';
  28161. --- ************************************************
  28162. --- *** relation: sl9_acceptor_site ***
  28163. --- *** relation type: VIEW ***
  28164. --- *** ***
  28165. --- *** A SL2_acceptor_site which appends the SL ***
  28166. --- *** 9 RNA leader sequence to the 5' end of a ***
  28167. --- *** n mRNA. SL9 acceptor sites occur in gene ***
  28168. --- *** s in internal segments of polycistronic ***
  28169. --- *** transcripts. ***
  28170. --- ************************************************
  28171. ---
  28172. CREATE VIEW sl9_acceptor_site AS
  28173. SELECT
  28174. feature_id AS sl9_acceptor_site_id,
  28175. feature.*
  28176. FROM
  28177. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28178. WHERE cvterm.name = 'SL9_acceptor_site';
  28179. --- ************************************************
  28180. --- *** relation: sl10_accceptor_site ***
  28181. --- *** relation type: VIEW ***
  28182. --- *** ***
  28183. --- *** A SL2_acceptor_site which appends the SL ***
  28184. --- *** 10 RNA leader sequence to the 5' end of ***
  28185. --- *** an mRNA. SL10 acceptor sites occur in ge ***
  28186. --- *** nes in internal segments of polycistroni ***
  28187. --- *** c transcripts. ***
  28188. --- ************************************************
  28189. ---
  28190. CREATE VIEW sl10_accceptor_site AS
  28191. SELECT
  28192. feature_id AS sl10_accceptor_site_id,
  28193. feature.*
  28194. FROM
  28195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28196. WHERE cvterm.name = 'SL10_accceptor_site';
  28197. --- ************************************************
  28198. --- *** relation: sl11_acceptor_site ***
  28199. --- *** relation type: VIEW ***
  28200. --- *** ***
  28201. --- *** A SL2_acceptor_site which appends the SL ***
  28202. --- *** 11 RNA leader sequence to the 5' end of ***
  28203. --- *** an mRNA. SL11 acceptor sites occur in ge ***
  28204. --- *** nes in internal segments of polycistroni ***
  28205. --- *** c transcripts. ***
  28206. --- ************************************************
  28207. ---
  28208. CREATE VIEW sl11_acceptor_site AS
  28209. SELECT
  28210. feature_id AS sl11_acceptor_site_id,
  28211. feature.*
  28212. FROM
  28213. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28214. WHERE cvterm.name = 'SL11_acceptor_site';
  28215. --- ************************************************
  28216. --- *** relation: sl12_acceptor_site ***
  28217. --- *** relation type: VIEW ***
  28218. --- *** ***
  28219. --- *** A SL2_acceptor_site which appends the SL ***
  28220. --- *** 12 RNA leader sequence to the 5' end of ***
  28221. --- *** an mRNA. SL12 acceptor sites occur in ge ***
  28222. --- *** nes in internal segments of polycistroni ***
  28223. --- *** c transcripts. ***
  28224. --- ************************************************
  28225. ---
  28226. CREATE VIEW sl12_acceptor_site AS
  28227. SELECT
  28228. feature_id AS sl12_acceptor_site_id,
  28229. feature.*
  28230. FROM
  28231. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28232. WHERE cvterm.name = 'SL12_acceptor_site';
  28233. --- ************************************************
  28234. --- *** relation: duplicated_pseudogene ***
  28235. --- *** relation type: VIEW ***
  28236. --- *** ***
  28237. --- *** A pseudogene that arose via gene duplica ***
  28238. --- *** tion. Generally duplicated pseudogenes h ***
  28239. --- *** ave the same structure as the original g ***
  28240. --- *** ene, including intron-exon structure and ***
  28241. --- *** some regulatory sequence. ***
  28242. --- ************************************************
  28243. ---
  28244. CREATE VIEW duplicated_pseudogene AS
  28245. SELECT
  28246. feature_id AS duplicated_pseudogene_id,
  28247. feature.*
  28248. FROM
  28249. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28250. WHERE cvterm.name = 'duplicated_pseudogene';
  28251. --- ************************************************
  28252. --- *** relation: unitary_pseudogene ***
  28253. --- *** relation type: VIEW ***
  28254. --- *** ***
  28255. --- *** A pseudogene, deactivated from original ***
  28256. --- *** state by mutation, fixed in a population ***
  28257. --- *** . ***
  28258. --- ************************************************
  28259. ---
  28260. CREATE VIEW unitary_pseudogene AS
  28261. SELECT
  28262. feature_id AS unitary_pseudogene_id,
  28263. feature.*
  28264. FROM
  28265. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28266. WHERE cvterm.name = 'unitary_pseudogene';
  28267. --- ************************************************
  28268. --- *** relation: non_processed_pseudogene ***
  28269. --- *** relation type: VIEW ***
  28270. --- *** ***
  28271. --- *** A pseudogene that arose from a means oth ***
  28272. --- *** er than retrotransposition. ***
  28273. --- ************************************************
  28274. ---
  28275. CREATE VIEW non_processed_pseudogene AS
  28276. SELECT
  28277. feature_id AS non_processed_pseudogene_id,
  28278. feature.*
  28279. FROM
  28280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28281. WHERE cvterm.name = 'pseudogene_by_unequal_crossing_over' OR cvterm.name = 'nuclear_mt_pseudogene' OR cvterm.name = 'cassette_pseudogene' OR cvterm.name = 'duplicated_pseudogene' OR cvterm.name = 'unitary_pseudogene' OR cvterm.name = 'non_processed_pseudogene';
  28282. --- ************************************************
  28283. --- *** relation: variant_quality ***
  28284. --- *** relation type: VIEW ***
  28285. --- *** ***
  28286. --- *** A dependent entity that inheres in a bea ***
  28287. --- *** rer, a sequence variant. ***
  28288. --- ************************************************
  28289. ---
  28290. CREATE VIEW variant_quality AS
  28291. SELECT
  28292. feature_id AS variant_quality_id,
  28293. feature.*
  28294. FROM
  28295. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28296. WHERE cvterm.name = 'variant_origin' OR cvterm.name = 'variant_frequency' OR cvterm.name = 'variant_phenotype' OR cvterm.name = 'maternal_variant' OR cvterm.name = 'paternal_variant' OR cvterm.name = 'somatic_variant' OR cvterm.name = 'germline_variant' OR cvterm.name = 'pedigree_specific_variant' OR cvterm.name = 'population_specific_variant' OR cvterm.name = 'de_novo_variant' OR cvterm.name = 'unique_variant' OR cvterm.name = 'rare_variant' OR cvterm.name = 'polymorphic_variant' OR cvterm.name = 'common_variant' OR cvterm.name = 'fixed_variant' OR cvterm.name = 'benign_variant' OR cvterm.name = 'disease_associated_variant' OR cvterm.name = 'disease_causing_variant' OR cvterm.name = 'lethal_variant' OR cvterm.name = 'quantitative_variant' OR cvterm.name = 'variant_quality';
  28297. --- ************************************************
  28298. --- *** relation: variant_origin ***
  28299. --- *** relation type: VIEW ***
  28300. --- *** ***
  28301. --- *** A quality inhering in a variant by virtu ***
  28302. --- *** e of its origin. ***
  28303. --- ************************************************
  28304. ---
  28305. CREATE VIEW variant_origin AS
  28306. SELECT
  28307. feature_id AS variant_origin_id,
  28308. feature.*
  28309. FROM
  28310. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28311. WHERE cvterm.name = 'maternal_variant' OR cvterm.name = 'paternal_variant' OR cvterm.name = 'somatic_variant' OR cvterm.name = 'germline_variant' OR cvterm.name = 'pedigree_specific_variant' OR cvterm.name = 'population_specific_variant' OR cvterm.name = 'de_novo_variant' OR cvterm.name = 'variant_origin';
  28312. --- ************************************************
  28313. --- *** relation: variant_frequency ***
  28314. --- *** relation type: VIEW ***
  28315. --- *** ***
  28316. --- *** A physical quality which inheres to the ***
  28317. --- *** variant by virtue of the number instance ***
  28318. --- *** s of the variant within a population. ***
  28319. --- ************************************************
  28320. ---
  28321. CREATE VIEW variant_frequency AS
  28322. SELECT
  28323. feature_id AS variant_frequency_id,
  28324. feature.*
  28325. FROM
  28326. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28327. WHERE cvterm.name = 'unique_variant' OR cvterm.name = 'rare_variant' OR cvterm.name = 'polymorphic_variant' OR cvterm.name = 'common_variant' OR cvterm.name = 'fixed_variant' OR cvterm.name = 'variant_frequency';
  28328. --- ************************************************
  28329. --- *** relation: unique_variant ***
  28330. --- *** relation type: VIEW ***
  28331. --- *** ***
  28332. --- *** A physical quality which inheres to the ***
  28333. --- *** variant by virtue of the number instance ***
  28334. --- *** s of the variant within a population. ***
  28335. --- ************************************************
  28336. ---
  28337. CREATE VIEW unique_variant AS
  28338. SELECT
  28339. feature_id AS unique_variant_id,
  28340. feature.*
  28341. FROM
  28342. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28343. WHERE cvterm.name = 'unique_variant';
  28344. --- ************************************************
  28345. --- *** relation: rare_variant ***
  28346. --- *** relation type: VIEW ***
  28347. --- *** ***
  28348. --- ************************************************
  28349. ---
  28350. CREATE VIEW rare_variant AS
  28351. SELECT
  28352. feature_id AS rare_variant_id,
  28353. feature.*
  28354. FROM
  28355. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28356. WHERE cvterm.name = 'rare_variant';
  28357. --- ************************************************
  28358. --- *** relation: polymorphic_variant ***
  28359. --- *** relation type: VIEW ***
  28360. --- *** ***
  28361. --- ************************************************
  28362. ---
  28363. CREATE VIEW polymorphic_variant AS
  28364. SELECT
  28365. feature_id AS polymorphic_variant_id,
  28366. feature.*
  28367. FROM
  28368. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28369. WHERE cvterm.name = 'polymorphic_variant';
  28370. --- ************************************************
  28371. --- *** relation: common_variant ***
  28372. --- *** relation type: VIEW ***
  28373. --- *** ***
  28374. --- ************************************************
  28375. ---
  28376. CREATE VIEW common_variant AS
  28377. SELECT
  28378. feature_id AS common_variant_id,
  28379. feature.*
  28380. FROM
  28381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28382. WHERE cvterm.name = 'common_variant';
  28383. --- ************************************************
  28384. --- *** relation: fixed_variant ***
  28385. --- *** relation type: VIEW ***
  28386. --- *** ***
  28387. --- ************************************************
  28388. ---
  28389. CREATE VIEW fixed_variant AS
  28390. SELECT
  28391. feature_id AS fixed_variant_id,
  28392. feature.*
  28393. FROM
  28394. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28395. WHERE cvterm.name = 'fixed_variant';
  28396. --- ************************************************
  28397. --- *** relation: variant_phenotype ***
  28398. --- *** relation type: VIEW ***
  28399. --- *** ***
  28400. --- *** A quality inhering in a variant by virtu ***
  28401. --- *** e of its phenotype. ***
  28402. --- ************************************************
  28403. ---
  28404. CREATE VIEW variant_phenotype AS
  28405. SELECT
  28406. feature_id AS variant_phenotype_id,
  28407. feature.*
  28408. FROM
  28409. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28410. WHERE cvterm.name = 'benign_variant' OR cvterm.name = 'disease_associated_variant' OR cvterm.name = 'disease_causing_variant' OR cvterm.name = 'lethal_variant' OR cvterm.name = 'quantitative_variant' OR cvterm.name = 'variant_phenotype';
  28411. --- ************************************************
  28412. --- *** relation: benign_variant ***
  28413. --- *** relation type: VIEW ***
  28414. --- *** ***
  28415. --- ************************************************
  28416. ---
  28417. CREATE VIEW benign_variant AS
  28418. SELECT
  28419. feature_id AS benign_variant_id,
  28420. feature.*
  28421. FROM
  28422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28423. WHERE cvterm.name = 'benign_variant';
  28424. --- ************************************************
  28425. --- *** relation: disease_associated_variant ***
  28426. --- *** relation type: VIEW ***
  28427. --- *** ***
  28428. --- ************************************************
  28429. ---
  28430. CREATE VIEW disease_associated_variant AS
  28431. SELECT
  28432. feature_id AS disease_associated_variant_id,
  28433. feature.*
  28434. FROM
  28435. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28436. WHERE cvterm.name = 'disease_associated_variant';
  28437. --- ************************************************
  28438. --- *** relation: disease_causing_variant ***
  28439. --- *** relation type: VIEW ***
  28440. --- *** ***
  28441. --- ************************************************
  28442. ---
  28443. CREATE VIEW disease_causing_variant AS
  28444. SELECT
  28445. feature_id AS disease_causing_variant_id,
  28446. feature.*
  28447. FROM
  28448. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28449. WHERE cvterm.name = 'disease_causing_variant';
  28450. --- ************************************************
  28451. --- *** relation: lethal_variant ***
  28452. --- *** relation type: VIEW ***
  28453. --- *** ***
  28454. --- ************************************************
  28455. ---
  28456. CREATE VIEW lethal_variant AS
  28457. SELECT
  28458. feature_id AS lethal_variant_id,
  28459. feature.*
  28460. FROM
  28461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28462. WHERE cvterm.name = 'lethal_variant';
  28463. --- ************************************************
  28464. --- *** relation: quantitative_variant ***
  28465. --- *** relation type: VIEW ***
  28466. --- *** ***
  28467. --- ************************************************
  28468. ---
  28469. CREATE VIEW quantitative_variant AS
  28470. SELECT
  28471. feature_id AS quantitative_variant_id,
  28472. feature.*
  28473. FROM
  28474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28475. WHERE cvterm.name = 'quantitative_variant';
  28476. --- ************************************************
  28477. --- *** relation: maternal_variant ***
  28478. --- *** relation type: VIEW ***
  28479. --- *** ***
  28480. --- ************************************************
  28481. ---
  28482. CREATE VIEW maternal_variant AS
  28483. SELECT
  28484. feature_id AS maternal_variant_id,
  28485. feature.*
  28486. FROM
  28487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28488. WHERE cvterm.name = 'maternal_variant';
  28489. --- ************************************************
  28490. --- *** relation: paternal_variant ***
  28491. --- *** relation type: VIEW ***
  28492. --- *** ***
  28493. --- ************************************************
  28494. ---
  28495. CREATE VIEW paternal_variant AS
  28496. SELECT
  28497. feature_id AS paternal_variant_id,
  28498. feature.*
  28499. FROM
  28500. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28501. WHERE cvterm.name = 'paternal_variant';
  28502. --- ************************************************
  28503. --- *** relation: somatic_variant ***
  28504. --- *** relation type: VIEW ***
  28505. --- *** ***
  28506. --- ************************************************
  28507. ---
  28508. CREATE VIEW somatic_variant AS
  28509. SELECT
  28510. feature_id AS somatic_variant_id,
  28511. feature.*
  28512. FROM
  28513. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28514. WHERE cvterm.name = 'somatic_variant';
  28515. --- ************************************************
  28516. --- *** relation: germline_variant ***
  28517. --- *** relation type: VIEW ***
  28518. --- *** ***
  28519. --- ************************************************
  28520. ---
  28521. CREATE VIEW germline_variant AS
  28522. SELECT
  28523. feature_id AS germline_variant_id,
  28524. feature.*
  28525. FROM
  28526. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28527. WHERE cvterm.name = 'germline_variant';
  28528. --- ************************************************
  28529. --- *** relation: pedigree_specific_variant ***
  28530. --- *** relation type: VIEW ***
  28531. --- *** ***
  28532. --- ************************************************
  28533. ---
  28534. CREATE VIEW pedigree_specific_variant AS
  28535. SELECT
  28536. feature_id AS pedigree_specific_variant_id,
  28537. feature.*
  28538. FROM
  28539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28540. WHERE cvterm.name = 'pedigree_specific_variant';
  28541. --- ************************************************
  28542. --- *** relation: population_specific_variant ***
  28543. --- *** relation type: VIEW ***
  28544. --- *** ***
  28545. --- ************************************************
  28546. ---
  28547. CREATE VIEW population_specific_variant AS
  28548. SELECT
  28549. feature_id AS population_specific_variant_id,
  28550. feature.*
  28551. FROM
  28552. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28553. WHERE cvterm.name = 'population_specific_variant';
  28554. --- ************************************************
  28555. --- *** relation: de_novo_variant ***
  28556. --- *** relation type: VIEW ***
  28557. --- *** ***
  28558. --- ************************************************
  28559. ---
  28560. CREATE VIEW de_novo_variant AS
  28561. SELECT
  28562. feature_id AS de_novo_variant_id,
  28563. feature.*
  28564. FROM
  28565. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28566. WHERE cvterm.name = 'de_novo_variant';
  28567. --- ************************************************
  28568. --- *** relation: tf_binding_site_variant ***
  28569. --- *** relation type: VIEW ***
  28570. --- *** ***
  28571. --- *** A sequence variant located within a tran ***
  28572. --- *** scription factor binding site. ***
  28573. --- ************************************************
  28574. ---
  28575. CREATE VIEW tf_binding_site_variant AS
  28576. SELECT
  28577. feature_id AS tf_binding_site_variant_id,
  28578. feature.*
  28579. FROM
  28580. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28581. WHERE cvterm.name = 'TF_binding_site_variant';
  28582. --- ************************************************
  28583. --- *** relation: missense_codon ***
  28584. --- *** relation type: VIEW ***
  28585. --- *** ***
  28586. --- *** A sequence variant whereby at least one ***
  28587. --- *** base of a codon is changed resulting in ***
  28588. --- *** a codon that encodes for a different ami ***
  28589. --- *** no acid. ***
  28590. --- ************************************************
  28591. ---
  28592. CREATE VIEW missense_codon AS
  28593. SELECT
  28594. feature_id AS missense_codon_id,
  28595. feature.*
  28596. FROM
  28597. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28598. WHERE cvterm.name = 'conservative_missense_codon' OR cvterm.name = 'non_conservative_missense_codon' OR cvterm.name = 'missense_codon';
  28599. --- ************************************************
  28600. --- *** relation: complex_structural_alteration ***
  28601. --- *** relation type: VIEW ***
  28602. --- *** ***
  28603. --- *** A structural sequence alteration where t ***
  28604. --- *** here are multiple equally plausible expl ***
  28605. --- *** anations for the change. ***
  28606. --- ************************************************
  28607. ---
  28608. CREATE VIEW complex_structural_alteration AS
  28609. SELECT
  28610. feature_id AS complex_structural_alteration_id,
  28611. feature.*
  28612. FROM
  28613. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28614. WHERE cvterm.name = 'complex_structural_alteration';
  28615. --- ************************************************
  28616. --- *** relation: structural_alteration ***
  28617. --- *** relation type: VIEW ***
  28618. --- *** ***
  28619. --- ************************************************
  28620. ---
  28621. CREATE VIEW structural_alteration AS
  28622. SELECT
  28623. feature_id AS structural_alteration_id,
  28624. feature.*
  28625. FROM
  28626. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28627. WHERE cvterm.name = 'complex_structural_alteration' OR cvterm.name = 'structural_alteration';
  28628. --- ************************************************
  28629. --- *** relation: loss_of_heterozygosity ***
  28630. --- *** relation type: VIEW ***
  28631. --- *** ***
  28632. --- ************************************************
  28633. ---
  28634. CREATE VIEW loss_of_heterozygosity AS
  28635. SELECT
  28636. feature_id AS loss_of_heterozygosity_id,
  28637. feature.*
  28638. FROM
  28639. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28640. WHERE cvterm.name = 'loss_of_heterozygosity';
  28641. --- ************************************************
  28642. --- *** relation: splice_donor_5th_base_variant ***
  28643. --- *** relation type: VIEW ***
  28644. --- *** ***
  28645. --- *** A sequence variant that causes a change ***
  28646. --- *** at the 5th base pair after the start of ***
  28647. --- *** the intron in the orientation of the tra ***
  28648. --- *** nscript. ***
  28649. --- ************************************************
  28650. ---
  28651. CREATE VIEW splice_donor_5th_base_variant AS
  28652. SELECT
  28653. feature_id AS splice_donor_5th_base_variant_id,
  28654. feature.*
  28655. FROM
  28656. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28657. WHERE cvterm.name = 'splice_donor_5th_base_variant';
  28658. --- ************************************************
  28659. --- *** relation: u_box ***
  28660. --- *** relation type: VIEW ***
  28661. --- *** ***
  28662. --- *** An U-box is a conserved T-rich region up ***
  28663. --- *** stream of a retroviral polypurine tract ***
  28664. --- *** that is involved in PPT primer creation ***
  28665. --- *** during reverse transcription. ***
  28666. --- ************************************************
  28667. ---
  28668. CREATE VIEW u_box AS
  28669. SELECT
  28670. feature_id AS u_box_id,
  28671. feature.*
  28672. FROM
  28673. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28674. WHERE cvterm.name = 'U_box';
  28675. --- ************************************************
  28676. --- *** relation: mating_type_region ***
  28677. --- *** relation type: VIEW ***
  28678. --- *** ***
  28679. --- *** A specialized region in the genomes of s ***
  28680. --- *** ome yeast and fungi, the genes of which ***
  28681. --- *** regulate mating type. ***
  28682. --- ************************************************
  28683. ---
  28684. CREATE VIEW mating_type_region AS
  28685. SELECT
  28686. feature_id AS mating_type_region_id,
  28687. feature.*
  28688. FROM
  28689. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28690. WHERE cvterm.name = 'mating_type_region';
  28691. --- ************************************************
  28692. --- *** relation: paired_end_fragment ***
  28693. --- *** relation type: VIEW ***
  28694. --- *** ***
  28695. --- *** An assembly region that has been sequenc ***
  28696. --- *** ed from both ends resulting in a read_pa ***
  28697. --- *** ir (mate_pair). ***
  28698. --- ************************************************
  28699. ---
  28700. CREATE VIEW paired_end_fragment AS
  28701. SELECT
  28702. feature_id AS paired_end_fragment_id,
  28703. feature.*
  28704. FROM
  28705. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28706. WHERE cvterm.name = 'paired_end_fragment';
  28707. --- ************************************************
  28708. --- *** relation: exon_variant ***
  28709. --- *** relation type: VIEW ***
  28710. --- *** ***
  28711. --- *** A sequence variant that changes exon seq ***
  28712. --- *** uence. ***
  28713. --- ************************************************
  28714. ---
  28715. CREATE VIEW exon_variant AS
  28716. SELECT
  28717. feature_id AS exon_variant_id,
  28718. feature.*
  28719. FROM
  28720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28721. WHERE cvterm.name = 'coding_sequence_variant' OR cvterm.name = 'non_coding_exon_variant' OR cvterm.name = 'codon_variant' OR cvterm.name = 'frameshift_variant' OR cvterm.name = 'inframe_variant' OR cvterm.name = 'initiator_codon_change' OR cvterm.name = 'non_synonymous_codon' OR cvterm.name = 'synonymous_codon' OR cvterm.name = 'terminal_codon_variant' OR cvterm.name = 'stop_gained' OR cvterm.name = 'missense_codon' OR cvterm.name = 'conservative_missense_codon' OR cvterm.name = 'non_conservative_missense_codon' OR cvterm.name = 'terminator_codon_variant' OR cvterm.name = 'incomplete_terminal_codon_variant' OR cvterm.name = 'stop_retained_variant' OR cvterm.name = 'stop_lost' OR cvterm.name = 'frame_restoring_variant' OR cvterm.name = 'minus_1_frameshift_variant' OR cvterm.name = 'minus_2_frameshift_variant' OR cvterm.name = 'plus_1_frameshift_variant' OR cvterm.name = 'plus_2_frameshift variant' OR cvterm.name = 'inframe_codon_gain' OR cvterm.name = 'inframe_codon_loss' OR cvterm.name = 'exon_variant';
  28722. --- ************************************************
  28723. --- *** relation: non_coding_exon_variant ***
  28724. --- *** relation type: VIEW ***
  28725. --- *** ***
  28726. --- *** A sequence variant that changes non-codi ***
  28727. --- *** ng exon sequence. ***
  28728. --- ************************************************
  28729. ---
  28730. CREATE VIEW non_coding_exon_variant AS
  28731. SELECT
  28732. feature_id AS non_coding_exon_variant_id,
  28733. feature.*
  28734. FROM
  28735. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28736. WHERE cvterm.name = 'non_coding_exon_variant';
  28737. --- ************************************************
  28738. --- *** relation: clone_end ***
  28739. --- *** relation type: VIEW ***
  28740. --- *** ***
  28741. --- *** A read from an end of the clone sequence ***
  28742. --- *** . ***
  28743. --- ************************************************
  28744. ---
  28745. CREATE VIEW clone_end AS
  28746. SELECT
  28747. feature_id AS clone_end_id,
  28748. feature.*
  28749. FROM
  28750. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28751. WHERE cvterm.name = 'clone_end';
  28752. --- ************************************************
  28753. --- *** relation: point_centromere ***
  28754. --- *** relation type: VIEW ***
  28755. --- *** ***
  28756. --- *** A point centromere is a relatively small ***
  28757. --- *** centromere (about 125 bp DNA) in discre ***
  28758. --- *** te sequence, found in some yeast includi ***
  28759. --- *** ng S. cerevisiae. ***
  28760. --- ************************************************
  28761. ---
  28762. CREATE VIEW point_centromere AS
  28763. SELECT
  28764. feature_id AS point_centromere_id,
  28765. feature.*
  28766. FROM
  28767. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28768. WHERE cvterm.name = 'point_centromere';
  28769. --- ************************************************
  28770. --- *** relation: regional_centromere ***
  28771. --- *** relation type: VIEW ***
  28772. --- *** ***
  28773. --- *** A regional centromere is a large modular ***
  28774. --- *** centromere found in fission yeast and h ***
  28775. --- *** igher eukaryotes. It consist of a centra ***
  28776. --- *** l core region flanked by inverted inner ***
  28777. --- *** and outer repeat regions. ***
  28778. --- ************************************************
  28779. ---
  28780. CREATE VIEW regional_centromere AS
  28781. SELECT
  28782. feature_id AS regional_centromere_id,
  28783. feature.*
  28784. FROM
  28785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28786. WHERE cvterm.name = 'regional_centromere';
  28787. --- ************************************************
  28788. --- *** relation: regional_centromere_central_core ***
  28789. --- *** relation type: VIEW ***
  28790. --- *** ***
  28791. --- *** A conserved region within the central re ***
  28792. --- *** gion of a modular centromere, where the ***
  28793. --- *** kinetochore is formed. ***
  28794. --- ************************************************
  28795. ---
  28796. CREATE VIEW regional_centromere_central_core AS
  28797. SELECT
  28798. feature_id AS regional_centromere_central_core_id,
  28799. feature.*
  28800. FROM
  28801. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28802. WHERE cvterm.name = 'regional_centromere_central_core';
  28803. --- ************************************************
  28804. --- *** relation: centromeric_repeat ***
  28805. --- *** relation type: VIEW ***
  28806. --- *** ***
  28807. --- *** A repeat region found within the modular ***
  28808. --- *** centromere. ***
  28809. --- ************************************************
  28810. ---
  28811. CREATE VIEW centromeric_repeat AS
  28812. SELECT
  28813. feature_id AS centromeric_repeat_id,
  28814. feature.*
  28815. FROM
  28816. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28817. WHERE cvterm.name = 'regional_centromere_inner_repeat_region' OR cvterm.name = 'regional_centromere_outer_repeat_region' OR cvterm.name = 'centromeric_repeat';
  28818. --- ************************************************
  28819. --- *** relation: regional_centromere_inner_repeat_region ***
  28820. --- *** relation type: VIEW ***
  28821. --- *** ***
  28822. --- *** The inner repeat region of a modular cen ***
  28823. --- *** tromere. This region is adjacent to the ***
  28824. --- *** central core, on each chromosome arm. ***
  28825. --- ************************************************
  28826. ---
  28827. CREATE VIEW regional_centromere_inner_repeat_region AS
  28828. SELECT
  28829. feature_id AS regional_centromere_inner_repeat_region_id,
  28830. feature.*
  28831. FROM
  28832. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28833. WHERE cvterm.name = 'regional_centromere_inner_repeat_region';
  28834. --- ************************************************
  28835. --- *** relation: regional_centromere_outer_repeat_region ***
  28836. --- *** relation type: VIEW ***
  28837. --- *** ***
  28838. --- *** The heterochromatic outer repeat region ***
  28839. --- *** of a modular centromere. These repeats e ***
  28840. --- *** xist in tandem arrays on both chromosome ***
  28841. --- *** arms. ***
  28842. --- ************************************************
  28843. ---
  28844. CREATE VIEW regional_centromere_outer_repeat_region AS
  28845. SELECT
  28846. feature_id AS regional_centromere_outer_repeat_region_id,
  28847. feature.*
  28848. FROM
  28849. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28850. WHERE cvterm.name = 'regional_centromere_outer_repeat_region';
  28851. --- ************************************************
  28852. --- *** relation: tasirna ***
  28853. --- *** relation type: VIEW ***
  28854. --- *** ***
  28855. --- *** The sequence of a 21 nucleotide double s ***
  28856. --- *** tranded, polyadenylated non coding RNA, ***
  28857. --- *** transcribed from the TAS gene. ***
  28858. --- ************************************************
  28859. ---
  28860. CREATE VIEW tasirna AS
  28861. SELECT
  28862. feature_id AS tasirna_id,
  28863. feature.*
  28864. FROM
  28865. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28866. WHERE cvterm.name = 'tasiRNA';
  28867. --- ************************************************
  28868. --- *** relation: tasirna_primary_transcript ***
  28869. --- *** relation type: VIEW ***
  28870. --- *** ***
  28871. --- *** A primary transcript encoding a tasiRNA. ***
  28872. --- ************************************************
  28873. ---
  28874. CREATE VIEW tasirna_primary_transcript AS
  28875. SELECT
  28876. feature_id AS tasirna_primary_transcript_id,
  28877. feature.*
  28878. FROM
  28879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28880. WHERE cvterm.name = 'tasiRNA_primary_transcript';
  28881. --- ************************************************
  28882. --- *** relation: increased_polyadenylation_variant ***
  28883. --- *** relation type: VIEW ***
  28884. --- *** ***
  28885. --- *** A transcript processing variant whereby ***
  28886. --- *** polyadenylation of the encoded transcrip ***
  28887. --- *** t is increased with respect to the refer ***
  28888. --- *** ence. ***
  28889. --- ************************************************
  28890. ---
  28891. CREATE VIEW increased_polyadenylation_variant AS
  28892. SELECT
  28893. feature_id AS increased_polyadenylation_variant_id,
  28894. feature.*
  28895. FROM
  28896. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28897. WHERE cvterm.name = 'increased_polyadenylation_variant';
  28898. --- ************************************************
  28899. --- *** relation: decreased_polyadenylation_variant ***
  28900. --- *** relation type: VIEW ***
  28901. --- *** ***
  28902. --- *** A transcript processing variant whereby ***
  28903. --- *** polyadenylation of the encoded transcrip ***
  28904. --- *** t is decreased with respect to the refer ***
  28905. --- *** ence. ***
  28906. --- ************************************************
  28907. ---
  28908. CREATE VIEW decreased_polyadenylation_variant AS
  28909. SELECT
  28910. feature_id AS decreased_polyadenylation_variant_id,
  28911. feature.*
  28912. FROM
  28913. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28914. WHERE cvterm.name = 'decreased_polyadenylation_variant';
  28915. --- ************************************************
  28916. --- *** relation: regulatory_region ***
  28917. --- *** relation type: VIEW ***
  28918. --- *** ***
  28919. --- *** A region of sequence that is involved in ***
  28920. --- *** the control of a biological process. ***
  28921. --- ************************************************
  28922. ---
  28923. CREATE VIEW regulatory_region AS
  28924. SELECT
  28925. feature_id AS regulatory_region_id,
  28926. feature.*
  28927. FROM
  28928. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28929. WHERE cvterm.name = 'transcription_regulatory_region' OR cvterm.name = 'translation_regulatory_region' OR cvterm.name = 'recombination_regulatory_region' OR cvterm.name = 'replication_regulatory_region' OR cvterm.name = 'terminator' OR cvterm.name = 'TF_binding_site' OR cvterm.name = 'polyA_signal_sequence' OR cvterm.name = 'gene_group_regulatory_region' OR cvterm.name = 'transcriptional_cis_regulatory_region' OR cvterm.name = 'splicing_regulatory_region' OR cvterm.name = 'cis_regulatory_frameshift_element' OR cvterm.name = 'intronic_regulatory_region' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'eukaryotic_terminator' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'terminator_of_type_2_RNApol_III_promoter' OR cvterm.name = 'operator' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'bacterial_terminator' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'promoter' OR cvterm.name = 'insulator' OR cvterm.name = 'CRM' OR cvterm.name = 'promoter_targeting_sequence' OR cvterm.name = 'ISRE' OR cvterm.name = 'bidirectional_promoter' OR cvterm.name = 'RNA_polymerase_promoter' OR cvterm.name = 'RNApol_I_promoter' OR cvterm.name = 'RNApol_II_promoter' OR cvterm.name = 'RNApol_III_promoter' OR cvterm.name = 'bacterial_RNApol_promoter' OR cvterm.name = 'Phage_RNA_Polymerase_Promoter' OR cvterm.name = 'RNApol_II_core_promoter' OR cvterm.name = 'RNApol_III_promoter_type_1' OR cvterm.name = 'RNApol_III_promoter_type_2' OR cvterm.name = 'RNApol_III_promoter_type_3' OR cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'SP6_RNA_Polymerase_Promoter' OR cvterm.name = 'T3_RNA_Polymerase_Promoter' OR cvterm.name = 'T7_RNA_Polymerase_Promoter' OR cvterm.name = 'locus_control_region' OR cvterm.name = 'enhancer' OR cvterm.name = 'silencer' OR cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'attenuator' OR cvterm.name = 'regulatory_region';
  28930. --- ************************************************
  28931. --- *** relation: u14_snorna_primary_transcript ***
  28932. --- *** relation type: VIEW ***
  28933. --- *** ***
  28934. --- *** The primary transcript of an evolutionar ***
  28935. --- *** ily conserved eukaryotic low molecular w ***
  28936. --- *** eight RNA capable of intermolecular hybr ***
  28937. --- *** idization with both homologous and heter ***
  28938. --- *** ologous 18S rRNA. ***
  28939. --- ************************************************
  28940. ---
  28941. CREATE VIEW u14_snorna_primary_transcript AS
  28942. SELECT
  28943. feature_id AS u14_snorna_primary_transcript_id,
  28944. feature.*
  28945. FROM
  28946. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28947. WHERE cvterm.name = 'U14_snoRNA_primary_transcript';
  28948. --- ************************************************
  28949. --- *** relation: methylation_guide_snorna ***
  28950. --- *** relation type: VIEW ***
  28951. --- *** ***
  28952. --- *** A snoRNA that specifies the site of 2'-O ***
  28953. --- *** -ribose methylation in an RNA molecule b ***
  28954. --- *** y base pairing with a short sequence aro ***
  28955. --- *** und the target residue. ***
  28956. --- ************************************************
  28957. ---
  28958. CREATE VIEW methylation_guide_snorna AS
  28959. SELECT
  28960. feature_id AS methylation_guide_snorna_id,
  28961. feature.*
  28962. FROM
  28963. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28964. WHERE cvterm.name = 'methylation_guide_snoRNA';
  28965. --- ************************************************
  28966. --- *** relation: rrna_cleavage_rna ***
  28967. --- *** relation type: VIEW ***
  28968. --- *** ***
  28969. --- *** An ncRNA that is part of a ribonucleopro ***
  28970. --- *** tein that cleaves the primary pre-rRNA t ***
  28971. --- *** ranscript in the process of producing ma ***
  28972. --- *** ture rRNA molecules. ***
  28973. --- ************************************************
  28974. ---
  28975. CREATE VIEW rrna_cleavage_rna AS
  28976. SELECT
  28977. feature_id AS rrna_cleavage_rna_id,
  28978. feature.*
  28979. FROM
  28980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28981. WHERE cvterm.name = 'rRNA_cleavage_RNA';
  28982. --- ************************************************
  28983. --- *** relation: exon_of_single_exon_gene ***
  28984. --- *** relation type: VIEW ***
  28985. --- *** ***
  28986. --- *** An exon that is the only exon in a gene. ***
  28987. --- ************************************************
  28988. ---
  28989. CREATE VIEW exon_of_single_exon_gene AS
  28990. SELECT
  28991. feature_id AS exon_of_single_exon_gene_id,
  28992. feature.*
  28993. FROM
  28994. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28995. WHERE cvterm.name = 'exon_of_single_exon_gene';
  28996. --- ************************************************
  28997. --- *** relation: cassette_array_member ***
  28998. --- *** relation type: VIEW ***
  28999. --- *** ***
  29000. --- ************************************************
  29001. ---
  29002. CREATE VIEW cassette_array_member AS
  29003. SELECT
  29004. feature_id AS cassette_array_member_id,
  29005. feature.*
  29006. FROM
  29007. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29008. WHERE cvterm.name = 'cassette_array_member';
  29009. --- ************************************************
  29010. --- *** relation: gene_cassette_member ***
  29011. --- *** relation type: VIEW ***
  29012. --- *** ***
  29013. --- ************************************************
  29014. ---
  29015. CREATE VIEW gene_cassette_member AS
  29016. SELECT
  29017. feature_id AS gene_cassette_member_id,
  29018. feature.*
  29019. FROM
  29020. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29021. WHERE cvterm.name = 'cassette_array_member' OR cvterm.name = 'gene_cassette_member';
  29022. --- ************************************************
  29023. --- *** relation: gene_subarray_member ***
  29024. --- *** relation type: VIEW ***
  29025. --- *** ***
  29026. --- ************************************************
  29027. ---
  29028. CREATE VIEW gene_subarray_member AS
  29029. SELECT
  29030. feature_id AS gene_subarray_member_id,
  29031. feature.*
  29032. FROM
  29033. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29034. WHERE cvterm.name = 'gene_subarray_member';
  29035. --- ************************************************
  29036. --- *** relation: primer_binding_site ***
  29037. --- *** relation type: VIEW ***
  29038. --- *** ***
  29039. --- *** Non-covalent primer binding site for ini ***
  29040. --- *** tiation of replication, transcription, o ***
  29041. --- *** r reverse transcription. ***
  29042. --- ************************************************
  29043. ---
  29044. CREATE VIEW primer_binding_site AS
  29045. SELECT
  29046. feature_id AS primer_binding_site_id,
  29047. feature.*
  29048. FROM
  29049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29050. WHERE cvterm.name = 'primer_binding_site';
  29051. --- ************************************************
  29052. --- *** relation: gene_array ***
  29053. --- *** relation type: VIEW ***
  29054. --- *** ***
  29055. --- *** An array includes two or more genes, or ***
  29056. --- *** two or more gene subarrays, contiguously ***
  29057. --- *** arranged where the individual genes, or ***
  29058. --- *** subarrays, are either identical in sequ ***
  29059. --- *** ence, or essentially so. ***
  29060. --- ************************************************
  29061. ---
  29062. CREATE VIEW gene_array AS
  29063. SELECT
  29064. feature_id AS gene_array_id,
  29065. feature.*
  29066. FROM
  29067. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29068. WHERE cvterm.name = 'gene_array';
  29069. --- ************************************************
  29070. --- *** relation: gene_subarray ***
  29071. --- *** relation type: VIEW ***
  29072. --- *** ***
  29073. --- *** A subarray is, by defintition, a member ***
  29074. --- *** of a gene array (SO:0005851); the member ***
  29075. --- *** s of a subarray may differ substantially ***
  29076. --- *** in sequence, but are closely related in ***
  29077. --- *** function. ***
  29078. --- ************************************************
  29079. ---
  29080. CREATE VIEW gene_subarray AS
  29081. SELECT
  29082. feature_id AS gene_subarray_id,
  29083. feature.*
  29084. FROM
  29085. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29086. WHERE cvterm.name = 'gene_subarray';
  29087. --- ************************************************
  29088. --- *** relation: gene_cassette ***
  29089. --- *** relation type: VIEW ***
  29090. --- *** ***
  29091. --- *** A gene that can be substituted for a rel ***
  29092. --- *** ated gene at a different site in the gen ***
  29093. --- *** ome. ***
  29094. --- ************************************************
  29095. ---
  29096. CREATE VIEW gene_cassette AS
  29097. SELECT
  29098. feature_id AS gene_cassette_id,
  29099. feature.*
  29100. FROM
  29101. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29102. WHERE cvterm.name = 'gene_cassette';
  29103. --- ************************************************
  29104. --- *** relation: gene_cassette_array ***
  29105. --- *** relation type: VIEW ***
  29106. --- *** ***
  29107. --- *** An array of non-functional genes whose m ***
  29108. --- *** embers, when captured by recombination f ***
  29109. --- *** orm functional genes. ***
  29110. --- ************************************************
  29111. ---
  29112. CREATE VIEW gene_cassette_array AS
  29113. SELECT
  29114. feature_id AS gene_cassette_array_id,
  29115. feature.*
  29116. FROM
  29117. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29118. WHERE cvterm.name = 'gene_cassette_array';
  29119. --- ************************************************
  29120. --- *** relation: gene_group ***
  29121. --- *** relation type: VIEW ***
  29122. --- *** ***
  29123. --- *** A collection of related genes. ***
  29124. --- ************************************************
  29125. ---
  29126. CREATE VIEW gene_group AS
  29127. SELECT
  29128. feature_id AS gene_group_id,
  29129. feature.*
  29130. FROM
  29131. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29132. WHERE cvterm.name = 'operon' OR cvterm.name = 'mating_type_region' OR cvterm.name = 'gene_array' OR cvterm.name = 'gene_subarray' OR cvterm.name = 'gene_cassette_array' OR cvterm.name = 'regulon' OR cvterm.name = 'gene_group';
  29133. --- ************************************************
  29134. --- *** relation: selenocysteine_trna_primary_transcript ***
  29135. --- *** relation type: VIEW ***
  29136. --- *** ***
  29137. --- *** A primary transcript encoding seryl tRNA ***
  29138. --- *** (SO:000269). ***
  29139. --- ************************************************
  29140. ---
  29141. CREATE VIEW selenocysteine_trna_primary_transcript AS
  29142. SELECT
  29143. feature_id AS selenocysteine_trna_primary_transcript_id,
  29144. feature.*
  29145. FROM
  29146. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29147. WHERE cvterm.name = 'selenocysteine_tRNA_primary_transcript';
  29148. --- ************************************************
  29149. --- *** relation: selenocysteinyl_trna ***
  29150. --- *** relation type: VIEW ***
  29151. --- *** ***
  29152. --- *** A tRNA sequence that has a selenocystein ***
  29153. --- *** e anticodon, and a 3' selenocysteine bin ***
  29154. --- *** ding region. ***
  29155. --- ************************************************
  29156. ---
  29157. CREATE VIEW selenocysteinyl_trna AS
  29158. SELECT
  29159. feature_id AS selenocysteinyl_trna_id,
  29160. feature.*
  29161. FROM
  29162. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29163. WHERE cvterm.name = 'selenocysteinyl_tRNA';
  29164. --- ************************************************
  29165. --- *** relation: syntenic_region ***
  29166. --- *** relation type: VIEW ***
  29167. --- *** ***
  29168. --- *** A region in which two or more pairs of h ***
  29169. --- *** omologous markers occur on the same chro ***
  29170. --- *** mosome in two or more species. ***
  29171. --- ************************************************
  29172. ---
  29173. CREATE VIEW syntenic_region AS
  29174. SELECT
  29175. feature_id AS syntenic_region_id,
  29176. feature.*
  29177. FROM
  29178. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29179. WHERE cvterm.name = 'syntenic_region';
  29180. --- ************************************************
  29181. --- *** relation: biochemical_region_of_peptide ***
  29182. --- *** relation type: VIEW ***
  29183. --- *** ***
  29184. --- *** A region of a peptide that is involved i ***
  29185. --- *** n a biochemical function. ***
  29186. --- ************************************************
  29187. ---
  29188. CREATE VIEW biochemical_region_of_peptide AS
  29189. SELECT
  29190. feature_id AS biochemical_region_of_peptide_id,
  29191. feature.*
  29192. FROM
  29193. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29194. WHERE cvterm.name = 'post_translationally_modified_region' OR cvterm.name = 'conformational_switch' OR cvterm.name = 'molecular_contact_region' OR cvterm.name = 'polypeptide_binding_motif' OR cvterm.name = 'polypeptide_catalytic_motif' OR cvterm.name = 'histone_modification' OR cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'biochemical_region_of_peptide';
  29195. --- ************************************************
  29196. --- *** relation: molecular_contact_region ***
  29197. --- *** relation type: VIEW ***
  29198. --- *** ***
  29199. --- *** A region that is involved a contact with ***
  29200. --- *** another molecule. ***
  29201. --- ************************************************
  29202. ---
  29203. CREATE VIEW molecular_contact_region AS
  29204. SELECT
  29205. feature_id AS molecular_contact_region_id,
  29206. feature.*
  29207. FROM
  29208. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29209. WHERE cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'molecular_contact_region';
  29210. --- ************************************************
  29211. --- *** relation: intrinsically_unstructured_polypeptide_region ***
  29212. --- *** relation type: VIEW ***
  29213. --- *** ***
  29214. --- *** A region of polypeptide chain with high ***
  29215. --- *** conformational flexibility. ***
  29216. --- ************************************************
  29217. ---
  29218. CREATE VIEW intrinsically_unstructured_polypeptide_region AS
  29219. SELECT
  29220. feature_id AS intrinsically_unstructured_polypeptide_region_id,
  29221. feature.*
  29222. FROM
  29223. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29224. WHERE cvterm.name = 'intrinsically_unstructured_polypeptide_region';
  29225. --- ************************************************
  29226. --- *** relation: catmat_left_handed_three ***
  29227. --- *** relation type: VIEW ***
  29228. --- *** ***
  29229. --- *** A motif of 3 consecutive residues with d ***
  29230. --- *** ihedral angles as follows: res i: phi -9 ***
  29231. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  29232. --- *** nds -50 to 30, res i+1: phi -75 bounds - ***
  29233. --- *** 100 to -50, res i+1: psi 140 bounds 110 ***
  29234. --- *** to 170. An extra restriction of the leng ***
  29235. --- *** th of the O to O distance would be usefu ***
  29236. --- *** l, that it be less than 5 Angstrom. More ***
  29237. --- *** precisely these two oxygens are the mai ***
  29238. --- *** n chain carbonyl oxygen atoms of residue ***
  29239. --- *** s i-1 and i+1. ***
  29240. --- ************************************************
  29241. ---
  29242. CREATE VIEW catmat_left_handed_three AS
  29243. SELECT
  29244. feature_id AS catmat_left_handed_three_id,
  29245. feature.*
  29246. FROM
  29247. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29248. WHERE cvterm.name = 'catmat_left_handed_three';
  29249. --- ************************************************
  29250. --- *** relation: catmat_left_handed_four ***
  29251. --- *** relation type: VIEW ***
  29252. --- *** ***
  29253. --- *** A motif of 4 consecutive residues with d ***
  29254. --- *** ihedral angles as follows: res i: phi -9 ***
  29255. --- *** 0 bounds -120 to -60, res i psi -10 boun ***
  29256. --- *** ds -50 to 30, res i+1: phi -90 bounds -1 ***
  29257. --- *** 20 to -60, res i+1: psi -10 bounds -50 t ***
  29258. --- *** o 30, res i+2: phi -75 bounds -100 to -5 ***
  29259. --- *** 0, res i+2: psi 140 bounds 110 to 170. ***
  29260. --- *** The extra restriction of the length of t ***
  29261. --- *** he O to O distance is similar, that it b ***
  29262. --- *** e less than 5 Angstrom. In this case the ***
  29263. --- *** se two Oxygen atoms are the main chain c ***
  29264. --- *** arbonyl oxygen atoms of residues i-1 and ***
  29265. --- *** i+2. ***
  29266. --- ************************************************
  29267. ---
  29268. CREATE VIEW catmat_left_handed_four AS
  29269. SELECT
  29270. feature_id AS catmat_left_handed_four_id,
  29271. feature.*
  29272. FROM
  29273. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29274. WHERE cvterm.name = 'catmat_left_handed_four';
  29275. --- ************************************************
  29276. --- *** relation: catmat_right_handed_three ***
  29277. --- *** relation type: VIEW ***
  29278. --- *** ***
  29279. --- *** A motif of 3 consecutive residues with d ***
  29280. --- *** ihedral angles as follows: res i: phi -9 ***
  29281. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  29282. --- *** nds -50 to 30, res i+1: phi -75 bounds - ***
  29283. --- *** 100 to -50, res i+1: psi 140 bounds 110 ***
  29284. --- *** to 170. An extra restriction of the leng ***
  29285. --- *** th of the O to O distance would be usefu ***
  29286. --- *** l, that it be less than 5 Angstrom. More ***
  29287. --- *** precisely these two oxygens are the mai ***
  29288. --- *** n chain carbonyl oxygen atoms of residue ***
  29289. --- *** s i-1 and i+1. ***
  29290. --- ************************************************
  29291. ---
  29292. CREATE VIEW catmat_right_handed_three AS
  29293. SELECT
  29294. feature_id AS catmat_right_handed_three_id,
  29295. feature.*
  29296. FROM
  29297. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29298. WHERE cvterm.name = 'catmat_right_handed_three';
  29299. --- ************************************************
  29300. --- *** relation: catmat_right_handed_four ***
  29301. --- *** relation type: VIEW ***
  29302. --- *** ***
  29303. --- *** A motif of 4 consecutive residues with d ***
  29304. --- *** ihedral angles as follows: res i: phi -9 ***
  29305. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  29306. --- *** nds -50 to 30, res i+1: phi -90 bounds - ***
  29307. --- *** 120 to -60, res i+1: psi -10 bounds -50 ***
  29308. --- *** to 30, res i+2: phi -75 bounds -100 to - ***
  29309. --- *** 50, res i+2: psi 140 bounds 110 to 170. ***
  29310. --- *** The extra restriction of the length of t ***
  29311. --- *** he O to O distance is similar, that it b ***
  29312. --- *** e less than 5 Angstrom. In this case the ***
  29313. --- *** se two Oxygen atoms are the main chain c ***
  29314. --- *** arbonyl oxygen atoms of residues i-1 and ***
  29315. --- *** i+2. ***
  29316. --- ************************************************
  29317. ---
  29318. CREATE VIEW catmat_right_handed_four AS
  29319. SELECT
  29320. feature_id AS catmat_right_handed_four_id,
  29321. feature.*
  29322. FROM
  29323. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29324. WHERE cvterm.name = 'catmat_right_handed_four';
  29325. --- ************************************************
  29326. --- *** relation: alpha_beta_motif ***
  29327. --- *** relation type: VIEW ***
  29328. --- *** ***
  29329. --- *** A motif of five consecutive residues and ***
  29330. --- *** two H-bonds in which: H-bond between CO ***
  29331. --- *** of residue(i) and NH of residue(i+4), H ***
  29332. --- *** -bond between CO of residue(i) and NH of ***
  29333. --- *** residue(i+3),Phi angles of residues(i+1 ***
  29334. --- *** ), (i+2) and (i+3) are negative. ***
  29335. --- ************************************************
  29336. ---
  29337. CREATE VIEW alpha_beta_motif AS
  29338. SELECT
  29339. feature_id AS alpha_beta_motif_id,
  29340. feature.*
  29341. FROM
  29342. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29343. WHERE cvterm.name = 'alpha_beta_motif';
  29344. --- ************************************************
  29345. --- *** relation: lipoprotein_signal_peptide ***
  29346. --- *** relation type: VIEW ***
  29347. --- *** ***
  29348. --- *** A peptide that acts as a signal for both ***
  29349. --- *** membrane translocation and lipid attach ***
  29350. --- *** ment in prokaryotes. ***
  29351. --- ************************************************
  29352. ---
  29353. CREATE VIEW lipoprotein_signal_peptide AS
  29354. SELECT
  29355. feature_id AS lipoprotein_signal_peptide_id,
  29356. feature.*
  29357. FROM
  29358. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29359. WHERE cvterm.name = 'lipoprotein_signal_peptide';
  29360. --- ************************************************
  29361. --- *** relation: no_output ***
  29362. --- *** relation type: VIEW ***
  29363. --- *** ***
  29364. --- *** An experimental region wherean analysis ***
  29365. --- *** has been run and not produced any annota ***
  29366. --- *** tion. ***
  29367. --- ************************************************
  29368. ---
  29369. CREATE VIEW no_output AS
  29370. SELECT
  29371. feature_id AS no_output_id,
  29372. feature.*
  29373. FROM
  29374. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29375. WHERE cvterm.name = 'no_output';
  29376. --- ************************************************
  29377. --- *** relation: cleaved_peptide_region ***
  29378. --- *** relation type: VIEW ***
  29379. --- *** ***
  29380. --- *** The cleaved_peptide_regon is the a regio ***
  29381. --- *** n of peptide sequence that is cleaved du ***
  29382. --- *** ring maturation. ***
  29383. --- ************************************************
  29384. ---
  29385. CREATE VIEW cleaved_peptide_region AS
  29386. SELECT
  29387. feature_id AS cleaved_peptide_region_id,
  29388. feature.*
  29389. FROM
  29390. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29391. WHERE cvterm.name = 'cleaved_initiator_methionine' OR cvterm.name = 'intein' OR cvterm.name = 'propeptide_cleavage_site' OR cvterm.name = 'propeptide' OR cvterm.name = 'cleaved_for_gpi_anchor_region' OR cvterm.name = 'lipoprotein_signal_peptide' OR cvterm.name = 'n_terminal_region' OR cvterm.name = 'c_terminal_region' OR cvterm.name = 'central_hydrophobic_region_of_signal_peptide' OR cvterm.name = 'cleaved_peptide_region';
  29392. --- ************************************************
  29393. --- *** relation: peptide_coil ***
  29394. --- *** relation type: VIEW ***
  29395. --- *** ***
  29396. --- *** Irregular, unstructured regions of a pro ***
  29397. --- *** tein's backbone, as distinct from the re ***
  29398. --- *** gular region (namely alpha helix and bet ***
  29399. --- *** a strand - characterised by specific pat ***
  29400. --- *** terns of main-chain hydrogen bonds). ***
  29401. --- ************************************************
  29402. ---
  29403. CREATE VIEW peptide_coil AS
  29404. SELECT
  29405. feature_id AS peptide_coil_id,
  29406. feature.*
  29407. FROM
  29408. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29409. WHERE cvterm.name = 'peptide_coil';
  29410. --- ************************************************
  29411. --- *** relation: hydrophobic_region_of_peptide ***
  29412. --- *** relation type: VIEW ***
  29413. --- *** ***
  29414. --- *** Hydrophobic regions are regions with a l ***
  29415. --- *** ow affinity for water. ***
  29416. --- ************************************************
  29417. ---
  29418. CREATE VIEW hydrophobic_region_of_peptide AS
  29419. SELECT
  29420. feature_id AS hydrophobic_region_of_peptide_id,
  29421. feature.*
  29422. FROM
  29423. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29424. WHERE cvterm.name = 'hydrophobic_region_of_peptide';
  29425. --- ************************************************
  29426. --- *** relation: n_terminal_region ***
  29427. --- *** relation type: VIEW ***
  29428. --- *** ***
  29429. --- *** The amino-terminal positively-charged re ***
  29430. --- *** gion of a signal peptide (approx 1-5 aa) ***
  29431. --- *** . ***
  29432. --- ************************************************
  29433. ---
  29434. CREATE VIEW n_terminal_region AS
  29435. SELECT
  29436. feature_id AS n_terminal_region_id,
  29437. feature.*
  29438. FROM
  29439. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29440. WHERE cvterm.name = 'n_terminal_region';
  29441. --- ************************************************
  29442. --- *** relation: c_terminal_region ***
  29443. --- *** relation type: VIEW ***
  29444. --- *** ***
  29445. --- *** The more polar, carboxy-terminal region ***
  29446. --- *** of the signal peptide (approx 3-7 aa). ***
  29447. --- ************************************************
  29448. ---
  29449. CREATE VIEW c_terminal_region AS
  29450. SELECT
  29451. feature_id AS c_terminal_region_id,
  29452. feature.*
  29453. FROM
  29454. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29455. WHERE cvterm.name = 'c_terminal_region';
  29456. --- ************************************************
  29457. --- *** relation: central_hydrophobic_region_of_signal_peptide ***
  29458. --- *** relation type: VIEW ***
  29459. --- *** ***
  29460. --- *** The central, hydrophobic region of the s ***
  29461. --- *** ignal peptide (approx 7-15 aa). ***
  29462. --- ************************************************
  29463. ---
  29464. CREATE VIEW central_hydrophobic_region_of_signal_peptide AS
  29465. SELECT
  29466. feature_id AS central_hydrophobic_region_of_signal_peptide_id,
  29467. feature.*
  29468. FROM
  29469. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29470. WHERE cvterm.name = 'central_hydrophobic_region_of_signal_peptide';
  29471. --- ************************************************
  29472. --- *** relation: polypeptide_conserved_motif ***
  29473. --- *** relation type: VIEW ***
  29474. --- *** ***
  29475. --- *** A conserved motif is a short (up to 20 a ***
  29476. --- *** mino acids) region of biological interes ***
  29477. --- *** t that is conserved in different protein ***
  29478. --- *** s. They may or may not have functional o ***
  29479. --- *** r structural significance within the pro ***
  29480. --- *** teins in which they are found. ***
  29481. --- ************************************************
  29482. ---
  29483. CREATE VIEW polypeptide_conserved_motif AS
  29484. SELECT
  29485. feature_id AS polypeptide_conserved_motif_id,
  29486. feature.*
  29487. FROM
  29488. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29489. WHERE cvterm.name = 'polypeptide_conserved_motif';
  29490. --- ************************************************
  29491. --- *** relation: polypeptide_binding_motif ***
  29492. --- *** relation type: VIEW ***
  29493. --- *** ***
  29494. --- *** A polypeptide binding motif is a short ( ***
  29495. --- *** up to 20 amino acids) polypeptide region ***
  29496. --- *** of biological interest that contains on ***
  29497. --- *** e or more amino acids experimentally sho ***
  29498. --- *** wn to bind to a ligand. ***
  29499. --- ************************************************
  29500. ---
  29501. CREATE VIEW polypeptide_binding_motif AS
  29502. SELECT
  29503. feature_id AS polypeptide_binding_motif_id,
  29504. feature.*
  29505. FROM
  29506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29507. WHERE cvterm.name = 'polypeptide_binding_motif';
  29508. --- ************************************************
  29509. --- *** relation: polypeptide_catalytic_motif ***
  29510. --- *** relation type: VIEW ***
  29511. --- *** ***
  29512. --- *** A polypeptide catalytic motif is a short ***
  29513. --- *** (up to 20 amino acids) polypeptide regi ***
  29514. --- *** on that contains one or more active site ***
  29515. --- *** residues. ***
  29516. --- ************************************************
  29517. ---
  29518. CREATE VIEW polypeptide_catalytic_motif AS
  29519. SELECT
  29520. feature_id AS polypeptide_catalytic_motif_id,
  29521. feature.*
  29522. FROM
  29523. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29524. WHERE cvterm.name = 'polypeptide_catalytic_motif';
  29525. --- ************************************************
  29526. --- *** relation: polypeptide_dna_contact ***
  29527. --- *** relation type: VIEW ***
  29528. --- *** ***
  29529. --- *** A binding site that, in the polypeptide ***
  29530. --- *** molecule, interacts selectively and non- ***
  29531. --- *** covalently with DNA. ***
  29532. --- ************************************************
  29533. ---
  29534. CREATE VIEW polypeptide_dna_contact AS
  29535. SELECT
  29536. feature_id AS polypeptide_dna_contact_id,
  29537. feature.*
  29538. FROM
  29539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29540. WHERE cvterm.name = 'polypeptide_DNA_contact';
  29541. --- ************************************************
  29542. --- *** relation: polypeptide_conserved_region ***
  29543. --- *** relation type: VIEW ***
  29544. --- *** ***
  29545. --- *** A subsection of sequence with biological ***
  29546. --- *** interest that is conserved in different ***
  29547. --- *** proteins. They may or may not have func ***
  29548. --- *** tional or structural significance within ***
  29549. --- *** the proteins in which they are found. ***
  29550. --- ************************************************
  29551. ---
  29552. CREATE VIEW polypeptide_conserved_region AS
  29553. SELECT
  29554. feature_id AS polypeptide_conserved_region_id,
  29555. feature.*
  29556. FROM
  29557. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29558. WHERE cvterm.name = 'polypeptide_domain' OR cvterm.name = 'polypeptide_motif' OR cvterm.name = 'polypeptide_repeat' OR cvterm.name = 'biochemical_region_of_peptide' OR cvterm.name = 'polypeptide_conserved_motif' OR cvterm.name = 'post_translationally_modified_region' OR cvterm.name = 'conformational_switch' OR cvterm.name = 'molecular_contact_region' OR cvterm.name = 'polypeptide_binding_motif' OR cvterm.name = 'polypeptide_catalytic_motif' OR cvterm.name = 'histone_modification' OR cvterm.name = 'histone_methylation_site' OR cvterm.name = 'histone_acetylation_site' OR cvterm.name = 'histone_ubiqitination_site' OR cvterm.name = 'histone_acylation_region' OR cvterm.name = 'H4K20_monomethylation_site' OR cvterm.name = 'H2BK5_monomethylation_site' OR cvterm.name = 'H3K27_methylation_site' OR cvterm.name = 'H3K36_methylation_site' OR cvterm.name = 'H3K4_methylation_site' OR cvterm.name = 'H3K79_methylation_site' OR cvterm.name = 'H3K9_methylation_site' OR cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_acetylation_site' OR cvterm.name = 'H3K14_acetylation_site' OR cvterm.name = 'H3K18_acetylation_site' OR cvterm.name = 'H3K23_acylation site' OR cvterm.name = 'H3K27_acylation_site' OR cvterm.name = 'H4K16_acylation_site' OR cvterm.name = 'H4K5_acylation_site' OR cvterm.name = 'H4K8_acylation site' OR cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'polypeptide_metal_contact' OR cvterm.name = 'protein_protein_contact' OR cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'polypeptide_calcium_ion_contact_site' OR cvterm.name = 'polypeptide_cobalt_ion_contact_site' OR cvterm.name = 'polypeptide_copper_ion_contact_site' OR cvterm.name = 'polypeptide_iron_ion_contact_site' OR cvterm.name = 'polypeptide_magnesium_ion_contact_site' OR cvterm.name = 'polypeptide_manganese_ion_contact_site' OR cvterm.name = 'polypeptide_molybdenum_ion_contact_site' OR cvterm.name = 'polypeptide_nickel_ion_contact_site' OR cvterm.name = 'polypeptide_tungsten_ion_contact_site' OR cvterm.name = 'polypeptide_zinc_ion_contact_site' OR cvterm.name = 'polypeptide_conserved_region';
  29559. --- ************************************************
  29560. --- *** relation: substitution ***
  29561. --- *** relation type: VIEW ***
  29562. --- *** ***
  29563. --- *** A sequence alteration where the length o ***
  29564. --- *** f the change in the variant is the same ***
  29565. --- *** as that of the reference. ***
  29566. --- ************************************************
  29567. ---
  29568. CREATE VIEW substitution AS
  29569. SELECT
  29570. feature_id AS substitution_id,
  29571. feature.*
  29572. FROM
  29573. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29574. WHERE cvterm.name = 'sequence_length_variation' OR cvterm.name = 'MNP' OR cvterm.name = 'SNV' OR cvterm.name = 'complex_substitution' OR cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'SNP' OR cvterm.name = 'point_mutation' OR cvterm.name = 'transition' OR cvterm.name = 'transversion' OR cvterm.name = 'pyrimidine_transition' OR cvterm.name = 'purine_transition' OR cvterm.name = 'C_to_T_transition' OR cvterm.name = 'T_to_C_transition' OR cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'pyrimidine_to_purine_transversion' OR cvterm.name = 'purine_to_pyrimidine_transversion' OR cvterm.name = 'C_to_A_transversion' OR cvterm.name = 'C_to_G_transversion' OR cvterm.name = 'T_to_A_transversion' OR cvterm.name = 'T_to_G_transversion' OR cvterm.name = 'A_to_C_transversion' OR cvterm.name = 'A_to_T_transversion' OR cvterm.name = 'G_to_C_transversion' OR cvterm.name = 'G_to_T_transversion' OR cvterm.name = 'substitution';
  29575. --- ************************************************
  29576. --- *** relation: complex_substitution ***
  29577. --- *** relation type: VIEW ***
  29578. --- *** ***
  29579. --- *** When no simple or well defined DNA mutat ***
  29580. --- *** ion event describes the observed DNA cha ***
  29581. --- *** nge, the keyword "complex" should be use ***
  29582. --- *** d. Usually there are multiple equally pl ***
  29583. --- *** ausible explanations for the change. ***
  29584. --- ************************************************
  29585. ---
  29586. CREATE VIEW complex_substitution AS
  29587. SELECT
  29588. feature_id AS complex_substitution_id,
  29589. feature.*
  29590. FROM
  29591. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29592. WHERE cvterm.name = 'complex_substitution';
  29593. --- ************************************************
  29594. --- *** relation: point_mutation ***
  29595. --- *** relation type: VIEW ***
  29596. --- *** ***
  29597. --- *** A single nucleotide change which has occ ***
  29598. --- *** urred at the same position of a correspo ***
  29599. --- *** nding nucleotide in a reference sequence ***
  29600. --- *** . ***
  29601. --- ************************************************
  29602. ---
  29603. CREATE VIEW point_mutation AS
  29604. SELECT
  29605. feature_id AS point_mutation_id,
  29606. feature.*
  29607. FROM
  29608. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29609. WHERE cvterm.name = 'point_mutation';
  29610. --- ************************************************
  29611. --- *** relation: transition ***
  29612. --- *** relation type: VIEW ***
  29613. --- *** ***
  29614. --- *** Change of a pyrimidine nucleotide, C or ***
  29615. --- *** T, into an other pyrimidine nucleotide, ***
  29616. --- *** or change of a purine nucleotide, A or G ***
  29617. --- *** , into an other purine nucleotide. ***
  29618. --- ************************************************
  29619. ---
  29620. CREATE VIEW transition AS
  29621. SELECT
  29622. feature_id AS transition_id,
  29623. feature.*
  29624. FROM
  29625. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29626. WHERE cvterm.name = 'pyrimidine_transition' OR cvterm.name = 'purine_transition' OR cvterm.name = 'C_to_T_transition' OR cvterm.name = 'T_to_C_transition' OR cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'transition';
  29627. --- ************************************************
  29628. --- *** relation: pyrimidine_transition ***
  29629. --- *** relation type: VIEW ***
  29630. --- *** ***
  29631. --- *** A substitution of a pyrimidine, C or T, ***
  29632. --- *** for another pyrimidine. ***
  29633. --- ************************************************
  29634. ---
  29635. CREATE VIEW pyrimidine_transition AS
  29636. SELECT
  29637. feature_id AS pyrimidine_transition_id,
  29638. feature.*
  29639. FROM
  29640. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29641. WHERE cvterm.name = 'C_to_T_transition' OR cvterm.name = 'T_to_C_transition' OR cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'pyrimidine_transition';
  29642. --- ************************************************
  29643. --- *** relation: c_to_t_transition ***
  29644. --- *** relation type: VIEW ***
  29645. --- *** ***
  29646. --- *** A transition of a cytidine to a thymine. ***
  29647. --- ************************************************
  29648. ---
  29649. CREATE VIEW c_to_t_transition AS
  29650. SELECT
  29651. feature_id AS c_to_t_transition_id,
  29652. feature.*
  29653. FROM
  29654. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29655. WHERE cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'C_to_T_transition';
  29656. --- ************************************************
  29657. --- *** relation: c_to_t_transition_at_pcpg_site ***
  29658. --- *** relation type: VIEW ***
  29659. --- *** ***
  29660. --- *** The transition of cytidine to thymine oc ***
  29661. --- *** curring at a pCpG site as a consequence ***
  29662. --- *** of the spontaneous deamination of 5'-met ***
  29663. --- *** hylcytidine. ***
  29664. --- ************************************************
  29665. ---
  29666. CREATE VIEW c_to_t_transition_at_pcpg_site AS
  29667. SELECT
  29668. feature_id AS c_to_t_transition_at_pcpg_site_id,
  29669. feature.*
  29670. FROM
  29671. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29672. WHERE cvterm.name = 'C_to_T_transition_at_pCpG_site';
  29673. --- ************************************************
  29674. --- *** relation: t_to_c_transition ***
  29675. --- *** relation type: VIEW ***
  29676. --- *** ***
  29677. --- ************************************************
  29678. ---
  29679. CREATE VIEW t_to_c_transition AS
  29680. SELECT
  29681. feature_id AS t_to_c_transition_id,
  29682. feature.*
  29683. FROM
  29684. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29685. WHERE cvterm.name = 'T_to_C_transition';
  29686. --- ************************************************
  29687. --- *** relation: purine_transition ***
  29688. --- *** relation type: VIEW ***
  29689. --- *** ***
  29690. --- *** A substitution of a purine, A or G, for ***
  29691. --- *** another purine. ***
  29692. --- ************************************************
  29693. ---
  29694. CREATE VIEW purine_transition AS
  29695. SELECT
  29696. feature_id AS purine_transition_id,
  29697. feature.*
  29698. FROM
  29699. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29700. WHERE cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'purine_transition';
  29701. --- ************************************************
  29702. --- *** relation: a_to_g_transition ***
  29703. --- *** relation type: VIEW ***
  29704. --- *** ***
  29705. --- *** A transition of an adenine to a guanine. ***
  29706. --- ************************************************
  29707. ---
  29708. CREATE VIEW a_to_g_transition AS
  29709. SELECT
  29710. feature_id AS a_to_g_transition_id,
  29711. feature.*
  29712. FROM
  29713. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29714. WHERE cvterm.name = 'A_to_G_transition';
  29715. --- ************************************************
  29716. --- *** relation: g_to_a_transition ***
  29717. --- *** relation type: VIEW ***
  29718. --- *** ***
  29719. --- *** A transition of a guanine to an adenine. ***
  29720. --- ************************************************
  29721. ---
  29722. CREATE VIEW g_to_a_transition AS
  29723. SELECT
  29724. feature_id AS g_to_a_transition_id,
  29725. feature.*
  29726. FROM
  29727. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29728. WHERE cvterm.name = 'G_to_A_transition';
  29729. --- ************************************************
  29730. --- *** relation: transversion ***
  29731. --- *** relation type: VIEW ***
  29732. --- *** ***
  29733. --- *** Change of a pyrimidine nucleotide, C or ***
  29734. --- *** T, into a purine nucleotide, A or G, or ***
  29735. --- *** vice versa. ***
  29736. --- ************************************************
  29737. ---
  29738. CREATE VIEW transversion AS
  29739. SELECT
  29740. feature_id AS transversion_id,
  29741. feature.*
  29742. FROM
  29743. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29744. WHERE cvterm.name = 'pyrimidine_to_purine_transversion' OR cvterm.name = 'purine_to_pyrimidine_transversion' OR cvterm.name = 'C_to_A_transversion' OR cvterm.name = 'C_to_G_transversion' OR cvterm.name = 'T_to_A_transversion' OR cvterm.name = 'T_to_G_transversion' OR cvterm.name = 'A_to_C_transversion' OR cvterm.name = 'A_to_T_transversion' OR cvterm.name = 'G_to_C_transversion' OR cvterm.name = 'G_to_T_transversion' OR cvterm.name = 'transversion';
  29745. --- ************************************************
  29746. --- *** relation: pyrimidine_to_purine_transversion ***
  29747. --- *** relation type: VIEW ***
  29748. --- *** ***
  29749. --- *** Change of a pyrimidine nucleotide, C or ***
  29750. --- *** T, into a purine nucleotide, A or G. ***
  29751. --- ************************************************
  29752. ---
  29753. CREATE VIEW pyrimidine_to_purine_transversion AS
  29754. SELECT
  29755. feature_id AS pyrimidine_to_purine_transversion_id,
  29756. feature.*
  29757. FROM
  29758. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29759. WHERE cvterm.name = 'C_to_A_transversion' OR cvterm.name = 'C_to_G_transversion' OR cvterm.name = 'T_to_A_transversion' OR cvterm.name = 'T_to_G_transversion' OR cvterm.name = 'pyrimidine_to_purine_transversion';
  29760. --- ************************************************
  29761. --- *** relation: c_to_a_transversion ***
  29762. --- *** relation type: VIEW ***
  29763. --- *** ***
  29764. --- *** A transversion from cytidine to adenine. ***
  29765. --- ************************************************
  29766. ---
  29767. CREATE VIEW c_to_a_transversion AS
  29768. SELECT
  29769. feature_id AS c_to_a_transversion_id,
  29770. feature.*
  29771. FROM
  29772. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29773. WHERE cvterm.name = 'C_to_A_transversion';
  29774. --- ************************************************
  29775. --- *** relation: c_to_g_transversion ***
  29776. --- *** relation type: VIEW ***
  29777. --- *** ***
  29778. --- ************************************************
  29779. ---
  29780. CREATE VIEW c_to_g_transversion AS
  29781. SELECT
  29782. feature_id AS c_to_g_transversion_id,
  29783. feature.*
  29784. FROM
  29785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29786. WHERE cvterm.name = 'C_to_G_transversion';
  29787. --- ************************************************
  29788. --- *** relation: t_to_a_transversion ***
  29789. --- *** relation type: VIEW ***
  29790. --- *** ***
  29791. --- *** A transversion from T to A. ***
  29792. --- ************************************************
  29793. ---
  29794. CREATE VIEW t_to_a_transversion AS
  29795. SELECT
  29796. feature_id AS t_to_a_transversion_id,
  29797. feature.*
  29798. FROM
  29799. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29800. WHERE cvterm.name = 'T_to_A_transversion';
  29801. --- ************************************************
  29802. --- *** relation: t_to_g_transversion ***
  29803. --- *** relation type: VIEW ***
  29804. --- *** ***
  29805. --- *** A transversion from T to G. ***
  29806. --- ************************************************
  29807. ---
  29808. CREATE VIEW t_to_g_transversion AS
  29809. SELECT
  29810. feature_id AS t_to_g_transversion_id,
  29811. feature.*
  29812. FROM
  29813. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29814. WHERE cvterm.name = 'T_to_G_transversion';
  29815. --- ************************************************
  29816. --- *** relation: purine_to_pyrimidine_transversion ***
  29817. --- *** relation type: VIEW ***
  29818. --- *** ***
  29819. --- *** Change of a purine nucleotide, A or G , ***
  29820. --- *** into a pyrimidine nucleotide C or T. ***
  29821. --- ************************************************
  29822. ---
  29823. CREATE VIEW purine_to_pyrimidine_transversion AS
  29824. SELECT
  29825. feature_id AS purine_to_pyrimidine_transversion_id,
  29826. feature.*
  29827. FROM
  29828. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29829. WHERE cvterm.name = 'A_to_C_transversion' OR cvterm.name = 'A_to_T_transversion' OR cvterm.name = 'G_to_C_transversion' OR cvterm.name = 'G_to_T_transversion' OR cvterm.name = 'purine_to_pyrimidine_transversion';
  29830. --- ************************************************
  29831. --- *** relation: a_to_c_transversion ***
  29832. --- *** relation type: VIEW ***
  29833. --- *** ***
  29834. --- *** A transversion from adenine to cytidine. ***
  29835. --- ************************************************
  29836. ---
  29837. CREATE VIEW a_to_c_transversion AS
  29838. SELECT
  29839. feature_id AS a_to_c_transversion_id,
  29840. feature.*
  29841. FROM
  29842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29843. WHERE cvterm.name = 'A_to_C_transversion';
  29844. --- ************************************************
  29845. --- *** relation: a_to_t_transversion ***
  29846. --- *** relation type: VIEW ***
  29847. --- *** ***
  29848. --- *** A transversion from adenine to thymine. ***
  29849. --- ************************************************
  29850. ---
  29851. CREATE VIEW a_to_t_transversion AS
  29852. SELECT
  29853. feature_id AS a_to_t_transversion_id,
  29854. feature.*
  29855. FROM
  29856. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29857. WHERE cvterm.name = 'A_to_T_transversion';
  29858. --- ************************************************
  29859. --- *** relation: g_to_c_transversion ***
  29860. --- *** relation type: VIEW ***
  29861. --- *** ***
  29862. --- *** A transversion from guanine to cytidine. ***
  29863. --- ************************************************
  29864. ---
  29865. CREATE VIEW g_to_c_transversion AS
  29866. SELECT
  29867. feature_id AS g_to_c_transversion_id,
  29868. feature.*
  29869. FROM
  29870. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29871. WHERE cvterm.name = 'G_to_C_transversion';
  29872. --- ************************************************
  29873. --- *** relation: g_to_t_transversion ***
  29874. --- *** relation type: VIEW ***
  29875. --- *** ***
  29876. --- *** A transversion from guanine to thymine. ***
  29877. --- ************************************************
  29878. ---
  29879. CREATE VIEW g_to_t_transversion AS
  29880. SELECT
  29881. feature_id AS g_to_t_transversion_id,
  29882. feature.*
  29883. FROM
  29884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29885. WHERE cvterm.name = 'G_to_T_transversion';
  29886. --- ************************************************
  29887. --- *** relation: intrachromosomal_mutation ***
  29888. --- *** relation type: VIEW ***
  29889. --- *** ***
  29890. --- *** A chromosomal structure variation within ***
  29891. --- *** a single chromosome. ***
  29892. --- ************************************************
  29893. ---
  29894. CREATE VIEW intrachromosomal_mutation AS
  29895. SELECT
  29896. feature_id AS intrachromosomal_mutation_id,
  29897. feature.*
  29898. FROM
  29899. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29900. WHERE cvterm.name = 'chromosomal_deletion' OR cvterm.name = 'chromosomal_inversion' OR cvterm.name = 'intrachromosomal_duplication' OR cvterm.name = 'ring_chromosome' OR cvterm.name = 'chromosome_fission' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inversion_derived_bipartite_deficiency' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_deficiency_plus_aneuploid' OR cvterm.name = 'deficient_translocation' OR cvterm.name = 'deficient_inversion' OR cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'pericentric_inversion' OR cvterm.name = 'paracentric_inversion' OR cvterm.name = 'inversion_cum_translocation' OR cvterm.name = 'bipartite_inversion' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'deficient_inversion' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_bipartite_duplication' OR cvterm.name = 'inversion_derived_duplication_plus_aneuploid' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'intrachromosomal_mutation';
  29901. --- ************************************************
  29902. --- *** relation: chromosomal_deletion ***
  29903. --- *** relation type: VIEW ***
  29904. --- *** ***
  29905. --- *** An incomplete chromosome. ***
  29906. --- ************************************************
  29907. ---
  29908. CREATE VIEW chromosomal_deletion AS
  29909. SELECT
  29910. feature_id AS chromosomal_deletion_id,
  29911. feature.*
  29912. FROM
  29913. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29914. WHERE cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inversion_derived_bipartite_deficiency' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_deficiency_plus_aneuploid' OR cvterm.name = 'deficient_translocation' OR cvterm.name = 'deficient_inversion' OR cvterm.name = 'chromosomal_deletion';
  29915. --- ************************************************
  29916. --- *** relation: chromosomal_inversion ***
  29917. --- *** relation type: VIEW ***
  29918. --- *** ***
  29919. --- *** An interchromosomal mutation where a reg ***
  29920. --- *** ion of the chromosome is inverted with r ***
  29921. --- *** espect to wild type. ***
  29922. --- ************************************************
  29923. ---
  29924. CREATE VIEW chromosomal_inversion AS
  29925. SELECT
  29926. feature_id AS chromosomal_inversion_id,
  29927. feature.*
  29928. FROM
  29929. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29930. WHERE cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'pericentric_inversion' OR cvterm.name = 'paracentric_inversion' OR cvterm.name = 'inversion_cum_translocation' OR cvterm.name = 'bipartite_inversion' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'deficient_inversion' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'chromosomal_inversion';
  29931. --- ************************************************
  29932. --- *** relation: interchromosomal_mutation ***
  29933. --- *** relation type: VIEW ***
  29934. --- *** ***
  29935. --- *** A chromosomal structure variation whereb ***
  29936. --- *** y more than one chromosome is involved. ***
  29937. --- ************************************************
  29938. ---
  29939. CREATE VIEW interchromosomal_mutation AS
  29940. SELECT
  29941. feature_id AS interchromosomal_mutation_id,
  29942. feature.*
  29943. FROM
  29944. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29945. WHERE cvterm.name = 'chromosomal_translocation' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'interchromosomal_transposition' OR cvterm.name = 'translocation_element' OR cvterm.name = 'Robertsonian_fusion' OR cvterm.name = 'reciprocal_chromosomal_translocation' OR cvterm.name = 'deficient_translocation' OR cvterm.name = 'inversion_cum_translocation' OR cvterm.name = 'cyclic_translocation' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unoriented_interchromosomal_transposition' OR cvterm.name = 'interchromosomal_mutation';
  29946. --- ************************************************
  29947. --- *** relation: indel ***
  29948. --- *** relation type: VIEW ***
  29949. --- *** ***
  29950. --- *** A sequence alteration which included an ***
  29951. --- *** insertion and a deletion, affecting 2 or ***
  29952. --- *** more bases. ***
  29953. --- ************************************************
  29954. ---
  29955. CREATE VIEW indel AS
  29956. SELECT
  29957. feature_id AS indel_id,
  29958. feature.*
  29959. FROM
  29960. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29961. WHERE cvterm.name = 'indel';
  29962. --- ************************************************
  29963. --- *** relation: duplication ***
  29964. --- *** relation type: VIEW ***
  29965. --- *** ***
  29966. --- *** One or more nucleotides are added betwee ***
  29967. --- *** n two adjacent nucleotides in the sequen ***
  29968. --- *** ce; the inserted sequence derives from, ***
  29969. --- *** or is identical in sequence to, nucleoti ***
  29970. --- *** des adjacent to insertion point. ***
  29971. --- ************************************************
  29972. ---
  29973. CREATE VIEW duplication AS
  29974. SELECT
  29975. feature_id AS duplication_id,
  29976. feature.*
  29977. FROM
  29978. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29979. WHERE cvterm.name = 'tandem_duplication' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'duplication';
  29980. --- ************************************************
  29981. --- *** relation: inversion ***
  29982. --- *** relation type: VIEW ***
  29983. --- *** ***
  29984. --- *** A continuous nucleotide sequence is inve ***
  29985. --- *** rted in the same position. ***
  29986. --- ************************************************
  29987. ---
  29988. CREATE VIEW inversion AS
  29989. SELECT
  29990. feature_id AS inversion_id,
  29991. feature.*
  29992. FROM
  29993. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29994. WHERE cvterm.name = 'inversion';
  29995. --- ************************************************
  29996. --- *** relation: chromosomal_duplication ***
  29997. --- *** relation type: VIEW ***
  29998. --- *** ***
  29999. --- *** An extra chromosome. ***
  30000. --- ************************************************
  30001. ---
  30002. CREATE VIEW chromosomal_duplication AS
  30003. SELECT
  30004. feature_id AS chromosomal_duplication_id,
  30005. feature.*
  30006. FROM
  30007. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30008. WHERE cvterm.name = 'interchromosomal_duplication' OR cvterm.name = 'intrachromosomal_duplication' OR cvterm.name = 'free_duplication' OR cvterm.name = 'insertional_duplication' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_bipartite_duplication' OR cvterm.name = 'inversion_derived_duplication_plus_aneuploid' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'uninverted_insertional_duplication' OR cvterm.name = 'inverted_insertional_duplication' OR cvterm.name = 'unoriented_insertional_duplication' OR cvterm.name = 'chromosomal_duplication';
  30009. --- ************************************************
  30010. --- *** relation: intrachromosomal_duplication ***
  30011. --- *** relation type: VIEW ***
  30012. --- *** ***
  30013. --- *** A duplication that occurred within a chr ***
  30014. --- *** omosome. ***
  30015. --- ************************************************
  30016. ---
  30017. CREATE VIEW intrachromosomal_duplication AS
  30018. SELECT
  30019. feature_id AS intrachromosomal_duplication_id,
  30020. feature.*
  30021. FROM
  30022. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30023. WHERE cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_bipartite_duplication' OR cvterm.name = 'inversion_derived_duplication_plus_aneuploid' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'intrachromosomal_duplication';
  30024. --- ************************************************
  30025. --- *** relation: direct_tandem_duplication ***
  30026. --- *** relation type: VIEW ***
  30027. --- *** ***
  30028. --- *** A tandem duplication where the individua ***
  30029. --- *** l regions are in the same orientation. ***
  30030. --- ************************************************
  30031. ---
  30032. CREATE VIEW direct_tandem_duplication AS
  30033. SELECT
  30034. feature_id AS direct_tandem_duplication_id,
  30035. feature.*
  30036. FROM
  30037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30038. WHERE cvterm.name = 'direct_tandem_duplication';
  30039. --- ************************************************
  30040. --- *** relation: inverted_tandem_duplication ***
  30041. --- *** relation type: VIEW ***
  30042. --- *** ***
  30043. --- *** A tandem duplication where the individua ***
  30044. --- *** l regions are not in the same orientatio ***
  30045. --- *** n. ***
  30046. --- ************************************************
  30047. ---
  30048. CREATE VIEW inverted_tandem_duplication AS
  30049. SELECT
  30050. feature_id AS inverted_tandem_duplication_id,
  30051. feature.*
  30052. FROM
  30053. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30054. WHERE cvterm.name = 'inverted_tandem_duplication';
  30055. --- ************************************************
  30056. --- *** relation: intrachromosomal_transposition ***
  30057. --- *** relation type: VIEW ***
  30058. --- *** ***
  30059. --- *** A chromosome structure variation whereby ***
  30060. --- *** a transposition occurred within a chrom ***
  30061. --- *** osome. ***
  30062. --- ************************************************
  30063. ---
  30064. CREATE VIEW intrachromosomal_transposition AS
  30065. SELECT
  30066. feature_id AS intrachromosomal_transposition_id,
  30067. feature.*
  30068. FROM
  30069. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30070. WHERE cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'intrachromosomal_transposition';
  30071. --- ************************************************
  30072. --- *** relation: compound_chromosome ***
  30073. --- *** relation type: VIEW ***
  30074. --- *** ***
  30075. --- *** A chromosome structure variant where a m ***
  30076. --- *** onocentric element is caused by the fusi ***
  30077. --- *** on of two chromosome arms. ***
  30078. --- ************************************************
  30079. ---
  30080. CREATE VIEW compound_chromosome AS
  30081. SELECT
  30082. feature_id AS compound_chromosome_id,
  30083. feature.*
  30084. FROM
  30085. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30086. WHERE cvterm.name = 'compound_chromosome_arm' OR cvterm.name = 'homo_compound_chromosome' OR cvterm.name = 'hetero_compound_chromosome' OR cvterm.name = 'compound_chromosome';
  30087. --- ************************************************
  30088. --- *** relation: robertsonian_fusion ***
  30089. --- *** relation type: VIEW ***
  30090. --- *** ***
  30091. --- *** A non reciprocal translocation whereby t ***
  30092. --- *** he participating chromosomes break at th ***
  30093. --- *** eir centromeres and the long arms fuse t ***
  30094. --- *** o form a single chromosome with a single ***
  30095. --- *** centromere. ***
  30096. --- ************************************************
  30097. ---
  30098. CREATE VIEW robertsonian_fusion AS
  30099. SELECT
  30100. feature_id AS robertsonian_fusion_id,
  30101. feature.*
  30102. FROM
  30103. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30104. WHERE cvterm.name = 'Robertsonian_fusion';
  30105. --- ************************************************
  30106. --- *** relation: chromosomal_translocation ***
  30107. --- *** relation type: VIEW ***
  30108. --- *** ***
  30109. --- *** An interchromosomal mutation. Rearrangem ***
  30110. --- *** ents that alter the pairing of telomeres ***
  30111. --- *** are classified as translocations. ***
  30112. --- ************************************************
  30113. ---
  30114. CREATE VIEW chromosomal_translocation AS
  30115. SELECT
  30116. feature_id AS chromosomal_translocation_id,
  30117. feature.*
  30118. FROM
  30119. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30120. WHERE cvterm.name = 'translocation_element' OR cvterm.name = 'Robertsonian_fusion' OR cvterm.name = 'reciprocal_chromosomal_translocation' OR cvterm.name = 'deficient_translocation' OR cvterm.name = 'inversion_cum_translocation' OR cvterm.name = 'cyclic_translocation' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'chromosomal_translocation';
  30121. --- ************************************************
  30122. --- *** relation: ring_chromosome ***
  30123. --- *** relation type: VIEW ***
  30124. --- *** ***
  30125. --- *** A ring chromosome is a chromosome whose ***
  30126. --- *** arms have fused together to form a ring, ***
  30127. --- *** often with the loss of the ends of the ***
  30128. --- *** chromosome. ***
  30129. --- ************************************************
  30130. ---
  30131. CREATE VIEW ring_chromosome AS
  30132. SELECT
  30133. feature_id AS ring_chromosome_id,
  30134. feature.*
  30135. FROM
  30136. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30137. WHERE cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'ring_chromosome';
  30138. --- ************************************************
  30139. --- *** relation: pericentric_inversion ***
  30140. --- *** relation type: VIEW ***
  30141. --- *** ***
  30142. --- *** A chromosomal inversion that includes th ***
  30143. --- *** e centromere. ***
  30144. --- ************************************************
  30145. ---
  30146. CREATE VIEW pericentric_inversion AS
  30147. SELECT
  30148. feature_id AS pericentric_inversion_id,
  30149. feature.*
  30150. FROM
  30151. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30152. WHERE cvterm.name = 'pericentric_inversion';
  30153. --- ************************************************
  30154. --- *** relation: paracentric_inversion ***
  30155. --- *** relation type: VIEW ***
  30156. --- *** ***
  30157. --- *** A chromosomal inversion that does not in ***
  30158. --- *** clude the centromere. ***
  30159. --- ************************************************
  30160. ---
  30161. CREATE VIEW paracentric_inversion AS
  30162. SELECT
  30163. feature_id AS paracentric_inversion_id,
  30164. feature.*
  30165. FROM
  30166. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30167. WHERE cvterm.name = 'paracentric_inversion';
  30168. --- ************************************************
  30169. --- *** relation: reciprocal_chromosomal_translocation ***
  30170. --- *** relation type: VIEW ***
  30171. --- *** ***
  30172. --- *** A chromosomal translocation with two bre ***
  30173. --- *** aks; two chromosome segments have simply ***
  30174. --- *** been exchanged. ***
  30175. --- ************************************************
  30176. ---
  30177. CREATE VIEW reciprocal_chromosomal_translocation AS
  30178. SELECT
  30179. feature_id AS reciprocal_chromosomal_translocation_id,
  30180. feature.*
  30181. FROM
  30182. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30183. WHERE cvterm.name = 'reciprocal_chromosomal_translocation';
  30184. --- ************************************************
  30185. --- *** relation: autosynaptic_chromosome ***
  30186. --- *** relation type: VIEW ***
  30187. --- *** ***
  30188. --- *** An autosynaptic chromosome is the aneupl ***
  30189. --- *** oid product of recombination between a p ***
  30190. --- *** ericentric inversion and a cytologically ***
  30191. --- *** wild-type chromosome. ***
  30192. --- ************************************************
  30193. ---
  30194. CREATE VIEW autosynaptic_chromosome AS
  30195. SELECT
  30196. feature_id AS autosynaptic_chromosome_id,
  30197. feature.*
  30198. FROM
  30199. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30200. WHERE cvterm.name = 'dexstrosynaptic_chromosome' OR cvterm.name = 'laevosynaptic_chromosome' OR cvterm.name = 'autosynaptic_chromosome';
  30201. --- ************************************************
  30202. --- *** relation: homo_compound_chromosome ***
  30203. --- *** relation type: VIEW ***
  30204. --- *** ***
  30205. --- *** A compound chromosome whereby two copies ***
  30206. --- *** of the same chromosomal arm attached to ***
  30207. --- *** a common centromere. The chromosome is ***
  30208. --- *** diploid for the arm involved. ***
  30209. --- ************************************************
  30210. ---
  30211. CREATE VIEW homo_compound_chromosome AS
  30212. SELECT
  30213. feature_id AS homo_compound_chromosome_id,
  30214. feature.*
  30215. FROM
  30216. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30217. WHERE cvterm.name = 'homo_compound_chromosome';
  30218. --- ************************************************
  30219. --- *** relation: hetero_compound_chromosome ***
  30220. --- *** relation type: VIEW ***
  30221. --- *** ***
  30222. --- *** A compound chromosome whereby two arms f ***
  30223. --- *** rom different chromosomes are connected ***
  30224. --- *** through the centromere of one of them. ***
  30225. --- ************************************************
  30226. ---
  30227. CREATE VIEW hetero_compound_chromosome AS
  30228. SELECT
  30229. feature_id AS hetero_compound_chromosome_id,
  30230. feature.*
  30231. FROM
  30232. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30233. WHERE cvterm.name = 'hetero_compound_chromosome';
  30234. --- ************************************************
  30235. --- *** relation: chromosome_fission ***
  30236. --- *** relation type: VIEW ***
  30237. --- *** ***
  30238. --- *** A chromosome that occurred by the divisi ***
  30239. --- *** on of a larger chromosome. ***
  30240. --- ************************************************
  30241. ---
  30242. CREATE VIEW chromosome_fission AS
  30243. SELECT
  30244. feature_id AS chromosome_fission_id,
  30245. feature.*
  30246. FROM
  30247. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30248. WHERE cvterm.name = 'chromosome_fission';
  30249. --- ************************************************
  30250. --- *** relation: dexstrosynaptic_chromosome ***
  30251. --- *** relation type: VIEW ***
  30252. --- *** ***
  30253. --- *** An autosynaptic chromosome carrying the ***
  30254. --- *** two right (D = dextro) telomeres. ***
  30255. --- ************************************************
  30256. ---
  30257. CREATE VIEW dexstrosynaptic_chromosome AS
  30258. SELECT
  30259. feature_id AS dexstrosynaptic_chromosome_id,
  30260. feature.*
  30261. FROM
  30262. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30263. WHERE cvterm.name = 'dexstrosynaptic_chromosome';
  30264. --- ************************************************
  30265. --- *** relation: laevosynaptic_chromosome ***
  30266. --- *** relation type: VIEW ***
  30267. --- *** ***
  30268. --- *** LS is an autosynaptic chromosome carryin ***
  30269. --- *** g the two left (L = levo) telomeres. ***
  30270. --- ************************************************
  30271. ---
  30272. CREATE VIEW laevosynaptic_chromosome AS
  30273. SELECT
  30274. feature_id AS laevosynaptic_chromosome_id,
  30275. feature.*
  30276. FROM
  30277. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30278. WHERE cvterm.name = 'laevosynaptic_chromosome';
  30279. --- ************************************************
  30280. --- *** relation: free_duplication ***
  30281. --- *** relation type: VIEW ***
  30282. --- *** ***
  30283. --- *** A chromosome structure variation whereby ***
  30284. --- *** the duplicated sequences are carried as ***
  30285. --- *** a free centric element. ***
  30286. --- ************************************************
  30287. ---
  30288. CREATE VIEW free_duplication AS
  30289. SELECT
  30290. feature_id AS free_duplication_id,
  30291. feature.*
  30292. FROM
  30293. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30294. WHERE cvterm.name = 'free_ring_duplication' OR cvterm.name = 'free_duplication';
  30295. --- ************************************************
  30296. --- *** relation: free_ring_duplication ***
  30297. --- *** relation type: VIEW ***
  30298. --- *** ***
  30299. --- *** A ring chromosome which is a copy of ano ***
  30300. --- *** ther chromosome. ***
  30301. --- ************************************************
  30302. ---
  30303. CREATE VIEW free_ring_duplication AS
  30304. SELECT
  30305. feature_id AS free_ring_duplication_id,
  30306. feature.*
  30307. FROM
  30308. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30309. WHERE cvterm.name = 'free_ring_duplication';
  30310. --- ************************************************
  30311. --- *** relation: complex_chromosomal_mutation ***
  30312. --- *** relation type: VIEW ***
  30313. --- *** ***
  30314. --- *** A chromosome structure variant with 4 or ***
  30315. --- *** more breakpoints. ***
  30316. --- ************************************************
  30317. ---
  30318. CREATE VIEW complex_chromosomal_mutation AS
  30319. SELECT
  30320. feature_id AS complex_chromosomal_mutation_id,
  30321. feature.*
  30322. FROM
  30323. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30324. WHERE cvterm.name = 'complex_chromosomal_mutation';
  30325. --- ************************************************
  30326. --- *** relation: deficient_translocation ***
  30327. --- *** relation type: VIEW ***
  30328. --- *** ***
  30329. --- *** A chromosomal deletion whereby a translo ***
  30330. --- *** cation occurs in which one of the four b ***
  30331. --- *** roken ends loses a segment before re-joi ***
  30332. --- *** ning. ***
  30333. --- ************************************************
  30334. ---
  30335. CREATE VIEW deficient_translocation AS
  30336. SELECT
  30337. feature_id AS deficient_translocation_id,
  30338. feature.*
  30339. FROM
  30340. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30341. WHERE cvterm.name = 'deficient_translocation';
  30342. --- ************************************************
  30343. --- *** relation: inversion_cum_translocation ***
  30344. --- *** relation type: VIEW ***
  30345. --- *** ***
  30346. --- *** A chromosomal translocation whereby the ***
  30347. --- *** first two breaks are in the same chromos ***
  30348. --- *** ome, and the region between them is rejo ***
  30349. --- *** ined in inverted order to the other side ***
  30350. --- *** of the first break, such that both side ***
  30351. --- *** s of break one are present on the same c ***
  30352. --- *** hromosome. The remaining free ends are j ***
  30353. --- *** oined as a translocation with those resu ***
  30354. --- *** lting from the third break. ***
  30355. --- ************************************************
  30356. ---
  30357. CREATE VIEW inversion_cum_translocation AS
  30358. SELECT
  30359. feature_id AS inversion_cum_translocation_id,
  30360. feature.*
  30361. FROM
  30362. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30363. WHERE cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'inversion_cum_translocation';
  30364. --- ************************************************
  30365. --- *** relation: bipartite_duplication ***
  30366. --- *** relation type: VIEW ***
  30367. --- *** ***
  30368. --- *** An interchromosomal mutation whereby the ***
  30369. --- *** (large) region between the first two br ***
  30370. --- *** eaks listed is lost, and the two flankin ***
  30371. --- *** g segments (one of them centric) are joi ***
  30372. --- *** ned as a translocation to the free ends ***
  30373. --- *** resulting from the third break. ***
  30374. --- ************************************************
  30375. ---
  30376. CREATE VIEW bipartite_duplication AS
  30377. SELECT
  30378. feature_id AS bipartite_duplication_id,
  30379. feature.*
  30380. FROM
  30381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30382. WHERE cvterm.name = 'bipartite_duplication';
  30383. --- ************************************************
  30384. --- *** relation: cyclic_translocation ***
  30385. --- *** relation type: VIEW ***
  30386. --- *** ***
  30387. --- *** A chromosomal translocation whereby thre ***
  30388. --- *** e breaks occurred in three different chr ***
  30389. --- *** omosomes. The centric segment resulting ***
  30390. --- *** from the first break listed is joined to ***
  30391. --- *** the acentric segment resulting from the ***
  30392. --- *** second, rather than the third. ***
  30393. --- ************************************************
  30394. ---
  30395. CREATE VIEW cyclic_translocation AS
  30396. SELECT
  30397. feature_id AS cyclic_translocation_id,
  30398. feature.*
  30399. FROM
  30400. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30401. WHERE cvterm.name = 'cyclic_translocation';
  30402. --- ************************************************
  30403. --- *** relation: bipartite_inversion ***
  30404. --- *** relation type: VIEW ***
  30405. --- *** ***
  30406. --- *** A chromosomal inversion caused by three ***
  30407. --- *** breaks in the same chromosome; both cent ***
  30408. --- *** ral segments are inverted in place (i.e. ***
  30409. --- *** , they are not transposed). ***
  30410. --- ************************************************
  30411. ---
  30412. CREATE VIEW bipartite_inversion AS
  30413. SELECT
  30414. feature_id AS bipartite_inversion_id,
  30415. feature.*
  30416. FROM
  30417. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30418. WHERE cvterm.name = 'bipartite_inversion';
  30419. --- ************************************************
  30420. --- *** relation: uninvert_insert_dup ***
  30421. --- *** relation type: VIEW ***
  30422. --- *** ***
  30423. --- *** An insertional duplication where a copy ***
  30424. --- *** of the segment between the first two bre ***
  30425. --- *** aks listed is inserted at the third brea ***
  30426. --- *** k; the insertion is in cytologically the ***
  30427. --- *** same orientation as its flanking segmen ***
  30428. --- *** ts. ***
  30429. --- ************************************************
  30430. ---
  30431. CREATE VIEW uninvert_insert_dup AS
  30432. SELECT
  30433. feature_id AS uninvert_insert_dup_id,
  30434. feature.*
  30435. FROM
  30436. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30437. WHERE cvterm.name = 'uninverted_insertional_duplication';
  30438. --- ************************************************
  30439. --- *** relation: inverted_insertional_duplication ***
  30440. --- *** relation type: VIEW ***
  30441. --- *** ***
  30442. --- *** An insertional duplication where a copy ***
  30443. --- *** of the segment between the first two bre ***
  30444. --- *** aks listed is inserted at the third brea ***
  30445. --- *** k; the insertion is in cytologically inv ***
  30446. --- *** erted orientation with respect to its fl ***
  30447. --- *** anking segments. ***
  30448. --- ************************************************
  30449. ---
  30450. CREATE VIEW inverted_insertional_duplication AS
  30451. SELECT
  30452. feature_id AS inverted_insertional_duplication_id,
  30453. feature.*
  30454. FROM
  30455. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30456. WHERE cvterm.name = 'inverted_insertional_duplication';
  30457. --- ************************************************
  30458. --- *** relation: insertional_duplication ***
  30459. --- *** relation type: VIEW ***
  30460. --- *** ***
  30461. --- *** A chromosome duplication involving the i ***
  30462. --- *** nsertion of a duplicated region (as oppo ***
  30463. --- *** sed to a free duplication). ***
  30464. --- ************************************************
  30465. ---
  30466. CREATE VIEW insertional_duplication AS
  30467. SELECT
  30468. feature_id AS insertional_duplication_id,
  30469. feature.*
  30470. FROM
  30471. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30472. WHERE cvterm.name = 'uninverted_insertional_duplication' OR cvterm.name = 'inverted_insertional_duplication' OR cvterm.name = 'unoriented_insertional_duplication' OR cvterm.name = 'insertional_duplication';
  30473. --- ************************************************
  30474. --- *** relation: interchromosomal_transposition ***
  30475. --- *** relation type: VIEW ***
  30476. --- *** ***
  30477. --- *** A chromosome structure variation whereby ***
  30478. --- *** a transposition occurred between chromo ***
  30479. --- *** somes. ***
  30480. --- ************************************************
  30481. ---
  30482. CREATE VIEW interchromosomal_transposition AS
  30483. SELECT
  30484. feature_id AS interchromosomal_transposition_id,
  30485. feature.*
  30486. FROM
  30487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30488. WHERE cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unoriented_interchromosomal_transposition' OR cvterm.name = 'interchromosomal_transposition';
  30489. --- ************************************************
  30490. --- *** relation: invert_inter_transposition ***
  30491. --- *** relation type: VIEW ***
  30492. --- *** ***
  30493. --- *** An interchromosomal transposition whereb ***
  30494. --- *** y a copy of the segment between the firs ***
  30495. --- *** t two breaks listed is inserted at the t ***
  30496. --- *** hird break; the insertion is in cytologi ***
  30497. --- *** cally inverted orientation with respect ***
  30498. --- *** to its flanking segment. ***
  30499. --- ************************************************
  30500. ---
  30501. CREATE VIEW invert_inter_transposition AS
  30502. SELECT
  30503. feature_id AS invert_inter_transposition_id,
  30504. feature.*
  30505. FROM
  30506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30507. WHERE cvterm.name = 'inverted_interchromosomal_transposition';
  30508. --- ************************************************
  30509. --- *** relation: uninvert_inter_transposition ***
  30510. --- *** relation type: VIEW ***
  30511. --- *** ***
  30512. --- *** An interchromosomal transition where the ***
  30513. --- *** segment between the first two breaks li ***
  30514. --- *** sted is removed and inserted at the thir ***
  30515. --- *** d break; the insertion is in cytological ***
  30516. --- *** ly the same orientation as its flanking ***
  30517. --- *** segments. ***
  30518. --- ************************************************
  30519. ---
  30520. CREATE VIEW uninvert_inter_transposition AS
  30521. SELECT
  30522. feature_id AS uninvert_inter_transposition_id,
  30523. feature.*
  30524. FROM
  30525. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30526. WHERE cvterm.name = 'uninverted_interchromosomal_transposition';
  30527. --- ************************************************
  30528. --- *** relation: invert_intra_transposition ***
  30529. --- *** relation type: VIEW ***
  30530. --- *** ***
  30531. --- *** An intrachromosomal transposition whereb ***
  30532. --- *** y the segment between the first two brea ***
  30533. --- *** ks listed is removed and inserted at the ***
  30534. --- *** third break; the insertion is in cytolo ***
  30535. --- *** gically inverted orientation with respec ***
  30536. --- *** t to its flanking segments. ***
  30537. --- ************************************************
  30538. ---
  30539. CREATE VIEW invert_intra_transposition AS
  30540. SELECT
  30541. feature_id AS invert_intra_transposition_id,
  30542. feature.*
  30543. FROM
  30544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30545. WHERE cvterm.name = 'inverted_intrachromosomal_transposition';
  30546. --- ************************************************
  30547. --- *** relation: uninvert_intra_transposition ***
  30548. --- *** relation type: VIEW ***
  30549. --- *** ***
  30550. --- *** An intrachromosomal transposition whereb ***
  30551. --- *** y the segment between the first two brea ***
  30552. --- *** ks listed is removed and inserted at the ***
  30553. --- *** third break; the insertion is in cytolo ***
  30554. --- *** gically the same orientation as its flan ***
  30555. --- *** king segments. ***
  30556. --- ************************************************
  30557. ---
  30558. CREATE VIEW uninvert_intra_transposition AS
  30559. SELECT
  30560. feature_id AS uninvert_intra_transposition_id,
  30561. feature.*
  30562. FROM
  30563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30564. WHERE cvterm.name = 'uninverted_intrachromosomal_transposition';
  30565. --- ************************************************
  30566. --- *** relation: unorient_insert_dup ***
  30567. --- *** relation type: VIEW ***
  30568. --- *** ***
  30569. --- *** An insertional duplication where a copy ***
  30570. --- *** of the segment between the first two bre ***
  30571. --- *** aks listed is inserted at the third brea ***
  30572. --- *** k; the orientation of the insertion with ***
  30573. --- *** respect to its flanking segments is not ***
  30574. --- *** recorded. ***
  30575. --- ************************************************
  30576. ---
  30577. CREATE VIEW unorient_insert_dup AS
  30578. SELECT
  30579. feature_id AS unorient_insert_dup_id,
  30580. feature.*
  30581. FROM
  30582. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30583. WHERE cvterm.name = 'unoriented_insertional_duplication';
  30584. --- ************************************************
  30585. --- *** relation: unoriented_interchromosomal_transposition ***
  30586. --- *** relation type: VIEW ***
  30587. --- *** ***
  30588. --- *** An interchromosomal transposition whereb ***
  30589. --- *** y a copy of the segment between the firs ***
  30590. --- *** t two breaks listed is inserted at the t ***
  30591. --- *** hird break; the orientation of the inser ***
  30592. --- *** tion with respect to its flanking segmen ***
  30593. --- *** ts is not recorded. ***
  30594. --- ************************************************
  30595. ---
  30596. CREATE VIEW unoriented_interchromosomal_transposition AS
  30597. SELECT
  30598. feature_id AS unoriented_interchromosomal_transposition_id,
  30599. feature.*
  30600. FROM
  30601. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30602. WHERE cvterm.name = 'unoriented_interchromosomal_transposition';
  30603. --- ************************************************
  30604. --- *** relation: unoriented_intrachromosomal_transposition ***
  30605. --- *** relation type: VIEW ***
  30606. --- *** ***
  30607. --- *** An intrachromosomal transposition whereb ***
  30608. --- *** y the segment between the first two brea ***
  30609. --- *** ks listed is removed and inserted at the ***
  30610. --- *** third break; the orientation of the ins ***
  30611. --- *** ertion with respect to its flanking segm ***
  30612. --- *** ents is not recorded. ***
  30613. --- ************************************************
  30614. ---
  30615. CREATE VIEW unoriented_intrachromosomal_transposition AS
  30616. SELECT
  30617. feature_id AS unoriented_intrachromosomal_transposition_id,
  30618. feature.*
  30619. FROM
  30620. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30621. WHERE cvterm.name = 'unoriented_intrachromosomal_transposition';
  30622. --- ************************************************
  30623. --- *** relation: uncharacterised_chromosomal_mutation ***
  30624. --- *** relation type: VIEW ***
  30625. --- *** ***
  30626. --- ************************************************
  30627. ---
  30628. CREATE VIEW uncharacterised_chromosomal_mutation AS
  30629. SELECT
  30630. feature_id AS uncharacterised_chromosomal_mutation_id,
  30631. feature.*
  30632. FROM
  30633. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30634. WHERE cvterm.name = 'partially_characterised_chromosomal_mutation' OR cvterm.name = 'uncharacterised_chromosomal_mutation';
  30635. --- ************************************************
  30636. --- *** relation: deficient_inversion ***
  30637. --- *** relation type: VIEW ***
  30638. --- *** ***
  30639. --- *** A chromosomal deletion whereby three bre ***
  30640. --- *** aks occur in the same chromosome; one ce ***
  30641. --- *** ntral region is lost, and the other is i ***
  30642. --- *** nverted. ***
  30643. --- ************************************************
  30644. ---
  30645. CREATE VIEW deficient_inversion AS
  30646. SELECT
  30647. feature_id AS deficient_inversion_id,
  30648. feature.*
  30649. FROM
  30650. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30651. WHERE cvterm.name = 'deficient_inversion';
  30652. --- ************************************************
  30653. --- *** relation: tandem_duplication ***
  30654. --- *** relation type: VIEW ***
  30655. --- *** ***
  30656. --- *** A duplication consisting of 2 identical ***
  30657. --- *** adjacent regions. ***
  30658. --- ************************************************
  30659. ---
  30660. CREATE VIEW tandem_duplication AS
  30661. SELECT
  30662. feature_id AS tandem_duplication_id,
  30663. feature.*
  30664. FROM
  30665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30666. WHERE cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'tandem_duplication';
  30667. --- ************************************************
  30668. --- *** relation: partially_characterised_chromosomal_mutation ***
  30669. --- *** relation type: VIEW ***
  30670. --- *** ***
  30671. --- ************************************************
  30672. ---
  30673. CREATE VIEW partially_characterised_chromosomal_mutation AS
  30674. SELECT
  30675. feature_id AS partially_characterised_chromosomal_mutation_id,
  30676. feature.*
  30677. FROM
  30678. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30679. WHERE cvterm.name = 'partially_characterised_chromosomal_mutation';
  30680. --- ************************************************
  30681. --- *** relation: chromosome_number_variation ***
  30682. --- *** relation type: VIEW ***
  30683. --- *** ***
  30684. --- *** A kind of chromosome variation where the ***
  30685. --- *** chromosome complement is not an exact m ***
  30686. --- *** ultiple of the haploid number. ***
  30687. --- ************************************************
  30688. ---
  30689. CREATE VIEW chromosome_number_variation AS
  30690. SELECT
  30691. feature_id AS chromosome_number_variation_id,
  30692. feature.*
  30693. FROM
  30694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30695. WHERE cvterm.name = 'aneuploid' OR cvterm.name = 'polyploid' OR cvterm.name = 'hyperploid' OR cvterm.name = 'hypoploid' OR cvterm.name = 'autopolyploid' OR cvterm.name = 'allopolyploid' OR cvterm.name = 'chromosome_number_variation';
  30696. --- ************************************************
  30697. --- *** relation: chromosome_structure_variation ***
  30698. --- *** relation type: VIEW ***
  30699. --- *** ***
  30700. --- ************************************************
  30701. ---
  30702. CREATE VIEW chromosome_structure_variation AS
  30703. SELECT
  30704. feature_id AS chromosome_structure_variation_id,
  30705. feature.*
  30706. FROM
  30707. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30708. WHERE cvterm.name = 'free_chromosome_arm' OR cvterm.name = 'chromosomal_transposition' OR cvterm.name = 'aneuploid_chromosome' OR cvterm.name = 'intrachromosomal_mutation' OR cvterm.name = 'interchromosomal_mutation' OR cvterm.name = 'chromosomal_duplication' OR cvterm.name = 'compound_chromosome' OR cvterm.name = 'autosynaptic_chromosome' OR cvterm.name = 'complex_chromosomal_mutation' OR cvterm.name = 'uncharacterised_chromosomal_mutation' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'interchromosomal_transposition' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unoriented_interchromosomal_transposition' OR cvterm.name = 'inversion_derived_aneuploid_chromosome' OR cvterm.name = 'chromosomal_deletion' OR cvterm.name = 'chromosomal_inversion' OR cvterm.name = 'intrachromosomal_duplication' OR cvterm.name = 'ring_chromosome' OR cvterm.name = 'chromosome_fission' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inversion_derived_bipartite_deficiency' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_deficiency_plus_aneuploid' OR cvterm.name = 'deficient_translocation' OR cvterm.name = 'deficient_inversion' OR cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'pericentric_inversion' OR cvterm.name = 'paracentric_inversion' OR cvterm.name = 'inversion_cum_translocation' OR cvterm.name = 'bipartite_inversion' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'deficient_inversion' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_bipartite_duplication' OR cvterm.name = 'inversion_derived_duplication_plus_aneuploid' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'chromosomal_translocation' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'interchromosomal_transposition' OR cvterm.name = 'translocation_element' OR cvterm.name = 'Robertsonian_fusion' OR cvterm.name = 'reciprocal_chromosomal_translocation' OR cvterm.name = 'deficient_translocation' OR cvterm.name = 'inversion_cum_translocation' OR cvterm.name = 'cyclic_translocation' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'deficient_interchromosomal_transposition' OR cvterm.name = 'inverted_interchromosomal_transposition' OR cvterm.name = 'uninverted_interchromosomal_transposition' OR cvterm.name = 'unoriented_interchromosomal_transposition' OR cvterm.name = 'interchromosomal_duplication' OR cvterm.name = 'intrachromosomal_duplication' OR cvterm.name = 'free_duplication' OR cvterm.name = 'insertional_duplication' OR cvterm.name = 'inversion_derived_deficiency_plus_duplication' OR cvterm.name = 'inversion_derived_bipartite_duplication' OR cvterm.name = 'inversion_derived_duplication_plus_aneuploid' OR cvterm.name = 'intrachromosomal_transposition' OR cvterm.name = 'bipartite_duplication' OR cvterm.name = 'deficient_intrachromosomal_transposition' OR cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'uninverted_intrachromosomal_transposition' OR cvterm.name = 'unoriented_intrachromosomal_transposition' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'uninverted_insertional_duplication' OR cvterm.name = 'inverted_insertional_duplication' OR cvterm.name = 'unoriented_insertional_duplication' OR cvterm.name = 'compound_chromosome_arm' OR cvterm.name = 'homo_compound_chromosome' OR cvterm.name = 'hetero_compound_chromosome' OR cvterm.name = 'dexstrosynaptic_chromosome' OR cvterm.name = 'laevosynaptic_chromosome' OR cvterm.name = 'partially_characterised_chromosomal_mutation' OR cvterm.name = 'chromosome_structure_variation';
  30709. --- ************************************************
  30710. --- *** relation: alternatively_spliced_transcript ***
  30711. --- *** relation type: VIEW ***
  30712. --- *** ***
  30713. --- *** A transcript that is alternatively splic ***
  30714. --- *** ed. ***
  30715. --- ************************************************
  30716. ---
  30717. CREATE VIEW alternatively_spliced_transcript AS
  30718. SELECT
  30719. feature_id AS alternatively_spliced_transcript_id,
  30720. feature.*
  30721. FROM
  30722. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30723. WHERE cvterm.name = 'alternatively_spliced_transcript';
  30724. --- ************************************************
  30725. --- *** relation: encodes_1_polypeptide ***
  30726. --- *** relation type: VIEW ***
  30727. --- *** ***
  30728. --- *** A gene that is alternately spliced, but ***
  30729. --- *** encodes only one polypeptide. ***
  30730. --- ************************************************
  30731. ---
  30732. CREATE VIEW encodes_1_polypeptide AS
  30733. SELECT
  30734. feature_id AS encodes_1_polypeptide_id,
  30735. feature.*
  30736. FROM
  30737. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30738. WHERE cvterm.name = 'encodes_1_polypeptide';
  30739. --- ************************************************
  30740. --- *** relation: encodes_greater_than_1_polypeptide ***
  30741. --- *** relation type: VIEW ***
  30742. --- *** ***
  30743. --- *** A gene that is alternately spliced, and ***
  30744. --- *** encodes more than one polypeptide. ***
  30745. --- ************************************************
  30746. ---
  30747. CREATE VIEW encodes_greater_than_1_polypeptide AS
  30748. SELECT
  30749. feature_id AS encodes_greater_than_1_polypeptide_id,
  30750. feature.*
  30751. FROM
  30752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30753. WHERE cvterm.name = 'encodes_disjoint_polypeptides' OR cvterm.name = 'encodes_overlapping_peptides' OR cvterm.name = 'encodes_different_polypeptides_different_stop' OR cvterm.name = 'encodes_overlapping_peptides_different_start' OR cvterm.name = 'encodes_overlapping_polypeptides_different_start_and_stop' OR cvterm.name = 'encodes_greater_than_1_polypeptide';
  30754. --- ************************************************
  30755. --- *** relation: encodes_different_polypeptides_different_stop ***
  30756. --- *** relation type: VIEW ***
  30757. --- *** ***
  30758. --- *** A gene that is alternately spliced, and ***
  30759. --- *** encodes more than one polypeptide, that ***
  30760. --- *** have overlapping peptide sequences, but ***
  30761. --- *** use different stop codons. ***
  30762. --- ************************************************
  30763. ---
  30764. CREATE VIEW encodes_different_polypeptides_different_stop AS
  30765. SELECT
  30766. feature_id AS encodes_different_polypeptides_different_stop_id,
  30767. feature.*
  30768. FROM
  30769. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30770. WHERE cvterm.name = 'encodes_different_polypeptides_different_stop';
  30771. --- ************************************************
  30772. --- *** relation: encodes_overlapping_peptides_different_start ***
  30773. --- *** relation type: VIEW ***
  30774. --- *** ***
  30775. --- *** A gene that is alternately spliced, and ***
  30776. --- *** encodes more than one polypeptide, that ***
  30777. --- *** have overlapping peptide sequences, but ***
  30778. --- *** use different start codons. ***
  30779. --- ************************************************
  30780. ---
  30781. CREATE VIEW encodes_overlapping_peptides_different_start AS
  30782. SELECT
  30783. feature_id AS encodes_overlapping_peptides_different_start_id,
  30784. feature.*
  30785. FROM
  30786. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30787. WHERE cvterm.name = 'encodes_overlapping_peptides_different_start';
  30788. --- ************************************************
  30789. --- *** relation: encodes_disjoint_polypeptides ***
  30790. --- *** relation type: VIEW ***
  30791. --- *** ***
  30792. --- *** A gene that is alternately spliced, and ***
  30793. --- *** encodes more than one polypeptide, that ***
  30794. --- *** do not have overlapping peptide sequence ***
  30795. --- *** s. ***
  30796. --- ************************************************
  30797. ---
  30798. CREATE VIEW encodes_disjoint_polypeptides AS
  30799. SELECT
  30800. feature_id AS encodes_disjoint_polypeptides_id,
  30801. feature.*
  30802. FROM
  30803. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30804. WHERE cvterm.name = 'encodes_disjoint_polypeptides';
  30805. --- ************************************************
  30806. --- *** relation: encodes_overlapping_polypeptides_different_start_and_stop ***
  30807. --- *** relation type: VIEW ***
  30808. --- *** ***
  30809. --- *** A gene that is alternately spliced, and ***
  30810. --- *** encodes more than one polypeptide, that ***
  30811. --- *** have overlapping peptide sequences, but ***
  30812. --- *** use different start and stop codons. ***
  30813. --- ************************************************
  30814. ---
  30815. CREATE VIEW encodes_overlapping_polypeptides_different_start_and_stop AS
  30816. SELECT
  30817. feature_id AS encodes_overlapping_polypeptides_different_start_and_stop_id,
  30818. feature.*
  30819. FROM
  30820. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30821. WHERE cvterm.name = 'encodes_overlapping_polypeptides_different_start_and_stop';
  30822. --- ************************************************
  30823. --- *** relation: encodes_overlapping_peptides ***
  30824. --- *** relation type: VIEW ***
  30825. --- *** ***
  30826. --- *** A gene that is alternately spliced, and ***
  30827. --- *** encodes more than one polypeptide, that ***
  30828. --- *** have overlapping peptide sequences. ***
  30829. --- ************************************************
  30830. ---
  30831. CREATE VIEW encodes_overlapping_peptides AS
  30832. SELECT
  30833. feature_id AS encodes_overlapping_peptides_id,
  30834. feature.*
  30835. FROM
  30836. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30837. WHERE cvterm.name = 'encodes_different_polypeptides_different_stop' OR cvterm.name = 'encodes_overlapping_peptides_different_start' OR cvterm.name = 'encodes_overlapping_polypeptides_different_start_and_stop' OR cvterm.name = 'encodes_overlapping_peptides';
  30838. --- ************************************************
  30839. --- *** relation: cryptogene ***
  30840. --- *** relation type: VIEW ***
  30841. --- *** ***
  30842. --- *** A maxicircle gene so extensively edited ***
  30843. --- *** that it cannot be matched to its edited ***
  30844. --- *** mRNA sequence. ***
  30845. --- ************************************************
  30846. ---
  30847. CREATE VIEW cryptogene AS
  30848. SELECT
  30849. feature_id AS cryptogene_id,
  30850. feature.*
  30851. FROM
  30852. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30853. WHERE cvterm.name = 'cryptogene';
  30854. --- ************************************************
  30855. --- *** relation: dicistronic_primary_transcript ***
  30856. --- *** relation type: VIEW ***
  30857. --- *** ***
  30858. --- *** A primary transcript that has the qualit ***
  30859. --- *** y dicistronic. ***
  30860. --- ************************************************
  30861. ---
  30862. CREATE VIEW dicistronic_primary_transcript AS
  30863. SELECT
  30864. feature_id AS dicistronic_primary_transcript_id,
  30865. feature.*
  30866. FROM
  30867. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30868. WHERE cvterm.name = 'dicistronic_primary_transcript';
  30869. --- ************************************************
  30870. --- *** relation: member_of_regulon ***
  30871. --- *** relation type: VIEW ***
  30872. --- *** ***
  30873. --- ************************************************
  30874. ---
  30875. CREATE VIEW member_of_regulon AS
  30876. SELECT
  30877. feature_id AS member_of_regulon_id,
  30878. feature.*
  30879. FROM
  30880. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30881. WHERE cvterm.name = 'member_of_regulon';
  30882. --- ************************************************
  30883. --- *** relation: cds_independently_known ***
  30884. --- *** relation type: VIEW ***
  30885. --- *** ***
  30886. --- *** A CDS with the evidence status of being ***
  30887. --- *** independently known. ***
  30888. --- ************************************************
  30889. ---
  30890. CREATE VIEW cds_independently_known AS
  30891. SELECT
  30892. feature_id AS cds_independently_known_id,
  30893. feature.*
  30894. FROM
  30895. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30896. WHERE cvterm.name = 'CDS_independently_known';
  30897. --- ************************************************
  30898. --- *** relation: orphan_cds ***
  30899. --- *** relation type: VIEW ***
  30900. --- *** ***
  30901. --- *** A CDS whose predicted amino acid sequenc ***
  30902. --- *** e is unsupported by any experimental evi ***
  30903. --- *** dence or by any match with any other kno ***
  30904. --- *** wn sequence. ***
  30905. --- ************************************************
  30906. ---
  30907. CREATE VIEW orphan_cds AS
  30908. SELECT
  30909. feature_id AS orphan_cds_id,
  30910. feature.*
  30911. FROM
  30912. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30913. WHERE cvterm.name = 'orphan_CDS';
  30914. --- ************************************************
  30915. --- *** relation: cds_supported_by_domain_match_data ***
  30916. --- *** relation type: VIEW ***
  30917. --- *** ***
  30918. --- *** A CDS that is supported by domain simila ***
  30919. --- *** rity. ***
  30920. --- ************************************************
  30921. ---
  30922. CREATE VIEW cds_supported_by_domain_match_data AS
  30923. SELECT
  30924. feature_id AS cds_supported_by_domain_match_data_id,
  30925. feature.*
  30926. FROM
  30927. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30928. WHERE cvterm.name = 'CDS_supported_by_domain_match_data';
  30929. --- ************************************************
  30930. --- *** relation: cds_supported_by_sequence_similarity_data ***
  30931. --- *** relation type: VIEW ***
  30932. --- *** ***
  30933. --- *** A CDS that is supported by sequence simi ***
  30934. --- *** larity data. ***
  30935. --- ************************************************
  30936. ---
  30937. CREATE VIEW cds_supported_by_sequence_similarity_data AS
  30938. SELECT
  30939. feature_id AS cds_supported_by_sequence_similarity_data_id,
  30940. feature.*
  30941. FROM
  30942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30943. WHERE cvterm.name = 'CDS_supported_by_domain_match_data' OR cvterm.name = 'CDS_supported_by_EST_or_cDNA_data' OR cvterm.name = 'CDS_supported_by_sequence_similarity_data';
  30944. --- ************************************************
  30945. --- *** relation: cds_predicted ***
  30946. --- *** relation type: VIEW ***
  30947. --- *** ***
  30948. --- *** A CDS that is predicted. ***
  30949. --- ************************************************
  30950. ---
  30951. CREATE VIEW cds_predicted AS
  30952. SELECT
  30953. feature_id AS cds_predicted_id,
  30954. feature.*
  30955. FROM
  30956. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30957. WHERE cvterm.name = 'orphan_CDS' OR cvterm.name = 'CDS_supported_by_sequence_similarity_data' OR cvterm.name = 'CDS_supported_by_domain_match_data' OR cvterm.name = 'CDS_supported_by_EST_or_cDNA_data' OR cvterm.name = 'CDS_predicted';
  30958. --- ************************************************
  30959. --- *** relation: cds_supported_by_est_or_cdna_data ***
  30960. --- *** relation type: VIEW ***
  30961. --- *** ***
  30962. --- *** A CDS that is supported by similarity to ***
  30963. --- *** EST or cDNA data. ***
  30964. --- ************************************************
  30965. ---
  30966. CREATE VIEW cds_supported_by_est_or_cdna_data AS
  30967. SELECT
  30968. feature_id AS cds_supported_by_est_or_cdna_data_id,
  30969. feature.*
  30970. FROM
  30971. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30972. WHERE cvterm.name = 'CDS_supported_by_EST_or_cDNA_data';
  30973. --- ************************************************
  30974. --- *** relation: internal_shine_dalgarno_sequence ***
  30975. --- *** relation type: VIEW ***
  30976. --- *** ***
  30977. --- *** A Shine-Dalgarno sequence that stimulate ***
  30978. --- *** s recoding through interactions with the ***
  30979. --- *** anti-Shine-Dalgarno in the RNA of small ***
  30980. --- *** ribosomal subunits of translating ribos ***
  30981. --- *** omes. The signal is only operative in Ba ***
  30982. --- *** cteria. ***
  30983. --- ************************************************
  30984. ---
  30985. CREATE VIEW internal_shine_dalgarno_sequence AS
  30986. SELECT
  30987. feature_id AS internal_shine_dalgarno_sequence_id,
  30988. feature.*
  30989. FROM
  30990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30991. WHERE cvterm.name = 'internal_Shine_Dalgarno_sequence';
  30992. --- ************************************************
  30993. --- *** relation: recoded_mrna ***
  30994. --- *** relation type: VIEW ***
  30995. --- *** ***
  30996. --- *** The sequence of a mature mRNA transcript ***
  30997. --- *** , modified before translation or during ***
  30998. --- *** translation, usually by special cis-acti ***
  30999. --- *** ng signals. ***
  31000. --- ************************************************
  31001. ---
  31002. CREATE VIEW recoded_mrna AS
  31003. SELECT
  31004. feature_id AS recoded_mrna_id,
  31005. feature.*
  31006. FROM
  31007. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31008. WHERE cvterm.name = 'mRNA_recoded_by_translational_bypass' OR cvterm.name = 'mRNA_recoded_by_codon_redefinition' OR cvterm.name = 'recoded_mRNA';
  31009. --- ************************************************
  31010. --- *** relation: minus_1_translationally_frameshifted ***
  31011. --- *** relation type: VIEW ***
  31012. --- *** ***
  31013. --- *** An attribute describing a translational ***
  31014. --- *** frameshift of -1. ***
  31015. --- ************************************************
  31016. ---
  31017. CREATE VIEW minus_1_translationally_frameshifted AS
  31018. SELECT
  31019. feature_id AS minus_1_translationally_frameshifted_id,
  31020. feature.*
  31021. FROM
  31022. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31023. WHERE cvterm.name = 'minus_1_translationally_frameshifted';
  31024. --- ************************************************
  31025. --- *** relation: plus_1_translationally_frameshifted ***
  31026. --- *** relation type: VIEW ***
  31027. --- *** ***
  31028. --- *** An attribute describing a translational ***
  31029. --- *** frameshift of +1. ***
  31030. --- ************************************************
  31031. ---
  31032. CREATE VIEW plus_1_translationally_frameshifted AS
  31033. SELECT
  31034. feature_id AS plus_1_translationally_frameshifted_id,
  31035. feature.*
  31036. FROM
  31037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31038. WHERE cvterm.name = 'plus_1_translationally_frameshifted';
  31039. --- ************************************************
  31040. --- *** relation: mrna_recoded_by_translational_bypass ***
  31041. --- *** relation type: VIEW ***
  31042. --- *** ***
  31043. --- *** A recoded_mRNA where translation was sus ***
  31044. --- *** pended at a particular codon and resumed ***
  31045. --- *** at a particular non-overlapping downstr ***
  31046. --- *** eam codon. ***
  31047. --- ************************************************
  31048. ---
  31049. CREATE VIEW mrna_recoded_by_translational_bypass AS
  31050. SELECT
  31051. feature_id AS mrna_recoded_by_translational_bypass_id,
  31052. feature.*
  31053. FROM
  31054. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31055. WHERE cvterm.name = 'mRNA_recoded_by_translational_bypass';
  31056. --- ************************************************
  31057. --- *** relation: mrna_recoded_by_codon_redefinition ***
  31058. --- *** relation type: VIEW ***
  31059. --- *** ***
  31060. --- *** A recoded_mRNA that was modified by an a ***
  31061. --- *** lteration of codon meaning. ***
  31062. --- ************************************************
  31063. ---
  31064. CREATE VIEW mrna_recoded_by_codon_redefinition AS
  31065. SELECT
  31066. feature_id AS mrna_recoded_by_codon_redefinition_id,
  31067. feature.*
  31068. FROM
  31069. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31070. WHERE cvterm.name = 'mRNA_recoded_by_codon_redefinition';
  31071. --- ************************************************
  31072. --- *** relation: recoding_stimulatory_region ***
  31073. --- *** relation type: VIEW ***
  31074. --- *** ***
  31075. --- *** A site in an mRNA sequence that stimulat ***
  31076. --- *** es the recoding of a region in the same ***
  31077. --- *** mRNA. ***
  31078. --- ************************************************
  31079. ---
  31080. CREATE VIEW recoding_stimulatory_region AS
  31081. SELECT
  31082. feature_id AS recoding_stimulatory_region_id,
  31083. feature.*
  31084. FROM
  31085. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31086. WHERE cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'SECIS_element' OR cvterm.name = 'three_prime_recoding_site' OR cvterm.name = 'five_prime_recoding_site' OR cvterm.name = 'stop_codon_signal' OR cvterm.name = 'three_prime_stem_loop_structure' OR cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal' OR cvterm.name = 'three_prime_repeat_recoding_signal' OR cvterm.name = 'distant_three_prime_recoding_signal' OR cvterm.name = 'UAG_stop_codon_signal' OR cvterm.name = 'UAA_stop_codon_signal' OR cvterm.name = 'UGA_stop_codon_signal' OR cvterm.name = 'recoding_stimulatory_region';
  31087. --- ************************************************
  31088. --- *** relation: four_bp_start_codon ***
  31089. --- *** relation type: VIEW ***
  31090. --- *** ***
  31091. --- *** A non-canonical start codon with 4 base ***
  31092. --- *** pairs. ***
  31093. --- ************************************************
  31094. ---
  31095. CREATE VIEW four_bp_start_codon AS
  31096. SELECT
  31097. feature_id AS four_bp_start_codon_id,
  31098. feature.*
  31099. FROM
  31100. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31101. WHERE cvterm.name = 'four_bp_start_codon';
  31102. --- ************************************************
  31103. --- *** relation: archaeal_intron ***
  31104. --- *** relation type: VIEW ***
  31105. --- *** ***
  31106. --- *** An intron characteristic of Archaeal tRN ***
  31107. --- *** A and rRNA genes, where intron transcrip ***
  31108. --- *** t generates a bulge-helix-bulge motif th ***
  31109. --- *** at is recognised by a splicing endoribon ***
  31110. --- *** uclease. ***
  31111. --- ************************************************
  31112. ---
  31113. CREATE VIEW archaeal_intron AS
  31114. SELECT
  31115. feature_id AS archaeal_intron_id,
  31116. feature.*
  31117. FROM
  31118. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31119. WHERE cvterm.name = 'archaeal_intron';
  31120. --- ************************************************
  31121. --- *** relation: trna_intron ***
  31122. --- *** relation type: VIEW ***
  31123. --- *** ***
  31124. --- *** An intron found in tRNA that is spliced ***
  31125. --- *** via endonucleolytic cleavage and ligatio ***
  31126. --- *** n rather than transesterification. ***
  31127. --- ************************************************
  31128. ---
  31129. CREATE VIEW trna_intron AS
  31130. SELECT
  31131. feature_id AS trna_intron_id,
  31132. feature.*
  31133. FROM
  31134. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31135. WHERE cvterm.name = 'tRNA_intron';
  31136. --- ************************************************
  31137. --- *** relation: ctg_start_codon ***
  31138. --- *** relation type: VIEW ***
  31139. --- *** ***
  31140. --- *** A non-canonical start codon of sequence ***
  31141. --- *** CTG. ***
  31142. --- ************************************************
  31143. ---
  31144. CREATE VIEW ctg_start_codon AS
  31145. SELECT
  31146. feature_id AS ctg_start_codon_id,
  31147. feature.*
  31148. FROM
  31149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31150. WHERE cvterm.name = 'CTG_start_codon';
  31151. --- ************************************************
  31152. --- *** relation: secis_element ***
  31153. --- *** relation type: VIEW ***
  31154. --- *** ***
  31155. --- *** The incorporation of selenocysteine into ***
  31156. --- *** a protein sequence is directed by an in ***
  31157. --- *** -frame UGA codon (usually a stop codon) ***
  31158. --- *** within the coding region of the mRNA. Se ***
  31159. --- *** lenoprotein mRNAs contain a conserved se ***
  31160. --- *** condary structure in the 3' UTR that is ***
  31161. --- *** required for the distinction of UGA stop ***
  31162. --- *** from UGA selenocysteine. The selenocyst ***
  31163. --- *** eine insertion sequence (SECIS) is aroun ***
  31164. --- *** d 60 nt in length and adopts a hairpin s ***
  31165. --- *** tructure which is sufficiently well-defi ***
  31166. --- *** ned and conserved to act as a computatio ***
  31167. --- *** nal screen for selenoprotein genes. ***
  31168. --- ************************************************
  31169. ---
  31170. CREATE VIEW secis_element AS
  31171. SELECT
  31172. feature_id AS secis_element_id,
  31173. feature.*
  31174. FROM
  31175. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31176. WHERE cvterm.name = 'SECIS_element';
  31177. --- ************************************************
  31178. --- *** relation: retron ***
  31179. --- *** relation type: VIEW ***
  31180. --- *** ***
  31181. --- *** Sequence coding for a short, single-stra ***
  31182. --- *** nded, DNA sequence via a retrotransposed ***
  31183. --- *** RNA intermediate; characteristic of som ***
  31184. --- *** e microbial genomes. ***
  31185. --- ************************************************
  31186. ---
  31187. CREATE VIEW retron AS
  31188. SELECT
  31189. feature_id AS retron_id,
  31190. feature.*
  31191. FROM
  31192. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31193. WHERE cvterm.name = 'retron';
  31194. --- ************************************************
  31195. --- *** relation: three_prime_recoding_site ***
  31196. --- *** relation type: VIEW ***
  31197. --- *** ***
  31198. --- *** The recoding stimulatory signal located ***
  31199. --- *** downstream of the recoding site. ***
  31200. --- ************************************************
  31201. ---
  31202. CREATE VIEW three_prime_recoding_site AS
  31203. SELECT
  31204. feature_id AS three_prime_recoding_site_id,
  31205. feature.*
  31206. FROM
  31207. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31208. WHERE cvterm.name = 'three_prime_stem_loop_structure' OR cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal' OR cvterm.name = 'three_prime_repeat_recoding_signal' OR cvterm.name = 'distant_three_prime_recoding_signal' OR cvterm.name = 'three_prime_recoding_site';
  31209. --- ************************************************
  31210. --- *** relation: three_prime_stem_loop_structure ***
  31211. --- *** relation type: VIEW ***
  31212. --- *** ***
  31213. --- *** A recoding stimulatory region, the stem- ***
  31214. --- *** loop secondary structural element is dow ***
  31215. --- *** nstream of the redefined region. ***
  31216. --- ************************************************
  31217. ---
  31218. CREATE VIEW three_prime_stem_loop_structure AS
  31219. SELECT
  31220. feature_id AS three_prime_stem_loop_structure_id,
  31221. feature.*
  31222. FROM
  31223. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31224. WHERE cvterm.name = 'three_prime_stem_loop_structure';
  31225. --- ************************************************
  31226. --- *** relation: five_prime_recoding_site ***
  31227. --- *** relation type: VIEW ***
  31228. --- *** ***
  31229. --- *** The recoding stimulatory signal located ***
  31230. --- *** upstream of the recoding site. ***
  31231. --- ************************************************
  31232. ---
  31233. CREATE VIEW five_prime_recoding_site AS
  31234. SELECT
  31235. feature_id AS five_prime_recoding_site_id,
  31236. feature.*
  31237. FROM
  31238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31239. WHERE cvterm.name = 'five_prime_recoding_site';
  31240. --- ************************************************
  31241. --- *** relation: flanking_three_prime_quadruplet_recoding_signal ***
  31242. --- *** relation type: VIEW ***
  31243. --- *** ***
  31244. --- *** Four base pair sequence immediately down ***
  31245. --- *** stream of the redefined region. The rede ***
  31246. --- *** fined region is a frameshift site. The q ***
  31247. --- *** uadruplet is 2 overlapping codons. ***
  31248. --- ************************************************
  31249. ---
  31250. CREATE VIEW flanking_three_prime_quadruplet_recoding_signal AS
  31251. SELECT
  31252. feature_id AS flanking_three_prime_quadruplet_recoding_signal_id,
  31253. feature.*
  31254. FROM
  31255. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31256. WHERE cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal';
  31257. --- ************************************************
  31258. --- *** relation: uag_stop_codon_signal ***
  31259. --- *** relation type: VIEW ***
  31260. --- *** ***
  31261. --- *** A stop codon signal for a UAG stop codon ***
  31262. --- *** redefinition. ***
  31263. --- ************************************************
  31264. ---
  31265. CREATE VIEW uag_stop_codon_signal AS
  31266. SELECT
  31267. feature_id AS uag_stop_codon_signal_id,
  31268. feature.*
  31269. FROM
  31270. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31271. WHERE cvterm.name = 'UAG_stop_codon_signal';
  31272. --- ************************************************
  31273. --- *** relation: uaa_stop_codon_signal ***
  31274. --- *** relation type: VIEW ***
  31275. --- *** ***
  31276. --- *** A stop codon signal for a UAA stop codon ***
  31277. --- *** redefinition. ***
  31278. --- ************************************************
  31279. ---
  31280. CREATE VIEW uaa_stop_codon_signal AS
  31281. SELECT
  31282. feature_id AS uaa_stop_codon_signal_id,
  31283. feature.*
  31284. FROM
  31285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31286. WHERE cvterm.name = 'UAA_stop_codon_signal';
  31287. --- ************************************************
  31288. --- *** relation: regulon ***
  31289. --- *** relation type: VIEW ***
  31290. --- *** ***
  31291. --- *** A group of genes, whether linked as a cl ***
  31292. --- *** uster or not, that respond to a common r ***
  31293. --- *** egulatory signal. ***
  31294. --- ************************************************
  31295. ---
  31296. CREATE VIEW regulon AS
  31297. SELECT
  31298. feature_id AS regulon_id,
  31299. feature.*
  31300. FROM
  31301. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31302. WHERE cvterm.name = 'regulon';
  31303. --- ************************************************
  31304. --- *** relation: uga_stop_codon_signal ***
  31305. --- *** relation type: VIEW ***
  31306. --- *** ***
  31307. --- *** A stop codon signal for a UGA stop codon ***
  31308. --- *** redefinition. ***
  31309. --- ************************************************
  31310. ---
  31311. CREATE VIEW uga_stop_codon_signal AS
  31312. SELECT
  31313. feature_id AS uga_stop_codon_signal_id,
  31314. feature.*
  31315. FROM
  31316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31317. WHERE cvterm.name = 'UGA_stop_codon_signal';
  31318. --- ************************************************
  31319. --- *** relation: three_prime_repeat_recoding_signal ***
  31320. --- *** relation type: VIEW ***
  31321. --- *** ***
  31322. --- *** A recoding stimulatory signal, downstrea ***
  31323. --- *** m sequence important for recoding that c ***
  31324. --- *** ontains repetitive elements. ***
  31325. --- ************************************************
  31326. ---
  31327. CREATE VIEW three_prime_repeat_recoding_signal AS
  31328. SELECT
  31329. feature_id AS three_prime_repeat_recoding_signal_id,
  31330. feature.*
  31331. FROM
  31332. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31333. WHERE cvterm.name = 'three_prime_repeat_recoding_signal';
  31334. --- ************************************************
  31335. --- *** relation: distant_three_prime_recoding_signal ***
  31336. --- *** relation type: VIEW ***
  31337. --- *** ***
  31338. --- *** A recoding signal that is found many hun ***
  31339. --- *** dreds of nucleotides 3' of a redefined s ***
  31340. --- *** top codon. ***
  31341. --- ************************************************
  31342. ---
  31343. CREATE VIEW distant_three_prime_recoding_signal AS
  31344. SELECT
  31345. feature_id AS distant_three_prime_recoding_signal_id,
  31346. feature.*
  31347. FROM
  31348. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31349. WHERE cvterm.name = 'distant_three_prime_recoding_signal';
  31350. --- ************************************************
  31351. --- *** relation: stop_codon_signal ***
  31352. --- *** relation type: VIEW ***
  31353. --- *** ***
  31354. --- *** A recoding stimulatory signal that is a ***
  31355. --- *** stop codon and has effect on efficiency ***
  31356. --- *** of recoding. ***
  31357. --- ************************************************
  31358. ---
  31359. CREATE VIEW stop_codon_signal AS
  31360. SELECT
  31361. feature_id AS stop_codon_signal_id,
  31362. feature.*
  31363. FROM
  31364. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31365. WHERE cvterm.name = 'UAG_stop_codon_signal' OR cvterm.name = 'UAA_stop_codon_signal' OR cvterm.name = 'UGA_stop_codon_signal' OR cvterm.name = 'stop_codon_signal';
  31366. --- ************************************************
  31367. --- *** relation: databank_entry ***
  31368. --- *** relation type: VIEW ***
  31369. --- *** ***
  31370. --- *** The sequence referred to by an entry in ***
  31371. --- *** a databank such as Genbank or SwissProt. ***
  31372. --- ************************************************
  31373. ---
  31374. CREATE VIEW databank_entry AS
  31375. SELECT
  31376. feature_id AS databank_entry_id,
  31377. feature.*
  31378. FROM
  31379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31380. WHERE cvterm.name = 'databank_entry';
  31381. --- ************************************************
  31382. --- *** relation: gene_segment ***
  31383. --- *** relation type: VIEW ***
  31384. --- *** ***
  31385. --- *** A gene component region which acts as a ***
  31386. --- *** recombinational unit of a gene whose fun ***
  31387. --- *** ctional form is generated through somati ***
  31388. --- *** c recombination. ***
  31389. --- ************************************************
  31390. ---
  31391. CREATE VIEW gene_segment AS
  31392. SELECT
  31393. feature_id AS gene_segment_id,
  31394. feature.*
  31395. FROM
  31396. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31397. WHERE cvterm.name = 'pseudogenic_gene_segment' OR cvterm.name = 'gene_segment';
  31398. CREATE TABLE sequence_cv_lookup_table (sequence_cv_lookup_table_id serial not null, primary key(sequence_cv_lookup_table_id), original_cvterm_name varchar(1024), relation_name varchar(128));
  31399. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcription_variant','transcription_variant');
  31400. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('helitron','helitron');
  31401. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_initiator_methionine','cleaved_initiator_methionine');
  31402. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epoxyqueuosine','epoxyqueuosine');
  31403. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u4atac_snrna','u4atac_snrna');
  31404. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kinetoplast','kinetoplast');
  31405. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_out_of_frame_polypeptide_n_terminal','elongated_out_of_frame_polypeptide_n_terminal');
  31406. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('shadow_enhancer','shadow_enhancer');
  31407. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered','engineered');
  31408. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_polymerase_ii_tata_box','rna_polymerase_ii_tata_box');
  31409. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_aminomethyl_seven_deazaguanosine','seven_aminomethyl_seven_deazaguanosine');
  31410. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_motif','sequence_motif');
  31411. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('low_complexity','low_complexity');
  31412. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('est_match','est_match');
  31413. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_nonamer','v_nonamer');
  31414. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_j_c_cluster','d_dj_j_c_cluster');
  31415. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_21s','rrna_21s');
  31416. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_factor','bound_by_factor');
  31417. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethyluridine','five_carboxymethyluridine');
  31418. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dinucleotide_repeat_microsatellite_feature','dinucleotide_repeat_microsatellite_feature');
  31419. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_methyladenosine','two_methylthio_n6_methyladenosine');
  31420. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced_mrna','trans_spliced_mrna');
  31421. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_c_transversion','g_to_c_transversion');
  31422. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('heptamer_of_recombination_feature_of_vertebrate_immune_system_gene','heptamer_of_recombination_feature_of_vertebrate_im_sys_gene');
  31423. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genotype','so_genotype');
  31424. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_region','cloned_region');
  31425. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_coding_piece','tmrna_coding_piece');
  31426. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_6s','rna_6s');
  31427. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('x_element','x_element');
  31428. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minicircle','minicircle');
  31429. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('grna_encoding','grna_encoding');
  31430. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endonuclease_spliced_intron','endonuclease_spliced_intron');
  31431. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertional_duplication','insertional_duplication');
  31432. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('databank_entry','databank_entry');
  31433. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycine','glycine');
  31434. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_phenotype','variant_phenotype');
  31435. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_cluster','v_cluster');
  31436. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl12_acceptor_site','sl12_acceptor_site');
  31437. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nickel_ion_contact_site','polypeptide_nickel_ion_contact_site');
  31438. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_single_stranded_rna_chromosome','circular_single_stranded_rna_chromosome');
  31439. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wc_base_pair','wc_base_pair');
  31440. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pcr_product','pcr_product');
  31441. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('3_prime_utr_variant','three_prime_utr_variant');
  31442. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_three_amino_three_carboxypropyl_uridine','three_three_amino_three_carboxypropyl_uridine');
  31443. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('site_specific_recombination_target_region','site_specific_recombination_target_region');
  31444. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_polycistronic_transcript','gene_with_polycistronic_transcript');
  31445. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue','rescue');
  31446. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_hypersensitive_site','nuclease_hypersensitive_site');
  31447. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('upstream_gene_variant','upstream_gene_variant');
  31448. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_loop','mirna_loop');
  31449. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_cdna','double_stranded_cdna');
  31450. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_post_translational_processing_variant','polypeptide_post_translational_processing_variant');
  31451. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('2kb_upstream_variant','twokb_upstream_variant');
  31452. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_domain_match','supported_by_domain_match');
  31453. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylpseudouridine','one_methylpseudouridine');
  31454. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n_terminal_region','n_terminal_region');
  31455. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('blunt_end_restriction_enzyme_cleavage_site','blunt_end_restriction_enzyme_cleavage_site');
  31456. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_result_region','experimental_result_region');
  31457. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionine_trna_primary_transcript','methionine_trna_primary_transcript');
  31458. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr','utr');
  31459. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_terminal_residue','non_terminal_residue');
  31460. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('member_of_regulon','member_of_regulon');
  31461. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonine_trna_primary_transcript','thr_trna_primary_transcript');
  31462. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_supported_by_sequence_similarity_data','cds_supported_by_sequence_similarity_data');
  31463. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_structural_region','polypeptide_structural_region');
  31464. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_gene','trna_gene');
  31465. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_tungsten_ion_contact_site','polypeptide_tungsten_ion_contact_site');
  31466. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop_six','beta_bulge_loop_six');
  31467. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_c_cluster','d_dj_c_cluster');
  31468. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_location','sequence_location');
  31469. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_right_left_motif','polypeptide_nest_right_left_motif');
  31470. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_overlapping_polypeptides_different_start_and_stop','encodes_overlapping_polypeptides_different_start_and_stop');
  31471. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_gene','leucoplast_gene');
  31472. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('y_rna','y_rna');
  31473. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced_transcript','trans_spliced_transcript');
  31474. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted','inverted');
  31475. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splicing_regulatory_region','splicing_regulatory_region');
  31476. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('branch_site','branch_site');
  31477. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop_five','beta_bulge_loop_five');
  31478. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_breakpoint','chromosome_breakpoint');
  31479. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_uncertainty','sequence_uncertainty');
  31480. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_methyl_n6_threonylcarbamoyladenosine','n6_methyl_n6_threonylcarbamoyladenosine');
  31481. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_mrna_with_frameshift','gene_with_mrna_with_frameshift');
  31482. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compositionally_biased_region_of_peptide','compositionally_biased_region_of_peptide');
  31483. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_j_c_cluster','vj_j_c_cluster');
  31484. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pirna','pirna');
  31485. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse_hoogsteen_base_pair','reverse_hoogsteen_base_pair');
  31486. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophanyl_trna','tryptophanyl_trna');
  31487. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_primed_cdna_clone','polya_primed_cdna_clone');
  31488. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_chromosome','leucoplast_chromosome');
  31489. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('status','status');
  31490. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ltr_retrotransposon','ltr_retrotransposon');
  31491. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_p_rna','rnase_p_rna');
  31492. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conjugative_transposon','conjugative_transposon');
  31493. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('improved_high_quality_draft','improved_high_quality_draft');
  31494. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_gain','copy_number_gain');
  31495. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linkage_group','linkage_group');
  31496. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_trans_spliced_transcript','gene_with_trans_spliced_transcript');
  31497. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl8_acceptor_site','sl8_acceptor_site');
  31498. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_coil','peptide_coil');
  31499. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysine_trna_primary_transcript','pyrrolysine_trna_primary_transcript');
  31500. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_c_cluster','v_vj_c_cluster');
  31501. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phage_sequence','phage_sequence');
  31502. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k79_methylation_site','h3k79_methylation_site');
  31503. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded','recoded');
  31504. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposon_fragment','transposon_fragment');
  31505. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_c_cluster','vj_c_cluster');
  31506. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_domain','editing_domain');
  31507. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyluridine','five_methylaminomethyluridine');
  31508. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere_dna_element_ii','centromere_dna_element_ii');
  31509. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alteration_attribute','alteration_attribute');
  31510. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_ltr_retrotransposon_polymeric_tract','non_ltr_retrotransposon_polymeric_tract');
  31511. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transversion','transversion');
  31512. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophan','tryptophan');
  31513. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recursive_splice_site','recursive_splice_site');
  31514. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_fusion','polypeptide_fusion');
  31515. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insulator_binding_site','insulator_binding_site');
  31516. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_polyadenylation_variant','increased_polyadenylation_variant');
  31517. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proline_trna_primary_transcript','proline_trna_primary_transcript');
  31518. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_fragment','repeat_fragment');
  31519. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('blocked_reading_frame','blocked_reading_frame');
  31520. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_cleavage_snorna_primary_transcript','rrna_cleavage_snorna_primary_transcript');
  31521. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_isopentenyladenosine','n6_isopentenyladenosine');
  31522. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_arginine','modified_l_arginine');
  31523. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_conserved_motif','polypeptide_conserved_motif');
  31524. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paracentric','paracentric');
  31525. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t3_rna_polymerase_promoter','t3_rna_polymerase_promoter');
  31526. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_bipartite_duplication','inversion_derived_bipartite_duplication');
  31527. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_acceptor_site','trans_splice_acceptor_site');
  31528. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_box_type_2','a_box_type_2');
  31529. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rre_rna','rre_rna');
  31530. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_ribosyladenosine_phosphate','two_prime_o_riboA_phosphate');
  31531. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pac_end','pac_end');
  31532. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('extramembrane_polypeptide_region','extramembrane_polypeptide_region');
  31533. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_change','copy_number_change');
  31534. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intein','intein');
  31535. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endosomal_localization_signal','endosomal_localization_signal');
  31536. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('twintron','twintron');
  31537. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_primary_transcript','scrna_primary_transcript');
  31538. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyl_two_prime_o_methyluridine','five_carboxymethylaminomethyl_two_prime_o_methyluridine');
  31539. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('somatic_variant','somatic_variant');
  31540. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('duplication','duplication');
  31541. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_encoding','tmrna_encoding');
  31542. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_cobalt_ion_contact_site','polypeptide_cobalt_ion_contact_site');
  31543. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanked','flanked');
  31544. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion','inversion');
  31545. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ctg_start_codon','ctg_start_codon');
  31546. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosine_trna_primary_transcript','tyrosine_trna_primary_transcript');
  31547. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('eukaryotic_terminator','eukaryotic_terminator');
  31548. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frt_flanked','frt_flanked');
  31549. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliceosomal_intron_region','spliceosomal_intron_region');
  31550. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_region_of_exon','coding_region_of_exon');
  31551. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_cdna_insert','cloned_cdna_insert');
  31552. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_transcription_rate_variant','decreased_transcription_rate_variant');
  31553. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_c_cluster','v_vdj_c_cluster');
  31554. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_p_rna_gene','rnase_p_rna_gene');
  31555. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_regulated','translationally_regulated');
  31556. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidyl_trna','histidyl_trna');
  31557. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sonicate_fragment','sonicate_fragment');
  31558. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_recoded_mrna','gene_with_recoded_mrna');
  31559. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methyluridine','two_prime_o_methyluridine');
  31560. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cosmid','cosmid');
  31561. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_rna_interference','silenced_by_rna_interference');
  31562. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_conservative_missense_codon','non_conservative_missense_codon');
  31563. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna','snorna');
  31564. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_transcript','mature_transcript');
  31565. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudouridylation_guide_snorna','pseudouridylation_guide_snorna');
  31566. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_gene','c_gene');
  31567. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('processed_transcript','processed_transcript');
  31568. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('floxed_gene','floxed_gene');
  31569. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spot_42_rna','spot_42_rna');
  31570. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna_clone','cdna_clone');
  31571. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_splice_site','cryptic_splice_site');
  31572. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_gene_segment','pseudogenic_gene_segment');
  31573. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ltr','three_prime_ltr');
  31574. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_ii_intron','group_ii_intron');
  31575. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_mrp_rna_gene','rnase_mrp_rna_gene');
  31576. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('structural_alteration','structural_alteration');
  31577. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pna_oligo','pna_oligo');
  31578. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_sequence','insertion_sequence');
  31579. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('junction','junction');
  31580. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paralogous','paralogous');
  31581. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tna','tna');
  31582. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_two_thiouridine','five_isopentenylaminomethyl_two_thiouridine');
  31583. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nested_tandem_repeat','nested_tandem_repeat');
  31584. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_frameshift','minus_1_frameshift');
  31585. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_three_prime_splice_site','non_canonical_three_prime_splice_site');
  31586. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_non_canonical_start_codon','gene_with_non_canonical_start_codon');
  31587. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_rrna','pseudogenic_rrna');
  31588. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_turn','serine_threonine_turn');
  31589. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_gene','j_gene');
  31590. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_trimethylation_site','h3k27_trimethylation_site');
  31591. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_primary_transcript','strna_primary_transcript');
  31592. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_eliminated_sequence','internal_eliminated_sequence');
  31593. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allelically_excluded_gene','allelically_excluded_gene');
  31594. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('qtl','qtl');
  31595. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_est','three_prime_est');
  31596. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bred_motif','bred_motif');
  31597. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse','reverse');
  31598. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_encoding','mirna_encoding');
  31599. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_2_prime_o_trimethylguanosine','n2_n2_2_prime_o_trimethylguanosine');
  31600. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_product_function_variant','translational_product_function_variant');
  31601. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_alternate_transcription_start_sites','encodes_alternate_transcription_start_sites');
  31602. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_array','gene_array');
  31603. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tetranucleotide_repeat_microsatellite_feature','tetranuc_repeat_microsat');
  31604. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_aminomethyl_two_thiouridine','five_aminomethyl_two_thiouridine');
  31605. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_primary_transcript','monocistronic_primary_transcript');
  31606. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snv','snv');
  31607. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct','direct');
  31608. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile_genetic_element','mobile_genetic_element');
  31609. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_ligand_contact','polypeptide_ligand_contact');
  31610. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biomaterial_region','biomaterial_region');
  31611. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_flanking_region','transposable_element_flanking_region');
  31612. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('symmetric_rna_internal_loop','symmetric_rna_internal_loop');
  31613. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_plus_1_frameshift','mrna_with_plus_1_frameshift');
  31614. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_regulated','transcriptionally_regulated');
  31615. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_intron','five_prime_intron');
  31616. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immune_system_gene_recombination_feature','vertebrate_immune_system_gene_recombination_feature');
  31617. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxyhydroxymethyl_uridine_methyl_ester','five_carboxyhydroxymethyl_uridine_methyl_ester');
  31618. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_transposition','chromosomal_transposition');
  31619. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proplastid_gene','proplastid_gene');
  31620. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_trna_primary_transcript','serine_trna_primary_transcript');
  31621. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attp_site','attp_site');
  31622. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense','antisense');
  31623. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_inverted_repeat_element','terminal_inverted_repeat_element');
  31624. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coiled_coil','coiled_coil');
  31625. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_cluster','v_vdj_cluster');
  31626. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_transcript_by_a_to_i_substitution','edited_transcript_by_a_to_i_substitution');
  31627. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding_primary_transcript','protein_coding_primary_transcript');
  31628. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mite','mite');
  31629. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_splice_site_variant','cryptic_splice_site_variant');
  31630. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion','insertion');
  31631. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('secis_element','secis_element');
  31632. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maxicircle','maxicircle');
  31633. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tss','tss');
  31634. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pedigree_specific_variant','pedigree_specific_variant');
  31635. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteine','cysteine');
  31636. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribothymidine','ribothymidine');
  31637. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_adjacent_residues','non_adjacent_residues');
  31638. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_modification','histone_modification');
  31639. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_ribosome_entry_site','internal_ribosome_entry_site');
  31640. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('outron','outron');
  31641. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_repeat','polypeptide_repeat');
  31642. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert_start','clone_insert_start');
  31643. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attr_site','attr_site');
  31644. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv3_motif','dmv3_motif');
  31645. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped_mrna','capped_mrna');
  31646. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_rearrangement_feature','sequence_rearrangement_feature');
  31647. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_chromosome','apicoplast_chromosome');
  31648. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a_two','beta_turn_type_six_a_two');
  31649. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated','invalidated');
  31650. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valine','valine');
  31651. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_regulated_gene','translationally_regulated_gene');
  31652. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid_insertion','amino_acid_insertion');
  31653. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_targeting_sequence','promoter_targeting_sequence');
  31654. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polinton','polinton');
  31655. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_tag','engineered_tag');
  31656. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_coding_exon_variant','non_coding_exon_variant');
  31657. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylcytidine','five_methylcytidine');
  31658. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl5_acceptor_site','sl5_acceptor_site');
  31659. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positively_autoregulated','positively_autoregulated');
  31660. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudouridine','pseudouridine');
  31661. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amplification_origin','amplification_origin');
  31662. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unoriented_insertional_duplication','unorient_insert_dup');
  31663. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_constitutive','transcriptionally_constitutive');
  31664. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('extrachromosomal_mobile_genetic_element','extrachromosomal_mobile_genetic_element');
  31665. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_origin','variant_origin');
  31666. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_region','utr_region');
  31667. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna','mirna');
  31668. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosine','tyrosine');
  31669. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inr1_motif','inr1_motif');
  31670. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h2b_ubiquitination_site','h2b_ubiquitination_site');
  31671. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_acetyladenosine','n6_acetyladenosine');
  31672. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cis_splice_site','cis_splice_site');
  31673. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('floxed','floxed');
  31674. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_right_handed_type_two','beta_turn_right_handed_type_two');
  31675. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_variant','utr_variant');
  31676. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_terminal_region','c_terminal_region');
  31677. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcription_regulatory_region','transcription_regulatory_region');
  31678. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_leucine','modified_l_leucine');
  31679. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ltr_component','five_prime_ltr_component');
  31680. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_acylation_region','histone_acylation_region');
  31681. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_c_cluster','vdj_c_cluster');
  31682. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_part','chromosome_part');
  31683. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptional_cis_regulatory_region','transcriptional_cis_regulatory_region');
  31684. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanyl_trna','phenylalanyl_trna');
  31685. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_site','insertion_site');
  31686. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gc_rich_promoter_region','gc_rich_promoter_region');
  31687. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping_est_set','overlapping_est_set');
  31688. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_right_handed_type_two','asx_turn_right_handed_type_two');
  31689. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anticodon_loop','anticodon_loop');
  31690. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv5_motif','dmv5_motif');
  31691. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl1_acceptor_site','sl1_acceptor_site');
  31692. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_region','cds_region');
  31693. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulatory_region_variant','regulatory_region_variant');
  31694. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_dimethylation_site','h3k9_dimethylation_site');
  31695. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_gained','stop_gained');
  31696. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomerase_rna_gene','telomerase_rna_gene');
  31697. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_j_c_cluster','v_dj_j_c_cluster');
  31698. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_insert','engineered_insert');
  31699. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_inverted_gene','recombinationally_inverted_gene');
  31700. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('microarray_oligo','microarray_oligo');
  31701. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cassette_array_member','cassette_array_member');
  31702. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_frameshift_variant','plus_1_frameshift_variant');
  31703. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u12_snrna','u12_snrna');
  31704. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_est_or_cdna','supported_by_est_or_cdna');
  31705. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_10_signal','minus_10_signal');
  31706. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert_end','clone_insert_end');
  31707. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inr_motif','inr_motif');
  31708. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_stem_loop_structure','three_prime_stem_loop_structure');
  31709. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rflp_fragment','rflp_fragment');
  31710. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phage_rna_polymerase_promoter','phage_rna_polymerase_promoter');
  31711. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrimidine_transition','pyrimidine_transition');
  31712. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrinsically_unstructured_polypeptide_region','intrinsically_unstructured_polypeptide_region');
  31713. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_2_prime_o_dimethylguanosine','n2_2_prime_o_dimethylguanosine');
  31714. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_loss','exon_loss');
  31715. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('archaeal_intron','archaeal_intron');
  31716. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lna','lna');
  31717. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_junction','exon_junction');
  31718. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t7_rna_polymerase_promoter','t7_rna_polymerase_promoter');
  31719. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_interchromosomal_transposition','invert_inter_transposition');
  31720. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('episome','episome');
  31721. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_insertional_duplication','uninvert_insert_dup');
  31722. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free','free');
  31723. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_difference','sequence_difference');
  31724. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k5_acylation_site','h4k5_acylation_site');
  31725. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_c_cluster','v_d_dj_c_cluster');
  31726. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_conflict','sequence_conflict');
  31727. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nmd_transcript_variant','nmd_transcript_variant');
  31728. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path_clone','tiling_path_clone');
  31729. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iii_intron','group_iii_intron');
  31730. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_glycine','modified_glycine');
  31731. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_alteration','sequence_alteration');
  31732. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyploid','polyploid');
  31733. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mathematically_defined_repeat','mathematically_defined_repeat');
  31734. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_dna_modification','gene_silenced_by_dna_modification');
  31735. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_j_cluster','v_vj_j_cluster');
  31736. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucine_trna_primary_transcript','isoleucine_trna_primary_transcript');
  31737. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_small_subunit_primary_transcript','rrna_small_subunit_primary_transcript');
  31738. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ltr_component','ltr_component');
  31739. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_framshift','plus_2_framshift');
  31740. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_product_structure_variant','translational_product_structure_variant');
  31741. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamic_acid_trna_primary_transcript','glutamic_acid_trna_primary_transcript');
  31742. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_rearranged_at_dna_level','gene_rearranged_at_dna_level');
  31743. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_transcript','edited_transcript');
  31744. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_partial_processing','invalidated_by_partial_processing');
  31745. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_transcript_stability_variant','increased_transcript_stability_variant');
  31746. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequencing_primer','sequencing_primer');
  31747. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_for_gpi_anchor_region','cleaved_for_gpi_anchor_region');
  31748. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_cysteine','modified_l_cysteine');
  31749. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_utr','five_prime_utr');
  31750. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_recognition_site','restriction_enzyme_recognition_site');
  31751. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frt_site','frt_site');
  31752. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_inverted_repeat','terminal_inverted_repeat');
  31753. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere_dna_element_i','centromere_dna_element_i');
  31754. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transition','transition');
  31755. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion_junction','deletion_junction');
  31756. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_right_handed_type_one','beta_turn_right_handed_type_one');
  31757. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_ribosylguanosine_phosphate','two_prime_o_ribosylguanosine_phosphate');
  31758. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carbamoylmethyl_two_prime_o_methyluridine','five_cm_2_prime_o_methU');
  31759. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_transcribed_spacer_region','internal_transcribed_spacer_region');
  31760. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic','dicistronic');
  31761. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_sequence_similarity','supported_by_sequence_similarity');
  31762. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse_primer','reverse_primer');
  31763. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_three_prime_ltr_region','u3_three_prime_ltr_region');
  31764. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamine_trna_primary_transcript','glutamine_trna_primary_transcript');
  31765. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_ii_promoter','rnapol_ii_promoter');
  31766. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping','overlapping');
  31767. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alpha_beta_motif','alpha_beta_motif');
  31768. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_transposable_element','engineered_transposable_element');
  31769. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('forward_primer','forward_primer');
  31770. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attctn_site','attctn_site');
  31771. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_recombination_signal_sequence','five_prime_d_recombination_signal_sequence');
  31772. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u6_snrna','u6_snrna');
  31773. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged_gene','recombinationally_rearranged_gene');
  31774. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_threonylcarbamoyladenosine','n6_threonylcarbamoyladenosine');
  31775. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carbamoylmethyluridine','five_carbamoylmethyluridine');
  31776. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_fragment','cds_fragment');
  31777. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genome','genome');
  31778. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_translational_product_level','increased_translational_product_level');
  31779. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_product_level_variant','translational_product_level_variant');
  31780. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter','promoter');
  31781. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding_gene','protein_coding_gene');
  31782. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_snrna','u5_snrna');
  31783. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wybutosine','wybutosine');
  31784. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylwyosine','methylwyosine');
  31785. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('large_subunit_rrna','large_subunit_rrna');
  31786. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomally_aberrant_genome','chromosomally_aberrant_genome');
  31787. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_2_prime_o_dimethylcytidine','n4_2_prime_o_dimethylcytidine');
  31788. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_t_transition','c_to_t_transition');
  31789. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bidirectional_promoter','bidirectional_promoter');
  31790. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('validated_cdna_clone','validated_cdna_clone');
  31791. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('k_turn_rna_motif','k_turn_rna_motif');
  31792. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_fragment','transcribed_fragment');
  31793. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ust','five_prime_ust');
  31794. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_utr_intron','three_prime_utr_intron');
  31795. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrogene','retrogene');
  31796. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrimidine_to_purine_transversion','pyrimidine_to_purine_transversion');
  31797. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sine_element','sine_element');
  31798. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_rst','five_prime_rst');
  31799. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_intron','utr_intron');
  31800. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_transposition','interchromosomal_transposition');
  31801. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_sequence_secondary_structure','rna_sequence_secondary_structure');
  31802. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_change_in_transcript','complex_change_in_transcript');
  31803. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_transposable_element','engineered_foreign_transposable_element');
  31804. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_rna_viral_sequence','ds_rna_viral_sequence');
  31805. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fosmid','fosmid');
  31806. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_substitution','complex_substitution');
  31807. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('validated','validated');
  31808. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u2_snrna','u2_snrna');
  31809. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('duplication_attribute','duplication_attribute');
  31810. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('caat_signal','caat_signal');
  31811. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_cluster','c_cluster');
  31812. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus_region','consensus_region');
  31813. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immune_system_gene_recombination_spacer','vertebrate_immune_system_gene_recombination_spacer');
  31814. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_restriction_enzyme_junction','three_prime_restriction_enzyme_junction');
  31815. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_trap_construct','gene_trap_construct');
  31816. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_aptamer','rna_aptamer');
  31817. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_induced','transcriptionally_induced');
  31818. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal','intrachromosomal');
  31819. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_localization_signal','nuclear_localization_signal');
  31820. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_region','rescue_region');
  31821. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_site_part','inversion_site_part');
  31822. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_frameshift variant','plus_2_frameshift_variant');
  31823. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('origin_of_replication','origin_of_replication');
  31824. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('standard_draft','standard_draft');
  31825. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k79_dimethylation_site','h3k79_dimethylation_site');
  31826. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_internal_loop','rna_internal_loop');
  31827. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ultracontig','ultracontig');
  31828. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptidyl','peptidyl');
  31829. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_region','polypeptide_region');
  31830. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified_region','epigenetically_modified_region');
  31831. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic_insertion','transgenic_insertion');
  31832. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_antiguide','mirna_antiguide');
  31833. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rearranged_at_dna_level','rearranged_at_dna_level');
  31834. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intergenic_variant','intergenic_variant');
  31835. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_spacer','v_spacer');
  31836. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strand_attribute','strand_attribute');
  31837. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_lost','stop_lost');
  31838. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternatively_spliced','alternatively_spliced');
  31839. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_formyl_two_prime_o_methylcytidine','five_formyl_two_prime_o_methylcytidine');
  31840. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_location','plasmid_location');
  31841. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_bp_start_codon','four_bp_start_codon');
  31842. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_transcription_rate_variant','increased_transcription_rate_variant');
  31843. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged','recombinationally_rearranged');
  31844. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_3d_structural_variant','complex_3d_structural_variant');
  31845. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chimeric_cdna_clone','chimeric_cdna_clone');
  31846. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tasirna_primary_transcript','tasirna_primary_transcript');
  31847. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_transcript','gene_with_dicistronic_transcript');
  31848. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ltr_component','three_prime_ltr_component');
  31849. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retron','retron');
  31850. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autopolyploid','autopolyploid');
  31851. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanine','phenylalanine');
  31852. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translation_regulatory_region','translation_regulatory_region');
  31853. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transit_peptide','transit_peptide');
  31854. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid_deletion','amino_acid_deletion');
  31855. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_28s','rrna_28s');
  31856. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethylinosine','one_two_prime_o_dimethylinosine');
  31857. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonine','threonine');
  31858. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_minor_rna_motif','a_minor_rna_motif');
  31859. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_cluster','j_cluster');
  31860. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dce','dce');
  31861. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('quantitative_variant','quantitative_variant');
  31862. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysosomal_localization_signal','lysosomal_localization_signal');
  31863. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_cluster','d_dj_cluster');
  31864. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_arm','chromosome_arm');
  31865. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kinetoplast_gene','kinetoplast_gene');
  31866. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('line_element','line_element');
  31867. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('solo_ltr','solo_ltr');
  31868. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('external_transcribed_spacer_region','external_transcribed_spacer_region');
  31869. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_transcribed_region','non_transcribed_region');
  31870. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_stem','mirna_stem');
  31871. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_j_c_cluster','dj_j_c_cluster');
  31872. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hyperploid','hyperploid');
  31873. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic','cryptic');
  31874. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_acetylation_site','h3k9_acetylation_site');
  31875. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alpha_helix','alpha_helix');
  31876. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fusion','fusion');
  31877. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_j_cluster','vdj_j_cluster');
  31878. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isowyosine','isowyosine');
  31879. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paracentric_inversion','paracentric_inversion');
  31880. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homing_endonuclease_binding_site','homing_endonuclease_binding_site');
  31881. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tna_oligo','tna_oligo');
  31882. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mini_gene','mini_gene');
  31883. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_fragment','restriction_fragment');
  31884. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base_pair','base_pair');
  31885. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron_antiparallel','inside_intron_antiparallel');
  31886. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_binding_site','dna_binding_site');
  31887. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_cytidine','modified_cytidine');
  31888. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hydrophobic_region_of_peptide','hydrophobic_region_of_peptide');
  31889. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_primary_transcript','polycistronic_primary_transcript');
  31890. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_proline','modified_l_proline');
  31891. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping_feature_set','overlapping_feature_set');
  31892. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_left_handed_type_two','asx_turn_left_handed_type_two');
  31893. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_duplication','interchromosomal_duplication');
  31894. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inframe_codon_loss','inframe_codon_loss');
  31895. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('substitution','substitution');
  31896. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucine','isoleucine');
  31897. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('functional_variant','functional_variant');
  31898. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_recoding_site','three_prime_recoding_site');
  31899. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_stability_variant','transcript_stability_variant');
  31900. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('5kb_upstream_variant','fivekb_upstream_variant');
  31901. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminator_of_type_2_rnapol_iii_promoter','terminator_of_type_2_rnapol_iii_promoter');
  31902. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycine_trna_primary_transcript','glycine_trna_primary_transcript');
  31903. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron_variant','intron_variant');
  31904. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regional_centromere_outer_repeat_region','regional_centromere_outer_repeat_region');
  31905. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('replication_regulatory_region','replication_regulatory_region');
  31906. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mating_type_region','mating_type_region');
  31907. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_heptamer','v_heptamer');
  31908. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dispersed_repeat','dispersed_repeat');
  31909. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer','primer');
  31910. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_domain','polypeptide_domain');
  31911. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wild_type','wild_type');
  31912. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fusion_gene','fusion_gene');
  31913. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_function_variant','transcript_function_variant');
  31914. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_member_region','gene_member_region');
  31915. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginyl_trna','arginyl_trna');
  31916. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compensatory_transcript_secondary_structure_variant','compensatory_transcript_secondary_structure_variant');
  31917. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_base_feature','methylated_base_feature');
  31918. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_intrachromosomal_transposition','uninvert_intra_transposition');
  31919. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_gene','scrna_gene');
  31920. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_18s','rrna_18s');
  31921. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_1','rnapol_iii_promoter_type_1');
  31922. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('point_mutation','point_mutation');
  31923. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudoknot','pseudoknot');
  31924. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_quartet','g_quartet');
  31925. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop','schellmann_loop');
  31926. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_selenocysteine','modified_l_selenocysteine');
  31927. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pna','pna');
  31928. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon','three_prime_coding_exon');
  31929. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endogenous_retroviral_gene','endogenous_retroviral_gene');
  31930. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immunoglobulin_t_cell_receptor_segment','vertebrate_immunoglobulin_t_cell_receptor_segment');
  31931. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_recoded_by_translational_bypass','mrna_recoded_by_translational_bypass');
  31932. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_region','engineered_foreign_region');
  31933. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_encoding','snorna_encoding');
  31934. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_est','five_prime_est');
  31935. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foldback_element','foldback_element');
  31936. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_encoding','srp_rna_encoding');
  31937. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_j_c_cluster','d_j_c_cluster');
  31938. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_c_cluster','dj_c_cluster');
  31939. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_ubiqitination_site','histone_ubiqitination_site');
  31940. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_structural_alteration','complex_structural_alteration');
  31941. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_encoding','rrna_encoding');
  31942. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_recoded_by_codon_redefinition','mrna_recoded_by_codon_redefinition');
  31943. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyluridine','five_methyluridine');
  31944. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_sequence','polya_sequence');
  31945. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('metabolic_island','metabolic_island');
  31946. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homologous','homologous');
  31947. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('immature_peptide_region','immature_peptide_region');
  31948. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h2bk5_monomethylation_site','h2bk5_monomethylation_site');
  31949. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_attribute','sequence_attribute');
  31950. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sirna','sirna');
  31951. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dart_marker','dart_marker');
  31952. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_motif','nucleotide_motif');
  31953. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_translationally_frameshifted','plus_1_translationally_frameshifted');
  31954. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_intron','trna_intron');
  31955. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_noncoding_exon','five_prime_noncoding_exon');
  31956. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_motif','dna_motif');
  31957. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_strand','beta_strand');
  31958. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_oligo','ds_oligo');
  31959. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methyladenosine','one_methyladenosine');
  31960. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oxys_rna','oxys_rna');
  31961. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_motif','asx_motif');
  31962. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_hydroxyuridine','five_hydroxyuridine');
  31963. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_exon','coding_exon');
  31964. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_translational_frameshift','plus_1_translational_frameshift');
  31965. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_formylcytidine','five_formylcytidine');
  31966. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_dimethylation_site','h3k27_dimethylation_site');
  31967. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliced_leader_rna','spliced_leader_rna');
  31968. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_chromosome','mitochondrial_chromosome');
  31969. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_fragment','gene_fragment');
  31970. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_7_2prirme_o_trimethylguanosine','n2_7_2prirme_o_trimethylguanosine');
  31971. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frameshift','frameshift');
  31972. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('propeptide_cleavage_site','propeptide_cleavage_site');
  31973. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyldihydrouridine','five_methyldihydrouridine');
  31974. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid','amino_acid');
  31975. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation_breakpoint','translocation_breakpoint');
  31976. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_5_8s','rrna_5_8s');
  31977. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('helix_turn_helix','helix_turn_helix');
  31978. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('simple_sequence_length_variation','simple_sequence_length_variation');
  31979. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionine','methionine');
  31980. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_loss_of_function_variant','polypeptide_loss_of_function_variant');
  31981. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_gene','transposable_element_gene');
  31982. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('whole_genome_sequence_status','whole_genome_sequence_status');
  31983. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_island','genomic_island');
  31984. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_segment','gene_segment');
  31985. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_gene','snrna_gene');
  31986. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_region','engineered_region');
  31987. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('common_variant','common_variant');
  31988. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptogene','cryptogene');
  31989. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon_noncoding_region','three_prime_coding_exon_noncoding_region');
  31990. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_rna_interference','gene_silenced_by_rna_interference');
  31991. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_interchromosomal_transposition','d_interchr_transposition');
  31992. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_variant_site','natural_variant_site');
  31993. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly','assembly');
  31994. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('major_tss','major_tss');
  31995. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna','trna');
  31996. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_overlapping_peptides','encodes_overlapping_peptides');
  31997. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_conserved_region','nc_conserved_region');
  31998. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('locus_control_region','locus_control_region');
  31999. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('s_gna_oligo','s_gna_oligo');
  32000. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_chromosome','dna_chromosome');
  32001. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_b','beta_turn_type_six_b');
  32002. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('loss_of_heterozygosity','loss_of_heterozygosity');
  32003. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_gene','engineered_gene');
  32004. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wobble_base_pair','wobble_base_pair');
  32005. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_amino_acid_feature','modified_amino_acid_feature');
  32006. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_c_transition','t_to_c_transition');
  32007. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocaton_attribute','translocaton_attribute');
  32008. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_sequence','apicoplast_sequence');
  32009. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_codon_variant','terminal_codon_variant');
  32010. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('irlinv_site','irlinv_site');
  32011. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synthetic_sequence','synthetic_sequence');
  32012. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_1_polypeptide','encodes_1_polypeptide');
  32013. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iia_intron','group_iia_intron');
  32014. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomere','telomere');
  32015. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_intron','interior_intron');
  32016. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_mrna','edited_mrna');
  32017. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_right_handed_three','catmat_right_handed_three');
  32018. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem_duplication','tandem_duplication');
  32019. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_gene','tmrna_gene');
  32020. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_edited_region','pre_edited_region');
  32021. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_hydroxynorvalylcarbamoyladenosine','n6_hydroxynorvalylcarbamoyladenosine');
  32022. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorphic_chromosome','nucleomorphic_chromosome');
  32023. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fragmentary','fragmentary');
  32024. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single','single');
  32025. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('binding_site','binding_site');
  32026. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_methylguanine','seven_methylguanine');
  32027. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('target_site_duplication','target_site_duplication');
  32028. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_gene','vdj_gene');
  32029. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_nucleic_acid','bound_by_nucleic_acid');
  32030. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_localization_signal','peptide_localization_signal');
  32031. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_right_handed_four','catmat_right_handed_four');
  32032. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_acylation_site','h3k27_acylation_site');
  32033. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compound_chromosome','compound_chromosome');
  32034. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_end','coding_end');
  32035. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gap','gap');
  32036. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ligand_binding_site','ligand_binding_site');
  32037. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('upstream_aug_codon','upstream_aug_codon');
  32038. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_transcript','pseudogenic_transcript');
  32039. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('satellite_dna','satellite_dna');
  32040. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_deficiency_plus_duplication','assortment_derived_deficiency_plus_duplication');
  32041. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element','transposable_element');
  32042. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endogenous_retroviral_sequence','endogenous_retroviral_sequence');
  32043. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('microsatellite','microsatellite');
  32044. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_different_polypeptides_different_stop','encodes_different_polypeptides_different_stop');
  32045. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primary_transcript','primary_transcript');
  32046. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus_mrna','consensus_mrna');
  32047. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('membrane_peptide_loop','membrane_peptide_loop');
  32048. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign','so_foreign');
  32049. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rho_independent_bacterial_terminator','rho_independent_bacterial_terminator');
  32050. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u_box','u_box');
  32051. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_deacetylation','gene_silenced_by_histone_deacetylation');
  32052. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_j_c_cluster','vdj_j_c_cluster');
  32053. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cpg_island','cpg_island');
  32054. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('haplotype','haplotype');
  32055. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylinosine','two_prime_o_methylinosine');
  32056. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna','dna');
  32057. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_double_stranded_rna_chromosome','circular_double_stranded_rna_chromosome');
  32058. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_protein_region','mature_protein_region');
  32059. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('b_box','b_box');
  32060. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_zinc_ion_contact_site','polypeptide_zinc_ion_contact_site');
  32061. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_subarray_member','gene_subarray_member');
  32062. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette','gene_cassette');
  32063. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oric','oric');
  32064. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion_breakpoint','deletion_breakpoint');
  32065. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_attribute','insertion_attribute');
  32066. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_plus_2_frameshift','mrna_with_plus_2_frameshift');
  32067. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chip_seq_region','chip_seq_region');
  32068. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_right_handed_type_one','asx_turn_right_handed_type_one');
  32069. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_cluster','transcribed_cluster');
  32070. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosyl_trna','tyrosyl_trna');
  32071. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orthologous','orthologous');
  32072. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('s_gna','s_gna');
  32073. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('canonical_three_prime_splice_site','canonical_three_prime_splice_site');
  32074. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncoding_exon','noncoding_exon');
  32075. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lethal_variant','lethal_variant');
  32076. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minor_tss','minor_tss');
  32077. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_two_prime_o_dimethylcytidine','five_two_prime_o_dimethylcytidine');
  32078. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k36_trimethylation_site','h3k36_trimethylation_site');
  32079. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronuclear_chromosome','macronuclear_chromosome');
  32080. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_translocation','deficient_translocation');
  32081. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('read_pair','read_pair');
  32082. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_with_translational_frameshift','transcript_with_translational_frameshift');
  32083. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('finished_genome','finished_genome');
  32084. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_3','rnapol_iii_promoter_type_3');
  32085. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_transposon','dna_transposon');
  32086. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orf','orf');
  32087. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('right_handed_peptide_helix','right_handed_peptide_helix');
  32088. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_left_right_motif','polypeptide_nest_left_right_motif');
  32089. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('topology_attribute','topology_attribute');
  32090. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirtron','mirtron');
  32091. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_motif','polypeptide_motif');
  32092. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl9_acceptor_site','sl9_acceptor_site');
  32093. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proplastid_sequence','proplastid_sequence');
  32094. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negatively_autoregulated_gene','negatively_autoregulated_gene');
  32095. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retinoic_acid_responsive_element','retinoic_acid_responsive_element');
  32096. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna_encoding','c_d_box_snorna_encoding');
  32097. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_assembly','sequence_assembly');
  32098. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_gene','chromoplast_gene');
  32099. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dcaps_primer','dcaps_primer');
  32100. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_clip','five_prime_clip');
  32101. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('golden_path','golden_path');
  32102. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_acceptor_variant','splice_acceptor_variant');
  32103. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanine','alanine');
  32104. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_peptide_region','cleaved_peptide_region');
  32105. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_j_cluster','v_dj_j_cluster');
  32106. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_region','pseudogenic_region');
  32107. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminator_codon_variant','terminator_codon_variant');
  32108. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylation_guide_snorna','methylation_guide_snorna');
  32109. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_j_c_cluster','v_vj_j_c_cluster');
  32110. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_start_codon','non_canonical_start_codon');
  32111. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_mrna_recoded_by_translational_bypass','gene_with_mrna_recoded_by_translational_bypass');
  32112. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_turn_motif','polypeptide_turn_motif');
  32113. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autocatalytically_spliced_intron','autocatalytically_spliced_intron');
  32114. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile','mobile');
  32115. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem','tandem');
  32116. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron','intron');
  32117. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clip','clip');
  32118. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dye_terminator_read','dye_terminator_read');
  32119. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv4_motif','dmv4_motif');
  32120. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('au_rich_element','au_rich_element');
  32121. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_breakpoint','inversion_breakpoint');
  32122. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dce_siii','dce_siii');
  32123. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_recoding_site','five_prime_recoding_site');
  32124. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_protein_coding','non_protein_coding');
  32125. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile_intron','mobile_intron');
  32126. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment','vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment');
  32127. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_right_handed_type_one','st_turn_right_handed_type_one');
  32128. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna','rrna');
  32129. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron_parallel','inside_intron_parallel');
  32130. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliceosomal_intron','spliceosomal_intron');
  32131. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phagemid','phagemid');
  32132. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_block','editing_block');
  32133. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fragment_assembly','fragment_assembly');
  32134. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_acceptor_piece','tmrna_acceptor_piece');
  32135. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six','beta_turn_type_six');
  32136. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_rst','three_prime_rst');
  32137. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteine_trna_primary_transcript','cysteine_trna_primary_transcript');
  32138. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_gene','post_translationally_regulated_gene');
  32139. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_repressed','transcriptionally_repressed');
  32140. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('crm','crm');
  32141. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cointegrated_plasmid','cointegrated_plasmid');
  32142. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_sequencing_information','polypeptide_sequencing_information');
  32143. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_spacer','three_prime_d_spacer');
  32144. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path_fragment','tiling_path_fragment');
  32145. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural','so_natural');
  32146. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pi_helix','pi_helix');
  32147. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('possible_base_call_error','possible_base_call_error');
  32148. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_truncation','polypeptide_truncation');
  32149. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k14_acetylation_site','h3k14_acetylation_site');
  32150. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('adaptive_island','adaptive_island');
  32151. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uridine_five_oxyacetic_acid','uridine_five_oxyacetic_acid');
  32152. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl7_acceptor_site','sl7_acceptor_site');
  32153. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_translational_frameshift','plus_2_translational_frameshift');
  32154. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_retained_variant','stop_retained_variant');
  32155. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homologous_region','homologous_region');
  32156. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('500b_downstream_variant','fivehundred_b_downstream_variant');
  32157. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_utr','internal_utr');
  32158. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_cytoplasmic_polypeptide_region','non_cytoplasmic_polypeptide_region');
  32159. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_feature','experimental_feature');
  32160. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_chromosome','nuclear_chromosome');
  32161. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exemplar','exemplar');
  32162. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_ii_core_promoter','rnapol_ii_core_promoter');
  32163. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_methylation_site','h3k9_methylation_site');
  32164. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanine_trna_primary_transcript','alanine_trna_primary_transcript');
  32165. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_variation','assortment_derived_variation');
  32166. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_dimethylguanosine','n2_n2_dimethylguanosine');
  32167. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_hook_turn','rna_hook_turn');
  32168. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_spacer_region','transcribed_spacer_region');
  32169. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_gene','plasmid_gene');
  32170. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u14_snorna','u14_snorna');
  32171. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('galactosyl_queuosine','galactosyl_queuosine');
  32172. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_gene','cyanelle_gene');
  32173. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wild_type_rescue_gene','wild_type_rescue_gene');
  32174. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u12_intron','u12_intron');
  32175. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aptamer','aptamer');
  32176. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_mrna','recoded_mrna');
  32177. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nested_transposon','nested_transposon');
  32178. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tf_binding_site_variant','tf_binding_site_variant');
  32179. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronuclear_sequence','macronuclear_sequence');
  32180. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ust','ust');
  32181. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteine','selenocysteine');
  32182. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_out_of_frame_polypeptide_c_terminal','elongated_out_of_frame_polypeptide_c_terminal');
  32183. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_mrna','gene_with_dicistronic_mrna');
  32184. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('match_part','match_part');
  32185. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorphic_sequence','nucleomorphic_sequence');
  32186. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_gene','apicoplast_gene');
  32187. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulon','regulon');
  32188. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_vector','plasmid_vector');
  32189. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_tryptophan','modified_l_tryptophan');
  32190. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_chromosome_arm','free_chromosome_arm');
  32191. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_primary_transcript','srp_rna_primary_transcript');
  32192. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn','asx_turn');
  32193. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anchor_binding_site','anchor_binding_site');
  32194. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_primary_transcript','rrna_primary_transcript');
  32195. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reading_frame','reading_frame');
  32196. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k23_acylation site','h3k23_acylation_site');
  32197. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternal_variant','maternal_variant');
  32198. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dhu_loop','dhu_loop');
  32199. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_acetylcytidine','n4_acetylcytidine');
  32200. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_feature_attribute','experimental_feature_attribute');
  32201. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_gene','silenced_gene');
  32202. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_genomic_insert','cloned_genomic_insert');
  32203. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron_gain','intron_gain');
  32204. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_sequence_secondary_structure','dna_sequence_secondary_structure');
  32205. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna_match','cdna_match');
  32206. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_flanking_region','five_prime_flanking_region');
  32207. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysyl_trna','pyrrolysyl_trna');
  32208. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_cis_hydroxyisopentenyl_adenosine','two_methylthio_n6_cis_hydroxyisopentenyl_adenosine');
  32209. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_component','repeat_component');
  32210. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methyl_three_three_amino_three_carboxypropyl_pseudouridine','one_methyl_3_3_amino_three_carboxypropyl_pseudouridine');
  32211. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rpra_rna','rpra_rna');
  32212. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_sensitive_site','nuclease_sensitive_site');
  32213. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conservative_amino_acid_substitution','conservative_amino_acid_substitution');
  32214. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon_noncoding_region','five_prime_coding_exon_noncoding_region');
  32215. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter','rnapol_iii_promoter');
  32216. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophan_trna_primary_transcript','try_trna_primary_transcript');
  32217. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncontiguous_finished','noncontiguous_finished');
  32218. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('region','region');
  32219. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tf_binding_site','tf_binding_site');
  32220. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attl_site','attl_site');
  32221. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_plasmid','natural_plasmid');
  32222. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('upd','upd');
  32223. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conservative_missense_codon','conservative_missense_codon');
  32224. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_n6_dimethyladenosine','n6_n6_dimethyladenosine');
  32225. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('laevosynaptic_chromosome','laevosynaptic_chromosome');
  32226. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_structural_element','chromosomal_structural_element');
  32227. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette_array','gene_cassette_array');
  32228. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immunoglobulin_t_cell_receptor_gene_cluster','vertebrate_immunoglobulin_t_cell_receptor_gene_cluster');
  32229. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('canonical_five_prime_splice_site','canonical_five_prime_splice_site');
  32230. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_protein','bound_by_protein');
  32231. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sts_map','sts_map');
  32232. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dnazyme','dnazyme');
  32233. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silent_mutation','silent_mutation');
  32234. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_j_cluster','v_d_j_cluster');
  32235. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('distal_promoter_element','distal_promoter_element');
  32236. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bipartite_duplication','bipartite_duplication');
  32237. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hydroxywybutosine','hydroxywybutosine');
  32238. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dihydrouridine','dihydrouridine');
  32239. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon_coding_region','five_prime_coding_exon_coding_region');
  32240. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_left_handed_type_one','beta_turn_left_handed_type_one');
  32241. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k4_trimethylation','h3k4_trimethylation');
  32242. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_codon','recoded_codon');
  32243. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted','predicted');
  32244. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('resolution_site','resolution_site');
  32245. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_cyano_seven_deazaguanosine','seven_cyano_seven_deazaguanosine');
  32246. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('disease_associated_variant','disease_associated_variant');
  32247. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conformational_switch','conformational_switch');
  32248. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulated','regulated');
  32249. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_repeat','inverted_repeat');
  32250. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_a_transversion','t_to_a_transversion');
  32251. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attc_site','attc_site');
  32252. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methyladenosine','two_methyladenosine');
  32253. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cross_genome_match','cross_genome_match');
  32254. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem_repeat','tandem_repeat');
  32255. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_loss','copy_number_loss');
  32256. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense_primary_transcript','antisense_primary_transcript');
  32257. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_collection','sequence_collection');
  32258. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_polyadenylated_mrna','gene_with_polyadenylated_mrna');
  32259. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_i_promoter','rnapol_i_promoter');
  32260. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methyluridine','three_methyluridine');
  32261. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('start_codon','start_codon');
  32262. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrotransposon','retrotransposon');
  32263. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_in_frame_polypeptide_c_terminal','elongated_in_frame_polypeptide_c_terminal');
  32264. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_gene','v_gene');
  32265. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_dna','chloroplast_dna');
  32266. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negative_sense_ssrna_viral_sequence','negative_sense_ssrna_viral_sequence');
  32267. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer_binding_site','primer_binding_site');
  32268. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_box','c_box');
  32269. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid','plasmid');
  32270. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biological_region','biological_region');
  32271. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_a_transition','g_to_a_transition');
  32272. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_five_prime_splice_site','non_canonical_five_prime_splice_site');
  32273. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna_primary_transcript','c_d_box_snorna_primary_transcript');
  32274. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_region','trna_region');
  32275. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_cis_hydroxyisopentenyl_adenosine','n6_cis_hydroxyisopentenyl_adenosine');
  32276. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_sequence','chloroplast_sequence');
  32277. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_frequency','variant_frequency');
  32278. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_region','exon_region');
  32279. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_five_prime_ltr_region','r_five_prime_ltr_region');
  32280. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_j_c_cluster','v_j_c_cluster');
  32281. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_three_prime_ltr_region','r_three_prime_ltr_region');
  32282. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna','snrna');
  32283. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylinosine','one_methylinosine');
  32284. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inframe_codon_gain','inframe_codon_gain');
  32285. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_gene_recombination_feature','j_gene_recombination_feature');
  32286. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_structural_motif','polypeptide_structural_motif');
  32287. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conserved_region','conserved_region');
  32288. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl3_acceptor_site','sl3_acceptor_site');
  32289. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('remark','remark');
  32290. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fixed_variant','fixed_variant');
  32291. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_dna_contact','polypeptide_dna_contact');
  32292. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon','codon');
  32293. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_23s','rrna_23s');
  32294. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_gain_of_function_variant','polypeptide_gain_of_function_variant');
  32295. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna','mrna');
  32296. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycyl_trna','glycyl_trna');
  32297. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_sequence','cyanelle_sequence');
  32298. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_independently_known','cds_independently_known');
  32299. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insulator','insulator');
  32300. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positive_sense_ssrna_viral_sequence','positive_sense_ssrna_viral_sequence');
  32301. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sticky_end_restriction_enzyme_cleavage_site','sticky_end_restriction_enzyme_cleavage_site');
  32302. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('expressed_sequence_match','expressed_sequence_match');
  32303. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('possible_assembly_error','possible_assembly_error');
  32304. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_snorna','u3_snorna');
  32305. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_manganese_ion_contact_site','polypeptide_manganese_ion_contact_site');
  32306. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k16_acylation_site','h4k16_acylation_site');
  32307. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_t_transversion','g_to_t_transversion');
  32308. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_feature_of_rearranged_gene','recombination_feature_of_rearranged_gene');
  32309. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon_coding_region','three_prime_coding_exon_coding_region');
  32310. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_primary_transcript','tmrna_primary_transcript');
  32311. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_cdna','single_stranded_cdna');
  32312. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimentally_determined','experimentally_determined');
  32313. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_exon','pseudogenic_exon');
  32314. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u2_intron','u2_intron');
  32315. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome','chromosome');
  32316. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_alternately_spliced_transcripts','encodes_alternately_spliced_transcripts');
  32317. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aberrant_processed_transcript','aberrant_processed_transcript');
  32318. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_change_of_translational_product_variant','complex_change_of_translational_product_variant');
  32319. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gna','gna');
  32320. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dsra_rna','dsra_rna');
  32321. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron_domain','intron_domain');
  32322. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_predicted','cds_predicted');
  32323. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_asparagine','modified_l_asparagine');
  32324. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inframe_variant','inframe_variant');
  32325. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_nonamer','five_prime_d_nonamer');
  32326. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl2_acceptor_site','sl2_acceptor_site');
  32327. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_localization_variant','polypeptide_localization_variant');
  32328. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dce_si','dce_si');
  32329. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_primary_transcript','snrna_primary_transcript');
  32330. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation','translocation');
  32331. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_methylation_site','h3k27_methylation_site');
  32332. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_phenylalanine','modified_l_phenylalanine');
  32333. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lincrna','lincrna');
  32334. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_valine','modified_l_valine');
  32335. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('yac','yac');
  32336. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('signal_peptide','signal_peptide');
  32337. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_ltr_region','r_ltr_region');
  32338. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_gene','srp_rna_gene');
  32339. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_polypeptide_n_terminal','elongated_polypeptide_n_terminal');
  32340. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_hotspot','recombination_hotspot');
  32341. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_c_cluster','v_dj_c_cluster');
  32342. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('viral_sequence','viral_sequence');
  32343. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_terminal_inverted_repeat','five_prime_terminal_inverted_repeat');
  32344. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyl_two_thiouridine','five_mcm_2_thiouridine');
  32345. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited','edited');
  32346. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('breu_motif','breu_motif');
  32347. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_start','coding_start');
  32348. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_monomethylation_site','h3k9_monomethylation_site');
  32349. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_utr','three_prime_utr');
  32350. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dpe1_motif','dpe1_motif');
  32351. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_tyrosine','modified_l_tyrosine');
  32352. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_j_c_cluster','v_d_j_c_cluster');
  32353. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_methylation','silenced_by_histone_methylation');
  32354. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_inversion','deficient_inversion');
  32355. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_transcript_level_variant','decreased_transcript_level_variant');
  32356. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thiouridine','two_thiouridine');
  32357. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylation_variant','polyadenylation_variant');
  32358. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_polymerase_iii_tata_box','rna_polymerase_iii_tata_box');
  32359. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thio_two_prime_o_methyluridine','two_thio_two_prime_o_methyluridine');
  32360. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k18_acetylation_site','h3k18_acetylation_site');
  32361. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_sequence','leucoplast_sequence');
  32362. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds','cds');
  32363. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_signal_sequence','polya_signal_sequence');
  32364. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micronuclear_sequence','micronuclear_sequence');
  32365. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamyl_trna','glutamyl_trna');
  32366. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_monomethylation_site','h3k27_monomethylation_site');
  32367. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_2_frameshift_variant','minus_2_frameshift_variant');
  32368. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_gene','strna_gene');
  32369. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternally_imprinted_gene','paternally_imprinted_gene');
  32370. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_chromosome','rna_chromosome');
  32371. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ndm3_motif','ndm3_motif');
  32372. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u1_snrna','u1_snrna');
  32373. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_hydroxymethylcytidine','five_hydroxymethylcytidine');
  32374. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_feature','recombination_feature');
  32375. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_disjoint_polypeptides','encodes_disjoint_polypeptides');
  32376. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated','post_translationally_regulated');
  32377. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_fusion_gene','engineered_fusion_gene');
  32378. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_recombination_signal_sequence','three_prime_d_recombination_signal_sequence');
  32379. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intermediate','intermediate');
  32380. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_calcium_ion_contact_site','polypeptide_calcium_ion_contact_site');
  32381. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('syntenic_region','syntenic_region');
  32382. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_collection','variant_collection');
  32383. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_splice_donor','cryptic_splice_donor');
  32384. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly_error_correction','assembly_error_correction');
  32385. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sugar_edge_base_pair','sugar_edge_base_pair');
  32386. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_gene','engineered_foreign_gene');
  32387. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k4_monomethylation_site','h3k4_monomethylation_site');
  32388. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_acetyl_2_prime_o_methylcytidine','n4_acetyl_2_prime_o_methylcytidine');
  32389. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted_by_ab_initio_computation','predicted_by_ab_initio_computation');
  32390. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_secondary_structure','polypeptide_secondary_structure');
  32391. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ncrna_gene','ncrna_gene');
  32392. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_junction_loop','rna_junction_loop');
  32393. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('haplotype_block','haplotype_block');
  32394. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oriv','oriv');
  32395. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_collection','peptide_collection');
  32396. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ambisense_ssrna_viral_sequence','ambisense_ssrna_viral_sequence');
  32397. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('morpholino_oligo','morpholino_oligo');
  32398. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere','centromere');
  32399. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified_gene','epigenetically_modified_gene');
  32400. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_inversion','chromosomal_inversion');
  32401. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_35_signal','minus_35_signal');
  32402. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_two_prime_o_dimethyluridine','three_two_prime_o_dimethyluridine');
  32403. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_thiouridine','four_thiouridine');
  32404. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcription_end_site','transcription_end_site');
  32405. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pirna_gene','pirna_gene');
  32406. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_mirna','pre_mirna');
  32407. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteinyl_trna','cysteinyl_trna');
  32408. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_left_handed_three','catmat_left_handed_three');
  32409. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_splice_acceptor','cryptic_splice_acceptor');
  32410. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop_seven','schellmann_loop_seven');
  32411. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_j_c_cluster','v_vdj_j_c_cluster');
  32412. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_insertion_site','transposable_element_insertion_site');
  32413. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation_element','translocation_element');
  32414. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_primary_transcript_region','mirna_primary_transcript_region');
  32415. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orphan_cds','orphan_cds');
  32416. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_mrna','monocistronic_mrna');
  32417. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_transposable_element','natural_transposable_element');
  32418. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('golden_path_fragment','golden_path_fragment');
  32419. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lipoprotein_signal_peptide','lipoprotein_signal_peptide');
  32420. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginine','arginine');
  32421. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_double_stranded_rna_chromosome','linear_double_stranded_rna_chromosome');
  32422. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k8_acylation site','h4k8_acylation_site');
  32423. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_large_subunit_primary_transcript','rrna_large_subunit_primary_transcript');
  32424. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('irrinv_site','irrinv_site');
  32425. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plastid_sequence','plastid_sequence');
  32426. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base_call_error_correction','base_call_error_correction');
  32427. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integrated_plasmid','integrated_plasmid');
  32428. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_methionine','modified_l_methionine');
  32429. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_single_stranded_rna_chromosome','linear_single_stranded_rna_chromosome');
  32430. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_sequence','chromoplast_sequence');
  32431. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proximal_promoter_element','proximal_promoter_element');
  32432. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig_read','contig_read');
  32433. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_trap_construct','promoter_trap_construct');
  32434. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_redefined_as_selenocysteine','stop_codon_redefined_as_selenocysteine');
  32435. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_methylguanosine','seven_methylguanosine');
  32436. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn','gamma_turn');
  32437. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna','tmrna');
  32438. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionyl_trna','methionyl_trna');
  32439. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synonymous_codon','synonymous_codon');
  32440. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna','cdna');
  32441. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl4_acceptor_site','sl4_acceptor_site');
  32442. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_binding_site','nuclease_binding_site');
  32443. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uridine_five_oxyacetic_acid_methyl_ester','uridine_five_oxyacetic_acid_methyl_ester');
  32444. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_race_clone','three_prime_race_clone');
  32445. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_double_stranded_dna_chromosome','circular_double_stranded_dna_chromosome');
  32446. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus','consensus');
  32447. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positively_autoregulated_gene','positively_autoregulated_gene');
  32448. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tss_region','tss_region');
  32449. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_histidine','modified_l_histidine');
  32450. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unitary_pseudogene','unitary_pseudogene');
  32451. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_metal_contact','polypeptide_metal_contact');
  32452. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integron','integron');
  32453. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_loop','d_loop');
  32454. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decayed_exon','decayed_exon');
  32455. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_signal_sequence','recombination_signal_sequence');
  32456. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_inosine','modified_inosine');
  32457. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_three_prime_overlap','three_prime_three_prime_overlap');
  32458. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_j_cluster','v_j_cluster');
  32459. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_five_prime_overlap','three_prime_five_prime_overlap');
  32460. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_regulatory_region','recombination_regulatory_region');
  32461. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop','beta_bulge_loop');
  32462. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_cleavage_junction','restriction_enzyme_cleavage_junction');
  32463. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('blunt_end_restriction_enzyme_cleavage_junction','blunt_end_restriction_enzyme_cleavage_junction');
  32464. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intergenic_region','intergenic_region');
  32465. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv2_motif','dmv2_motif');
  32466. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_mutation','intrachromosomal_mutation');
  32467. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense_rna','antisense_rna');
  32468. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_feature','sequence_feature');
  32469. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_glycinylcarbamoyladenosine','n6_glycinylcarbamoyladenosine');
  32470. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn_classic','gamma_turn_classic');
  32471. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_cis_splice_site','three_prime_cis_splice_site');
  32472. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rapd','rapd');
  32473. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_ring_chromosome','inverted_ring_chromosome');
  32474. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cca_tail','cca_tail');
  32475. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_double_stranded_dna_chromosome','linear_double_stranded_dna_chromosome');
  32476. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_five_prime_ltr_region','u5_five_prime_ltr_region');
  32477. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bruno_response_element','bruno_response_element');
  32478. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_g_transversion','t_to_g_transversion');
  32479. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_a_transversion','c_to_a_transversion');
  32480. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronucleus_destined_segment','macronucleus_destined_segment');
  32481. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('distant_three_prime_recoding_signal','distant_three_prime_recoding_signal');
  32482. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_edited_mrna','pre_edited_mrna');
  32483. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('p_element','p_element');
  32484. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pac','pac');
  32485. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_fusion','gene_fusion');
  32486. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base','base');
  32487. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon_redefined','codon_redefined');
  32488. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_mrna','polycistronic_mrna');
  32489. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon_variant','codon_variant');
  32490. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyl_two_prime_o_methyluridine','five_methoxycarbonylmethyl_two_prime_o_methyluridine');
  32491. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('match','match');
  32492. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_stop_codon_read_through','gene_with_stop_codon_read_through');
  32493. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparaginyl_trna','asparaginyl_trna');
  32494. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonyl_trna','threonyl_trna');
  32495. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_five_prime_ltr_region','u3_five_prime_ltr_region');
  32496. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ltr','five_prime_ltr');
  32497. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_gene','vj_gene');
  32498. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rho_dependent_bacterial_terminator','rho_dependent_bacterial_terminator');
  32499. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_methylguanosine','n2_methylguanosine');
  32500. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_flanking_region','three_prime_flanking_region');
  32501. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomically_contaminated_cdna_clone','genomically_contaminated_cdna_clone');
  32502. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_guide_sequence','internal_guide_sequence');
  32503. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_target_site','mirna_target_site');
  32504. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_three_prime_ltr_region','u5_three_prime_ltr_region');
  32505. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('undermodified_hydroxywybutosine','undermodified_hydroxywybutosine');
  32506. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('introgressed_chromosome_region','introgressed_chromosome_region');
  32507. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_frameshifted','translationally_frameshifted');
  32508. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced','trans_spliced');
  32509. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylation_guide_snorna_primary_transcript','methylation_guide_snorna_primary_transcript');
  32510. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucine','leucine');
  32511. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_deletion','chromosomal_deletion');
  32512. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_uridine','five_isopentenylaminomethyl_uridine');
  32513. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon','stop_codon');
  32514. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_threonyl_carbamoyladenosine','two_methylthio_n6_threonyl_carbamoyladenosine');
  32515. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_polyadenylation_variant','decreased_polyadenylation_variant');
  32516. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biochemical_region_of_peptide','biochemical_region_of_peptide');
  32517. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interband','interband');
  32518. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_constraint_sequence','dna_constraint_sequence');
  32519. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert','clone_insert');
  32520. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snp','snp');
  32521. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_chromosome','chromoplast_chromosome');
  32522. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_25s','rrna_25s');
  32523. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tata_box','tata_box');
  32524. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plastid_gene','plastid_gene');
  32525. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_left_handed_type_one','asx_turn_left_handed_type_one');
  32526. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_uridine','modified_uridine');
  32527. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dce_sii','dce_sii');
  32528. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intramembrane_polypeptide_region','intramembrane_polypeptide_region');
  32529. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysyl_trna','lysyl_trna');
  32530. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rr_tract','rr_tract');
  32531. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_primary_transcript_region','rrna_primary_transcript_region');
  32532. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k20_monomethylation_site','h4k20_monomethylation_site');
  32533. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_dna_viral_sequence','ds_dna_viral_sequence');
  32534. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternatively_spliced_transcript','alternatively_spliced_transcript');
  32535. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_copper_ion_contact_site','polypeptide_copper_ion_contact_site');
  32536. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_encoding','scrna_encoding');
  32537. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_duplication','chromosomal_duplication');
  32538. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone','clone');
  32539. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_isoleucine','modified_l_isoleucine');
  32540. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_subarray','gene_subarray');
  32541. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hetero_compound_chromosome','hetero_compound_chromosome');
  32542. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_transcript','dicistronic_transcript');
  32543. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inactive_ligand_binding_site','inactive_ligand_binding_site');
  32544. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_dna_methylation','silenced_by_dna_methylation');
  32545. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl6_acceptor_site','sl6_acceptor_site');
  32546. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_loop','t_loop');
  32547. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('targeting_vector','targeting_vector');
  32548. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thiocytidine','two_thiocytidine');
  32549. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_serine','modified_l_serine');
  32550. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna','srp_rna');
  32551. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_repeat_recoding_signal','three_prime_repeat_recoding_signal');
  32552. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rate_of_transcription_variant','rate_of_transcription_variant');
  32553. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylguanosine','two_prime_o_methylguanosine');
  32554. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_binding_motif','polypeptide_binding_motif');
  32555. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged_vertebrate_immune_system_gene','recombinationally_rearranged_vertebrate_immune_system_gene');
  32556. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_box','a_box');
  32557. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splicing_variant','splicing_variant');
  32558. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylguanosine','one_methylguanosine');
  32559. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_glutamine','modified_l_glutamine');
  32560. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant','sequence_variant');
  32561. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_length_variation','sequence_length_variation');
  32562. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_encoding','strna_encoding');
  32563. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_frameshift','plus_1_frameshift');
  32564. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('topologically_defined_region','topologically_defined_region');
  32565. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_cds','edited_cds');
  32566. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_modification','gene_silenced_by_histone_modification');
  32567. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('e_box_motif','e_box_motif');
  32568. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternal_uniparental_disomy','paternal_uniparental_disomy');
  32569. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('small_subunit_rrna','small_subunit_rrna');
  32570. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dnasei_hypersensitive_site','dnasei_hypersensitive_site');
  32571. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_j_c_cluster','v_d_dj_j_c_cluster');
  32572. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compound_chromosome_arm','compound_chromosome_arm');
  32573. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('score','score');
  32574. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('feature_attribute','feature_attribute');
  32575. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_match','protein_match');
  32576. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('downstream_gene_variant','downstream_gene_variant');
  32577. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl10_accceptor_site','sl10_accceptor_site');
  32578. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_variation','chromosome_variation');
  32579. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_motif','serine_threonine_motif');
  32580. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_box_type_1','a_box_type_1');
  32581. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allelically_excluded','allelically_excluded');
  32582. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_aneuploid','assortment_derived_aneuploid');
  32583. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rare_variant','rare_variant');
  32584. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_two_prime_o_methyluridine','five_isopentenylaminomethyl_two_prime_o_methyluridine');
  32585. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regional_centromere_central_core','regional_centromere_central_core');
  32586. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gna_oligo','gna_oligo');
  32587. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_transcript_variant','nc_transcript_variant');
  32588. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_variation','copy_number_variation');
  32589. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced','silenced');
  32590. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methylcytidine','three_methylcytidine');
  32591. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dexstrosynaptic_chromosome','dexstrosynaptic_chromosome');
  32592. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_insertional_duplication','inverted_insertional_duplication');
  32593. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_mini_gene','rescue_mini_gene');
  32594. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_left_handed_four','catmat_left_handed_four');
  32595. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternate_sequence_site','alternate_sequence_site');
  32596. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_iron_ion_contact_site','polypeptide_iron_ion_contact_site');
  32597. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_t_transition_at_pcpg_site','c_to_t_transition_at_pcpg_site');
  32598. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_molybdenum_ion_contact_site','polypeptide_molybdenum_ion_contact_site');
  32599. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanine_trna_primary_transcript','phe_trna_primary_transcript');
  32600. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_translational_product_level','decreased_translational_product_level');
  32601. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna_primary_transcript','h_aca_box_snorna_primary_transcript');
  32602. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_gna','r_gna');
  32603. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_sequence_variant','coding_sequence_variant');
  32604. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_partial_loss_of_function','polypeptide_partial_loss_of_function');
  32605. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_restriction_enzyme_junction','five_prime_restriction_enzyme_junction');
  32606. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_transposition','intrachromosomal_transposition');
  32607. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_a','methylated_a');
  32608. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_16s','rrna_16s');
  32609. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('disease_causing_variant','disease_causing_variant');
  32610. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_methylcytidine','n4_methylcytidine');
  32611. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('riboswitch','riboswitch');
  32612. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('duplicated_pseudogene','duplicated_pseudogene');
  32613. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_duplication','assortment_derived_duplication');
  32614. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_regulatory_element','chromosomal_regulatory_element');
  32615. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_five_prime_overlap','five_prime_five_prime_overlap');
  32616. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_function_variant','polypeptide_function_variant');
  32617. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribozymic','ribozymic');
  32618. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_bipartite_deficiency','inversion_derived_bipartite_deficiency');
  32619. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_genomic_contamination','invalidated_by_genomic_contamination');
  32620. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_genome','variant_genome');
  32621. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_j_cluster','vj_j_cluster');
  32622. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_number_variation','chromosome_number_variation');
  32623. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_attribute','gene_attribute');
  32624. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uag_stop_codon_signal','uag_stop_codon_signal');
  32625. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_match','nucleotide_match');
  32626. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_mirna_variant','mature_mirna_variant');
  32627. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_left_handed_type_two','st_turn_left_handed_type_two');
  32628. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified','epigenetically_modified');
  32629. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_deficiency_plus_duplication','inversion_derived_deficiency_plus_duplication');
  32630. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyl_two_selenouridine','five_methylaminomethyl_two_selenouridine');
  32631. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartic_acid_trna_primary_transcript','aspartic_acid_trna_primary_transcript');
  32632. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_mt_pseudogene','nuclear_mt_pseudogene');
  32633. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exonic_splice_enhancer','exonic_splice_enhancer');
  32634. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u4_snrna','u4_snrna');
  32635. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('csrb_rsmb_rna','csrb_rsmb_rna');
  32636. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_1_intron_homing_endonuclease_target_region','group_1_intron_homing_endonuclease_target_region');
  32637. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('crispr','crispr');
  32638. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_gene','snorna_gene');
  32639. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_junction','trans_splice_junction');
  32640. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanking_three_prime_quadruplet_recoding_signal','flanking_three_prime_quadruplet_recoding_signal');
  32641. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_j_cluster','v_vdj_j_cluster');
  32642. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cassette_pseudogene','cassette_pseudogene');
  32643. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('incomplete_terminal_codon_variant','incomplete_terminal_codon_variant');
  32644. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_modification','silenced_by_histone_modification');
  32645. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_gene','proviral_gene');
  32646. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxyhydroxymethyl_uridine','five_carboxyhydroxymethyl_uridine');
  32647. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mt_gene','mt_gene');
  32648. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_rna_chromosome','single_stranded_rna_chromosome');
  32649. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoding_stimulatory_region','recoding_stimulatory_region');
  32650. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_taurinomethyluridine','five_taurinomethyluridine');
  32651. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_threonine','modified_l_threonine');
  32652. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_cluster','v_d_dj_cluster');
  32653. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synthetic_oligo','synthetic_oligo');
  32654. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('purine_to_pyrimidine_transversion','purine_to_pyrimidine_transversion');
  32655. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_variant','editing_variant');
  32656. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antiparallel_beta_strand','antiparallel_beta_strand');
  32657. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('central_hydrophobic_region_of_signal_peptide','central_hydrophobic_region_of_signal_peptide');
  32658. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integrated_mobile_genetic_element','integrated_mobile_genetic_element');
  32659. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('parallel_beta_strand','parallel_beta_strand');
  32660. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_cluster','v_dj_cluster');
  32661. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dre_motif','dre_motif');
  32662. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_ltr_retrotransposon','non_ltr_retrotransposon');
  32663. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_gna_oligo','r_gna_oligo');
  32664. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autoregulated','autoregulated');
  32665. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_lysine','modified_l_lysine');
  32666. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac_end','bac_end');
  32667. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysine','pyrrolysine');
  32668. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('high_quality_draft','high_quality_draft');
  32669. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysine','lysine');
  32670. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_polypeptide','elongated_polypeptide');
  32671. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unique_variant','unique_variant');
  32672. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_protein_contact','protein_protein_contact');
  32673. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_attribute','inversion_attribute');
  32674. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_binding_site','nucleotide_binding_site');
  32675. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_site','splice_site');
  32676. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_synonymous_codon','non_synonymous_codon');
  32677. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('5kb_downstream_variant','fivekb_downstream_variant');
  32678. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_translocation','chromosomal_translocation');
  32679. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epitope','epitope');
  32680. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allele','allele');
  32681. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_n4_2_prime_o_trimethylcytidine','n4_n4_2_prime_o_trimethylcytidine');
  32682. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_ltr_region','u5_ltr_region');
  32683. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paired_end_fragment','paired_end_fragment');
  32684. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_gene','rescue_gene');
  32685. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic_transposable_element','transgenic_transposable_element');
  32686. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_conserved_region','polypeptide_conserved_region');
  32687. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sts','sts');
  32688. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_c_transversion','a_to_c_transversion');
  32689. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('class_ii_rna','class_ii_rna');
  32690. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nonamer_of_recombination_feature_of_vertebrate_immune_system_gene','nonamer_of_recombination_feature_of_vertebrate_im_sys_gene');
  32691. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unedited_region','unedited_region');
  32692. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lambda_vector','lambda_vector');
  32693. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene','gene');
  32694. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanyl_trna','alanyl_trna');
  32695. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid_substitution','amino_acid_substitution');
  32696. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('virtual_sequence','virtual_sequence');
  32697. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iib_intron','group_iib_intron');
  32698. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrotransposed','retrotransposed');
  32699. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_minus_2_frameshift','mrna_with_minus_2_frameshift');
  32700. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymer_attribute','polymer_attribute');
  32701. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autosynaptic_chromosome','autosynaptic_chromosome');
  32702. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_helix','peptide_helix');
  32703. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('partially_processed_cdna_clone','partially_processed_cdna_clone');
  32704. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rst_match','rst_match');
  32705. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternally_imprinted','paternally_imprinted');
  32706. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted_gene','predicted_gene');
  32707. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('x_element_combinatorial_repeat','x_element_combinatorial_repeat');
  32708. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('robertsonian_fusion','robertsonian_fusion');
  32709. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylpseudouridine','two_prime_o_methylpseudouridine');
  32710. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pericentric_inversion','pericentric_inversion');
  32711. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartyl_trna','aspartyl_trna');
  32712. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna','strna');
  32713. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_intron','three_prime_intron');
  32714. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear','linear');
  32715. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_nonamer','j_nonamer');
  32716. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_t_transversion','a_to_t_transversion');
  32717. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('idna','idna');
  32718. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_7_trimethylguanosine','n2_n2_7_trimethylguanosine');
  32719. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_chromosomal_mutation','complex_chromosomal_mutation');
  32720. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_deficiency_plus_aneuploid','inversion_derived_deficiency_plus_aneuploid');
  32721. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k4_methylation_site','h3k4_methylation_site');
  32722. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asymmetric_rna_internal_loop','asymmetric_rna_internal_loop');
  32723. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion','deletion');
  32724. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k79_monomethylation_site','h3k79_monomethylation_site');
  32725. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyclic_translocation','cyclic_translocation');
  32726. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ars','ars');
  32727. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutaminyl_trna','glutaminyl_trna');
  32728. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allopolyploid','allopolyploid');
  32729. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('replicon','replicon');
  32730. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylcytidine','two_prime_o_methylcytidine');
  32731. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regional_centromere','regional_centromere');
  32732. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_left_handed_type_one','st_turn_left_handed_type_one');
  32733. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paralogous_region','paralogous_region');
  32734. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_transcript_region','mature_transcript_region');
  32735. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_frameshift','mrna_with_frameshift');
  32736. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reference_genome','reference_genome');
  32737. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unoriented_interchromosomal_transposition','unoriented_interchromosomal_transposition');
  32738. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_j_cluster','d_dj_j_cluster');
  32739. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maxicircle_gene','maxicircle_gene');
  32740. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_right_handed_type_two','st_turn_right_handed_type_two');
  32741. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_encoding','snrna_encoding');
  32742. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('annotation_directed_improved_draft','annotation_directed_improved_draft');
  32743. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_spacer','five_prime_d_spacer');
  32744. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('read','read');
  32745. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginine_trna_primary_transcript','arg_trna_primary_transcript');
  32746. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oligo_u_tail','oligo_u_tail');
  32747. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoding_pseudoknot','recoding_pseudoknot');
  32748. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyl_two_thiouridine','five_mam_2_thiouridine');
  32749. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic','monocistronic');
  32750. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('3d_polypeptide_structure_variant','threed_polypeptide_structure_variant');
  32751. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transmembrane_polypeptide_region','transmembrane_polypeptide_region');
  32752. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_processing_variant','transcript_processing_variant');
  32753. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vector_replicon','vector_replicon');
  32754. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternal_uniparental_disomy','maternal_uniparental_disomy');
  32755. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrosequenced_read','pyrosequenced_read');
  32756. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_site_variant','splice_site_variant');
  32757. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_magnesium_ion_contact_site','polypeptide_magnesium_ion_contact_site');
  32758. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_transcript','polycistronic_transcript');
  32759. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_site','polya_site');
  32760. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_variation_attribute','chromosomal_variation_attribute');
  32761. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_duplication','free_duplication');
  32762. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_structure_variation','chromosome_structure_variation');
  32763. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_rna_base_feature','modified_rna_base_feature');
  32764. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutated_variant_site','mutated_variant_site');
  32765. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gaga_motif','gaga_motif');
  32766. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromeric_repeat','centromeric_repeat');
  32767. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_gene','rrna_gene');
  32768. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_mutation','interchromosomal_mutation');
  32769. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('prophage','prophage');
  32770. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('syntenic','syntenic');
  32771. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_repetitive_element','engineered_foreign_repetitive_element');
  32772. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translated_nucleotide_match','translated_nucleotide_match');
  32773. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_variant','exon_variant');
  32774. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna','h_aca_box_snorna');
  32775. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vault_rna','vault_rna');
  32776. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orphan','orphan');
  32777. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_single_stranded_dna_chromosome','linear_single_stranded_dna_chromosome');
  32778. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomeric_repeat','telomeric_repeat');
  32779. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_greater_than_1_polypeptide','encodes_greater_than_1_polypeptide');
  32780. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('atti_site','atti_site');
  32781. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_start_codon_cug','gene_with_start_codon_cug');
  32782. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_deacetylation','silenced_by_histone_deacetylation');
  32783. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reagent','reagent');
  32784. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_fission','chromosome_fission');
  32785. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ct_gene','ct_gene');
  32786. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped_primary_transcript','capped_primary_transcript');
  32787. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylinosine','methylinosine');
  32788. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_spacer','j_spacer');
  32789. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamine','glutamine');
  32790. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_guanosine','modified_guanosine');
  32791. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_7_dimethylguanosine','n2_7_dimethylguanosine');
  32792. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k79_trimethylation_site','h3k79_trimethylation_site');
  32793. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_heptamer','three_prime_d_heptamer');
  32794. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_cdna_clone','invalidated_cdna_clone');
  32795. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminator','terminator');
  32796. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stem_loop','stem_loop');
  32797. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_utr_intron','five_prime_utr_intron');
  32798. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unoriented_intrachromosomal_transposition','unoriented_intrachromosomal_transposition');
  32799. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_band','chromosome_band');
  32800. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mini_exon_donor_rna','mini_exon_donor_rna');
  32801. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aneuploid','aneuploid');
  32802. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyl_2_thiouridine','five_methyl_2_thiouridine');
  32803. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_dna_methylation','gene_silenced_by_dna_methylation');
  32804. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_transposable_element_gene','engineered_foreign_transposable_element_gene');
  32805. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('processed_pseudogene','processed_pseudogene');
  32806. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supercontig','supercontig');
  32807. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_encoding','trna_encoding');
  32808. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reciprocal_chromosomal_translocation','reciprocal_chromosomal_translocation');
  32809. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tasirna','tasirna');
  32810. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hoogsteen_base_pair','hoogsteen_base_pair');
  32811. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regional_centromere_inner_repeat_region','regional_centromere_inner_repeat_region');
  32812. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('yac_end','yac_end');
  32813. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('purine_transition','purine_transition');
  32814. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna','c_d_box_snorna');
  32815. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_primary_transcript','snorna_primary_transcript');
  32816. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_cluster','v_vj_cluster');
  32817. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intronic_regulatory_region','intronic_regulatory_region');
  32818. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_ltr_region','u3_ltr_region');
  32819. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attenuator','attenuator');
  32820. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_noncoding_exon','three_prime_noncoding_exon');
  32821. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u14_snorna_primary_transcript','u14_snorna_primary_transcript');
  32822. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_gene_recombination_feature','d_gene_recombination_feature');
  32823. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mte','mte');
  32824. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gcvb_rna','gcvb_rna');
  32825. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rst','rst');
  32826. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operator','operator');
  32827. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ring_chromosome','ring_chromosome');
  32828. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ndm2_motif','ndm2_motif');
  32829. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k4_dimethylation_site','h3k4_dimethylation_site');
  32830. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteine_trna_primary_transcript','selenocysteine_trna_primary_transcript');
  32831. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_transcript_feature','edited_transcript_feature');
  32832. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_redefined_as_pyrrolysine','stop_codon_redefined_as_pyrrolysine');
  32833. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homo_compound_chromosome','homo_compound_chromosome');
  32834. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign_gene','foreign_gene');
  32835. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_demethylwyosine','four_demethylwyosine');
  32836. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('guide_rna','guide_rna');
  32837. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methylpseudouridine','three_methylpseudouridine');
  32838. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_aneuploid_chromosome','inversion_derived_aneuploid_chromosome');
  32839. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_transcript_stability_variant','decreased_transcript_stability_variant');
  32840. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lincrna_gene','lincrna_gene');
  32841. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('specific_recombination_site','specific_recombination_site');
  32842. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inosine','inosine');
  32843. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign_transposable_element','foreign_transposable_element');
  32844. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_gene','d_gene');
  32845. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bipartite_inversion','bipartite_inversion');
  32846. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_plasmid','engineered_plasmid');
  32847. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_group_regulatory_region','gene_group_regulatory_region');
  32848. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vd_gene','vd_gene');
  32849. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulatory_region','regulatory_region');
  32850. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl11_acceptor_site','sl11_acceptor_site');
  32851. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('guide_rna_region','guide_rna_region');
  32852. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_base','modified_base');
  32853. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_polypeptide_c_terminal','elongated_polypeptide_c_terminal');
  32854. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_ten_helix','three_ten_helix');
  32855. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_in_frame_polypeptide_n_terminal_elongation','elongated_in_frame_polypeptide_n_terminal_elongation');
  32856. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sarcin_like_rna_motif','sarcin_like_rna_motif');
  32857. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_translationally_frameshifted','minus_1_translationally_frameshifted');
  32858. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_alanine','modified_l_alanine');
  32859. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_cum_translocation','inversion_cum_translocation');
  32860. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tag','tag');
  32861. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_interchromosomal_transposition','uninvert_inter_transposition');
  32862. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_gene','cryptic_gene');
  32863. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pericentric','pericentric');
  32864. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic','transgenic');
  32865. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_clone','genomic_clone');
  32866. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_breakage_sequence','chromosome_breakage_sequence');
  32867. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_j_cluster','d_j_cluster');
  32868. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a_one','beta_turn_type_six_a_one');
  32869. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribosome_entry_site','ribosome_entry_site');
  32870. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('left_handed_peptide_helix','left_handed_peptide_helix');
  32871. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_aptamer','dna_aptamer');
  32872. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('i_motif','i_motif');
  32873. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_intrachromosomal_transposition','d_intrachr_transposition');
  32874. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_dna_chromosome','single_stranded_dna_chromosome');
  32875. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_c','methylated_c');
  32876. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_end','clone_end');
  32877. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ligation_based_read','ligation_based_read');
  32878. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('expressed_sequence_assembly','expressed_sequence_assembly');
  32879. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_two_prime_o_dimethyluridine','five_two_prime_o_dimethyluridine');
  32880. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidine_trna_primary_transcript','histidine_trna_primary_transcript');
  32881. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orthologous_region','orthologous_region');
  32882. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valine_trna_primary_transcript','valine_trna_primary_transcript');
  32883. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operon_member','operon_member');
  32884. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('missense_codon','missense_codon');
  32885. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_rnapol_promoter_sigma54','bacterial_rnapol_promoter_sigma54');
  32886. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_group','gene_group');
  32887. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('small_regulatory_ncrna','small_regulatory_ncrna');
  32888. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_duplication','intrachromosomal_duplication');
  32889. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_conservative_amino_acid_substitution','non_conservative_amino_acid_substitution');
  32890. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uaa_stop_codon_signal','uaa_stop_codon_signal');
  32891. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k36_methylation_site','h3k36_methylation_site');
  32892. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_variant','transcript_variant');
  32893. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_2_frameshift','minus_2_frameshift');
  32894. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('organelle_sequence','organelle_sequence');
  32895. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('initiator_codon_change','initiator_codon_change');
  32896. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_prophage','cryptic_prophage');
  32897. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micf_rna','micf_rna');
  32898. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct_tandem_duplication','direct_tandem_duplication');
  32899. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conserved','conserved');
  32900. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomerase_rna','telomerase_rna');
  32901. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u6atac_snrna','u6atac_snrna');
  32902. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attb_site','attb_site');
  32903. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_array_member','gene_array_member');
  32904. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylated_mrna','polyadenylated_mrna');
  32905. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('symbiosis_island','symbiosis_island');
  32906. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymorphic_variant','polymorphic_variant');
  32907. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_junction','splice_junction');
  32908. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fingerprint_map','fingerprint_map');
  32909. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_strand_restriction_enzyme_cleavage_site','single_strand_restriction_enzyme_cleavage_site');
  32910. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wyosine','wyosine');
  32911. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uga_stop_codon_signal','uga_stop_codon_signal');
  32912. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_24_signal','minus_24_signal');
  32913. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cytoplasmic_polypeptide_region','cytoplasmic_polypeptide_region');
  32914. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k_acylation_region','h4k_acylation_region');
  32915. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethylguanosine','one_two_prime_o_dimethylguanosine');
  32916. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rh_map','rh_map');
  32917. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_dna_modification','silenced_by_dna_modification');
  32918. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inactive_catalytic_site','inactive_catalytic_site');
  32919. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anticodon','anticodon');
  32920. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_deazaguanosine','seven_deazaguanosine');
  32921. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparagine','asparagine');
  32922. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('probe','probe');
  32923. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('defective_conjugative_transposon','defective_conjugative_transposon');
  32924. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('archaeosine','archaeosine');
  32925. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('molecular_contact_region','molecular_contact_region');
  32926. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nested_repeat','nested_repeat');
  32927. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('membrane_structure','membrane_structure');
  32928. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig_collection','contig_collection');
  32929. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tetraloop','tetraloop');
  32930. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_conserved_region','coding_conserved_region');
  32931. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('long_terminal_repeat','long_terminal_repeat');
  32932. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immune_system_gene_recombination_signal_feature','vertebrate_immune_system_gene_recombination_signal_feature');
  32933. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('untranslated_region_polycistronic_mrna','untranslated_region_polycistronic_mrna');
  32934. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucine_trna_primary_transcript','leucine_trna_primary_transcript');
  32935. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('high_identity_region','high_identity_region');
  32936. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_single_stranded_dna_chromosome','circular_single_stranded_dna_chromosome');
  32937. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_rim_localization_signal','nuclear_rim_localization_signal');
  32938. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucyl_trna','isoleucyl_trna');
  32939. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_breakpoint','insertion_breakpoint');
  32940. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('5_prime_utr_variant','five_prime_utr_variant');
  32941. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgene','transgene');
  32942. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_region','mrna_region');
  32943. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_attribute','transcript_attribute');
  32944. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_staple_motif','serine_threonine_staple_motif');
  32945. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding','protein_coding');
  32946. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_bound_by_factor','enhancer_bound_by_factor');
  32947. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_by_translational_bypass','recoded_by_translational_bypass');
  32948. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operon','operon');
  32949. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_transcript','monocistronic_transcript');
  32950. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reciprocal','reciprocal');
  32951. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylated','polyadenylated');
  32952. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unigene_cluster','unigene_cluster');
  32953. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immunoglobulin_t_cell_receptor_rearranged_gene_cluster','vertebrate_ig_t_cell_receptor_rearranged_gene_cluster');
  32954. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette_member','gene_cassette_member');
  32955. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_read_through','stop_codon_read_through');
  32956. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_transcript_with_translational_frameshift','gene_with_transcript_with_translational_frameshift');
  32957. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_quality','variant_quality');
  32958. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mnp','mnp');
  32959. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamic_acid','glutamic_acid');
  32960. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('y_prime_element','y_prime_element');
  32961. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn','beta_turn');
  32962. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pathogenic_island','pathogenic_island');
  32963. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ust_match','ust_match');
  32964. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_bound_by_protein','transcript_bound_by_protein');
  32965. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_methyladenosine','n6_methyladenosine');
  32966. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_chromosome','cyanelle_chromosome');
  32967. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orit','orit');
  32968. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternally_imprinted','maternally_imprinted');
  32969. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_chromosome','chloroplast_chromosome');
  32970. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minicircle_gene','minicircle_gene');
  32971. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_catalytic_motif','polypeptide_catalytic_motif');
  32972. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_2','rnapol_iii_promoter_type_2');
  32973. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('no_output','no_output');
  32974. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_coding_exon','interior_coding_exon');
  32975. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_taurinomethyl_two_thiouridine','five_taurinomethyl_two_thiouridine');
  32976. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_trimethylation_site','h3k9_trimethylation_site');
  32977. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_secondary_structure_variant','transcript_secondary_structure_variant');
  32978. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide','polypeptide');
  32979. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_donor_5th_base_variant','splice_donor_5th_base_variant');
  32980. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymerase_synthesis_read','polymerase_synthesis_read');
  32981. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_binding_site','enhancer_binding_site');
  32982. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_to_protein_binding_site','nucleotide_to_protein_binding_site');
  32983. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_left_handed_type_two','beta_turn_left_handed_type_two');
  32984. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_genomic_polya_primed_cdna','invalidated_by_genomic_polya_primed_cdna');
  32985. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_edited_transcript','gene_with_edited_transcript');
  32986. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv1_motif','dmv1_motif');
  32987. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_12_signal','minus_12_signal');
  32988. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_modified_region','post_translationally_modified_region');
  32989. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proline','proline');
  32990. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanking_region','flanking_region');
  32991. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_isopentenyladenosine','two_methylthio_n6_isopentenyladenosine');
  32992. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypyrimidine_tract','polypyrimidine_tract');
  32993. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxyuridine','five_methoxyuridine');
  32994. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_to_gene_feature','gene_to_gene_feature');
  32995. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac_cloned_genomic_insert','bac_cloned_genomic_insert');
  32996. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_heptamer','j_heptamer');
  32997. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ust','three_prime_ust');
  32998. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_2_prime_o_dimethyladenosine','n6_2_prime_o_dimethyladenosine');
  32999. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_site','trans_splice_site');
  33000. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('de_novo_variant','de_novo_variant');
  33001. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_rescue_region','engineered_rescue_region');
  33002. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorph_gene','nucleomorph_gene');
  33003. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_attribute','mrna_attribute');
  33004. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_three_prime_overlap','five_prime_three_prime_overlap');
  33005. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_i_intron','group_i_intron');
  33006. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_cluster','d_cluster');
  33007. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('open_chromatin_region','open_chromatin_region');
  33008. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_dna','genomic_dna');
  33009. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron','inside_intron');
  33010. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hammerhead_ribozyme','hammerhead_ribozyme');
  33011. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_heptamer','five_prime_d_heptamer');
  33012. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intronic_splice_enhancer','intronic_splice_enhancer');
  33013. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_adenosine','modified_adenosine');
  33014. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyluridine','five_carboxymethylaminomethyluridine');
  33015. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_region','repeat_region');
  33016. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_unit','repeat_unit');
  33017. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_dna_chromosome','double_stranded_dna_chromosome');
  33018. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('heritable_phenotypic_marker','heritable_phenotypic_marker');
  33019. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('template_region','template_region');
  33020. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primary_transcript_region','primary_transcript_region');
  33021. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_dna','mitochondrial_dna');
  33022. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_region','transcript_region');
  33023. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_acetylation_site','histone_acetylation_site');
  33024. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribozyme','ribozyme');
  33025. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('matrix_attachment_site','matrix_attachment_site');
  33026. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('imprinted','imprinted');
  33027. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_sequence_variant','polypeptide_sequence_variant');
  33028. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('est','est');
  33029. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_motif','rna_motif');
  33030. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_variation_site','polypeptide_variation_site');
  33031. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('class_i_rna','class_i_rna');
  33032. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oligo','oligo');
  33033. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_signal','stop_codon_signal');
  33034. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hypoploid','hypoploid');
  33035. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exemplar_mrna','exemplar_mrna');
  33036. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimentally_defined_binding_region','experimentally_defined_binding_region');
  33037. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_g_transversion','c_to_g_transversion');
  33038. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('active_peptide','active_peptide');
  33039. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mannosyl_queuosine','mannosyl_queuosine');
  33040. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_stop_codon_redefined_as_pyrrolysine','gene_with_stop_codon_redefined_as_pyrrolysine');
  33041. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('queuosine','queuosine');
  33042. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lna_oligo','lna_oligo');
  33043. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('independently_known','independently_known');
  33044. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_region','proviral_region');
  33045. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped','capped');
  33046. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_frameshift_variant','minus_1_frameshift_variant');
  33047. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direction_attribute','direction_attribute');
  33048. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micronuclear_chromosome','micronuclear_chromosome');
  33049. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogene_by_unequal_crossing_over','pseudogene_by_unequal_crossing_over');
  33050. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethyladenosine','one_two_prime_o_dimethyladenosine');
  33051. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dpe_motif','dpe_motif');
  33052. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frame_restoring_variant','frame_restoring_variant');
  33053. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seryl_trna','seryl_trna');
  33054. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('structural_variant','structural_variant');
  33055. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulatory_promoter_element','regulatory_promoter_element');
  33056. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integration_excision_site','integration_excision_site');
  33057. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncoding_region_of_exon','noncoding_region_of_exon');
  33058. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_mrp_rna','rnase_mrp_rna');
  33059. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_export_signal','nuclear_export_signal');
  33060. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyluridine','five_methoxycarbonylmethyluridine');
  33061. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_of_single_exon_gene','exon_of_single_exon_gene');
  33062. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_primary_transcript','gene_with_dicistronic_primary_transcript');
  33063. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_secondary_structure','sequence_secondary_structure');
  33064. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_rnapol_promoter_sigma_70','bacterial_rnapol_promoter_sigma_70');
  33065. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path','tiling_path');
  33066. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_sequence','nuclear_sequence');
  33067. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig','contig');
  33068. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('quality_value','quality_value');
  33069. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kozak_sequence','kozak_sequence');
  33070. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('population_specific_variant','population_specific_variant');
  33071. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catalytic_residue','catalytic_residue');
  33072. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_site','inversion_site');
  33073. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartic_acid','aspartic_acid');
  33074. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dif_site','dif_site');
  33075. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_gene','mirna_gene');
  33076. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valyl_trna','valyl_trna');
  33077. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_tandem_duplication','inverted_tandem_duplication');
  33078. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cis_regulatory_frameshift_element','cis_regulatory_frameshift_element');
  33079. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minisatellite','minisatellite');
  33080. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly_component','assembly_component');
  33081. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('low_complexity_region','low_complexity_region');
  33082. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('morpholino_backbone','morpholino_backbone');
  33083. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('designed_sequence','designed_sequence');
  33084. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_n6_2_prime_o_trimethyladenosine','n6_n6_2_prime_o_trimethyladenosine');
  33085. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_polymerase_promoter','rna_polymerase_promoter');
  33086. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_gene_recombination_feature','v_gene_recombination_feature');
  33087. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyl_two_thiouridine','five_carboxymethylaminomethyl_two_thiouridine');
  33088. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_ring_duplication','free_ring_duplication');
  33089. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('point_centromere','point_centromere');
  33090. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_mrna','dicistronic_mrna');
  33091. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal','interchromosomal');
  33092. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uncharacterised_chromosomal_mutation','uncharacterised_chromosomal_mutation');
  33093. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_cis_splice_site','five_prime_cis_splice_site');
  33094. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('octamer_motif','octamer_motif');
  33095. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_overlapping_peptides_different_start','encodes_overlapping_peptides_different_start');
  33096. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ss_rna_viral_sequence','ss_rna_viral_sequence');
  33097. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('indel','indel');
  33098. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_primary_transcript','dicistronic_primary_transcript');
  33099. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_binding_site','protein_binding_site');
  33100. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic','polycistronic');
  33101. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparagine_trna_primary_transcript','asparagine_trna_primary_transcript');
  33102. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_enhancer','splice_enhancer');
  33103. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aneuploid_chromosome','aneuploid_chromosome');
  33104. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peroxywybutosine','peroxywybutosine');
  33105. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_aspartic_acid','modified_l_aspartic_acid');
  33106. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_episome','engineered_episome');
  33107. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnai_reagent','rnai_reagent');
  33108. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rasirna','rasirna');
  33109. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_region','tmrna_region');
  33110. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_transcript_level_variant','increased_transcript_level_variant');
  33111. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_rnapol_promoter','bacterial_rnapol_promoter');
  33112. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_sequence','mitochondrial_sequence');
  33113. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trinucleotide_repeat_microsatellite_feature','trinuc_repeat_microsat');
  33114. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_by_protein_stability','post_translationally_regulated_by_protein_stability');
  33115. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_primary_transcript','nc_primary_transcript');
  33116. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('iron_responsive_element','iron_responsive_element');
  33117. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_j_cluster','v_d_dj_j_cluster');
  33118. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('forward','forward');
  33119. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_location','proviral_location');
  33120. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_binding_site','histone_binding_site');
  33121. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_element','promoter_element');
  33122. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pse_motif','pse_motif');
  33123. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_eight','beta_turn_type_eight');
  33124. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double','double');
  33125. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_supported_by_est_or_cdna_data','cds_supported_by_est_or_cdna_data');
  33126. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_rna_chromosome','double_stranded_rna_chromosome');
  33127. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_glutamic_acid','modified_l_glutamic_acid');
  33128. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_motif','polypeptide_nest_motif');
  33129. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_frameshift','translational_frameshift');
  33130. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_terminal_inverted_repeat','three_prime_terminal_inverted_repeat');
  33131. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_trna','pseudogenic_trna');
  33132. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cap','cap');
  33133. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon','five_prime_coding_exon');
  33134. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enzymatic','enzymatic');
  33135. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_exon','interior_exon');
  33136. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genetic_marker','genetic_marker');
  33137. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_g_transition','a_to_g_transition');
  33138. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine','two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine');
  33139. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isre','isre');
  33140. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternally_imprinted_gene','maternally_imprinted_gene');
  33141. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular','circular');
  33142. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_pseudoknot','h_pseudoknot');
  33143. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intermediate_element','intermediate_element');
  33144. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript','transcript');
  33145. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogene','pseudogene');
  33146. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct_repeat','direct_repeat');
  33147. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_terminator','bacterial_terminator');
  33148. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('diplotype','diplotype');
  33149. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('metal_binding_site','metal_binding_site');
  33150. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_gene','dj_gene');
  33151. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methyladenosine','two_prime_o_methyladenosine');
  33152. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_region_variant','splice_region_variant');
  33153. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspe_primer','aspe_primer');
  33154. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_binding_site','restriction_enzyme_binding_site');
  33155. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac','bac');
  33156. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_j_cluster','dj_j_cluster');
  33157. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k36_dimethylation_site','h3k36_dimethylation_site');
  33158. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_donor_site','trans_splice_donor_site');
  33159. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_variant','gene_variant');
  33160. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conformational_change_variant','conformational_change_variant');
  33161. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k36_monomethylation_site','h3k36_monomethylation_site');
  33162. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleic_acid','nucleic_acid');
  33163. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_chimeric_cdna','invalidated_by_chimeric_cdna');
  33164. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidine','histidine');
  33165. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_component_region','gene_component_region');
  33166. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer_match','primer_match');
  33167. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_primary_transcript','trna_primary_transcript');
  33168. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('loxp_site','loxp_site');
  33169. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine','serine');
  33170. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('propeptide','propeptide');
  33171. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_open_reading_frame','five_prime_open_reading_frame');
  33172. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop_six','schellmann_loop_six');
  33173. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('shine_dalgarno_sequence','shine_dalgarno_sequence');
  33174. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sp6_rna_polymerase_promoter','sp6_rna_polymerase_promoter');
  33175. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere_dna_element_iii','centromere_dna_element_iii');
  33176. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysine_trna_primary_transcript','lysine_trna_primary_transcript');
  33177. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_c_cluster','j_c_cluster');
  33178. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_deficiency','assortment_derived_deficiency');
  33179. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_primary_transcript','mirna_primary_transcript');
  33180. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_5s','rrna_5s');
  33181. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucyl_trna','leucyl_trna');
  33182. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_intrachromosomal_transposition','invert_intra_transposition');
  33183. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enzymatic_rna','enzymatic_rna');
  33184. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('germline_variant','germline_variant');
  33185. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negatively_autoregulated','negatively_autoregulated');
  33186. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('benign_variant','benign_variant');
  33187. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anchor_region','anchor_region');
  33188. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon','exon');
  33189. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a','beta_turn_type_six_a');
  33190. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('random_sequence','random_sequence');
  33191. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('partially_characterised_chromosomal_mutation','partially_characterised_chromosomal_mutation');
  33192. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna','rna');
  33193. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('core_promoter_element','core_promoter_element');
  33194. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_single_strand_overhang','restriction_enzyme_single_strand_overhang');
  33195. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ss_oligo','ss_oligo');
  33196. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_methylation_site','histone_methylation_site');
  33197. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_duplication_plus_aneuploid','inversion_derived_duplication_plus_aneuploid');
  33198. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_bound_by_nucleic_acid','transcript_bound_by_nucleic_acid');
  33199. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intein_containing','intein_containing');
  33200. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna_encoding','h_aca_box_snorna_encoding');
  33201. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_cleavage_rna','rrna_cleavage_rna');
  33202. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_trap_construct','enhancer_trap_construct');
  33203. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn_inverse','gamma_turn_inverse');
  33204. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_nonamer','three_prime_d_nonamer');
  33205. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternal_variant','paternal_variant');
  33206. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('level_of_transcript_variant','level_of_transcript_variant');
  33207. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteinyl_trna','selenocysteinyl_trna');
  33208. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_methylation','gene_silenced_by_histone_methylation');
  33209. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u11_snrna','u11_snrna');
  33210. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna','scrna');
  33211. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_stop_codon_redefined_as_selenocysteine','gene_with_stop_codon_redefined_as_selenocysteine');
  33212. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silencer','silencer');
  33213. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sage_tag','sage_tag');
  33214. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_minus_1_frameshift','mrna_with_minus_1_frameshift');
  33215. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_gene','nuclear_gene');
  33216. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_supported_by_domain_match_data','cds_supported_by_domain_match_data');
  33217. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_shine_dalgarno_sequence','internal_shine_dalgarno_sequence');
  33218. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('prolyl_trna','prolyl_trna');
  33219. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysidine','lysidine');
  33220. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge','beta_bulge');
  33221. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_by_protein_modification','post_translationally_regulated_by_protein_modification');
  33222. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_donor_variant','splice_donor_variant');
  33223. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ncrna','ncrna');
  33224. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('grna_gene','grna_gene');
  33225. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer','enhancer');
  33226. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymorphic_sequence_variant','polymorphic_sequence_variant');
  33227. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_clip','three_prime_clip');
  33228. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frameshift_variant','frameshift_variant');
  33229. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertional','insertional');
  33230. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_processed_pseudogene','non_processed_pseudogene');
  33231. CREATE INDEX sequence_cv_lookup_table_idx ON sequence_cv_lookup_table (original_cvterm_name);
  33232. SET search_path=public,pg_catalog;
  33233. -- DEPENDENCY:
  33234. -- chado/modules/bridges/sofa-bridge.sql
  33235. -- The standard Chado pattern for protein coding genes
  33236. -- is a feature of type 'gene' with 'mRNA' features as parts
  33237. -- REQUIRES: 'mrna' view from so-bridge.sql
  33238. CREATE OR REPLACE VIEW protein_coding_gene AS
  33239. SELECT
  33240. DISTINCT gene.*
  33241. FROM
  33242. feature AS gene
  33243. INNER JOIN feature_relationship AS fr ON (gene.feature_id=fr.object_id)
  33244. INNER JOIN so.mrna ON (mrna.feature_id=fr.subject_id);
  33245. -- introns are implicit from surrounding exons
  33246. -- combines intron features with location and parent transcript
  33247. -- the same intron appearing in multiple transcripts will appear
  33248. -- multiple times
  33249. CREATE VIEW intron_combined_view AS
  33250. SELECT
  33251. x1.feature_id AS exon1_id,
  33252. x2.feature_id AS exon2_id,
  33253. CASE WHEN l1.strand=-1 THEN l2.fmax ELSE l1.fmax END AS fmin,
  33254. CASE WHEN l1.strand=-1 THEN l1.fmin ELSE l2.fmin END AS fmax,
  33255. l1.strand AS strand,
  33256. l1.srcfeature_id AS srcfeature_id,
  33257. r1.rank AS intron_rank,
  33258. r1.object_id AS transcript_id
  33259. FROM
  33260. cvterm
  33261. INNER JOIN
  33262. feature AS x1 ON (x1.type_id=cvterm.cvterm_id)
  33263. INNER JOIN
  33264. feature_relationship AS r1 ON (x1.feature_id=r1.subject_id)
  33265. INNER JOIN
  33266. featureloc AS l1 ON (x1.feature_id=l1.feature_id)
  33267. INNER JOIN
  33268. feature AS x2 ON (x2.type_id=cvterm.cvterm_id)
  33269. INNER JOIN
  33270. feature_relationship AS r2 ON (x2.feature_id=r2.subject_id)
  33271. INNER JOIN
  33272. featureloc AS l2 ON (x2.feature_id=l2.feature_id)
  33273. WHERE
  33274. cvterm.name='exon' AND
  33275. (r2.rank - r1.rank) = 1 AND
  33276. r1.object_id=r2.object_id AND
  33277. l1.strand = l2.strand AND
  33278. l1.srcfeature_id = l2.srcfeature_id AND
  33279. l1.locgroup=0 AND
  33280. l2.locgroup=0;
  33281. -- intron locations. intron IDs are the (exon1,exon2) ID pair
  33282. -- this means that introns may be counted twice if the start of
  33283. -- the 5' exon or the end of the 3' exon vary
  33284. -- introns shared by transcripts will not appear twice
  33285. CREATE VIEW intronloc_view AS
  33286. SELECT DISTINCT
  33287. exon1_id,
  33288. exon2_id,
  33289. fmin,
  33290. fmax,
  33291. strand,
  33292. srcfeature_id
  33293. FROM intron_combined_view;
  33294. CREATE OR REPLACE FUNCTION store_feature
  33295. (INT,INT,INT,INT,
  33296. INT,INT,VARCHAR,VARCHAR,INT,BOOLEAN)
  33297. RETURNS INT AS
  33298. 'DECLARE
  33299. v_srcfeature_id ALIAS FOR $1;
  33300. v_fmin ALIAS FOR $2;
  33301. v_fmax ALIAS FOR $3;
  33302. v_strand ALIAS FOR $4;
  33303. v_dbxref_id ALIAS FOR $5;
  33304. v_organism_id ALIAS FOR $6;
  33305. v_name ALIAS FOR $7;
  33306. v_uniquename ALIAS FOR $8;
  33307. v_type_id ALIAS FOR $9;
  33308. v_is_analysis ALIAS FOR $10;
  33309. v_feature_id INT;
  33310. v_featureloc_id INT;
  33311. BEGIN
  33312. IF v_dbxref_id IS NULL THEN
  33313. SELECT INTO v_feature_id feature_id
  33314. FROM feature
  33315. WHERE uniquename=v_uniquename AND
  33316. organism_id=v_organism_id AND
  33317. type_id=v_type_id;
  33318. ELSE
  33319. SELECT INTO v_feature_id feature_id
  33320. FROM feature
  33321. WHERE dbxref_id=v_dbxref_id;
  33322. END IF;
  33323. IF NOT FOUND THEN
  33324. INSERT INTO feature
  33325. ( dbxref_id ,
  33326. organism_id ,
  33327. name ,
  33328. uniquename ,
  33329. type_id ,
  33330. is_analysis )
  33331. VALUES
  33332. ( v_dbxref_id ,
  33333. v_organism_id ,
  33334. v_name ,
  33335. v_uniquename ,
  33336. v_type_id ,
  33337. v_is_analysis );
  33338. v_feature_id = currval(''feature_feature_id_seq'');
  33339. ELSE
  33340. UPDATE feature SET
  33341. dbxref_id = v_dbxref_id ,
  33342. organism_id = v_organism_id ,
  33343. name = v_name ,
  33344. uniquename = v_uniquename ,
  33345. type_id = v_type_id ,
  33346. is_analysis = v_is_analysis
  33347. WHERE
  33348. feature_id=v_feature_id;
  33349. END IF;
  33350. PERFORM store_featureloc(v_feature_id,
  33351. v_srcfeature_id,
  33352. v_fmin,
  33353. v_fmax,
  33354. v_strand,
  33355. 0,
  33356. 0);
  33357. RETURN v_feature_id;
  33358. END;
  33359. ' LANGUAGE 'plpgsql';
  33360. CREATE OR REPLACE FUNCTION store_featureloc
  33361. (INT,INT,INT,INT,INT,INT,INT)
  33362. RETURNS INT AS
  33363. 'DECLARE
  33364. v_feature_id ALIAS FOR $1;
  33365. v_srcfeature_id ALIAS FOR $2;
  33366. v_fmin ALIAS FOR $3;
  33367. v_fmax ALIAS FOR $4;
  33368. v_strand ALIAS FOR $5;
  33369. v_rank ALIAS FOR $6;
  33370. v_locgroup ALIAS FOR $7;
  33371. v_featureloc_id INT;
  33372. BEGIN
  33373. IF v_feature_id IS NULL THEN RAISE EXCEPTION ''feature_id cannot be null'';
  33374. END IF;
  33375. SELECT INTO v_featureloc_id featureloc_id
  33376. FROM featureloc
  33377. WHERE feature_id=v_feature_id AND
  33378. rank=v_rank AND
  33379. locgroup=v_locgroup;
  33380. IF NOT FOUND THEN
  33381. INSERT INTO featureloc
  33382. ( feature_id,
  33383. srcfeature_id,
  33384. fmin,
  33385. fmax,
  33386. strand,
  33387. rank,
  33388. locgroup)
  33389. VALUES
  33390. ( v_feature_id,
  33391. v_srcfeature_id,
  33392. v_fmin,
  33393. v_fmax,
  33394. v_strand,
  33395. v_rank,
  33396. v_locgroup);
  33397. v_featureloc_id = currval(''featureloc_featureloc_id_seq'');
  33398. ELSE
  33399. UPDATE featureloc SET
  33400. feature_id = v_feature_id,
  33401. srcfeature_id = v_srcfeature_id,
  33402. fmin = v_fmin,
  33403. fmax = v_fmax,
  33404. strand = v_strand,
  33405. rank = v_rank,
  33406. locgroup = v_locgroup
  33407. WHERE
  33408. featureloc_id=v_featureloc_id;
  33409. END IF;
  33410. RETURN v_featureloc_id;
  33411. END;
  33412. ' LANGUAGE 'plpgsql';
  33413. CREATE OR REPLACE FUNCTION store_feature_synonym
  33414. (INT,VARCHAR,INT,BOOLEAN,BOOLEAN,INT)
  33415. RETURNS INT AS
  33416. 'DECLARE
  33417. v_feature_id ALIAS FOR $1;
  33418. v_syn ALIAS FOR $2;
  33419. v_type_id ALIAS FOR $3;
  33420. v_is_current ALIAS FOR $4;
  33421. v_is_internal ALIAS FOR $5;
  33422. v_pub_id ALIAS FOR $6;
  33423. v_synonym_id INT;
  33424. v_feature_synonym_id INT;
  33425. BEGIN
  33426. IF v_feature_id IS NULL THEN RAISE EXCEPTION ''feature_id cannot be null'';
  33427. END IF;
  33428. SELECT INTO v_synonym_id synonym_id
  33429. FROM synonym
  33430. WHERE name=v_syn AND
  33431. type_id=v_type_id;
  33432. IF NOT FOUND THEN
  33433. INSERT INTO synonym
  33434. ( name,
  33435. synonym_sgml,
  33436. type_id)
  33437. VALUES
  33438. ( v_syn,
  33439. v_syn,
  33440. v_type_id);
  33441. v_synonym_id = currval(''synonym_synonym_id_seq'');
  33442. END IF;
  33443. SELECT INTO v_feature_synonym_id feature_synonym_id
  33444. FROM feature_synonym
  33445. WHERE feature_id=v_feature_id AND
  33446. synonym_id=v_synonym_id AND
  33447. pub_id=v_pub_id;
  33448. IF NOT FOUND THEN
  33449. INSERT INTO feature_synonym
  33450. ( feature_id,
  33451. synonym_id,
  33452. pub_id,
  33453. is_current,
  33454. is_internal)
  33455. VALUES
  33456. ( v_feature_id,
  33457. v_synonym_id,
  33458. v_pub_id,
  33459. v_is_current,
  33460. v_is_internal);
  33461. v_feature_synonym_id = currval(''feature_synonym_feature_synonym_id_seq'');
  33462. ELSE
  33463. UPDATE feature_synonym
  33464. SET is_current=v_is_current, is_internal=v_is_internal
  33465. WHERE feature_synonym_id=v_feature_synonym_id;
  33466. END IF;
  33467. RETURN v_feature_synonym_id;
  33468. END;
  33469. ' LANGUAGE 'plpgsql';
  33470. -- dependency_on: [sequtil,sequence-cv-helper]
  33471. CREATE OR REPLACE FUNCTION subsequence(bigint,bigint,bigint,INT)
  33472. RETURNS TEXT AS
  33473. 'SELECT
  33474. CASE WHEN $4<0
  33475. THEN reverse_complement(substring(srcf.residues,CAST(($2+1) as int),CAST(($3-$2) as int)))
  33476. ELSE substring(residues,CAST(($2+1) as int),CAST(($3-$2) as int))
  33477. END AS residues
  33478. FROM feature AS srcf
  33479. WHERE
  33480. srcf.feature_id=$1'
  33481. LANGUAGE 'sql';
  33482. CREATE OR REPLACE FUNCTION subsequence_by_featureloc(bigint)
  33483. RETURNS TEXT AS
  33484. 'SELECT
  33485. CASE WHEN strand<0
  33486. THEN reverse_complement(substring(srcf.residues,CAST(fmin+1 as int),CAST((fmax-fmin) as int)))
  33487. ELSE substring(srcf.residues,CAST(fmin+1 as int),CAST((fmax-fmin) as int))
  33488. END AS residues
  33489. FROM feature AS srcf
  33490. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  33491. WHERE
  33492. featureloc_id=$1'
  33493. LANGUAGE 'sql';
  33494. CREATE OR REPLACE FUNCTION subsequence_by_feature(bigint,INT,INT)
  33495. RETURNS TEXT AS
  33496. 'SELECT
  33497. CASE WHEN strand<0
  33498. THEN reverse_complement(substring(srcf.residues,CAST(fmin+1 as int),CAST((fmax-fmin) as int)))
  33499. ELSE substring(srcf.residues,CAST(fmin+1 as int),CAST((fmax-fmin) as int))
  33500. END AS residues
  33501. FROM feature AS srcf
  33502. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  33503. WHERE
  33504. featureloc.feature_id=$1 AND
  33505. featureloc.rank=$2 AND
  33506. featureloc.locgroup=$3'
  33507. LANGUAGE 'sql';
  33508. CREATE OR REPLACE FUNCTION subsequence_by_feature(bigint)
  33509. RETURNS TEXT AS 'SELECT subsequence_by_feature($1,0,0)'
  33510. LANGUAGE 'sql';
  33511. -- based on subfeature sets:
  33512. -- constrained by feature_relationship.type_id
  33513. -- (allows user to construct queries that only get subsequences of
  33514. -- part_of subfeatures)
  33515. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(bigint,bigint,INT,INT)
  33516. RETURNS TEXT AS '
  33517. DECLARE v_feature_id ALIAS FOR $1;
  33518. DECLARE v_rtype_id ALIAS FOR $2;
  33519. DECLARE v_rank ALIAS FOR $3;
  33520. DECLARE v_locgroup ALIAS FOR $4;
  33521. DECLARE subseq TEXT;
  33522. DECLARE seqrow RECORD;
  33523. BEGIN
  33524. subseq = '''';
  33525. FOR seqrow IN
  33526. SELECT
  33527. CASE WHEN strand<0
  33528. THEN reverse_complement(substring(srcf.residues,CAST(fmin+1 as int),CAST((fmax-fmin) as int)))
  33529. ELSE substring(srcf.residues,CAST(fmin+1 as int),CAST((fmax-fmin) as int))
  33530. END AS residues
  33531. FROM feature AS srcf
  33532. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  33533. INNER JOIN feature_relationship AS fr
  33534. ON (fr.subject_id=featureloc.feature_id)
  33535. WHERE
  33536. fr.object_id=v_feature_id AND
  33537. fr.type_id=v_rtype_id AND
  33538. featureloc.rank=v_rank AND
  33539. featureloc.locgroup=v_locgroup
  33540. ORDER BY fr.rank
  33541. LOOP
  33542. subseq = subseq || seqrow.residues;
  33543. END LOOP;
  33544. RETURN subseq;
  33545. END
  33546. '
  33547. LANGUAGE 'plpgsql';
  33548. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(bigint,bigint)
  33549. RETURNS TEXT AS
  33550. 'SELECT subsequence_by_subfeatures($1,$2,0,0)'
  33551. LANGUAGE 'sql';
  33552. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(bigint)
  33553. RETURNS TEXT AS
  33554. '
  33555. SELECT subsequence_by_subfeatures($1,get_feature_relationship_type_id(''part_of''),0,0)
  33556. '
  33557. LANGUAGE 'sql';
  33558. -- constrained by subfeature.type_id (eg exons of a transcript)
  33559. CREATE OR REPLACE FUNCTION subsequence_by_typed_subfeatures(bigint,bigint,INT,INT)
  33560. RETURNS TEXT AS '
  33561. DECLARE v_feature_id ALIAS FOR $1;
  33562. DECLARE v_ftype_id ALIAS FOR $2;
  33563. DECLARE v_rank ALIAS FOR $3;
  33564. DECLARE v_locgroup ALIAS FOR $4;
  33565. DECLARE subseq TEXT;
  33566. DECLARE seqrow RECORD;
  33567. BEGIN
  33568. subseq = '''';
  33569. FOR seqrow IN
  33570. SELECT
  33571. CASE WHEN strand<0
  33572. THEN reverse_complement(substring(srcf.residues,CAST(fmin+1 as int),CAST((fmax-fmin) as int)))
  33573. ELSE substring(srcf.residues,CAST(fmin+1 as int),CAST((fmax-fmin) as int))
  33574. END AS residues
  33575. FROM feature AS srcf
  33576. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  33577. INNER JOIN feature AS subf ON (subf.feature_id=featureloc.feature_id)
  33578. INNER JOIN feature_relationship AS fr ON (fr.subject_id=subf.feature_id)
  33579. WHERE
  33580. fr.object_id=v_feature_id AND
  33581. subf.type_id=v_ftype_id AND
  33582. featureloc.rank=v_rank AND
  33583. featureloc.locgroup=v_locgroup
  33584. ORDER BY fr.rank
  33585. LOOP
  33586. subseq = subseq || seqrow.residues;
  33587. END LOOP;
  33588. RETURN subseq;
  33589. END
  33590. '
  33591. LANGUAGE 'plpgsql';
  33592. CREATE OR REPLACE FUNCTION subsequence_by_typed_subfeatures(bigint,bigint)
  33593. RETURNS TEXT AS
  33594. 'SELECT subsequence_by_typed_subfeatures($1,$2,0,0)'
  33595. LANGUAGE 'sql';
  33596. CREATE OR REPLACE FUNCTION feature_subalignments(bigint) RETURNS SETOF featureloc AS '
  33597. DECLARE
  33598. return_data featureloc%ROWTYPE;
  33599. f_id ALIAS FOR $1;
  33600. feature_data feature%rowtype;
  33601. featureloc_data featureloc%rowtype;
  33602. s text;
  33603. fmin bigint;
  33604. slen bigint;
  33605. BEGIN
  33606. --RAISE NOTICE ''feature_id is %'', featureloc_data.feature_id;
  33607. SELECT INTO feature_data * FROM feature WHERE feature_id = f_id;
  33608. FOR featureloc_data IN SELECT * FROM featureloc WHERE feature_id = f_id LOOP
  33609. --RAISE NOTICE ''fmin is %'', featureloc_data.fmin;
  33610. return_data.feature_id = f_id;
  33611. return_data.srcfeature_id = featureloc_data.srcfeature_id;
  33612. return_data.is_fmin_partial = featureloc_data.is_fmin_partial;
  33613. return_data.is_fmax_partial = featureloc_data.is_fmax_partial;
  33614. return_data.strand = featureloc_data.strand;
  33615. return_data.phase = featureloc_data.phase;
  33616. return_data.residue_info = featureloc_data.residue_info;
  33617. return_data.locgroup = featureloc_data.locgroup;
  33618. return_data.rank = featureloc_data.rank;
  33619. s = feature_data.residues;
  33620. fmin = featureloc_data.fmin;
  33621. slen = char_length(s);
  33622. WHILE char_length(s) LOOP
  33623. --RAISE NOTICE ''residues is %'', s;
  33624. --trim off leading match
  33625. s = trim(leading ''|ATCGNatcgn'' from s);
  33626. --if leading match detected
  33627. IF slen > char_length(s) THEN
  33628. return_data.fmin = fmin;
  33629. return_data.fmax = featureloc_data.fmin + (slen - char_length(s));
  33630. --if the string started with a match, return it,
  33631. --otherwise, trim the gaps first (ie do not return this iteration)
  33632. RETURN NEXT return_data;
  33633. END IF;
  33634. --trim off leading gap
  33635. s = trim(leading ''-'' from s);
  33636. fmin = featureloc_data.fmin + (slen - char_length(s));
  33637. END LOOP;
  33638. END LOOP;
  33639. RETURN;
  33640. END;
  33641. ' LANGUAGE 'plpgsql';
  33642. CREATE SCHEMA frange;
  33643. SET search_path = frange,public,pg_catalog;
  33644. CREATE TABLE featuregroup (
  33645. featuregroup_id bigserial not null,
  33646. primary key (featuregroup_id),
  33647. subject_id bigint not null,
  33648. foreign key (subject_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  33649. object_id bigint not null,
  33650. foreign key (object_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  33651. group_id bigint not null,
  33652. foreign key (group_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  33653. srcfeature_id bigint null,
  33654. foreign key (srcfeature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  33655. fmin bigint null,
  33656. fmax bigint null,
  33657. strand int null,
  33658. is_root int not null default 0,
  33659. constraint featuregroup_c1 unique (subject_id,object_id,group_id,srcfeature_id,fmin,fmax,strand)
  33660. );
  33661. CREATE INDEX featuregroup_idx1 ON featuregroup (subject_id);
  33662. CREATE INDEX featuregroup_idx2 ON featuregroup (object_id);
  33663. CREATE INDEX featuregroup_idx3 ON featuregroup (group_id);
  33664. CREATE INDEX featuregroup_idx4 ON featuregroup (srcfeature_id);
  33665. CREATE INDEX featuregroup_idx5 ON featuregroup (strand);
  33666. CREATE INDEX featuregroup_idx6 ON featuregroup (is_root);
  33667. CREATE OR REPLACE FUNCTION groupoverlaps(bigint, bigint, varchar) RETURNS setof featuregroup AS '
  33668. SELECT g2.*
  33669. FROM featuregroup g1,
  33670. featuregroup g2
  33671. WHERE g1.is_root = 1
  33672. AND ( g1.srcfeature_id = g2.srcfeature_id OR g2.srcfeature_id IS NULL )
  33673. AND g1.group_id = g2.group_id
  33674. AND g1.srcfeature_id = (SELECT feature_id FROM feature WHERE uniquename = $3)
  33675. AND boxquery($1, $2) @ boxrange(g1.fmin,g2.fmax)
  33676. ' LANGUAGE 'sql';
  33677. CREATE OR REPLACE FUNCTION groupcontains(bigint, bigint, varchar) RETURNS setof featuregroup AS '
  33678. SELECT *
  33679. FROM groupoverlaps($1,$2,$3)
  33680. WHERE fmin <= $1 AND fmax >= $2
  33681. ' LANGUAGE 'sql';
  33682. CREATE OR REPLACE FUNCTION groupinside(bigint, bigint, varchar) RETURNS setof featuregroup AS '
  33683. SELECT *
  33684. FROM groupoverlaps($1,$2,$3)
  33685. WHERE fmin >= $1 AND fmax <= $2
  33686. ' LANGUAGE 'sql';
  33687. CREATE OR REPLACE FUNCTION groupidentical(bigint, bigint, varchar) RETURNS setof featuregroup AS '
  33688. SELECT *
  33689. FROM groupoverlaps($1,$2,$3)
  33690. WHERE fmin = $1 AND fmax = $2
  33691. ' LANGUAGE 'sql';
  33692. CREATE OR REPLACE FUNCTION groupoverlaps(bigint, bigint) RETURNS setof featuregroup AS '
  33693. SELECT *
  33694. FROM featuregroup
  33695. WHERE is_root = 1
  33696. AND boxquery($1, $2) @ boxrange(fmin,fmax)
  33697. ' LANGUAGE 'sql';
  33698. CREATE OR REPLACE FUNCTION groupoverlaps(_int8, _int8, _varchar) RETURNS setof featuregroup AS '
  33699. DECLARE
  33700. mins alias for $1;
  33701. maxs alias for $2;
  33702. srcs alias for $3;
  33703. f featuregroup%ROWTYPE;
  33704. i int;
  33705. s int;
  33706. BEGIN
  33707. i := 1;
  33708. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  33709. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  33710. FOR f IN
  33711. SELECT *
  33712. FROM featuregroup WHERE group_id IN (
  33713. SELECT group_id FROM featuregroup
  33714. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  33715. AND group_id IN (
  33716. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  33717. WHERE srcfeature_id = s
  33718. )
  33719. )
  33720. LOOP
  33721. RETURN NEXT f;
  33722. END LOOP;
  33723. END LOOP;
  33724. RETURN;
  33725. END;
  33726. ' LANGUAGE 'plpgsql';
  33727. CREATE OR REPLACE FUNCTION groupcontains(_int8, _int8, _varchar) RETURNS setof featuregroup AS '
  33728. DECLARE
  33729. mins alias for $1;
  33730. maxs alias for $2;
  33731. srcs alias for $3;
  33732. f featuregroup%ROWTYPE;
  33733. i int;
  33734. s int;
  33735. BEGIN
  33736. i := 1;
  33737. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  33738. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  33739. FOR f IN
  33740. SELECT *
  33741. FROM featuregroup WHERE group_id IN (
  33742. SELECT group_id FROM featuregroup
  33743. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  33744. AND fmin <= mins[i]
  33745. AND fmax >= maxs[i]
  33746. AND group_id IN (
  33747. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  33748. WHERE srcfeature_id = s
  33749. )
  33750. )
  33751. LOOP
  33752. RETURN NEXT f;
  33753. END LOOP;
  33754. END LOOP;
  33755. RETURN;
  33756. END;
  33757. ' LANGUAGE 'plpgsql';
  33758. CREATE OR REPLACE FUNCTION groupinside(_int8, _int8, _varchar) RETURNS setof featuregroup AS '
  33759. DECLARE
  33760. mins alias for $1;
  33761. maxs alias for $2;
  33762. srcs alias for $3;
  33763. f featuregroup%ROWTYPE;
  33764. i int;
  33765. s int;
  33766. BEGIN
  33767. i := 1;
  33768. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  33769. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  33770. FOR f IN
  33771. SELECT *
  33772. FROM featuregroup WHERE group_id IN (
  33773. SELECT group_id FROM featuregroup
  33774. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  33775. AND fmin >= mins[i]
  33776. AND fmax <= maxs[i]
  33777. AND group_id IN (
  33778. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  33779. WHERE srcfeature_id = s
  33780. )
  33781. )
  33782. LOOP
  33783. RETURN NEXT f;
  33784. END LOOP;
  33785. END LOOP;
  33786. RETURN;
  33787. END;
  33788. ' LANGUAGE 'plpgsql';
  33789. CREATE OR REPLACE FUNCTION groupidentical(_int8, _int8, _varchar) RETURNS setof featuregroup AS '
  33790. DECLARE
  33791. mins alias for $1;
  33792. maxs alias for $2;
  33793. srcs alias for $3;
  33794. f featuregroup%ROWTYPE;
  33795. i int;
  33796. s int;
  33797. BEGIN
  33798. i := 1;
  33799. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  33800. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  33801. FOR f IN
  33802. SELECT *
  33803. FROM featuregroup WHERE group_id IN (
  33804. SELECT group_id FROM featuregroup
  33805. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  33806. AND fmin = mins[i]
  33807. AND fmax = maxs[i]
  33808. AND group_id IN (
  33809. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  33810. WHERE srcfeature_id = s
  33811. )
  33812. )
  33813. LOOP
  33814. RETURN NEXT f;
  33815. END LOOP;
  33816. END LOOP;
  33817. RETURN;
  33818. END;
  33819. ' LANGUAGE 'plpgsql';
  33820. --functional index that depends on the above functions
  33821. CREATE INDEX bingroup_boxrange ON featuregroup USING gist (boxrange(fmin, fmax)) WHERE is_root = 1;
  33822. CREATE OR REPLACE FUNCTION _fill_featuregroup(bigint, bigint) RETURNS INTEGER AS '
  33823. DECLARE
  33824. groupid alias for $1;
  33825. parentid alias for $2;
  33826. g featuregroup%ROWTYPE;
  33827. BEGIN
  33828. FOR g IN
  33829. SELECT DISTINCT 0, fr.subject_id, fr.object_id, groupid, fl.srcfeature_id, fl.fmin, fl.fmax, fl.strand, 0
  33830. FROM feature_relationship AS fr,
  33831. featureloc AS fl
  33832. WHERE fr.object_id = parentid
  33833. AND fr.subject_id = fl.feature_id
  33834. LOOP
  33835. INSERT INTO featuregroup
  33836. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  33837. VALUES
  33838. (g.subject_id, g.object_id, g.group_id, g.srcfeature_id, g.fmin, g.fmax, g.strand, 0);
  33839. PERFORM _fill_featuregroup(groupid,g.subject_id);
  33840. END LOOP;
  33841. RETURN 1;
  33842. END;
  33843. ' LANGUAGE 'plpgsql';
  33844. CREATE OR REPLACE FUNCTION fill_featuregroup() RETURNS INTEGER AS '
  33845. DECLARE
  33846. p featuregroup%ROWTYPE;
  33847. l featureloc%ROWTYPE;
  33848. isa bigint;
  33849. -- c int; the c variable isnt used
  33850. BEGIN
  33851. TRUNCATE featuregroup;
  33852. SELECT INTO isa cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  33853. -- Recursion is the biggest performance killer for this function.
  33854. -- We can dodge the first round of recursion using the "fr1 / GROUP BY" approach.
  33855. -- Luckily, most feature graphs are only 2 levels deep, so most recursion is
  33856. -- avoidable.
  33857. RAISE NOTICE ''Loading root and singleton features.'';
  33858. FOR p IN
  33859. SELECT DISTINCT 0, f.feature_id, f.feature_id, f.feature_id, srcfeature_id, fmin, fmax, strand, 1
  33860. FROM feature AS f
  33861. LEFT JOIN feature_relationship ON (f.feature_id = object_id)
  33862. LEFT JOIN featureloc ON (f.feature_id = featureloc.feature_id)
  33863. WHERE f.feature_id NOT IN ( SELECT subject_id FROM feature_relationship )
  33864. AND srcfeature_id IS NOT NULL
  33865. LOOP
  33866. INSERT INTO featuregroup
  33867. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  33868. VALUES
  33869. (p.object_id, p.object_id, p.object_id, p.srcfeature_id, p.fmin, p.fmax, p.strand, 1);
  33870. END LOOP;
  33871. RAISE NOTICE ''Loading child features. If your database contains grandchild'';
  33872. RAISE NOTICE ''features, they will be loaded recursively and may take a long time.'';
  33873. FOR p IN
  33874. SELECT DISTINCT 0, fr0.subject_id, fr0.object_id, fr0.object_id, fl.srcfeature_id, fl.fmin, fl.fmax, fl.strand, count(fr1.subject_id)
  33875. FROM feature_relationship AS fr0
  33876. LEFT JOIN feature_relationship AS fr1 ON ( fr0.subject_id = fr1.object_id),
  33877. featureloc AS fl
  33878. WHERE fr0.subject_id = fl.feature_id
  33879. AND fr0.object_id IN (
  33880. SELECT f.feature_id
  33881. FROM feature AS f
  33882. LEFT JOIN feature_relationship ON (f.feature_id = object_id)
  33883. LEFT JOIN featureloc ON (f.feature_id = featureloc.feature_id)
  33884. WHERE f.feature_id NOT IN ( SELECT subject_id FROM feature_relationship )
  33885. AND f.feature_id IN ( SELECT object_id FROM feature_relationship )
  33886. AND srcfeature_id IS NOT NULL
  33887. )
  33888. GROUP BY fr0.subject_id, fr0.object_id, fl.srcfeature_id, fl.fmin, fl.fmax, fl.strand
  33889. LOOP
  33890. INSERT INTO featuregroup
  33891. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  33892. VALUES
  33893. (p.subject_id, p.object_id, p.object_id, p.srcfeature_id, p.fmin, p.fmax, p.strand, 0);
  33894. IF ( p.is_root > 0 ) THEN
  33895. PERFORM _fill_featuregroup(p.subject_id,p.subject_id);
  33896. END IF;
  33897. END LOOP;
  33898. RETURN 1;
  33899. END;
  33900. ' LANGUAGE 'plpgsql';
  33901. SET search_path = public,pg_catalog;
  33902. --- create ontology that has instantiated located_sequence_feature part of SO
  33903. --- way as it is written, the function can not be execute more than once in one connection
  33904. --- when you get error like ERROR: relation with OID NNNNN does not exist
  33905. --- as this is not meant to execute >1 times in one session so it should never happen
  33906. --- except at testing and test failed
  33907. --- disconnect and try again, in other words, it can NOT be executed >1 time in one connection
  33908. --- if using EXECUTE, we can avoid this problem but code is hard to write and read (lots of ', escape char)
  33909. --NOTE: private, don't call directly as relying on having temp table tmpcvtr
  33910. --DROP TYPE soi_type CASCADE;
  33911. CREATE TYPE soi_type AS (
  33912. type_id bigint,
  33913. subject_id bigint,
  33914. object_id bigint
  33915. );
  33916. CREATE OR REPLACE FUNCTION _fill_cvtermpath4soinode(BIGINT, BIGINT, BIGINT, BIGINT, INTEGER) RETURNS INTEGER AS
  33917. '
  33918. DECLARE
  33919. origin alias for $1;
  33920. child_id alias for $2;
  33921. cvid alias for $3;
  33922. typeid alias for $4;
  33923. depth alias for $5;
  33924. cterm soi_type%ROWTYPE;
  33925. exist_c int;
  33926. BEGIN
  33927. --RAISE NOTICE ''depth=% o=%, root=%, cv=%, t=%'', depth,origin,child_id,cvid,typeid;
  33928. SELECT INTO exist_c count(*) FROM cvtermpath WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id AND pathdistance = depth;
  33929. --- longest path
  33930. IF (exist_c > 0) THEN
  33931. UPDATE cvtermpath SET pathdistance = depth WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id;
  33932. ELSE
  33933. INSERT INTO cvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES(origin, child_id, cvid, typeid, depth);
  33934. END IF;
  33935. FOR cterm IN SELECT tmp_type AS type_id, subject_id FROM tmpcvtr WHERE object_id = child_id LOOP
  33936. PERFORM _fill_cvtermpath4soinode(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  33937. END LOOP;
  33938. RETURN 1;
  33939. END;
  33940. '
  33941. LANGUAGE 'plpgsql';
  33942. CREATE OR REPLACE FUNCTION _fill_cvtermpath4soi(BIGINT, BIGINT) RETURNS INTEGER AS
  33943. '
  33944. DECLARE
  33945. rootid alias for $1;
  33946. cvid alias for $2;
  33947. ttype bigint;
  33948. cterm soi_type%ROWTYPE;
  33949. BEGIN
  33950. SELECT INTO ttype cvterm_id FROM cvterm WHERE name = ''isa'';
  33951. --RAISE NOTICE ''got ttype %'',ttype;
  33952. PERFORM _fill_cvtermpath4soinode(rootid, rootid, cvid, ttype, 0);
  33953. FOR cterm IN SELECT tmp_type AS type_id, subject_id FROM tmpcvtr WHERE object_id = rootid LOOP
  33954. PERFORM _fill_cvtermpath4soi(cterm.subject_id, cvid);
  33955. END LOOP;
  33956. RETURN 1;
  33957. END;
  33958. '
  33959. LANGUAGE 'plpgsql';
  33960. --- use tmpcvtr to temp store soi (virtural ontology)
  33961. --- using tmp tables is faster than using recursive function to create feature type relationship
  33962. --- since it gets feature type rel set by set instead of one by one
  33963. --- and getting feature type rel is very expensive
  33964. --- call _fillcvtermpath4soi to create path for the virtual ontology
  33965. CREATE OR REPLACE FUNCTION create_soi() RETURNS INTEGER AS
  33966. '
  33967. DECLARE
  33968. parent soi_type%ROWTYPE;
  33969. isa_id cvterm.cvterm_id%TYPE;
  33970. soi_term TEXT := ''soi'';
  33971. soi_def TEXT := ''ontology of SO feature instantiated in database'';
  33972. soi_cvid bigint;
  33973. soiterm_id bigint;
  33974. pcount INTEGER;
  33975. count INTEGER := 0;
  33976. cquery TEXT;
  33977. BEGIN
  33978. SELECT INTO isa_id cvterm_id FROM cvterm WHERE name = ''isa'';
  33979. SELECT INTO soi_cvid cv_id FROM cv WHERE name = soi_term;
  33980. IF (soi_cvid > 0) THEN
  33981. DELETE FROM cvtermpath WHERE cv_id = soi_cvid;
  33982. DELETE FROM cvterm WHERE cv_id = soi_cvid;
  33983. ELSE
  33984. INSERT INTO cv (name, definition) VALUES(soi_term, soi_def);
  33985. END IF;
  33986. SELECT INTO soi_cvid cv_id FROM cv WHERE name = soi_term;
  33987. INSERT INTO cvterm (name, cv_id) VALUES(soi_term, soi_cvid);
  33988. SELECT INTO soiterm_id cvterm_id FROM cvterm WHERE name = soi_term;
  33989. CREATE TEMP TABLE tmpcvtr (tmp_type BIGINT, type_id bigint, subject_id bigint, object_id bigint);
  33990. CREATE UNIQUE INDEX u_tmpcvtr ON tmpcvtr(subject_id, object_id);
  33991. INSERT INTO tmpcvtr (tmp_type, type_id, subject_id, object_id)
  33992. SELECT DISTINCT isa_id, soiterm_id, f.type_id, soiterm_id FROM feature f, cvterm t
  33993. WHERE f.type_id = t.cvterm_id AND f.type_id > 0;
  33994. EXECUTE ''select * from tmpcvtr where type_id = '' || soiterm_id || '';'';
  33995. get diagnostics pcount = row_count;
  33996. raise notice ''all types in feature %'',pcount;
  33997. --- do it hard way, delete any child feature type from above (NOT IN clause did not work)
  33998. FOR parent IN SELECT DISTINCT 0, t.cvterm_id, 0 FROM feature c, feature_relationship fr, cvterm t
  33999. WHERE t.cvterm_id = c.type_id AND c.feature_id = fr.subject_id LOOP
  34000. DELETE FROM tmpcvtr WHERE type_id = soiterm_id and object_id = soiterm_id
  34001. AND subject_id = parent.subject_id;
  34002. END LOOP;
  34003. EXECUTE ''select * from tmpcvtr where type_id = '' || soiterm_id || '';'';
  34004. get diagnostics pcount = row_count;
  34005. raise notice ''all types in feature after delete child %'',pcount;
  34006. --- create feature type relationship (store in tmpcvtr)
  34007. CREATE TEMP TABLE tmproot (cv_id bigint not null, cvterm_id bigint not null, status INTEGER DEFAULT 0);
  34008. cquery := ''SELECT * FROM tmproot tmp WHERE tmp.status = 0;'';
  34009. ---temp use tmpcvtr to hold instantiated SO relationship for speed
  34010. ---use soterm_id as type_id, will delete from tmpcvtr
  34011. ---us tmproot for this as well
  34012. INSERT INTO tmproot (cv_id, cvterm_id, status) SELECT DISTINCT soi_cvid, c.subject_id, 0 FROM tmpcvtr c
  34013. WHERE c.object_id = soiterm_id;
  34014. EXECUTE cquery;
  34015. GET DIAGNOSTICS pcount = ROW_COUNT;
  34016. WHILE (pcount > 0) LOOP
  34017. RAISE NOTICE ''num child temp (to be inserted) in tmpcvtr: %'',pcount;
  34018. INSERT INTO tmpcvtr (tmp_type, type_id, subject_id, object_id)
  34019. SELECT DISTINCT fr.type_id, soiterm_id, c.type_id, p.cvterm_id FROM feature c, feature_relationship fr,
  34020. tmproot p, feature pf, cvterm t WHERE c.feature_id = fr.subject_id AND fr.object_id = pf.feature_id
  34021. AND p.cvterm_id = pf.type_id AND t.cvterm_id = c.type_id AND p.status = 0;
  34022. UPDATE tmproot SET status = 1 WHERE status = 0;
  34023. INSERT INTO tmproot (cv_id, cvterm_id, status)
  34024. SELECT DISTINCT soi_cvid, c.type_id, 0 FROM feature c, feature_relationship fr,
  34025. tmproot tmp, feature p, cvterm t WHERE c.feature_id = fr.subject_id AND fr.object_id = p.feature_id
  34026. AND tmp.cvterm_id = p.type_id AND t.cvterm_id = c.type_id AND tmp.status = 1;
  34027. UPDATE tmproot SET status = 2 WHERE status = 1;
  34028. EXECUTE cquery;
  34029. GET DIAGNOSTICS pcount = ROW_COUNT;
  34030. END LOOP;
  34031. DELETE FROM tmproot;
  34032. ---get transitive closure for soi
  34033. PERFORM _fill_cvtermpath4soi(soiterm_id, soi_cvid);
  34034. DROP TABLE tmpcvtr;
  34035. DROP TABLE tmproot;
  34036. RETURN 1;
  34037. END;
  34038. '
  34039. LANGUAGE 'plpgsql';
  34040. ---bad precedence: change customed type name
  34041. ---drop here to remove old function
  34042. --DROP TYPE feature_by_cvt_type CASCADE;
  34043. --DROP TYPE fxgsfids_type CASCADE;
  34044. --DROP TYPE feature_by_fx_type CASCADE;
  34045. CREATE TYPE feature_by_fx_type AS (
  34046. feature_id bigint,
  34047. depth INT
  34048. );
  34049. CREATE OR REPLACE FUNCTION get_sub_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  34050. '
  34051. DECLARE
  34052. sql alias for $1;
  34053. myrc feature_by_fx_type%ROWTYPE;
  34054. myrc2 feature_by_fx_type%ROWTYPE;
  34055. BEGIN
  34056. FOR myrc IN EXECUTE sql LOOP
  34057. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  34058. RETURN NEXT myrc2;
  34059. END LOOP;
  34060. END LOOP;
  34061. RETURN;
  34062. END;
  34063. '
  34064. LANGUAGE 'plpgsql';
  34065. CREATE OR REPLACE FUNCTION get_up_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  34066. '
  34067. DECLARE
  34068. sql alias for $1;
  34069. myrc feature_by_fx_type%ROWTYPE;
  34070. myrc2 feature_by_fx_type%ROWTYPE;
  34071. BEGIN
  34072. FOR myrc IN EXECUTE sql LOOP
  34073. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  34074. RETURN NEXT myrc2;
  34075. END LOOP;
  34076. END LOOP;
  34077. RETURN;
  34078. END;
  34079. '
  34080. LANGUAGE 'plpgsql';
  34081. CREATE OR REPLACE FUNCTION get_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  34082. '
  34083. DECLARE
  34084. sql alias for $1;
  34085. myrc feature_by_fx_type%ROWTYPE;
  34086. myrc2 feature_by_fx_type%ROWTYPE;
  34087. myrc3 feature_by_fx_type%ROWTYPE;
  34088. BEGIN
  34089. FOR myrc IN EXECUTE sql LOOP
  34090. RETURN NEXT myrc;
  34091. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  34092. RETURN NEXT myrc2;
  34093. END LOOP;
  34094. FOR myrc3 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  34095. RETURN NEXT myrc3;
  34096. END LOOP;
  34097. END LOOP;
  34098. RETURN;
  34099. END;
  34100. '
  34101. LANGUAGE 'plpgsql';
  34102. CREATE OR REPLACE FUNCTION get_sub_feature_ids(bigint) RETURNS SETOF feature_by_fx_type AS
  34103. '
  34104. DECLARE
  34105. root alias for $1;
  34106. myrc feature_by_fx_type%ROWTYPE;
  34107. myrc2 feature_by_fx_type%ROWTYPE;
  34108. BEGIN
  34109. FOR myrc IN SELECT DISTINCT subject_id AS feature_id FROM feature_relationship WHERE object_id = root LOOP
  34110. RETURN NEXT myrc;
  34111. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  34112. RETURN NEXT myrc2;
  34113. END LOOP;
  34114. END LOOP;
  34115. RETURN;
  34116. END;
  34117. '
  34118. LANGUAGE 'plpgsql';
  34119. CREATE OR REPLACE FUNCTION get_up_feature_ids(bigint) RETURNS SETOF feature_by_fx_type AS
  34120. '
  34121. DECLARE
  34122. leaf alias for $1;
  34123. myrc feature_by_fx_type%ROWTYPE;
  34124. myrc2 feature_by_fx_type%ROWTYPE;
  34125. BEGIN
  34126. FOR myrc IN SELECT DISTINCT object_id AS feature_id FROM feature_relationship WHERE subject_id = leaf LOOP
  34127. RETURN NEXT myrc;
  34128. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  34129. RETURN NEXT myrc2;
  34130. END LOOP;
  34131. END LOOP;
  34132. RETURN;
  34133. END;
  34134. '
  34135. LANGUAGE 'plpgsql';
  34136. CREATE OR REPLACE FUNCTION get_sub_feature_ids(bigint, integer) RETURNS SETOF feature_by_fx_type AS
  34137. '
  34138. DECLARE
  34139. root alias for $1;
  34140. depth alias for $2;
  34141. myrc feature_by_fx_type%ROWTYPE;
  34142. myrc2 feature_by_fx_type%ROWTYPE;
  34143. BEGIN
  34144. FOR myrc IN SELECT DISTINCT subject_id AS feature_id, depth FROM feature_relationship WHERE object_id = root LOOP
  34145. RETURN NEXT myrc;
  34146. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id,depth+1) LOOP
  34147. RETURN NEXT myrc2;
  34148. END LOOP;
  34149. END LOOP;
  34150. RETURN;
  34151. END;
  34152. '
  34153. LANGUAGE 'plpgsql';
  34154. --- depth is reversed and meanless when union with results from get_sub_feature_ids
  34155. CREATE OR REPLACE FUNCTION get_up_feature_ids(bigint, integer) RETURNS SETOF feature_by_fx_type AS
  34156. '
  34157. DECLARE
  34158. leaf alias for $1;
  34159. depth alias for $2;
  34160. myrc feature_by_fx_type%ROWTYPE;
  34161. myrc2 feature_by_fx_type%ROWTYPE;
  34162. BEGIN
  34163. FOR myrc IN SELECT DISTINCT object_id AS feature_id, depth FROM feature_relationship WHERE subject_id = leaf LOOP
  34164. RETURN NEXT myrc;
  34165. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id,depth+1) LOOP
  34166. RETURN NEXT myrc2;
  34167. END LOOP;
  34168. END LOOP;
  34169. RETURN;
  34170. END;
  34171. '
  34172. LANGUAGE 'plpgsql';
  34173. --- children feature ids only (not include itself--parent) for SO type and range (src)
  34174. CREATE OR REPLACE FUNCTION get_sub_feature_ids_by_type_src(cvterm.name%TYPE,feature.uniquename%TYPE,char(1)) RETURNS SETOF feature_by_fx_type AS
  34175. '
  34176. DECLARE
  34177. gtype alias for $1;
  34178. src alias for $2;
  34179. is_an alias for $3;
  34180. query text;
  34181. myrc feature_by_fx_type%ROWTYPE;
  34182. myrc2 feature_by_fx_type%ROWTYPE;
  34183. BEGIN
  34184. query := ''SELECT DISTINCT f.feature_id FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  34185. INNER join featureloc fl
  34186. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  34187. WHERE t.name = '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  34188. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34189. IF (STRPOS(gtype, ''%'') > 0) THEN
  34190. query := ''SELECT DISTINCT f.feature_id FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  34191. INNER join featureloc fl
  34192. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  34193. WHERE t.name like '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  34194. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34195. END IF;
  34196. FOR myrc IN SELECT * FROM get_sub_feature_ids(query) LOOP
  34197. RETURN NEXT myrc;
  34198. END LOOP;
  34199. RETURN;
  34200. END;
  34201. '
  34202. LANGUAGE 'plpgsql';
  34203. --- by SO type, usefull for tRNA, ncRNA, etc
  34204. CREATE OR REPLACE FUNCTION get_feature_ids_by_type(cvterm.name%TYPE, char(1)) RETURNS SETOF feature_by_fx_type AS
  34205. '
  34206. DECLARE
  34207. gtype alias for $1;
  34208. is_an alias for $2;
  34209. query TEXT;
  34210. myrc feature_by_fx_type%ROWTYPE;
  34211. myrc2 feature_by_fx_type%ROWTYPE;
  34212. BEGIN
  34213. query := ''SELECT DISTINCT f.feature_id
  34214. FROM feature f, cvterm t WHERE t.cvterm_id = f.type_id AND t.name = '' || quote_literal(gtype) ||
  34215. '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34216. IF (STRPOS(gtype, ''%'') > 0) THEN
  34217. query := ''SELECT DISTINCT f.feature_id
  34218. FROM feature f, cvterm t WHERE t.cvterm_id = f.type_id AND t.name like ''
  34219. || quote_literal(gtype) || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34220. END IF;
  34221. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34222. RETURN NEXT myrc;
  34223. END LOOP;
  34224. RETURN;
  34225. END;
  34226. '
  34227. LANGUAGE 'plpgsql';
  34228. CREATE OR REPLACE FUNCTION get_feature_ids_by_type_src(cvterm.name%TYPE, feature.uniquename%TYPE, char(1)) RETURNS SETOF feature_by_fx_type AS
  34229. '
  34230. DECLARE
  34231. gtype alias for $1;
  34232. src alias for $2;
  34233. is_an alias for $3;
  34234. query TEXT;
  34235. myrc feature_by_fx_type%ROWTYPE;
  34236. myrc2 feature_by_fx_type%ROWTYPE;
  34237. BEGIN
  34238. query := ''SELECT DISTINCT f.feature_id
  34239. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id) INNER join featureloc fl
  34240. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  34241. WHERE t.name = '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  34242. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34243. IF (STRPOS(gtype, ''%'') > 0) THEN
  34244. query := ''SELECT DISTINCT f.feature_id
  34245. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id) INNER join featureloc fl
  34246. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  34247. WHERE t.name like '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  34248. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34249. END IF;
  34250. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34251. RETURN NEXT myrc;
  34252. END LOOP;
  34253. RETURN;
  34254. END;
  34255. '
  34256. LANGUAGE 'plpgsql';
  34257. CREATE OR REPLACE FUNCTION get_feature_ids_by_type_name(cvterm.name%TYPE, feature.uniquename%TYPE, char(1)) RETURNS SETOF feature_by_fx_type AS
  34258. '
  34259. DECLARE
  34260. gtype alias for $1;
  34261. name alias for $2;
  34262. is_an alias for $3;
  34263. query TEXT;
  34264. myrc feature_by_fx_type%ROWTYPE;
  34265. myrc2 feature_by_fx_type%ROWTYPE;
  34266. BEGIN
  34267. query := ''SELECT DISTINCT f.feature_id
  34268. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  34269. WHERE t.name = '' || quote_literal(gtype) || '' AND (f.uniquename = '' || quote_literal(name)
  34270. || '' OR f.name = '' || quote_literal(name) || '') AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34271. IF (STRPOS(name, ''%'') > 0) THEN
  34272. query := ''SELECT DISTINCT f.feature_id
  34273. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  34274. WHERE t.name = '' || quote_literal(gtype) || '' AND (f.uniquename like '' || quote_literal(name)
  34275. || '' OR f.name like '' || quote_literal(name) || '') AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34276. END IF;
  34277. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34278. RETURN NEXT myrc;
  34279. END LOOP;
  34280. RETURN;
  34281. END;
  34282. '
  34283. LANGUAGE 'plpgsql';
  34284. --- get all feature ids (including children) for feature that has an ontology term (say GO function)
  34285. CREATE OR REPLACE FUNCTION get_feature_ids_by_ont(cv.name%TYPE,cvterm.name%TYPE) RETURNS SETOF feature_by_fx_type AS
  34286. '
  34287. DECLARE
  34288. aspect alias for $1;
  34289. term alias for $2;
  34290. query TEXT;
  34291. myrc feature_by_fx_type%ROWTYPE;
  34292. myrc2 feature_by_fx_type%ROWTYPE;
  34293. BEGIN
  34294. query := ''SELECT DISTINCT fcvt.feature_id
  34295. FROM feature_cvterm fcvt, cv, cvterm t WHERE cv.cv_id = t.cv_id AND
  34296. t.cvterm_id = fcvt.cvterm_id AND cv.name = '' || quote_literal(aspect) ||
  34297. '' AND t.name = '' || quote_literal(term) || '';'';
  34298. IF (STRPOS(term, ''%'') > 0) THEN
  34299. query := ''SELECT DISTINCT fcvt.feature_id
  34300. FROM feature_cvterm fcvt, cv, cvterm t WHERE cv.cv_id = t.cv_id AND
  34301. t.cvterm_id = fcvt.cvterm_id AND cv.name = '' || quote_literal(aspect) ||
  34302. '' AND t.name like '' || quote_literal(term) || '';'';
  34303. END IF;
  34304. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34305. RETURN NEXT myrc;
  34306. END LOOP;
  34307. RETURN;
  34308. END;
  34309. '
  34310. LANGUAGE 'plpgsql';
  34311. CREATE OR REPLACE FUNCTION get_feature_ids_by_ont_root(cv.name%TYPE,cvterm.name%TYPE) RETURNS SETOF feature_by_fx_type AS
  34312. '
  34313. DECLARE
  34314. aspect alias for $1;
  34315. term alias for $2;
  34316. query TEXT;
  34317. subquery TEXT;
  34318. myrc feature_by_fx_type%ROWTYPE;
  34319. myrc2 feature_by_fx_type%ROWTYPE;
  34320. BEGIN
  34321. subquery := ''SELECT t.cvterm_id FROM cv, cvterm t WHERE cv.cv_id = t.cv_id
  34322. AND cv.name = '' || quote_literal(aspect) || '' AND t.name = '' || quote_literal(term) || '';'';
  34323. IF (STRPOS(term, ''%'') > 0) THEN
  34324. subquery := ''SELECT t.cvterm_id FROM cv, cvterm t WHERE cv.cv_id = t.cv_id
  34325. AND cv.name = '' || quote_literal(aspect) || '' AND t.name like '' || quote_literal(term) || '';'';
  34326. END IF;
  34327. query := ''SELECT DISTINCT fcvt.feature_id
  34328. FROM feature_cvterm fcvt INNER JOIN (SELECT cvterm_id FROM get_it_sub_cvterm_ids('' || quote_literal(subquery) || '')) AS ont ON (fcvt.cvterm_id = ont.cvterm_id);'';
  34329. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34330. RETURN NEXT myrc;
  34331. END LOOP;
  34332. RETURN;
  34333. END;
  34334. '
  34335. LANGUAGE 'plpgsql';
  34336. --- get all feature ids (including children) for feature with the property (type, val)
  34337. CREATE OR REPLACE FUNCTION get_feature_ids_by_property(cvterm.name%TYPE,varchar) RETURNS SETOF feature_by_fx_type AS
  34338. '
  34339. DECLARE
  34340. p_type alias for $1;
  34341. p_val alias for $2;
  34342. query TEXT;
  34343. myrc feature_by_fx_type%ROWTYPE;
  34344. myrc2 feature_by_fx_type%ROWTYPE;
  34345. BEGIN
  34346. query := ''SELECT DISTINCT fprop.feature_id
  34347. FROM featureprop fprop, cvterm t WHERE t.cvterm_id = fprop.type_id AND t.name = '' ||
  34348. quote_literal(p_type) || '' AND fprop.value = '' || quote_literal(p_val) || '';'';
  34349. IF (STRPOS(p_val, ''%'') > 0) THEN
  34350. query := ''SELECT DISTINCT fprop.feature_id
  34351. FROM featureprop fprop, cvterm t WHERE t.cvterm_id = fprop.type_id AND t.name = '' ||
  34352. quote_literal(p_type) || '' AND fprop.value like '' || quote_literal(p_val) || '';'';
  34353. END IF;
  34354. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34355. RETURN NEXT myrc;
  34356. END LOOP;
  34357. RETURN;
  34358. END;
  34359. '
  34360. LANGUAGE 'plpgsql';
  34361. --- get all feature ids (including children) for feature with the property val
  34362. CREATE OR REPLACE FUNCTION get_feature_ids_by_propval(varchar) RETURNS SETOF feature_by_fx_type AS
  34363. '
  34364. DECLARE
  34365. p_val alias for $1;
  34366. query TEXT;
  34367. myrc feature_by_fx_type%ROWTYPE;
  34368. myrc2 feature_by_fx_type%ROWTYPE;
  34369. BEGIN
  34370. query := ''SELECT DISTINCT fprop.feature_id
  34371. FROM featureprop fprop WHERE fprop.value = '' || quote_literal(p_val) || '';'';
  34372. IF (STRPOS(p_val, ''%'') > 0) THEN
  34373. query := ''SELECT DISTINCT fprop.feature_id
  34374. FROM featureprop fprop WHERE fprop.value like '' || quote_literal(p_val) || '';'';
  34375. END IF;
  34376. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34377. RETURN NEXT myrc;
  34378. END LOOP;
  34379. RETURN;
  34380. END;
  34381. '
  34382. LANGUAGE 'plpgsql';
  34383. ---4 args: ptype, ctype, count, operator (valid SQL number comparison operator), and is_analysis
  34384. ---get feature ids for any node with type = ptype whose child node type = ctype
  34385. ---and child node feature count comparing (using operator) to ccount
  34386. CREATE OR REPLACE FUNCTION get_feature_ids_by_child_count(cvterm.name%TYPE, cvterm.name%TYPE, INTEGER, varchar, char(1)) RETURNS SETOF feature_by_fx_type AS
  34387. '
  34388. DECLARE
  34389. ptype alias for $1;
  34390. ctype alias for $2;
  34391. ccount alias for $3;
  34392. operator alias for $4;
  34393. is_an alias for $5;
  34394. query TEXT;
  34395. myrc feature_by_fx_type%ROWTYPE;
  34396. myrc2 feature_by_fx_type %ROWTYPE;
  34397. BEGIN
  34398. query := ''SELECT DISTINCT f.feature_id
  34399. FROM feature f INNER join (select count(*) as c, p.feature_id FROM feature p
  34400. INNER join cvterm pt ON (p.type_id = pt.cvterm_id) INNER join feature_relationship fr
  34401. ON (p.feature_id = fr.object_id) INNER join feature c ON (c.feature_id = fr.subject_id)
  34402. INNER join cvterm ct ON (c.type_id = ct.cvterm_id)
  34403. WHERE pt.name = '' || quote_literal(ptype) || '' AND ct.name = '' || quote_literal(ctype)
  34404. || '' AND p.is_analysis = '' || quote_literal(is_an) || '' group by p.feature_id) as cq
  34405. ON (cq.feature_id = f.feature_id) WHERE cq.c '' || operator || ccount || '';'';
  34406. ---RAISE NOTICE ''%'', query;
  34407. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34408. RETURN NEXT myrc;
  34409. END LOOP;
  34410. RETURN;
  34411. END;
  34412. '
  34413. LANGUAGE 'plpgsql';
  34414. -- $Id: companalysis.sql,v 1.37 2007-03-23 15:18:02 scottcain Exp $
  34415. -- ==========================================
  34416. -- Chado companalysis module
  34417. --
  34418. -- =================================================================
  34419. -- Dependencies:
  34420. --
  34421. -- :import feature from sequence
  34422. -- :import cvterm from cv
  34423. -- :import dbxref from db
  34424. -- :import pub from pub
  34425. -- =================================================================
  34426. -- ================================================
  34427. -- TABLE: analysis
  34428. -- ================================================
  34429. create table analysis (
  34430. analysis_id bigserial not null,
  34431. primary key (analysis_id),
  34432. name varchar(255),
  34433. description text,
  34434. program varchar(255) not null,
  34435. programversion varchar(255) not null,
  34436. algorithm varchar(255),
  34437. sourcename varchar(255),
  34438. sourceversion varchar(255),
  34439. sourceuri text,
  34440. timeexecuted timestamp not null default current_timestamp,
  34441. constraint analysis_c1 unique (program,programversion,sourcename)
  34442. );
  34443. COMMENT ON TABLE analysis IS 'An analysis is a particular type of a
  34444. computational analysis; it may be a blast of one sequence against
  34445. another, or an all by all blast, or a different kind of analysis
  34446. altogether. It is a single unit of computation.';
  34447. COMMENT ON COLUMN analysis.name IS 'A way of grouping analyses. This
  34448. should be a handy short identifier that can help people find an
  34449. analysis they want. For instance "tRNAscan", "cDNA", "FlyPep",
  34450. "SwissProt", and it should not be assumed to be unique. For instance, there may be lots of separate analyses done against a cDNA database.';
  34451. COMMENT ON COLUMN analysis.program IS 'Program name, e.g. blastx, blastp, sim4, genscan.';
  34452. COMMENT ON COLUMN analysis.programversion IS 'Version description, e.g. TBLASTX 2.0MP-WashU [09-Nov-2000].';
  34453. COMMENT ON COLUMN analysis.algorithm IS 'Algorithm name, e.g. blast.';
  34454. COMMENT ON COLUMN analysis.sourcename IS 'Source name, e.g. cDNA, SwissProt.';
  34455. COMMENT ON COLUMN analysis.sourceuri IS 'This is an optional, permanent URL or URI for the source of the analysis. The idea is that someone could recreate the analysis directly by going to this URI and fetching the source data (e.g. the blast database, or the training model).';
  34456. -- ================================================
  34457. -- TABLE: analysisprop
  34458. -- ================================================
  34459. create table analysisprop (
  34460. analysisprop_id bigserial not null,
  34461. primary key (analysisprop_id),
  34462. analysis_id bigint not null,
  34463. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  34464. type_id bigint not null,
  34465. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34466. value text,
  34467. rank int not null default 0,
  34468. constraint analysisprop_c1 unique (analysis_id,type_id,rank)
  34469. );
  34470. create index analysisprop_idx1 on analysisprop (analysis_id);
  34471. create index analysisprop_idx2 on analysisprop (type_id);
  34472. -- ================================================
  34473. -- TABLE: analysisfeature
  34474. -- ================================================
  34475. create table analysisfeature (
  34476. analysisfeature_id bigserial not null,
  34477. primary key (analysisfeature_id),
  34478. feature_id bigint not null,
  34479. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34480. analysis_id bigint not null,
  34481. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  34482. rawscore double precision,
  34483. normscore double precision,
  34484. significance double precision,
  34485. identity double precision,
  34486. constraint analysisfeature_c1 unique (feature_id,analysis_id)
  34487. );
  34488. create index analysisfeature_idx1 on analysisfeature (feature_id);
  34489. create index analysisfeature_idx2 on analysisfeature (analysis_id);
  34490. COMMENT ON TABLE analysisfeature IS 'Computational analyses generate features (e.g. Genscan generates transcripts and exons; sim4 alignments generate similarity/match features). analysisfeatures are stored using the feature table from the sequence module. The analysisfeature table is used to decorate these features, with analysis specific attributes. A feature is an analysisfeature if and only if there is a corresponding entry in the analysisfeature table. analysisfeatures will have two or more featureloc entries,
  34491. with rank indicating query/subject';
  34492. COMMENT ON COLUMN analysisfeature.identity IS 'Percent identity between the locations compared. Note that these 4 metrics do not cover the full range of scores possible; it would be undesirable to list every score possible, as this should be kept extensible. instead, for non-standard scores, use the analysisprop table.';
  34493. COMMENT ON COLUMN analysisfeature.significance IS 'This is some kind of expectation or probability metric, representing the probability that the analysis would appear randomly given the model. As such, any program or person querying this table can assume the following semantics:
  34494. * 0 <= significance <= n, where n is a positive number, theoretically unbounded but unlikely to be more than 10
  34495. * low numbers are better than high numbers.';
  34496. COMMENT ON COLUMN analysisfeature.normscore IS 'This is the rawscore but
  34497. semi-normalized. Complete normalization to allow comparison of
  34498. features generated by different programs would be nice but too
  34499. difficult. Instead the normalization should strive to enforce the
  34500. following semantics: * normscores are floating point numbers >= 0,
  34501. * high normscores are better than low one. For most programs, it would be sufficient to make the normscore the same as this rawscore, providing these semantics are satisfied.';
  34502. COMMENT ON COLUMN analysisfeature.rawscore IS 'This is the native score generated by the program; for example, the bitscore generated by blast, sim4 or genscan scores. One should not assume that high is necessarily better than low.';
  34503. -- ================================================
  34504. -- TABLE: analysisfeatureprop
  34505. -- ================================================
  34506. CREATE TABLE analysisfeatureprop (
  34507. analysisfeatureprop_id bigserial PRIMARY KEY,
  34508. analysisfeature_id bigint NOT NULL REFERENCES analysisfeature(analysisfeature_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
  34509. type_id bigint NOT NULL REFERENCES cvterm(cvterm_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
  34510. value TEXT,
  34511. rank int NOT NULL,
  34512. CONSTRAINT analysisfeature_id_type_id_rank UNIQUE(analysisfeature_id, type_id, rank)
  34513. );
  34514. create index analysisfeatureprop_idx1 on analysisfeatureprop (analysisfeature_id);
  34515. create index analysisfeatureprop_idx2 on analysisfeatureprop (type_id);
  34516. -- ================================================
  34517. -- TABLE: analysis_dbxref
  34518. -- ================================================
  34519. create table analysis_dbxref (
  34520. analysis_dbxref_id bigserial not null,
  34521. analysis_id bigint not null,
  34522. dbxref_id bigint not null,
  34523. primary key (analysis_dbxref_id),
  34524. is_current boolean not null default 'true',
  34525. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  34526. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  34527. constraint analysis_dbxref_c1 unique (analysis_id,dbxref_id)
  34528. );
  34529. create index analysis_dbxref_idx1 on analysis_dbxref (analysis_id);
  34530. create index analysis_dbxref_idx2 on analysis_dbxref (dbxref_id);
  34531. COMMENT ON TABLE analysis_dbxref IS 'Links an analysis to dbxrefs.';
  34532. COMMENT ON COLUMN analysis_dbxref.is_current IS 'True if this dbxref
  34533. is the most up to date accession in the corresponding db. Retired
  34534. accessions should set this field to false';
  34535. -- ================================================
  34536. -- TABLE: analysis_cvterm
  34537. -- ================================================
  34538. create table analysis_cvterm (
  34539. analysis_cvterm_id bigserial not null,
  34540. analysis_id bigint not null,
  34541. cvterm_id bigint not null,
  34542. is_not boolean not null default false,
  34543. rank integer not null default 0,
  34544. primary key (analysis_cvterm_id),
  34545. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  34546. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34547. constraint analysis_cvterm_c1 unique (analysis_id,cvterm_id,rank)
  34548. );
  34549. create index analysis_cvterm_idx1 on analysis_cvterm (analysis_id);
  34550. create index analysis_cvterm_idx2 on analysis_cvterm (cvterm_id);
  34551. COMMENT ON TABLE analysis_cvterm IS 'Associate a term from a cv with an analysis.';
  34552. COMMENT ON COLUMN analysis_cvterm.is_not IS 'If this is set to true, then this
  34553. annotation is interpreted as a NEGATIVE annotation - i.e. the analysis does
  34554. NOT have the specified term.';
  34555. -- ================================================
  34556. -- TABLE: analysis_relationship
  34557. -- ================================================
  34558. create table analysis_relationship (
  34559. analysis_relationship_id bigserial not null,
  34560. subject_id bigint not null,
  34561. object_id bigint not null,
  34562. type_id bigint not null,
  34563. value text null,
  34564. rank int not null default 0,
  34565. primary key (analysis_relationship_id),
  34566. foreign key (subject_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  34567. foreign key (object_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  34568. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34569. constraint analysis_relationship_c1 unique (subject_id,object_id,type_id,rank)
  34570. );
  34571. create index analysis_relationship_idx1 on analysis_relationship (subject_id);
  34572. create index analysis_relationship_idx2 on analysis_relationship (object_id);
  34573. create index analysis_relationship_idx3 on analysis_relationship (type_id);
  34574. COMMENT ON COLUMN analysis_relationship.subject_id IS 'analysis_relationship.subject_id i
  34575. s the subject of the subj-predicate-obj sentence.';
  34576. COMMENT ON COLUMN analysis_relationship.object_id IS 'analysis_relationship.object_id
  34577. is the object of the subj-predicate-obj sentence.';
  34578. COMMENT ON COLUMN analysis_relationship.type_id IS 'analysis_relationship.type_id
  34579. is relationship type between subject and object. This is a cvterm, typically
  34580. from the OBO relationship ontology, although other relationship types are allowed.';
  34581. COMMENT ON COLUMN analysis_relationship.rank IS 'analysis_relationship.rank is
  34582. the ordering of subject analysiss with respect to the object analysis may be
  34583. important where rank is used to order these; starts from zero.';
  34584. COMMENT ON COLUMN analysis_relationship.value IS 'analysis_relationship.value
  34585. is for additional notes or comments.';
  34586. -- ================================================
  34587. -- TABLE: analysis_pub
  34588. -- ================================================
  34589. create table analysis_pub (
  34590. analysis_pub_id bigserial not null,
  34591. primary key (analysis_pub_id),
  34592. analysis_id bigint not null,
  34593. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  34594. pub_id bigint not null,
  34595. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  34596. constraint analysis_pub_c1 unique (analysis_id, pub_id)
  34597. );
  34598. create index analysis_pub_idx1 on analysis_pub (analysis_id);
  34599. create index analysis_pub_idx2 on analysis_pub (pub_id);
  34600. COMMENT ON TABLE analysis_pub IS 'Provenance. Linking table between analyses and the publications that mention them.';
  34601. CREATE OR REPLACE FUNCTION store_analysis (VARCHAR,VARCHAR,VARCHAR)
  34602. RETURNS BIGINT AS
  34603. 'DECLARE
  34604. v_program ALIAS FOR $1;
  34605. v_programversion ALIAS FOR $2;
  34606. v_sourcename ALIAS FOR $3;
  34607. pkval BIGINT;
  34608. BEGIN
  34609. SELECT INTO pkval analysis_id
  34610. FROM analysis
  34611. WHERE program=v_program AND
  34612. programversion=v_programversion AND
  34613. sourcename=v_sourcename;
  34614. IF NOT FOUND THEN
  34615. INSERT INTO analysis
  34616. (program,programversion,sourcename)
  34617. VALUES
  34618. (v_program,v_programversion,v_sourcename);
  34619. RETURN currval(''analysis_analysis_id_seq'');
  34620. END IF;
  34621. RETURN pkval;
  34622. END;
  34623. ' LANGUAGE 'plpgsql';
  34624. --CREATE OR REPLACE FUNCTION store_analysisfeature
  34625. --()
  34626. --RETURNS INT AS
  34627. --'DECLARE
  34628. -- v_srcfeature_id ALIAS FOR $1;
  34629. -- $Id: phenotype.sql,v 1.6 2007-04-27 16:09:46 emmert Exp $
  34630. -- ==========================================
  34631. -- Chado phenotype module
  34632. --
  34633. -- 05-31-2011
  34634. -- added 'name' column to phenotype. non-unique human readable field.
  34635. --
  34636. -- =================================================================
  34637. -- Dependencies:
  34638. --
  34639. -- :import cvterm from cv
  34640. -- :import feature from sequence
  34641. -- =================================================================
  34642. -- ================================================
  34643. -- TABLE: phenotype
  34644. -- ================================================
  34645. CREATE TABLE phenotype (
  34646. phenotype_id bigserial NOT NULL,
  34647. primary key (phenotype_id),
  34648. uniquename TEXT NOT NULL,
  34649. name TEXT default null,
  34650. observable_id bigint,
  34651. FOREIGN KEY (observable_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34652. attr_id bigint,
  34653. FOREIGN KEY (attr_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  34654. value TEXT,
  34655. cvalue_id bigint,
  34656. FOREIGN KEY (cvalue_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  34657. assay_id bigint,
  34658. FOREIGN KEY (assay_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  34659. CONSTRAINT phenotype_c1 UNIQUE (uniquename)
  34660. );
  34661. CREATE INDEX phenotype_idx1 ON phenotype (cvalue_id);
  34662. CREATE INDEX phenotype_idx2 ON phenotype (observable_id);
  34663. CREATE INDEX phenotype_idx3 ON phenotype (attr_id);
  34664. COMMENT ON TABLE phenotype IS 'A phenotypic statement, or a single
  34665. atomic phenotypic observation, is a controlled sentence describing
  34666. observable effects of non-wild type function. E.g. Obs=eye, attribute=color, cvalue=red.';
  34667. COMMENT ON COLUMN phenotype.observable_id IS 'The entity: e.g. anatomy_part, biological_process.';
  34668. COMMENT ON COLUMN phenotype.attr_id IS 'Phenotypic attribute (quality, property, attribute, character) - drawn from PATO.';
  34669. COMMENT ON COLUMN phenotype.value IS 'Value of attribute - unconstrained free text. Used only if cvalue_id is not appropriate.';
  34670. COMMENT ON COLUMN phenotype.cvalue_id IS 'Phenotype attribute value (state).';
  34671. COMMENT ON COLUMN phenotype.assay_id IS 'Evidence type.';
  34672. -- ================================================
  34673. -- TABLE: phenotype_cvterm
  34674. -- ================================================
  34675. CREATE TABLE phenotype_cvterm (
  34676. phenotype_cvterm_id bigserial NOT NULL,
  34677. primary key (phenotype_cvterm_id),
  34678. phenotype_id bigint NOT NULL,
  34679. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34680. cvterm_id bigint NOT NULL,
  34681. FOREIGN KEY (cvterm_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34682. rank int not null default 0,
  34683. CONSTRAINT phenotype_cvterm_c1 UNIQUE (phenotype_id, cvterm_id, rank)
  34684. );
  34685. CREATE INDEX phenotype_cvterm_idx1 ON phenotype_cvterm (phenotype_id);
  34686. CREATE INDEX phenotype_cvterm_idx2 ON phenotype_cvterm (cvterm_id);
  34687. COMMENT ON TABLE phenotype_cvterm IS 'phenotype to cvterm associations.';
  34688. -- ================================================
  34689. -- TABLE: feature_phenotype
  34690. -- ================================================
  34691. CREATE TABLE feature_phenotype (
  34692. feature_phenotype_id bigserial NOT NULL,
  34693. primary key (feature_phenotype_id),
  34694. feature_id bigint NOT NULL,
  34695. FOREIGN KEY (feature_id) REFERENCES feature (feature_id) ON DELETE CASCADE,
  34696. phenotype_id bigint NOT NULL,
  34697. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34698. CONSTRAINT feature_phenotype_c1 UNIQUE (feature_id,phenotype_id)
  34699. );
  34700. CREATE INDEX feature_phenotype_idx1 ON feature_phenotype (feature_id);
  34701. CREATE INDEX feature_phenotype_idx2 ON feature_phenotype (phenotype_id);
  34702. COMMENT ON TABLE feature_phenotype IS 'Linking table between features and phenotypes.';
  34703. -- ================================================
  34704. -- TABLE: phenotypeprop
  34705. -- ================================================
  34706. create table phenotypeprop (
  34707. phenotypeprop_id bigserial not null,
  34708. primary key (phenotypeprop_id),
  34709. phenotype_id bigint not null,
  34710. foreign key (phenotype_id) references phenotype (phenotype_id) on delete cascade INITIALLY DEFERRED,
  34711. type_id bigint not null,
  34712. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34713. value text null,
  34714. rank int not null default 0,
  34715. constraint phenotypeprop_c1 unique (phenotype_id,type_id,rank)
  34716. );
  34717. create index phenotypeprop_idx1 on phenotypeprop (phenotype_id);
  34718. create index phenotypeprop_idx2 on phenotypeprop (type_id);
  34719. COMMENT ON TABLE phenotypeprop IS 'A phenotype can have any number of slot-value property tags attached to it. This is an alternative to hardcoding a list of columns in the relational schema, and is completely extensible. There is a unique constraint, phenotypeprop_c1, for the combination of phenotype_id, rank, and type_id. Multivalued property-value pairs must be differentiated by rank.';
  34720. -- $Id: genetic.sql,v 1.31 2008-08-25 19:53:14 scottcain Exp $
  34721. -- ==========================================
  34722. -- Chado genetics module
  34723. --
  34724. -- changes 2011-05-31
  34725. -- added type_id to genotype (can be null for backward compatibility)
  34726. -- added genotypeprop table
  34727. -- 2006-04-11
  34728. -- split out phenotype tables into phenotype module
  34729. --
  34730. -- redesigned 2003-10-28
  34731. --
  34732. -- changes 2003-11-10:
  34733. -- incorporating suggestions to make everything a gcontext; use
  34734. -- gcontext_relationship to make some gcontexts derivable from others. we
  34735. -- would incorporate environment this way - just add the environment
  34736. -- descriptors as properties of the child gcontext
  34737. --
  34738. -- changes 2004-06 (Documented by DE: 10-MAR-2005):
  34739. -- Many, including rename of gcontext to genotype, split
  34740. -- phenstatement into phenstatement & phenotype, created environment
  34741. --
  34742. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34743. -- ============
  34744. -- DEPENDENCIES
  34745. -- ============
  34746. -- :import feature from sequence
  34747. -- :import phenotype from phenotype
  34748. -- :import cvterm from cv
  34749. -- :import pub from pub
  34750. -- :import dbxref from db
  34751. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34752. -- ================================================
  34753. -- TABLE: genotype
  34754. -- ================================================
  34755. create table genotype (
  34756. genotype_id bigserial not null,
  34757. primary key (genotype_id),
  34758. name text,
  34759. uniquename text not null,
  34760. description text,
  34761. type_id bigint NOT NULL,
  34762. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34763. constraint genotype_c1 unique (uniquename)
  34764. );
  34765. create index genotype_idx1 on genotype(uniquename);
  34766. create index genotype_idx2 on genotype(name);
  34767. COMMENT ON TABLE genotype IS 'Genetic context. A genotype is defined by a collection of features, mutations, balancers, deficiencies, haplotype blocks, or engineered constructs.';
  34768. COMMENT ON COLUMN genotype.uniquename IS 'The unique name for a genotype;
  34769. typically derived from the features making up the genotype.';
  34770. COMMENT ON COLUMN genotype.name IS 'Optional alternative name for a genotype,
  34771. for display purposes.';
  34772. -- ===============================================
  34773. -- TABLE: feature_genotype
  34774. -- ================================================
  34775. create table feature_genotype (
  34776. feature_genotype_id bigserial not null,
  34777. primary key (feature_genotype_id),
  34778. feature_id bigint not null,
  34779. foreign key (feature_id) references feature (feature_id) on delete cascade,
  34780. genotype_id bigint not null,
  34781. foreign key (genotype_id) references genotype (genotype_id) on delete cascade,
  34782. chromosome_id bigint,
  34783. foreign key (chromosome_id) references feature (feature_id) on delete set null,
  34784. rank int not null,
  34785. cgroup int not null,
  34786. cvterm_id bigint not null,
  34787. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  34788. constraint feature_genotype_c1 unique (feature_id, genotype_id, cvterm_id, chromosome_id, rank, cgroup)
  34789. );
  34790. create index feature_genotype_idx1 on feature_genotype (feature_id);
  34791. create index feature_genotype_idx2 on feature_genotype (genotype_id);
  34792. COMMENT ON TABLE feature_genotype IS NULL;
  34793. COMMENT ON COLUMN feature_genotype.rank IS 'rank can be used for
  34794. n-ploid organisms or to preserve order.';
  34795. COMMENT ON COLUMN feature_genotype.cgroup IS 'Spatially distinguishable
  34796. group. group can be used for distinguishing the chromosomal groups,
  34797. for example (RNAi products and so on can be treated as different
  34798. groups, as they do not fall on a particular chromosome).';
  34799. COMMENT ON COLUMN feature_genotype.chromosome_id IS 'A feature of SO type "chromosome".';
  34800. -- ================================================
  34801. -- TABLE: environment
  34802. -- ================================================
  34803. create table environment (
  34804. environment_id bigserial not NULL,
  34805. primary key (environment_id),
  34806. uniquename text not null,
  34807. description text,
  34808. constraint environment_c1 unique (uniquename)
  34809. );
  34810. create index environment_idx1 on environment(uniquename);
  34811. COMMENT ON TABLE environment IS 'The environmental component of a phenotype description.';
  34812. -- ================================================
  34813. -- TABLE: environment_cvterm
  34814. -- ================================================
  34815. create table environment_cvterm (
  34816. environment_cvterm_id bigserial not null,
  34817. primary key (environment_cvterm_id),
  34818. environment_id bigint not null,
  34819. foreign key (environment_id) references environment (environment_id) on delete cascade,
  34820. cvterm_id bigint not null,
  34821. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  34822. constraint environment_cvterm_c1 unique (environment_id, cvterm_id)
  34823. );
  34824. create index environment_cvterm_idx1 on environment_cvterm (environment_id);
  34825. create index environment_cvterm_idx2 on environment_cvterm (cvterm_id);
  34826. COMMENT ON TABLE environment_cvterm IS NULL;
  34827. -- ================================================
  34828. -- TABLE: phenstatement
  34829. -- ================================================
  34830. CREATE TABLE phenstatement (
  34831. phenstatement_id bigserial NOT NULL,
  34832. primary key (phenstatement_id),
  34833. genotype_id bigint NOT NULL,
  34834. FOREIGN KEY (genotype_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  34835. environment_id bigint NOT NULL,
  34836. FOREIGN KEY (environment_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  34837. phenotype_id bigint NOT NULL,
  34838. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34839. type_id bigint NOT NULL,
  34840. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34841. pub_id bigint NOT NULL,
  34842. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  34843. CONSTRAINT phenstatement_c1 UNIQUE (genotype_id,phenotype_id,environment_id,type_id,pub_id)
  34844. );
  34845. CREATE INDEX phenstatement_idx1 ON phenstatement (genotype_id);
  34846. CREATE INDEX phenstatement_idx2 ON phenstatement (phenotype_id);
  34847. COMMENT ON TABLE phenstatement IS 'Phenotypes are things like "larval lethal". Phenstatements are things like "dpp-1 is recessive larval lethal". So essentially phenstatement is a linking table expressing the relationship between genotype, environment, and phenotype.';
  34848. -- ================================================
  34849. -- TABLE: phendesc
  34850. -- ================================================
  34851. CREATE TABLE phendesc (
  34852. phendesc_id bigserial NOT NULL,
  34853. primary key (phendesc_id),
  34854. genotype_id bigint NOT NULL,
  34855. FOREIGN KEY (genotype_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  34856. environment_id bigint NOT NULL,
  34857. FOREIGN KEY (environment_id) REFERENCES environment ( environment_id) ON DELETE CASCADE,
  34858. description TEXT NOT NULL,
  34859. type_id bigint NOT NULL,
  34860. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34861. pub_id bigint NOT NULL,
  34862. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  34863. CONSTRAINT phendesc_c1 UNIQUE (genotype_id,environment_id,type_id,pub_id)
  34864. );
  34865. CREATE INDEX phendesc_idx1 ON phendesc (genotype_id);
  34866. CREATE INDEX phendesc_idx2 ON phendesc (environment_id);
  34867. CREATE INDEX phendesc_idx3 ON phendesc (pub_id);
  34868. COMMENT ON TABLE phendesc IS 'A summary of a _set_ of phenotypic statements for any one gcontext made in any one publication.';
  34869. -- ================================================
  34870. -- TABLE: phenotype_comparison
  34871. -- ================================================
  34872. CREATE TABLE phenotype_comparison (
  34873. phenotype_comparison_id bigserial NOT NULL,
  34874. primary key (phenotype_comparison_id),
  34875. genotype1_id bigint NOT NULL,
  34876. FOREIGN KEY (genotype1_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  34877. environment1_id bigint NOT NULL,
  34878. FOREIGN KEY (environment1_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  34879. genotype2_id bigint NOT NULL,
  34880. FOREIGN KEY (genotype2_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  34881. environment2_id bigint NOT NULL,
  34882. FOREIGN KEY (environment2_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  34883. phenotype1_id bigint NOT NULL,
  34884. FOREIGN KEY (phenotype1_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34885. phenotype2_id bigint,
  34886. FOREIGN KEY (phenotype2_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34887. pub_id bigint NOT NULL,
  34888. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  34889. organism_id bigint NOT NULL,
  34890. FOREIGN KEY (organism_id) REFERENCES organism (organism_id) ON DELETE CASCADE,
  34891. CONSTRAINT phenotype_comparison_c1 UNIQUE (genotype1_id,environment1_id,genotype2_id,environment2_id,phenotype1_id,pub_id)
  34892. );
  34893. CREATE INDEX phenotype_comparison_idx1 on phenotype_comparison (genotype1_id);
  34894. CREATE INDEX phenotype_comparison_idx2 on phenotype_comparison (genotype2_id);
  34895. CREATE INDEX phenotype_comparison_idx4 on phenotype_comparison (pub_id);
  34896. COMMENT ON TABLE phenotype_comparison IS 'Comparison of phenotypes e.g., genotype1/environment1/phenotype1 "non-suppressible" with respect to genotype2/environment2/phenotype2.';
  34897. -- ================================================
  34898. -- TABLE: phenotype_comparison_cvterm
  34899. -- ================================================
  34900. CREATE TABLE phenotype_comparison_cvterm (
  34901. phenotype_comparison_cvterm_id bigserial not null,
  34902. primary key (phenotype_comparison_cvterm_id),
  34903. phenotype_comparison_id bigint not null,
  34904. FOREIGN KEY (phenotype_comparison_id) references phenotype_comparison (phenotype_comparison_id) on delete cascade,
  34905. cvterm_id bigint not null,
  34906. FOREIGN KEY (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  34907. pub_id bigint not null,
  34908. FOREIGN KEY (pub_id) references pub (pub_id) on delete cascade,
  34909. rank int not null default 0,
  34910. CONSTRAINT phenotype_comparison_cvterm_c1 unique (phenotype_comparison_id, cvterm_id)
  34911. );
  34912. CREATE INDEX phenotype_comparison_cvterm_idx1 on phenotype_comparison_cvterm (phenotype_comparison_id);
  34913. CREATE INDEX phenotype_comparison_cvterm_idx2 on phenotype_comparison_cvterm (cvterm_id);
  34914. -- ================================================
  34915. -- TABLE: genotypeprop
  34916. -- ================================================
  34917. create table genotypeprop (
  34918. genotypeprop_id bigserial not null,
  34919. primary key (genotypeprop_id),
  34920. genotype_id bigint not null,
  34921. foreign key (genotype_id) references genotype (genotype_id) on delete cascade INITIALLY DEFERRED,
  34922. type_id bigint not null,
  34923. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34924. value text null,
  34925. rank int not null default 0,
  34926. constraint genotypeprop_c1 unique (genotype_id,type_id,rank)
  34927. );
  34928. create index genotypeprop_idx1 on genotypeprop (genotype_id);
  34929. create index genotypeprop_idx2 on genotypeprop (type_id);
  34930. -- $Id: map.sql,v 1.14 2007-03-23 15:18:02 scottcain Exp $
  34931. -- ==========================================
  34932. -- Chado map module
  34933. --
  34934. -- =================================================================
  34935. -- Dependencies:
  34936. --
  34937. -- :import feature from sequence
  34938. -- :import cvterm from cv
  34939. -- :import pub from pub
  34940. -- :import contact from contact
  34941. -- :import dbxref from db
  34942. -- :import organism from organism
  34943. -- =================================================================
  34944. -- ================================================
  34945. -- TABLE: featuremap
  34946. -- ================================================
  34947. create table featuremap (
  34948. featuremap_id bigserial not null,
  34949. primary key (featuremap_id),
  34950. name varchar(255),
  34951. description text,
  34952. unittype_id bigint null,
  34953. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  34954. constraint featuremap_c1 unique (name)
  34955. );
  34956. -- ================================================
  34957. -- TABLE: featurerange
  34958. -- ================================================
  34959. create table featurerange (
  34960. featurerange_id bigserial not null,
  34961. primary key (featurerange_id),
  34962. featuremap_id bigint not null,
  34963. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  34964. feature_id bigint not null,
  34965. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34966. leftstartf_id bigint not null,
  34967. foreign key (leftstartf_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34968. leftendf_id bigint,
  34969. foreign key (leftendf_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  34970. rightstartf_id bigint,
  34971. foreign key (rightstartf_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  34972. rightendf_id bigint not null,
  34973. foreign key (rightendf_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34974. rangestr varchar(255)
  34975. );
  34976. create index featurerange_idx1 on featurerange (featuremap_id);
  34977. create index featurerange_idx2 on featurerange (feature_id);
  34978. create index featurerange_idx3 on featurerange (leftstartf_id);
  34979. create index featurerange_idx4 on featurerange (leftendf_id);
  34980. create index featurerange_idx5 on featurerange (rightstartf_id);
  34981. create index featurerange_idx6 on featurerange (rightendf_id);
  34982. COMMENT ON TABLE featurerange IS 'In cases where the start and end of a mapped feature is a range, leftendf and rightstartf are populated. leftstartf_id, leftendf_id, rightstartf_id, rightendf_id are the ids of features with respect to which the feature is being mapped. These may be cytological bands.';
  34983. COMMENT ON COLUMN featurerange.featuremap_id IS 'featuremap_id is the id of the feature being mapped.';
  34984. -- ================================================
  34985. -- TABLE: featurepos
  34986. -- ================================================
  34987. create table featurepos (
  34988. featurepos_id bigserial not null,
  34989. primary key (featurepos_id),
  34990. featuremap_id bigint not null,
  34991. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  34992. feature_id bigint not null,
  34993. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34994. map_feature_id bigint not null,
  34995. foreign key (map_feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34996. mappos float not null
  34997. );
  34998. create index featurepos_idx1 on featurepos (featuremap_id);
  34999. create index featurepos_idx2 on featurepos (feature_id);
  35000. create index featurepos_idx3 on featurepos (map_feature_id);
  35001. COMMENT ON COLUMN featurepos.map_feature_id IS 'map_feature_id
  35002. links to the feature (map) upon which the feature is being localized.';
  35003. -- ================================================
  35004. -- TABLE: featureposprop
  35005. -- ================================================
  35006. CREATE TABLE featureposprop (
  35007. featureposprop_id bigserial primary key NOT NULL,
  35008. featurepos_id bigint NOT NULL,
  35009. type_id bigint NOT NULL,
  35010. value text,
  35011. rank integer DEFAULT 0 NOT NULL,
  35012. CONSTRAINT featureposprop_c1 UNIQUE (featurepos_id, type_id, rank),
  35013. FOREIGN KEY (featurepos_id) REFERENCES featurepos(featurepos_id) ON DELETE CASCADE,
  35014. FOREIGN KEY (type_id) REFERENCES cvterm(cvterm_id) ON DELETE CASCADE
  35015. );
  35016. CREATE INDEX featureposprop_idx1 ON featureposprop USING btree (featurepos_id);
  35017. CREATE INDEX featureposprop_idx2 ON featureposprop USING btree (type_id);
  35018. COMMENT ON TABLE featureposprop IS 'Property or attribute of a featurepos record.';
  35019. -- ================================================
  35020. -- TABLE: featuremap_pub
  35021. -- ================================================
  35022. create table featuremap_pub (
  35023. featuremap_pub_id bigserial not null,
  35024. primary key (featuremap_pub_id),
  35025. featuremap_id bigint not null,
  35026. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  35027. pub_id bigint not null,
  35028. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED
  35029. );
  35030. create index featuremap_pub_idx1 on featuremap_pub (featuremap_id);
  35031. create index featuremap_pub_idx2 on featuremap_pub (pub_id);
  35032. -- ================================================
  35033. -- TABLE: featuremapprop
  35034. -- ================================================
  35035. CREATE TABLE featuremapprop (
  35036. featuremapprop_id bigserial primary key NOT NULL,
  35037. featuremap_id bigint NOT NULL,
  35038. type_id bigint NOT NULL,
  35039. value text,
  35040. rank integer DEFAULT 0 NOT NULL,
  35041. FOREIGN KEY (featuremap_id) REFERENCES featuremap(featuremap_id) ON DELETE CASCADE,
  35042. FOREIGN KEY (type_id) REFERENCES cvterm(cvterm_id) ON DELETE CASCADE,
  35043. CONSTRAINT featuremapprop_c1 UNIQUE (featuremap_id, type_id, rank)
  35044. );
  35045. create index featuremapprop_idx1 on featuremapprop(featuremap_id);
  35046. create index featuremapprop_idx2 on featuremapprop(type_id);
  35047. COMMENT ON TABLE featuremapprop IS 'A featuremap can have any number of slot-value property
  35048. tags attached to it. This is an alternative to hardcoding a list of columns in the
  35049. relational schema, and is completely extensible.';
  35050. -- ================================================
  35051. -- TABLE: featuremap_contact
  35052. -- ================================================
  35053. CREATE TABLE featuremap_contact (
  35054. featuremap_contact_id bigserial primary key NOT NULL,
  35055. featuremap_id bigint NOT NULL,
  35056. contact_id bigint NOT NULL,
  35057. CONSTRAINT featuremap_contact_c1 UNIQUE (featuremap_id, contact_id),
  35058. FOREIGN KEY (contact_id) REFERENCES contact(contact_id) ON DELETE CASCADE,
  35059. FOREIGN KEY (featuremap_id) REFERENCES featuremap(featuremap_id) ON DELETE CASCADE
  35060. );
  35061. CREATE INDEX featuremap_contact_idx1 ON featuremap_contact USING btree (featuremap_id);
  35062. CREATE INDEX featuremap_contact_idx2 ON featuremap_contact USING btree (contact_id);
  35063. COMMENT ON TABLE featuremap_contact IS 'Links contact(s) with a featuremap. Used to
  35064. indicate a particular person or organization responsible for constrution of or
  35065. that can provide more information on a particular featuremap.';
  35066. -- ================================================
  35067. -- TABLE: featuremap_dbxref
  35068. -- ================================================
  35069. CREATE TABLE featuremap_dbxref (
  35070. featuremap_dbxref_id bigserial primary key NOT NULL,
  35071. featuremap_id bigint NOT NULL,
  35072. dbxref_id bigint NOT NULL,
  35073. is_current boolean DEFAULT true NOT NULL,
  35074. FOREIGN KEY (featuremap_id) REFERENCES featuremap(featuremap_id) ON DELETE CASCADE,
  35075. FOREIGN KEY (dbxref_id) REFERENCES dbxref(dbxref_id) ON DELETE CASCADE
  35076. );
  35077. CREATE INDEX featuremap_dbxref_idx1 ON featuremap_dbxref USING btree (featuremap_id);
  35078. CREATE INDEX featuremap_dbxref_idx2 ON featuremap_dbxref USING btree (dbxref_id);
  35079. COMMENT ON TABLE feature_dbxref IS 'Links a feature to dbxrefs.';
  35080. COMMENT ON COLUMN feature_dbxref.is_current IS 'True if this secondary dbxref is
  35081. the most up to date accession in the corresponding db. Retired accessions
  35082. should set this field to false';
  35083. -- ================================================
  35084. -- TABLE: featuremap_organism
  35085. -- ================================================
  35086. CREATE TABLE featuremap_organism (
  35087. featuremap_organism_id bigserial primary key NOT NULL,
  35088. featuremap_id bigint NOT NULL,
  35089. organism_id bigint NOT NULL,
  35090. CONSTRAINT featuremap_organism_c1 UNIQUE (featuremap_id, organism_id),
  35091. FOREIGN KEY (featuremap_id) REFERENCES featuremap(featuremap_id) ON DELETE CASCADE,
  35092. FOREIGN KEY (organism_id) REFERENCES organism(organism_id) ON DELETE CASCADE
  35093. );
  35094. CREATE INDEX featuremap_organism_idx1 ON featuremap_organism USING btree (featuremap_id);
  35095. CREATE INDEX featuremap_organism_idx2 ON featuremap_organism USING btree (organism_id);
  35096. COMMENT ON TABLE featuremap_organism IS 'Links a featuremap to the organism(s) with which it is associated.';
  35097. -- $Id: phylogeny.sql,v 1.11 2007-04-12 17:00:30 briano Exp $
  35098. -- ==========================================
  35099. -- Chado phylogenetics module
  35100. --
  35101. -- Richard Bruskiewich
  35102. -- Chris Mungall
  35103. --
  35104. -- Initial design: 2004-05-27
  35105. --
  35106. -- ============
  35107. -- DEPENDENCIES
  35108. -- ============
  35109. -- :import feature from sequence
  35110. -- :import cvterm from cv
  35111. -- :import pub from pub
  35112. -- :import organism from organism
  35113. -- :import dbxref from db
  35114. -- :import analysis from companalysis
  35115. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35116. -- ================================================
  35117. -- TABLE: phylotree
  35118. -- ================================================
  35119. create table phylotree (
  35120. phylotree_id bigserial not null,
  35121. primary key (phylotree_id),
  35122. dbxref_id bigint not null,
  35123. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade,
  35124. name varchar(255) null,
  35125. type_id bigint,
  35126. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  35127. analysis_id bigint null,
  35128. foreign key (analysis_id) references analysis (analysis_id) on delete cascade,
  35129. comment text null,
  35130. unique(phylotree_id)
  35131. );
  35132. create index phylotree_idx1 on phylotree (phylotree_id);
  35133. COMMENT ON TABLE phylotree IS 'Global anchor for phylogenetic tree.';
  35134. COMMENT ON COLUMN phylotree.type_id IS 'Type: protein, nucleotide, taxonomy, for example. The type should be any SO type, or "taxonomy".';
  35135. -- ================================================
  35136. -- TABLE: phylotree_pub
  35137. -- ================================================
  35138. create table phylotree_pub (
  35139. phylotree_pub_id bigserial not null,
  35140. primary key (phylotree_pub_id),
  35141. phylotree_id bigint not null,
  35142. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  35143. pub_id bigint not null,
  35144. foreign key (pub_id) references pub (pub_id) on delete cascade,
  35145. unique(phylotree_id, pub_id)
  35146. );
  35147. create index phylotree_pub_idx1 on phylotree_pub (phylotree_id);
  35148. create index phylotree_pub_idx2 on phylotree_pub (pub_id);
  35149. COMMENT ON TABLE phylotree_pub IS 'Tracks citations global to the tree e.g. multiple sequence alignment supporting tree construction.';
  35150. -- ================================================
  35151. -- TABLE: phylotreeprop
  35152. -- ================================================
  35153. create table phylotreeprop (
  35154. phylotreeprop_id bigserial not null,
  35155. phylotree_id bigint not null,
  35156. type_id bigint not null,
  35157. value text null,
  35158. rank int not null default 0,
  35159. primary key (phylotreeprop_id),
  35160. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade INITIALLY DEFERRED,
  35161. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35162. constraint phylotreeprop_c1 unique (phylotree_id,type_id,rank)
  35163. );
  35164. create index phylotreeprop_idx1 on phylotreeprop (phylotree_id);
  35165. create index phylotreeprop_idx2 on phylotreeprop (type_id);
  35166. COMMENT ON TABLE phylotreeprop IS 'A phylotree can have any number of slot-value property
  35167. tags attached to it. This is an alternative to hardcoding a list of columns in the
  35168. relational schema, and is completely extensible.';
  35169. COMMENT ON COLUMN phylotreeprop.type_id IS 'The name of the property/slot is a cvterm.
  35170. The meaning of the property is defined in that cvterm.';
  35171. COMMENT ON COLUMN phylotreeprop.value IS 'The value of the property, represented as text.
  35172. Numeric values are converted to their text representation. This is less efficient than
  35173. using native database types, but is easier to query.';
  35174. COMMENT ON COLUMN phylotreeprop.rank IS 'Property-Value ordering. Any
  35175. phylotree can have multiple values for any particular property type
  35176. these are ordered in a list using rank, counting from zero. For
  35177. properties that are single-valued rather than multi-valued, the
  35178. default 0 value should be used';
  35179. COMMENT ON INDEX phylotreeprop_c1 IS 'For any one phylotree, multivalued
  35180. property-value pairs must be differentiated by rank.';
  35181. -- ================================================
  35182. -- TABLE: phylonode
  35183. -- ================================================
  35184. create table phylonode (
  35185. phylonode_id bigserial not null,
  35186. primary key (phylonode_id),
  35187. phylotree_id bigint not null,
  35188. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  35189. parent_phylonode_id bigint null,
  35190. foreign key (parent_phylonode_id) references phylonode (phylonode_id) on delete cascade,
  35191. left_idx int not null,
  35192. right_idx int not null,
  35193. type_id bigint,
  35194. foreign key(type_id) references cvterm (cvterm_id) on delete cascade,
  35195. feature_id bigint,
  35196. foreign key (feature_id) references feature (feature_id) on delete cascade,
  35197. label varchar(255) null,
  35198. distance float null,
  35199. -- Bootstrap float null.
  35200. unique(phylotree_id, left_idx),
  35201. unique(phylotree_id, right_idx)
  35202. );
  35203. CREATE INDEX phylonode_parent_phylonode_id_idx ON phylonode (parent_phylonode_id);
  35204. COMMENT ON TABLE phylonode IS 'This is the most pervasive
  35205. element in the phylogeny module, cataloging the "phylonodes" of
  35206. tree graphs. Edges are implied by the parent_phylonode_id
  35207. reflexive closure. For all nodes in a nested set implementation the left and right index will be *between* the parents left and right indexes.';
  35208. COMMENT ON COLUMN phylonode.feature_id IS 'Phylonodes can have optional features attached to them e.g. a protein or nucleotide sequence usually attached to a leaf of the phylotree for non-leaf nodes, the feature may be a feature that is an instance of SO:match; this feature is the alignment of all leaf features beneath it.';
  35209. COMMENT ON COLUMN phylonode.type_id IS 'Type: e.g. root, interior, leaf.';
  35210. COMMENT ON COLUMN phylonode.parent_phylonode_id IS 'Root phylonode can have null parent_phylonode_id value.';
  35211. -- ================================================
  35212. -- TABLE: phylonode_dbxref
  35213. -- ================================================
  35214. create table phylonode_dbxref (
  35215. phylonode_dbxref_id bigserial not null,
  35216. primary key (phylonode_dbxref_id),
  35217. phylonode_id bigint not null,
  35218. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  35219. dbxref_id bigint not null,
  35220. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade,
  35221. unique(phylonode_id,dbxref_id)
  35222. );
  35223. create index phylonode_dbxref_idx1 on phylonode_dbxref (phylonode_id);
  35224. create index phylonode_dbxref_idx2 on phylonode_dbxref (dbxref_id);
  35225. COMMENT ON TABLE phylonode_dbxref IS 'For example, for orthology, paralogy group identifiers; could also be used for NCBI taxonomy; for sequences, refer to phylonode_feature, feature associated dbxrefs.';
  35226. -- ================================================
  35227. -- TABLE: phylonode_pub
  35228. -- ================================================
  35229. create table phylonode_pub (
  35230. phylonode_pub_id bigserial not null,
  35231. primary key (phylonode_pub_id),
  35232. phylonode_id bigint not null,
  35233. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  35234. pub_id bigint not null,
  35235. foreign key (pub_id) references pub (pub_id) on delete cascade,
  35236. unique(phylonode_id, pub_id)
  35237. );
  35238. create index phylonode_pub_idx1 on phylonode_pub (phylonode_id);
  35239. create index phylonode_pub_idx2 on phylonode_pub (pub_id);
  35240. -- ================================================
  35241. -- TABLE: phylonode_organism
  35242. -- ================================================
  35243. create table phylonode_organism (
  35244. phylonode_organism_id bigserial not null,
  35245. primary key (phylonode_organism_id),
  35246. phylonode_id bigint not null,
  35247. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  35248. organism_id bigint not null,
  35249. foreign key (organism_id) references organism (organism_id) on delete cascade,
  35250. unique(phylonode_id)
  35251. );
  35252. create index phylonode_organism_idx1 on phylonode_organism (phylonode_id);
  35253. create index phylonode_organism_idx2 on phylonode_organism (organism_id);
  35254. COMMENT ON TABLE phylonode_organism IS 'This linking table should only be used for nodes in taxonomy trees; it provides a mapping between the node and an organism. One node can have zero or one organisms, one organism can have zero or more nodes (although typically it should only have one in the standard NCBI taxonomy tree).';
  35255. COMMENT ON COLUMN phylonode_organism.phylonode_id IS 'One phylonode cannot refer to >1 organism.';
  35256. -- ================================================
  35257. -- TABLE: phylonodeprop
  35258. -- ================================================
  35259. create table phylonodeprop (
  35260. phylonodeprop_id bigserial not null,
  35261. primary key (phylonodeprop_id),
  35262. phylonode_id bigint not null,
  35263. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  35264. type_id bigint not null,
  35265. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  35266. value text not null default '',
  35267. -- It is not clear how useful the rank concept is here, leave it in for now.
  35268. rank int not null default 0,
  35269. unique(phylonode_id, type_id, value, rank)
  35270. );
  35271. create index phylonodeprop_idx1 on phylonodeprop (phylonode_id);
  35272. create index phylonodeprop_idx2 on phylonodeprop (type_id);
  35273. COMMENT ON COLUMN phylonodeprop.type_id IS 'type_id could designate phylonode hierarchy relationships, for example: species taxonomy (kingdom, order, family, genus, species), "ortholog/paralog", "fold/superfold", etc.';
  35274. -- ================================================
  35275. -- TABLE: phylonode_relationship
  35276. -- ================================================
  35277. create table phylonode_relationship (
  35278. phylonode_relationship_id bigserial not null,
  35279. primary key (phylonode_relationship_id),
  35280. subject_id bigint not null,
  35281. foreign key (subject_id) references phylonode (phylonode_id) on delete cascade,
  35282. object_id bigint not null,
  35283. foreign key (object_id) references phylonode (phylonode_id) on delete cascade,
  35284. type_id bigint not null,
  35285. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  35286. rank int,
  35287. phylotree_id bigint not null,
  35288. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  35289. unique(subject_id, object_id, type_id)
  35290. );
  35291. create index phylonode_relationship_idx1 on phylonode_relationship (subject_id);
  35292. create index phylonode_relationship_idx2 on phylonode_relationship (object_id);
  35293. create index phylonode_relationship_idx3 on phylonode_relationship (type_id);
  35294. COMMENT ON TABLE phylonode_relationship IS 'This is for
  35295. relationships that are not strictly hierarchical; for example,
  35296. horizontal gene transfer. Most phylogenetic trees are strictly
  35297. hierarchical, nevertheless it is here for completeness.';
  35298. CREATE OR REPLACE FUNCTION phylonode_depth(bigint)
  35299. RETURNS FLOAT AS
  35300. 'DECLARE id ALIAS FOR $1;
  35301. DECLARE depth FLOAT := 0;
  35302. DECLARE curr_node phylonode%ROWTYPE;
  35303. BEGIN
  35304. SELECT INTO curr_node *
  35305. FROM phylonode
  35306. WHERE phylonode_id=id;
  35307. depth = depth + curr_node.distance;
  35308. IF curr_node.parent_phylonode_id IS NULL
  35309. THEN RETURN depth;
  35310. ELSE RETURN depth + phylonode_depth(curr_node.parent_phylonode_id);
  35311. END IF;
  35312. END
  35313. '
  35314. LANGUAGE 'plpgsql';
  35315. CREATE OR REPLACE FUNCTION phylonode_height(bigint)
  35316. RETURNS FLOAT AS
  35317. '
  35318. SELECT coalesce(max(phylonode_height(phylonode_id) + distance), 0.0)
  35319. FROM phylonode
  35320. WHERE parent_phylonode_id = $1
  35321. '
  35322. LANGUAGE 'sql';
  35323. -- $Id: expression.sql,v 1.14 2007-03-23 15:18:02 scottcain Exp $
  35324. -- ==========================================
  35325. -- Chado expression module
  35326. --
  35327. -- =================================================================
  35328. -- Dependencies:
  35329. --
  35330. -- :import feature from sequence
  35331. -- :import cvterm from cv
  35332. -- :import pub from pub
  35333. -- =================================================================
  35334. -- ================================================
  35335. -- TABLE: expression
  35336. -- ================================================
  35337. create table expression (
  35338. expression_id bigserial not null,
  35339. primary key (expression_id),
  35340. uniquename text not null,
  35341. md5checksum character(32),
  35342. description text,
  35343. constraint expression_c1 unique (uniquename)
  35344. );
  35345. COMMENT ON TABLE expression IS 'The expression table is essentially a bridge table.';
  35346. -- ================================================
  35347. -- TABLE: expression_cvterm
  35348. -- ================================================
  35349. create table expression_cvterm (
  35350. expression_cvterm_id bigserial not null,
  35351. primary key (expression_cvterm_id),
  35352. expression_id bigint not null,
  35353. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  35354. cvterm_id bigint not null,
  35355. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35356. rank int not null default 0,
  35357. cvterm_type_id bigint not null,
  35358. foreign key (cvterm_type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35359. constraint expression_cvterm_c1 unique (expression_id,cvterm_id,rank,cvterm_type_id)
  35360. );
  35361. create index expression_cvterm_idx1 on expression_cvterm (expression_id);
  35362. create index expression_cvterm_idx2 on expression_cvterm (cvterm_id);
  35363. create index expression_cvterm_idx3 on expression_cvterm (cvterm_type_id);
  35364. --================================================
  35365. -- TABLE: expression_cvtermprop
  35366. -- ================================================
  35367. create table expression_cvtermprop (
  35368. expression_cvtermprop_id bigserial not null,
  35369. primary key (expression_cvtermprop_id),
  35370. expression_cvterm_id bigint not null,
  35371. foreign key (expression_cvterm_id) references expression_cvterm (expression_cvterm_id) on delete cascade INITIALLY DEFERRED,
  35372. type_id bigint not null,
  35373. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35374. value text null,
  35375. rank int not null default 0,
  35376. constraint expression_cvtermprop_c1 unique (expression_cvterm_id,type_id,rank)
  35377. );
  35378. create index expression_cvtermprop_idx1 on expression_cvtermprop (expression_cvterm_id);
  35379. create index expression_cvtermprop_idx2 on expression_cvtermprop (type_id);
  35380. COMMENT ON TABLE expression_cvtermprop IS 'Extensible properties for
  35381. expression to cvterm associations. Examples: qualifiers.';
  35382. COMMENT ON COLUMN expression_cvtermprop.type_id IS 'The name of the
  35383. property/slot is a cvterm. The meaning of the property is defined in
  35384. that cvterm. For example, cvterms may come from the FlyBase miscellaneous cv.';
  35385. COMMENT ON COLUMN expression_cvtermprop.value IS 'The value of the
  35386. property, represented as text. Numeric values are converted to their
  35387. text representation. This is less efficient than using native database
  35388. types, but is easier to query.';
  35389. COMMENT ON COLUMN expression_cvtermprop.rank IS 'Property-Value
  35390. ordering. Any expression_cvterm can have multiple values for any particular
  35391. property type - these are ordered in a list using rank, counting from
  35392. zero. For properties that are single-valued rather than multi-valued,
  35393. the default 0 value should be used.';
  35394. -- ================================================
  35395. -- TABLE: expressionprop
  35396. -- ================================================
  35397. create table expressionprop (
  35398. expressionprop_id bigserial not null,
  35399. primary key (expressionprop_id),
  35400. expression_id bigint not null,
  35401. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  35402. type_id bigint not null,
  35403. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35404. value text null,
  35405. rank int not null default 0,
  35406. constraint expressionprop_c1 unique (expression_id,type_id,rank)
  35407. );
  35408. create index expressionprop_idx1 on expressionprop (expression_id);
  35409. create index expressionprop_idx2 on expressionprop (type_id);
  35410. -- ================================================
  35411. -- TABLE: expression_pub
  35412. -- ================================================
  35413. create table expression_pub (
  35414. expression_pub_id bigserial not null,
  35415. primary key (expression_pub_id),
  35416. expression_id bigint not null,
  35417. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  35418. pub_id bigint not null,
  35419. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35420. constraint expression_pub_c1 unique (expression_id,pub_id)
  35421. );
  35422. create index expression_pub_idx1 on expression_pub (expression_id);
  35423. create index expression_pub_idx2 on expression_pub (pub_id);
  35424. -- ================================================
  35425. -- TABLE: feature_expression
  35426. -- ================================================
  35427. create table feature_expression (
  35428. feature_expression_id bigserial not null,
  35429. primary key (feature_expression_id),
  35430. expression_id bigint not null,
  35431. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  35432. feature_id bigint not null,
  35433. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  35434. pub_id bigint not null,
  35435. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35436. constraint feature_expression_c1 unique (expression_id,feature_id,pub_id)
  35437. );
  35438. create index feature_expression_idx1 on feature_expression (expression_id);
  35439. create index feature_expression_idx2 on feature_expression (feature_id);
  35440. create index feature_expression_idx3 on feature_expression (pub_id);
  35441. -- ================================================
  35442. -- TABLE: feature_expressionprop
  35443. -- ================================================
  35444. create table feature_expressionprop (
  35445. feature_expressionprop_id bigserial not null,
  35446. primary key (feature_expressionprop_id),
  35447. feature_expression_id bigint not null,
  35448. foreign key (feature_expression_id) references feature_expression (feature_expression_id) on delete cascade INITIALLY DEFERRED,
  35449. type_id bigint not null,
  35450. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35451. value text null,
  35452. rank int not null default 0,
  35453. constraint feature_expressionprop_c1 unique (feature_expression_id,type_id,rank)
  35454. );
  35455. create index feature_expressionprop_idx1 on feature_expressionprop (feature_expression_id);
  35456. create index feature_expressionprop_idx2 on feature_expressionprop (type_id);
  35457. COMMENT ON TABLE feature_expressionprop IS 'Extensible properties for
  35458. feature_expression (comments, for example). Modeled on feature_cvtermprop.';
  35459. -- ================================================
  35460. -- TABLE: eimage
  35461. -- ================================================
  35462. create table eimage (
  35463. eimage_id bigserial not null,
  35464. primary key (eimage_id),
  35465. eimage_data text,
  35466. eimage_type varchar(255) not null,
  35467. image_uri varchar(255)
  35468. );
  35469. COMMENT ON COLUMN eimage.eimage_data IS 'We expect images in eimage_data (e.g. JPEGs) to be uuencoded.';
  35470. COMMENT ON COLUMN eimage.eimage_type IS 'Describes the type of data in eimage_data.';
  35471. -- ================================================
  35472. -- TABLE: expression_image
  35473. -- ================================================
  35474. create table expression_image (
  35475. expression_image_id bigserial not null,
  35476. primary key (expression_image_id),
  35477. expression_id bigint not null,
  35478. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  35479. eimage_id bigint not null,
  35480. foreign key (eimage_id) references eimage (eimage_id) on delete cascade INITIALLY DEFERRED,
  35481. constraint expression_image_c1 unique(expression_id,eimage_id)
  35482. );
  35483. create index expression_image_idx1 on expression_image (expression_id);
  35484. create index expression_image_idx2 on expression_image (eimage_id);
  35485. -- $Id: library.sql,v 1.10 2008-03-25 16:00:43 emmert Exp $
  35486. -- =================================================================
  35487. -- Dependencies:
  35488. --
  35489. -- :import feature from sequence
  35490. -- :import synonym from sequence
  35491. -- :import cvterm from cv
  35492. -- :import pub from pub
  35493. -- :import organism from organism
  35494. -- :import expression from expression
  35495. -- :import dbxref from db
  35496. -- :import contact from contact
  35497. -- =================================================================
  35498. -- ================================================
  35499. -- TABLE: library
  35500. -- ================================================
  35501. create table library (
  35502. library_id bigserial not null,
  35503. primary key (library_id),
  35504. organism_id bigint not null,
  35505. foreign key (organism_id) references organism (organism_id),
  35506. name varchar(255),
  35507. uniquename text not null,
  35508. type_id bigint not null,
  35509. foreign key (type_id) references cvterm (cvterm_id),
  35510. is_obsolete int not null default 0,
  35511. timeaccessioned timestamp not null default current_timestamp,
  35512. timelastmodified timestamp not null default current_timestamp,
  35513. constraint library_c1 unique (organism_id,uniquename,type_id)
  35514. );
  35515. create index library_name_ind1 on library(name);
  35516. create index library_idx1 on library (organism_id);
  35517. create index library_idx2 on library (type_id);
  35518. create index library_idx3 on library (uniquename);
  35519. COMMENT ON COLUMN library.type_id IS 'The type_id foreign key links to a controlled vocabulary of library types. Examples of this would be: "cDNA_library" or "genomic_library"';
  35520. -- ================================================
  35521. -- TABLE: library_synonym
  35522. -- ================================================
  35523. create table library_synonym (
  35524. library_synonym_id bigserial not null,
  35525. primary key (library_synonym_id),
  35526. synonym_id bigint not null,
  35527. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  35528. library_id bigint not null,
  35529. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  35530. pub_id bigint not null,
  35531. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35532. is_current boolean not null default 'true',
  35533. is_internal boolean not null default 'false',
  35534. constraint library_synonym_c1 unique (synonym_id,library_id,pub_id)
  35535. );
  35536. create index library_synonym_idx1 on library_synonym (synonym_id);
  35537. create index library_synonym_idx2 on library_synonym (library_id);
  35538. create index library_synonym_idx3 on library_synonym (pub_id);
  35539. COMMENT ON TABLE library_synonym IS 'Linking table between library and synonym.';
  35540. COMMENT ON COLUMN library_synonym.is_current IS 'The is_current bit indicates whether the linked synonym is the current -official- symbol for the linked library.';
  35541. COMMENT ON COLUMN library_synonym.pub_id IS 'The pub_id link is for
  35542. relating the usage of a given synonym to the publication in which it was used.';
  35543. COMMENT ON COLUMN library_synonym.is_internal IS 'Typically a synonym
  35544. exists so that somebody querying the database with an obsolete name
  35545. can find the object they are looking for under its current name. If
  35546. the synonym has been used publicly and deliberately (e.g. in a paper), it my also be listed in reports as a synonym. If the synonym was not used deliberately (e.g., there was a typo which went public), then the is_internal bit may be set to "true" so that it is known that the synonym is "internal" and should be queryable but should not be listed in reports as a valid synonym.';
  35547. -- ================================================
  35548. -- TABLE: library_pub
  35549. -- ================================================
  35550. create table library_pub (
  35551. library_pub_id bigserial not null,
  35552. primary key (library_pub_id),
  35553. library_id bigint not null,
  35554. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  35555. pub_id bigint not null,
  35556. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35557. constraint library_pub_c1 unique (library_id,pub_id)
  35558. );
  35559. create index library_pub_idx1 on library_pub (library_id);
  35560. create index library_pub_idx2 on library_pub (pub_id);
  35561. COMMENT ON TABLE library_pub IS 'Attribution for a library.';
  35562. -- ================================================
  35563. -- TABLE: libraryprop
  35564. -- ================================================
  35565. create table libraryprop (
  35566. libraryprop_id bigserial not null,
  35567. primary key (libraryprop_id),
  35568. library_id bigint not null,
  35569. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  35570. type_id bigint not null,
  35571. foreign key (type_id) references cvterm (cvterm_id),
  35572. value text null,
  35573. rank int not null default 0,
  35574. constraint libraryprop_c1 unique (library_id,type_id,rank)
  35575. );
  35576. create index libraryprop_idx1 on libraryprop (library_id);
  35577. create index libraryprop_idx2 on libraryprop (type_id);
  35578. COMMENT ON TABLE libraryprop IS 'Tag-value properties - follows standard chado model.';
  35579. -- ================================================
  35580. -- TABLE: libraryprop_pub
  35581. -- ================================================
  35582. create table libraryprop_pub (
  35583. libraryprop_pub_id bigserial not null,
  35584. primary key (libraryprop_pub_id),
  35585. libraryprop_id bigint not null,
  35586. foreign key (libraryprop_id) references libraryprop (libraryprop_id) on delete cascade INITIALLY DEFERRED,
  35587. pub_id bigint not null,
  35588. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35589. constraint libraryprop_pub_c1 unique (libraryprop_id,pub_id)
  35590. );
  35591. create index libraryprop_pub_idx1 on libraryprop_pub (libraryprop_id);
  35592. create index libraryprop_pub_idx2 on libraryprop_pub (pub_id);
  35593. COMMENT ON TABLE libraryprop_pub IS 'Attribution for libraryprop.';
  35594. -- ================================================
  35595. -- TABLE: library_cvterm
  35596. -- ================================================
  35597. create table library_cvterm (
  35598. library_cvterm_id bigserial not null,
  35599. primary key (library_cvterm_id),
  35600. library_id bigint not null,
  35601. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  35602. cvterm_id bigint not null,
  35603. foreign key (cvterm_id) references cvterm (cvterm_id),
  35604. pub_id bigint not null,
  35605. foreign key (pub_id) references pub (pub_id),
  35606. constraint library_cvterm_c1 unique (library_id,cvterm_id,pub_id)
  35607. );
  35608. create index library_cvterm_idx1 on library_cvterm (library_id);
  35609. create index library_cvterm_idx2 on library_cvterm (cvterm_id);
  35610. create index library_cvterm_idx3 on library_cvterm (pub_id);
  35611. COMMENT ON TABLE library_cvterm IS 'The table library_cvterm links a library to controlled vocabularies which describe the library. For instance, there might be a link to the anatomy cv for "head" or "testes" for a head or testes library.';
  35612. -- ================================================
  35613. -- TABLE: library_feature
  35614. -- ================================================
  35615. create table library_feature (
  35616. library_feature_id bigserial not null,
  35617. primary key (library_feature_id),
  35618. library_id bigint not null,
  35619. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  35620. feature_id bigint not null,
  35621. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  35622. constraint library_feature_c1 unique (library_id,feature_id)
  35623. );
  35624. create index library_feature_idx1 on library_feature (library_id);
  35625. create index library_feature_idx2 on library_feature (feature_id);
  35626. COMMENT ON TABLE library_feature IS 'library_feature links a library to the clones which are contained in the library. Examples of such linked features might be "cDNA_clone" or "genomic_clone".';
  35627. -- ================================================
  35628. -- TABLE: library_dbxref
  35629. -- ================================================
  35630. create table library_dbxref (
  35631. library_dbxref_id bigserial not null,
  35632. primary key (library_dbxref_id),
  35633. library_id bigint not null,
  35634. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  35635. dbxref_id bigint not null,
  35636. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  35637. is_current boolean not null default 'true',
  35638. constraint library_dbxref_c1 unique (library_id,dbxref_id)
  35639. );
  35640. create index library_dbxref_idx1 on library_dbxref (library_id);
  35641. create index library_dbxref_idx2 on library_dbxref (dbxref_id);
  35642. COMMENT ON TABLE library_dbxref IS 'Links a library to dbxrefs.';
  35643. -- ================================================
  35644. -- TABLE: library_expression
  35645. -- ================================================
  35646. create table library_expression (
  35647. library_expression_id bigserial not null,
  35648. primary key (library_expression_id),
  35649. library_id bigint not null,
  35650. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  35651. expression_id bigint not null,
  35652. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  35653. pub_id bigint not null,
  35654. foreign key (pub_id) references pub (pub_id),
  35655. constraint library_expression_c1 unique (library_id,expression_id)
  35656. );
  35657. create index library_expression_idx1 on library_expression (library_id);
  35658. create index library_expression_idx2 on library_expression (expression_id);
  35659. create index library_expression_idx3 on library_expression (pub_id);
  35660. COMMENT ON TABLE library_expression IS 'Links a library to expression statements.';
  35661. -- ================================================
  35662. -- TABLE: library_expressionprop
  35663. -- ================================================
  35664. create table library_expressionprop (
  35665. library_expressionprop_id bigserial not null,
  35666. primary key (library_expressionprop_id),
  35667. library_expression_id bigint not null,
  35668. foreign key (library_expression_id) references library_expression (library_expression_id) on delete cascade INITIALLY DEFERRED,
  35669. type_id bigint not null,
  35670. foreign key (type_id) references cvterm (cvterm_id),
  35671. value text null,
  35672. rank int not null default 0,
  35673. constraint library_expressionprop_c1 unique (library_expression_id,type_id,rank)
  35674. );
  35675. create index library_expressionprop_idx1 on library_expressionprop (library_expression_id);
  35676. create index library_expressionprop_idx2 on library_expressionprop (type_id);
  35677. COMMENT ON TABLE library_expressionprop IS 'Attributes of a library_expression relationship.';
  35678. -- ================================================
  35679. -- TABLE: library_featureprop
  35680. -- ================================================
  35681. create table library_featureprop (
  35682. library_featureprop_id bigserial not null,
  35683. primary key (library_featureprop_id),
  35684. library_feature_id bigint not null,
  35685. foreign key (library_feature_id) references library_feature (library_feature_id) on delete cascade INITIALLY DEFERRED,
  35686. type_id bigint not null,
  35687. foreign key (type_id) references cvterm (cvterm_id),
  35688. value text null,
  35689. rank int not null default 0,
  35690. constraint library_featureprop_c1 unique (library_feature_id,type_id,rank)
  35691. );
  35692. create index library_featureprop_idx1 on library_featureprop (library_feature_id);
  35693. create index library_featureprop_idx2 on library_featureprop (type_id);
  35694. COMMENT ON TABLE library_featureprop IS 'Attributes of a library_feature relationship.';
  35695. -- ================================================
  35696. -- TABLE: library_relationship
  35697. -- ================================================
  35698. create table library_relationship (
  35699. library_relationship_id bigserial not null,
  35700. primary key (library_relationship_id),
  35701. subject_id bigint not null,
  35702. foreign key (subject_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  35703. object_id bigint not null,
  35704. foreign key (object_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  35705. type_id bigint not null,
  35706. foreign key (type_id) references cvterm (cvterm_id),
  35707. constraint library_relationship_c1 unique (subject_id,object_id,type_id)
  35708. );
  35709. create index library_relationship_idx1 on library_relationship (subject_id);
  35710. create index library_relationship_idx2 on library_relationship (object_id);
  35711. create index library_relationship_idx3 on library_relationship (type_id);
  35712. COMMENT ON TABLE library_relationship IS 'Relationships between libraries.';
  35713. -- ================================================
  35714. -- TABLE: library_relationship_pub
  35715. -- ================================================
  35716. create table library_relationship_pub (
  35717. library_relationship_pub_id bigserial not null,
  35718. primary key (library_relationship_pub_id),
  35719. library_relationship_id bigint not null,
  35720. foreign key (library_relationship_id) references library_relationship (library_relationship_id) on delete cascade INITIALLY DEFERRED,
  35721. pub_id bigint not null,
  35722. foreign key (pub_id) references pub (pub_id),
  35723. constraint library_relationship_pub_c1 unique (library_relationship_id,pub_id)
  35724. );
  35725. create index library_relationship_pub_idx1 on library_relationship_pub (library_relationship_id);
  35726. create index library_relationship_pub_idx2 on library_relationship_pub (pub_id);
  35727. COMMENT ON TABLE library_relationship_pub IS 'Provenance of library_relationship.';
  35728. -- ================================================
  35729. -- TABLE: library_contact
  35730. -- ================================================
  35731. CREATE TABLE library_contact (
  35732. library_contact_id bigserial primary key NOT NULL,
  35733. library_id bigint NOT NULL,
  35734. contact_id bigint NOT NULL,
  35735. CONSTRAINT library_contact_c1 UNIQUE (library_id, contact_id),
  35736. FOREIGN KEY (library_id) REFERENCES library(library_id) ON DELETE CASCADE,
  35737. FOREIGN KEY (contact_id) REFERENCES contact(contact_id) ON DELETE CASCADE
  35738. );
  35739. CREATE INDEX library_contact_idx1 ON library USING btree (library_id);
  35740. CREATE INDEX library_contact_idx2 ON contact USING btree (contact_id);
  35741. COMMENT ON TABLE library_contact IS 'Links contact(s) with a library. Used to indicate a particular person or organization responsible for creation of or that can provide more information on a particular library.';
  35742. -- $Id: stock.sql,v 1.7 2007-03-23 15:18:03 scottcain Exp $
  35743. -- ==========================================
  35744. -- Chado stock module
  35745. --
  35746. -- DEPENDENCIES
  35747. -- ============
  35748. -- :import cvterm from cv
  35749. -- :import pub from pub
  35750. -- :import dbxref from db
  35751. -- :import organism from organism
  35752. -- :import genotype from genetic
  35753. -- :import contact from contact
  35754. -- :import feature from sequence
  35755. -- :import featuremap from map
  35756. -- ================================================
  35757. -- TABLE: stock
  35758. -- ================================================
  35759. create table stock (
  35760. stock_id bigserial not null,
  35761. primary key (stock_id),
  35762. dbxref_id bigint,
  35763. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35764. organism_id bigint,
  35765. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  35766. name varchar(255),
  35767. uniquename text not null,
  35768. description text,
  35769. type_id bigint not null,
  35770. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35771. is_obsolete boolean not null default 'false',
  35772. constraint stock_c1 unique (organism_id,uniquename,type_id)
  35773. );
  35774. create index stock_name_ind1 on stock (name);
  35775. create index stock_idx1 on stock (dbxref_id);
  35776. create index stock_idx2 on stock (organism_id);
  35777. create index stock_idx3 on stock (type_id);
  35778. create index stock_idx4 on stock (uniquename);
  35779. COMMENT ON TABLE stock IS 'Any stock can be globally identified by the
  35780. combination of organism, uniquename and stock type. A stock is the physical entities, either living or preserved, held by collections. Stocks belong to a collection; they have IDs, type, organism, description and may have a genotype.';
  35781. COMMENT ON COLUMN stock.dbxref_id IS 'The dbxref_id is an optional primary stable identifier for this stock. Secondary indentifiers and external dbxrefs go in table: stock_dbxref.';
  35782. COMMENT ON COLUMN stock.organism_id IS 'The organism_id is the organism to which the stock belongs. This column should only be left blank if the organism cannot be determined.';
  35783. COMMENT ON COLUMN stock.type_id IS 'The type_id foreign key links to a controlled vocabulary of stock types. The would include living stock, genomic DNA, preserved specimen. Secondary cvterms for stocks would go in stock_cvterm.';
  35784. COMMENT ON COLUMN stock.description IS 'The description is the genetic description provided in the stock list.';
  35785. COMMENT ON COLUMN stock.name IS 'The name is a human-readable local name for a stock.';
  35786. -- ================================================
  35787. -- TABLE: stock_pub
  35788. -- ================================================
  35789. create table stock_pub (
  35790. stock_pub_id bigserial not null,
  35791. primary key (stock_pub_id),
  35792. stock_id bigint not null,
  35793. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35794. pub_id bigint not null,
  35795. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35796. constraint stock_pub_c1 unique (stock_id,pub_id)
  35797. );
  35798. create index stock_pub_idx1 on stock_pub (stock_id);
  35799. create index stock_pub_idx2 on stock_pub (pub_id);
  35800. COMMENT ON TABLE stock_pub IS 'Provenance. Linking table between stocks and, for example, a stocklist computer file.';
  35801. -- ================================================
  35802. -- TABLE: stockprop
  35803. -- ================================================
  35804. create table stockprop (
  35805. stockprop_id bigserial not null,
  35806. primary key (stockprop_id),
  35807. stock_id bigint not null,
  35808. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35809. type_id bigint not null,
  35810. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35811. value text null,
  35812. rank int not null default 0,
  35813. constraint stockprop_c1 unique (stock_id,type_id,rank)
  35814. );
  35815. create index stockprop_idx1 on stockprop (stock_id);
  35816. create index stockprop_idx2 on stockprop (type_id);
  35817. COMMENT ON TABLE stockprop IS 'A stock can have any number of
  35818. slot-value property tags attached to it. This is an alternative to
  35819. hardcoding a list of columns in the relational schema, and is
  35820. completely extensible. There is a unique constraint, stockprop_c1, for
  35821. the combination of stock_id, rank, and type_id. Multivalued property-value pairs must be differentiated by rank.';
  35822. -- ================================================
  35823. -- TABLE: stockprop_pub
  35824. -- ================================================
  35825. create table stockprop_pub (
  35826. stockprop_pub_id bigserial not null,
  35827. primary key (stockprop_pub_id),
  35828. stockprop_id bigint not null,
  35829. foreign key (stockprop_id) references stockprop (stockprop_id) on delete cascade INITIALLY DEFERRED,
  35830. pub_id bigint not null,
  35831. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35832. constraint stockprop_pub_c1 unique (stockprop_id,pub_id)
  35833. );
  35834. create index stockprop_pub_idx1 on stockprop_pub (stockprop_id);
  35835. create index stockprop_pub_idx2 on stockprop_pub (pub_id);
  35836. COMMENT ON TABLE stockprop_pub IS 'Provenance. Any stockprop assignment can optionally be supported by a publication.';
  35837. -- ================================================
  35838. -- TABLE: stock_relationship
  35839. -- ================================================
  35840. create table stock_relationship (
  35841. stock_relationship_id bigserial not null,
  35842. primary key (stock_relationship_id),
  35843. subject_id bigint not null,
  35844. foreign key (subject_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35845. object_id bigint not null,
  35846. foreign key (object_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35847. type_id bigint not null,
  35848. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35849. value text null,
  35850. rank int not null default 0,
  35851. constraint stock_relationship_c1 unique (subject_id,object_id,type_id,rank)
  35852. );
  35853. create index stock_relationship_idx1 on stock_relationship (subject_id);
  35854. create index stock_relationship_idx2 on stock_relationship (object_id);
  35855. create index stock_relationship_idx3 on stock_relationship (type_id);
  35856. COMMENT ON COLUMN stock_relationship.subject_id IS 'stock_relationship.subject_id is the subject of the subj-predicate-obj sentence. This is typically the substock.';
  35857. COMMENT ON COLUMN stock_relationship.object_id IS 'stock_relationship.object_id is the object of the subj-predicate-obj sentence. This is typically the container stock.';
  35858. COMMENT ON COLUMN stock_relationship.type_id IS 'stock_relationship.type_id is relationship type between subject and object. This is a cvterm, typically from the OBO relationship ontology, although other relationship types are allowed.';
  35859. COMMENT ON COLUMN stock_relationship.rank IS 'stock_relationship.rank is the ordering of subject stocks with respect to the object stock may be important where rank is used to order these; starts from zero.';
  35860. COMMENT ON COLUMN stock_relationship.value IS 'stock_relationship.value is for additional notes or comments.';
  35861. -- ================================================
  35862. -- TABLE: stock_relationship_cvterm
  35863. -- ================================================
  35864. CREATE TABLE stock_relationship_cvterm (
  35865. stock_relationship_cvterm_id bigserial NOT NULL,
  35866. PRIMARY KEY (stock_relationship_cvterm_id),
  35867. stock_relationship_id bigint NOT NULL,
  35868. FOREIGN KEY (stock_relationship_id) references stock_relationship (stock_relationship_id) ON DELETE CASCADE INITIALLY DEFERRED,
  35869. cvterm_id bigint NOT NULL,
  35870. FOREIGN KEY (cvterm_id) REFERENCES cvterm (cvterm_id) ON DELETE RESTRICT,
  35871. pub_id bigint,
  35872. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE RESTRICT
  35873. );
  35874. COMMENT ON TABLE stock_relationship_cvterm is 'For germplasm maintenance and pedigree data, stock_relationship. type_id will record cvterms such as "is a female parent of", "a parent for mutation", "is a group_id of", "is a source_id of", etc The cvterms for higher categories such as "generative", "derivative" or "maintenance" can be stored in table stock_relationship_cvterm';
  35875. -- ================================================
  35876. -- TABLE: stock_relationship_pub
  35877. -- ================================================
  35878. create table stock_relationship_pub (
  35879. stock_relationship_pub_id bigserial not null,
  35880. primary key (stock_relationship_pub_id),
  35881. stock_relationship_id bigint not null,
  35882. foreign key (stock_relationship_id) references stock_relationship (stock_relationship_id) on delete cascade INITIALLY DEFERRED,
  35883. pub_id bigint not null,
  35884. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35885. constraint stock_relationship_pub_c1 unique (stock_relationship_id,pub_id)
  35886. );
  35887. create index stock_relationship_pub_idx1 on stock_relationship_pub (stock_relationship_id);
  35888. create index stock_relationship_pub_idx2 on stock_relationship_pub (pub_id);
  35889. COMMENT ON TABLE stock_relationship_pub IS 'Provenance. Attach optional evidence to a stock_relationship in the form of a publication.';
  35890. -- ================================================
  35891. -- TABLE: stock_dbxref
  35892. -- ================================================
  35893. create table stock_dbxref (
  35894. stock_dbxref_id bigserial not null,
  35895. primary key (stock_dbxref_id),
  35896. stock_id bigint not null,
  35897. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35898. dbxref_id bigint not null,
  35899. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  35900. is_current boolean not null default 'true',
  35901. constraint stock_dbxref_c1 unique (stock_id,dbxref_id)
  35902. );
  35903. create index stock_dbxref_idx1 on stock_dbxref (stock_id);
  35904. create index stock_dbxref_idx2 on stock_dbxref (dbxref_id);
  35905. COMMENT ON TABLE stock_dbxref IS 'stock_dbxref links a stock to dbxrefs. This is for secondary identifiers; primary identifiers should use stock.dbxref_id.';
  35906. COMMENT ON COLUMN stock_dbxref.is_current IS 'The is_current boolean indicates whether the linked dbxref is the current -official- dbxref for the linked stock.';
  35907. -- ================================================
  35908. -- TABLE: stock_cvterm
  35909. -- ================================================
  35910. create table stock_cvterm (
  35911. stock_cvterm_id bigserial not null,
  35912. primary key (stock_cvterm_id),
  35913. stock_id bigint not null,
  35914. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35915. cvterm_id bigint not null,
  35916. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35917. pub_id bigint not null,
  35918. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35919. is_not boolean not null default false,
  35920. rank int not null default 0,
  35921. constraint stock_cvterm_c1 unique (stock_id,cvterm_id,pub_id,rank)
  35922. );
  35923. create index stock_cvterm_idx1 on stock_cvterm (stock_id);
  35924. create index stock_cvterm_idx2 on stock_cvterm (cvterm_id);
  35925. create index stock_cvterm_idx3 on stock_cvterm (pub_id);
  35926. COMMENT ON TABLE stock_cvterm IS 'stock_cvterm links a stock to cvterms. This is for secondary cvterms; primary cvterms should use stock.type_id.';
  35927. -- ================================================
  35928. -- TABLE: stock_cvtermprop
  35929. -- ================================================
  35930. create table stock_cvtermprop (
  35931. stock_cvtermprop_id bigserial not null,
  35932. primary key (stock_cvtermprop_id),
  35933. stock_cvterm_id bigint not null,
  35934. foreign key (stock_cvterm_id) references stock_cvterm (stock_cvterm_id) on delete cascade,
  35935. type_id bigint not null,
  35936. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35937. value text null,
  35938. rank int not null default 0,
  35939. constraint stock_cvtermprop_c1 unique (stock_cvterm_id,type_id,rank)
  35940. );
  35941. create index stock_cvtermprop_idx1 on stock_cvtermprop (stock_cvterm_id);
  35942. create index stock_cvtermprop_idx2 on stock_cvtermprop (type_id);
  35943. COMMENT ON TABLE stock_cvtermprop IS 'Extensible properties for
  35944. stock to cvterm associations. Examples: GO evidence codes;
  35945. qualifiers; metadata such as the date on which the entry was curated
  35946. and the source of the association. See the stockprop table for
  35947. meanings of type_id, value and rank.';
  35948. COMMENT ON COLUMN stock_cvtermprop.type_id IS 'The name of the
  35949. property/slot is a cvterm. The meaning of the property is defined in
  35950. that cvterm. cvterms may come from the OBO evidence code cv.';
  35951. COMMENT ON COLUMN stock_cvtermprop.value IS 'The value of the
  35952. property, represented as text. Numeric values are converted to their
  35953. text representation. This is less efficient than using native database
  35954. types, but is easier to query.';
  35955. COMMENT ON COLUMN stock_cvtermprop.rank IS 'Property-Value
  35956. ordering. Any stock_cvterm can have multiple values for any particular
  35957. property type - these are ordered in a list using rank, counting from
  35958. zero. For properties that are single-valued rather than multi-valued,
  35959. the default 0 value should be used.';
  35960. -- ================================================
  35961. -- TABLE: stock_genotype
  35962. -- ================================================
  35963. create table stock_genotype (
  35964. stock_genotype_id bigserial not null,
  35965. primary key (stock_genotype_id),
  35966. stock_id bigint not null,
  35967. foreign key (stock_id) references stock (stock_id) on delete cascade,
  35968. genotype_id bigint not null,
  35969. foreign key (genotype_id) references genotype (genotype_id) on delete cascade,
  35970. constraint stock_genotype_c1 unique (stock_id, genotype_id)
  35971. );
  35972. create index stock_genotype_idx1 on stock_genotype (stock_id);
  35973. create index stock_genotype_idx2 on stock_genotype (genotype_id);
  35974. COMMENT ON TABLE stock_genotype IS 'Simple table linking a stock to
  35975. a genotype. Features with genotypes can be linked to stocks thru feature_genotype -> genotype -> stock_genotype -> stock.';
  35976. -- ================================================
  35977. -- TABLE: stockcollection
  35978. -- ================================================
  35979. create table stockcollection (
  35980. stockcollection_id bigserial not null,
  35981. primary key (stockcollection_id),
  35982. type_id bigint not null,
  35983. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  35984. contact_id bigint null,
  35985. foreign key (contact_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  35986. name varchar(255),
  35987. uniquename text not null,
  35988. constraint stockcollection_c1 unique (uniquename,type_id)
  35989. );
  35990. create index stockcollection_name_ind1 on stockcollection (name);
  35991. create index stockcollection_idx1 on stockcollection (contact_id);
  35992. create index stockcollection_idx2 on stockcollection (type_id);
  35993. create index stockcollection_idx3 on stockcollection (uniquename);
  35994. COMMENT ON TABLE stockcollection IS 'The lab or stock center distributing the stocks in their collection.';
  35995. COMMENT ON COLUMN stockcollection.uniquename IS 'uniqename is the value of the collection cv.';
  35996. COMMENT ON COLUMN stockcollection.type_id IS 'type_id is the collection type cv.';
  35997. COMMENT ON COLUMN stockcollection.name IS 'name is the collection.';
  35998. COMMENT ON COLUMN stockcollection.contact_id IS 'contact_id links to the contact information for the collection.';
  35999. -- ================================================
  36000. -- TABLE: stockcollectionprop
  36001. -- ================================================
  36002. create table stockcollectionprop (
  36003. stockcollectionprop_id bigserial not null,
  36004. primary key (stockcollectionprop_id),
  36005. stockcollection_id bigint not null,
  36006. foreign key (stockcollection_id) references stockcollection (stockcollection_id) on delete cascade INITIALLY DEFERRED,
  36007. type_id bigint not null,
  36008. foreign key (type_id) references cvterm (cvterm_id),
  36009. value text null,
  36010. rank int not null default 0,
  36011. constraint stockcollectionprop_c1 unique (stockcollection_id,type_id,rank)
  36012. );
  36013. create index stockcollectionprop_idx1 on stockcollectionprop (stockcollection_id);
  36014. create index stockcollectionprop_idx2 on stockcollectionprop (type_id);
  36015. COMMENT ON TABLE stockcollectionprop IS 'The table stockcollectionprop
  36016. contains the value of the stock collection such as website/email URLs;
  36017. the value of the stock collection order URLs.';
  36018. COMMENT ON COLUMN stockcollectionprop.type_id IS 'The cv for the type_id is "stockcollection property type".';
  36019. -- ================================================
  36020. -- TABLE: stockcollection_stock
  36021. -- ================================================
  36022. create table stockcollection_stock (
  36023. stockcollection_stock_id bigserial not null,
  36024. primary key (stockcollection_stock_id),
  36025. stockcollection_id bigint not null,
  36026. foreign key (stockcollection_id) references stockcollection (stockcollection_id) on delete cascade INITIALLY DEFERRED,
  36027. stock_id bigint not null,
  36028. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  36029. constraint stockcollection_stock_c1 unique (stockcollection_id,stock_id)
  36030. );
  36031. create index stockcollection_stock_idx1 on stockcollection_stock (stockcollection_id);
  36032. create index stockcollection_stock_idx2 on stockcollection_stock (stock_id);
  36033. COMMENT ON TABLE stockcollection_stock IS 'stockcollection_stock links
  36034. a stock collection to the stocks which are contained in the collection.';
  36035. -- ================================================
  36036. -- TABLE: stock_dbxrefprop
  36037. -- ================================================
  36038. create table stock_dbxrefprop (
  36039. stock_dbxrefprop_id bigserial not null,
  36040. primary key (stock_dbxrefprop_id),
  36041. stock_dbxref_id bigint not null,
  36042. foreign key (stock_dbxref_id) references stock_dbxref (stock_dbxref_id) on delete cascade INITIALLY DEFERRED,
  36043. type_id bigint not null,
  36044. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36045. value text null,
  36046. rank int not null default 0,
  36047. constraint stock_dbxrefprop_c1 unique (stock_dbxref_id,type_id,rank)
  36048. );
  36049. create index stock_dbxrefprop_idx1 on stock_dbxrefprop (stock_dbxref_id);
  36050. create index stock_dbxrefprop_idx2 on stock_dbxrefprop (type_id);
  36051. COMMENT ON TABLE stock_dbxrefprop IS 'A stock_dbxref can have any number of
  36052. slot-value property tags attached to it. This is useful for storing properties related to dbxref annotations of stocks, such as evidence codes, and references, and metadata, such as create/modify dates. This is an alternative to
  36053. hardcoding a list of columns in the relational schema, and is
  36054. completely extensible. There is a unique constraint, stock_dbxrefprop_c1, for
  36055. the combination of stock_dbxref_id, rank, and type_id. Multivalued property-value pairs must be differentiated by rank.';
  36056. -- ================================================
  36057. -- TABLE: stockcollection_db
  36058. -- ================================================
  36059. CREATE TABLE stockcollection_db (
  36060. stockcollection_db_id bigserial primary key NOT NULL,
  36061. stockcollection_id bigint NOT NULL,
  36062. db_id bigint NOT NULL,
  36063. CONSTRAINT stockcollection_db_c1 UNIQUE (stockcollection_id, db_id),
  36064. FOREIGN KEY (db_id) REFERENCES db(db_id) ON DELETE CASCADE,
  36065. FOREIGN KEY (stockcollection_id) REFERENCES stockcollection(stockcollection_id) ON DELETE CASCADE
  36066. );
  36067. CREATE INDEX stockcollection_db_idx1 ON stockcollection_db USING btree (stockcollection_id);
  36068. CREATE INDEX stockcollection_db_idx2 ON stockcollection_db USING btree (db_id);
  36069. COMMENT ON TABLE stockcollection_db IS 'Stock collections may be respresented
  36070. by an external online database. This table associates a stock collection with
  36071. a database where its member stocks can be found. Individual stock that are part
  36072. of this collction should have entries in the stock_dbxref table with the same
  36073. db_id record';
  36074. -- ================================================
  36075. -- TABLE: stock_feature
  36076. -- ================================================
  36077. CREATE TABLE stock_feature (
  36078. stock_feature_id bigserial NOT NULL,
  36079. feature_id bigint NOT NULL,
  36080. stock_id bigint NOT NULL,
  36081. type_id bigint NOT NULL,
  36082. rank INT NOT NULL DEFAULT 0,
  36083. PRIMARY KEY (stock_feature_id),
  36084. FOREIGN KEY (feature_id) REFERENCES feature (feature_id) ON DELETE CASCADE INITIALLY DEFERRED,
  36085. FOREIGN KEY (stock_id) REFERENCES stock (stock_id) ON DELETE CASCADE INITIALLY DEFERRED,
  36086. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE INITIALLY DEFERRED,
  36087. CONSTRAINT stock_feature_c1 UNIQUE (feature_id, stock_id, type_id, rank)
  36088. );
  36089. create index stock_feature_idx1 on stock_feature (stock_feature_id);
  36090. create index stock_feature_idx2 on stock_feature (feature_id);
  36091. create index stock_feature_idx3 on stock_feature (stock_id);
  36092. create index stock_feature_idx4 on stock_feature (type_id);
  36093. COMMENT ON TABLE stock_feature IS 'Links a stock to a feature.';
  36094. -- ================================================
  36095. -- TABLE: stock_featuremap
  36096. -- ================================================
  36097. CREATE TABLE stock_featuremap (
  36098. stock_featuremap_id bigserial NOT NULL,
  36099. featuremap_id bigint NOT NULL,
  36100. stock_id bigint NOT NULL,
  36101. type_id bigint,
  36102. PRIMARY KEY (stock_featuremap_id),
  36103. FOREIGN KEY (featuremap_id) REFERENCES featuremap (featuremap_id) ON DELETE CASCADE INITIALLY DEFERRED,
  36104. FOREIGN KEY (stock_id) REFERENCES stock (stock_id) ON DELETE CASCADE INITIALLY DEFERRED,
  36105. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE INITIALLY DEFERRED,
  36106. CONSTRAINT stock_featuremap_c1 UNIQUE (featuremap_id, stock_id, type_id)
  36107. );
  36108. create index stock_featuremap_idx1 on stock_featuremap (featuremap_id);
  36109. create index stock_featuremap_idx2 on stock_featuremap (stock_id);
  36110. create index stock_featuremap_idx3 on stock_featuremap (type_id);
  36111. COMMENT ON TABLE stock_featuremap IS 'Links a featuremap to a stock.';
  36112. -- ================================================
  36113. -- TABLE: stock_library
  36114. -- ================================================
  36115. CREATE TABLE stock_library (
  36116. stock_library_id bigserial primary key NOT NULL,
  36117. library_id bigint NOT NULL,
  36118. stock_id bigint NOT NULL,
  36119. CONSTRAINT stock_library_c1 UNIQUE (library_id, stock_id),
  36120. FOREIGN KEY (library_id) REFERENCES library(library_id) ON DELETE CASCADE,
  36121. FOREIGN KEY (stock_id) REFERENCES stock(stock_id) ON DELETE CASCADE
  36122. );
  36123. CREATE INDEX stock_library_idx1 ON stock_library USING btree (library_id);
  36124. CREATE INDEX stock_library_idx2 ON stock_library USING btree (stock_id);
  36125. COMMENT ON TABLE stock_library IS 'Links a stock with a library.';
  36126. -- ==========================================
  36127. -- Chado project module. Used primarily by other Chado modules to
  36128. -- group experiments, stocks, and so forth that are associated with
  36129. -- eachother administratively or organizationally.
  36130. --
  36131. -- =================================================================
  36132. -- Dependencies:
  36133. --
  36134. -- :import cvterm from cv
  36135. -- :import pub from pub
  36136. -- :import contact from contact
  36137. -- :import dbxref from db
  36138. -- :import analysis from companalysis
  36139. -- :import feature from sequence
  36140. -- :import stock from stock
  36141. -- =================================================================
  36142. -- ================================================
  36143. -- TABLE: project
  36144. -- ================================================
  36145. create table project (
  36146. project_id bigserial not null,
  36147. primary key (project_id),
  36148. name varchar(255) not null,
  36149. description text,
  36150. constraint project_c1 unique (name)
  36151. );
  36152. COMMENT ON TABLE project IS
  36153. 'A project is some kind of planned endeavor. Used primarily by other
  36154. Chado modules to group experiments, stocks, and so forth that are
  36155. associated with eachother administratively or organizationally.';
  36156. -- ================================================
  36157. -- TABLE: projectprop
  36158. -- ================================================
  36159. CREATE TABLE projectprop (
  36160. projectprop_id bigserial NOT NULL,
  36161. PRIMARY KEY (projectprop_id),
  36162. project_id bigint NOT NULL,
  36163. FOREIGN KEY (project_id) REFERENCES project (project_id) ON DELETE CASCADE,
  36164. type_id bigint NOT NULL,
  36165. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  36166. value text,
  36167. rank int not null default 0,
  36168. CONSTRAINT projectprop_c1 UNIQUE (project_id, type_id, rank)
  36169. );
  36170. COMMENT ON TABLE project IS
  36171. 'Standard Chado flexible property table for projects.';
  36172. -- ================================================
  36173. -- TABLE: project_relationship
  36174. -- ================================================
  36175. CREATE TABLE project_relationship (
  36176. project_relationship_id bigserial NOT NULL,
  36177. PRIMARY KEY (project_relationship_id),
  36178. subject_project_id bigint NOT NULL,
  36179. FOREIGN KEY (subject_project_id) REFERENCES project (project_id) ON DELETE CASCADE,
  36180. object_project_id bigint NOT NULL,
  36181. FOREIGN KEY (object_project_id) REFERENCES project (project_id) ON DELETE CASCADE,
  36182. type_id bigint NOT NULL,
  36183. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE RESTRICT,
  36184. CONSTRAINT project_relationship_c1 UNIQUE (subject_project_id, object_project_id, type_id)
  36185. );
  36186. COMMENT ON TABLE project_relationship IS
  36187. 'Linking table for relating projects to each other. For example, a
  36188. given project could be composed of several smaller subprojects';
  36189. COMMENT ON COLUMN project_relationship.type_id IS
  36190. 'The cvterm type of the relationship being stated, such as "part of".';
  36191. -- ================================================
  36192. -- TABLE: project_pub
  36193. -- ================================================
  36194. create table project_pub (
  36195. project_pub_id bigserial not null,
  36196. primary key (project_pub_id),
  36197. project_id bigint not null,
  36198. foreign key (project_id) references project (project_id) on delete cascade INITIALLY DEFERRED,
  36199. pub_id bigint not null,
  36200. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36201. constraint project_pub_c1 unique (project_id,pub_id)
  36202. );
  36203. create index project_pub_idx1 on project_pub (project_id);
  36204. create index project_pub_idx2 on project_pub (pub_id);
  36205. COMMENT ON TABLE project_pub IS 'Linking table for associating projects and publications.';
  36206. -- ================================================
  36207. -- TABLE: project_contact
  36208. -- ================================================
  36209. create table project_contact (
  36210. project_contact_id bigserial not null,
  36211. primary key (project_contact_id),
  36212. project_id bigint not null,
  36213. foreign key (project_id) references project (project_id) on delete cascade INITIALLY DEFERRED,
  36214. contact_id bigint not null,
  36215. foreign key (contact_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  36216. constraint project_contact_c1 unique (project_id,contact_id)
  36217. );
  36218. create index project_contact_idx1 on project_contact (project_id);
  36219. create index project_contact_idx2 on project_contact (contact_id);
  36220. COMMENT ON TABLE project_contact IS 'Linking table for associating projects and contacts.';
  36221. -- ================================================
  36222. -- TABLE: project_dbxref
  36223. -- ================================================
  36224. create table project_dbxref (
  36225. project_dbxref_id bigserial not null,
  36226. project_id bigint not null,
  36227. dbxref_id bigint not null,
  36228. is_current boolean not null default 'true',
  36229. primary key (project_dbxref_id),
  36230. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  36231. foreign key (project_id) references project (project_id) on delete cascade INITIALLY DEFERRED,
  36232. constraint project_dbxref_c1 unique (project_id,dbxref_id)
  36233. );
  36234. create index project_dbxref_idx1 on project_dbxref (project_id);
  36235. create index project_dbxref_idx2 on project_dbxref (dbxref_id);
  36236. COMMENT ON TABLE project_dbxref IS 'project_dbxref links a project to dbxrefs.';
  36237. COMMENT ON COLUMN project_dbxref.is_current IS 'The is_current boolean indicates whether the linked dbxref is the current -official- dbxref for the linked project.';
  36238. -- ================================================
  36239. -- TABLE: project_analysis
  36240. -- ================================================
  36241. create table project_analysis (
  36242. project_analysis_id bigserial not null,
  36243. primary key (project_analysis_id),
  36244. project_id bigint not null,
  36245. foreign key (project_id) references project (project_id) on delete cascade INITIALLY DEFERRED,
  36246. analysis_id bigint not null,
  36247. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  36248. rank int not null default 0,
  36249. constraint project_analysis_c1 unique (project_id,analysis_id)
  36250. );
  36251. create index project_analysis_idx1 on project_analysis (project_id);
  36252. create index project_analysis_idx2 on project_analysis (analysis_id);
  36253. COMMENT ON TABLE project_analysis IS 'Links an analysis to a project that may contain multiple analyses.
  36254. The rank column can be used to specify a simple ordering in which analyses were executed.';
  36255. -- ================================================
  36256. -- TABLE: project_feature
  36257. -- ================================================
  36258. CREATE TABLE project_feature (
  36259. project_feature_id bigserial primary key NOT NULL,
  36260. feature_id bigint NOT NULL,
  36261. project_id bigint NOT NULL,
  36262. CONSTRAINT project_feature_c1 UNIQUE (feature_id, project_id),
  36263. FOREIGN KEY (feature_id) REFERENCES feature(feature_id) ON DELETE CASCADE,
  36264. FOREIGN KEY (project_id) REFERENCES project(project_id) ON DELETE CASCADE
  36265. );
  36266. CREATE INDEX project_feature_idx1 ON project_feature USING btree (feature_id);
  36267. CREATE INDEX project_feature_idx2 ON project_feature USING btree (project_id);
  36268. COMMENT ON TABLE project_feature IS 'This table is intended associate records in the feature table with a project.';
  36269. -- ================================================
  36270. -- TABLE: project_stock
  36271. -- ================================================
  36272. CREATE TABLE project_stock (
  36273. project_stock_id bigserial primary key NOT NULL,
  36274. stock_id bigint NOT NULL,
  36275. project_id bigint NOT NULL,
  36276. CONSTRAINT project_stock_c1 UNIQUE (stock_id, project_id),
  36277. FOREIGN KEY (stock_id) REFERENCES stock(stock_id) ON DELETE CASCADE,
  36278. FOREIGN KEY (project_id) REFERENCES project(project_id) ON DELETE CASCADE
  36279. );
  36280. CREATE INDEX project_stock_idx1 ON project_stock USING btree (stock_id);
  36281. CREATE INDEX project_stock_idx2 ON project_stock USING btree (project_id);
  36282. COMMENT ON TABLE project_stock IS 'This table is intended associate records in the stock table with a project.';
  36283. -- $Id: mage.sql,v 1.3 2008-03-19 18:32:51 scottcain Exp $
  36284. -- ==========================================
  36285. -- Chado mage module
  36286. --
  36287. -- =================================================================
  36288. -- Dependencies:
  36289. --
  36290. -- :import feature from sequence
  36291. -- :import cvterm from cv
  36292. -- :import pub from pub
  36293. -- :import organism from organism
  36294. -- :import contact from contact
  36295. -- :import dbxref from db
  36296. -- :import tableinfo from general
  36297. -- :import project from project
  36298. -- :import analysis from companalysis
  36299. -- =================================================================
  36300. -- ================================================
  36301. -- TABLE: mageml
  36302. -- ================================================
  36303. create table mageml (
  36304. mageml_id bigserial not null,
  36305. primary key (mageml_id),
  36306. mage_package text not null,
  36307. mage_ml text not null
  36308. );
  36309. COMMENT ON TABLE mageml IS 'This table is for storing extra bits of MAGEml in a denormalized form. More normalization would require many more tables.';
  36310. -- ================================================
  36311. -- TABLE: magedocumentation
  36312. -- ================================================
  36313. create table magedocumentation (
  36314. magedocumentation_id bigserial not null,
  36315. primary key (magedocumentation_id),
  36316. mageml_id bigint not null,
  36317. foreign key (mageml_id) references mageml (mageml_id) on delete cascade INITIALLY DEFERRED,
  36318. tableinfo_id bigint not null,
  36319. foreign key (tableinfo_id) references tableinfo (tableinfo_id) on delete cascade INITIALLY DEFERRED,
  36320. row_id int not null,
  36321. mageidentifier text not null
  36322. );
  36323. create index magedocumentation_idx1 on magedocumentation (mageml_id);
  36324. create index magedocumentation_idx2 on magedocumentation (tableinfo_id);
  36325. create index magedocumentation_idx3 on magedocumentation (row_id);
  36326. COMMENT ON TABLE magedocumentation IS NULL;
  36327. -- ================================================
  36328. -- TABLE: protocol
  36329. -- ================================================
  36330. create table protocol (
  36331. protocol_id bigserial not null,
  36332. primary key (protocol_id),
  36333. type_id bigint not null,
  36334. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36335. pub_id bigint null,
  36336. foreign key (pub_id) references pub (pub_id) on delete set null INITIALLY DEFERRED,
  36337. dbxref_id bigint null,
  36338. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  36339. name text not null,
  36340. uri text null,
  36341. protocoldescription text null,
  36342. hardwaredescription text null,
  36343. softwaredescription text null,
  36344. constraint protocol_c1 unique (name)
  36345. );
  36346. create index protocol_idx1 on protocol (type_id);
  36347. create index protocol_idx2 on protocol (pub_id);
  36348. create index protocol_idx3 on protocol (dbxref_id);
  36349. COMMENT ON TABLE protocol IS 'Procedural notes on how data was prepared and processed.';
  36350. -- ================================================
  36351. -- TABLE: protocolparam
  36352. -- ================================================
  36353. create table protocolparam (
  36354. protocolparam_id bigserial not null,
  36355. primary key (protocolparam_id),
  36356. protocol_id bigint not null,
  36357. foreign key (protocol_id) references protocol (protocol_id) on delete cascade INITIALLY DEFERRED,
  36358. name text not null,
  36359. datatype_id bigint null,
  36360. foreign key (datatype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  36361. unittype_id bigint null,
  36362. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  36363. value text null,
  36364. rank int not null default 0
  36365. );
  36366. create index protocolparam_idx1 on protocolparam (protocol_id);
  36367. create index protocolparam_idx2 on protocolparam (datatype_id);
  36368. create index protocolparam_idx3 on protocolparam (unittype_id);
  36369. COMMENT ON TABLE protocolparam IS 'Parameters related to a
  36370. protocol. For example, if the protocol is a soak, this might include attributes of bath temperature and duration.';
  36371. -- ================================================
  36372. -- TABLE: channel
  36373. -- ================================================
  36374. create table channel (
  36375. channel_id bigserial not null,
  36376. primary key (channel_id),
  36377. name text not null,
  36378. definition text not null,
  36379. constraint channel_c1 unique (name)
  36380. );
  36381. COMMENT ON TABLE channel IS 'Different array platforms can record signals from one or more channels (cDNA arrays typically use two CCD, but Affymetrix uses only one).';
  36382. -- ================================================
  36383. -- TABLE: arraydesign
  36384. -- ================================================
  36385. create table arraydesign (
  36386. arraydesign_id bigserial not null,
  36387. primary key (arraydesign_id),
  36388. manufacturer_id bigint not null,
  36389. foreign key (manufacturer_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  36390. platformtype_id bigint not null,
  36391. foreign key (platformtype_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36392. substratetype_id bigint null,
  36393. foreign key (substratetype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  36394. protocol_id bigint null,
  36395. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  36396. dbxref_id bigint null,
  36397. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  36398. name text not null,
  36399. version text null,
  36400. description text null,
  36401. array_dimensions text null,
  36402. element_dimensions text null,
  36403. num_of_elements int null,
  36404. num_array_columns int null,
  36405. num_array_rows int null,
  36406. num_grid_columns int null,
  36407. num_grid_rows int null,
  36408. num_sub_columns int null,
  36409. num_sub_rows int null,
  36410. constraint arraydesign_c1 unique (name)
  36411. );
  36412. create index arraydesign_idx1 on arraydesign (manufacturer_id);
  36413. create index arraydesign_idx2 on arraydesign (platformtype_id);
  36414. create index arraydesign_idx3 on arraydesign (substratetype_id);
  36415. create index arraydesign_idx4 on arraydesign (protocol_id);
  36416. create index arraydesign_idx5 on arraydesign (dbxref_id);
  36417. COMMENT ON TABLE arraydesign IS 'General properties about an array.
  36418. An array is a template used to generate physical slides, etc. It
  36419. contains layout information, as well as global array properties, such
  36420. as material (glass, nylon) and spot dimensions (in rows/columns).';
  36421. -- ================================================
  36422. -- TABLE: arraydesignprop
  36423. -- ================================================
  36424. create table arraydesignprop (
  36425. arraydesignprop_id bigserial not null,
  36426. primary key (arraydesignprop_id),
  36427. arraydesign_id bigint not null,
  36428. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  36429. type_id bigint not null,
  36430. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36431. value text null,
  36432. rank int not null default 0,
  36433. constraint arraydesignprop_c1 unique (arraydesign_id,type_id,rank)
  36434. );
  36435. create index arraydesignprop_idx1 on arraydesignprop (arraydesign_id);
  36436. create index arraydesignprop_idx2 on arraydesignprop (type_id);
  36437. COMMENT ON TABLE arraydesignprop IS 'Extra array design properties that are not accounted for in arraydesign.';
  36438. -- ================================================
  36439. -- TABLE: assay
  36440. -- ================================================
  36441. create table assay (
  36442. assay_id bigserial not null,
  36443. primary key (assay_id),
  36444. arraydesign_id bigint not null,
  36445. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  36446. protocol_id bigint null,
  36447. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  36448. assaydate timestamp null default current_timestamp,
  36449. arrayidentifier text null,
  36450. arraybatchidentifier text null,
  36451. operator_id bigint not null,
  36452. foreign key (operator_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  36453. dbxref_id bigint null,
  36454. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  36455. name text null,
  36456. description text null,
  36457. constraint assay_c1 unique (name)
  36458. );
  36459. create index assay_idx1 on assay (arraydesign_id);
  36460. create index assay_idx2 on assay (protocol_id);
  36461. create index assay_idx3 on assay (operator_id);
  36462. create index assay_idx4 on assay (dbxref_id);
  36463. COMMENT ON TABLE assay IS 'An assay consists of a physical instance of
  36464. an array, combined with the conditions used to create the array
  36465. (protocols, technician information). The assay can be thought of as a hybridization.';
  36466. -- ================================================
  36467. -- TABLE: assayprop
  36468. -- ================================================
  36469. create table assayprop (
  36470. assayprop_id bigserial not null,
  36471. primary key (assayprop_id),
  36472. assay_id bigint not null,
  36473. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  36474. type_id bigint not null,
  36475. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36476. value text null,
  36477. rank int not null default 0,
  36478. constraint assayprop_c1 unique (assay_id,type_id,rank)
  36479. );
  36480. create index assayprop_idx1 on assayprop (assay_id);
  36481. create index assayprop_idx2 on assayprop (type_id);
  36482. COMMENT ON TABLE assayprop IS 'Extra assay properties that are not accounted for in assay.';
  36483. -- ================================================
  36484. -- TABLE: assay_project
  36485. -- ================================================
  36486. create table assay_project (
  36487. assay_project_id bigserial not null,
  36488. primary key (assay_project_id),
  36489. assay_id bigint not null,
  36490. foreign key (assay_id) references assay (assay_id) INITIALLY DEFERRED,
  36491. project_id bigint not null,
  36492. foreign key (project_id) references project (project_id) INITIALLY DEFERRED,
  36493. constraint assay_project_c1 unique (assay_id,project_id)
  36494. );
  36495. create index assay_project_idx1 on assay_project (assay_id);
  36496. create index assay_project_idx2 on assay_project (project_id);
  36497. COMMENT ON TABLE assay_project IS 'Link assays to projects.';
  36498. -- ================================================
  36499. -- TABLE: biomaterial
  36500. -- ================================================
  36501. create table biomaterial (
  36502. biomaterial_id bigserial not null,
  36503. primary key (biomaterial_id),
  36504. taxon_id bigint null,
  36505. foreign key (taxon_id) references organism (organism_id) on delete set null INITIALLY DEFERRED,
  36506. biosourceprovider_id bigint null,
  36507. foreign key (biosourceprovider_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  36508. dbxref_id bigint null,
  36509. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  36510. name text null,
  36511. description text null,
  36512. constraint biomaterial_c1 unique (name)
  36513. );
  36514. create index biomaterial_idx1 on biomaterial (taxon_id);
  36515. create index biomaterial_idx2 on biomaterial (biosourceprovider_id);
  36516. create index biomaterial_idx3 on biomaterial (dbxref_id);
  36517. COMMENT ON TABLE biomaterial IS 'A biomaterial represents the MAGE concept of BioSource, BioSample, and LabeledExtract. It is essentially some biological material (tissue, cells, serum) that may have been processed. Processed biomaterials should be traceable back to raw biomaterials via the biomaterialrelationship table.';
  36518. -- ================================================
  36519. -- TABLE: biomaterial_relationship
  36520. -- ================================================
  36521. create table biomaterial_relationship (
  36522. biomaterial_relationship_id bigserial not null,
  36523. primary key (biomaterial_relationship_id),
  36524. subject_id bigint not null,
  36525. foreign key (subject_id) references biomaterial (biomaterial_id) INITIALLY DEFERRED,
  36526. type_id bigint not null,
  36527. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  36528. object_id bigint not null,
  36529. foreign key (object_id) references biomaterial (biomaterial_id) INITIALLY DEFERRED,
  36530. constraint biomaterial_relationship_c1 unique (subject_id,object_id,type_id)
  36531. );
  36532. create index biomaterial_relationship_idx1 on biomaterial_relationship (subject_id);
  36533. create index biomaterial_relationship_idx2 on biomaterial_relationship (object_id);
  36534. create index biomaterial_relationship_idx3 on biomaterial_relationship (type_id);
  36535. COMMENT ON TABLE biomaterial_relationship IS 'Relate biomaterials to one another. This is a way to track a series of treatments or material splits/merges, for instance.';
  36536. -- ================================================
  36537. -- TABLE: biomaterialprop
  36538. -- ================================================
  36539. create table biomaterialprop (
  36540. biomaterialprop_id bigserial not null,
  36541. primary key (biomaterialprop_id),
  36542. biomaterial_id bigint not null,
  36543. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  36544. type_id bigint not null,
  36545. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36546. value text null,
  36547. rank int not null default 0,
  36548. constraint biomaterialprop_c1 unique (biomaterial_id,type_id,rank)
  36549. );
  36550. create index biomaterialprop_idx1 on biomaterialprop (biomaterial_id);
  36551. create index biomaterialprop_idx2 on biomaterialprop (type_id);
  36552. COMMENT ON TABLE biomaterialprop IS 'Extra biomaterial properties that are not accounted for in biomaterial.';
  36553. -- ================================================
  36554. -- TABLE: biomaterial_dbxref
  36555. -- ================================================
  36556. create table biomaterial_dbxref (
  36557. biomaterial_dbxref_id bigserial not null,
  36558. primary key (biomaterial_dbxref_id),
  36559. biomaterial_id bigint not null,
  36560. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  36561. dbxref_id bigint not null,
  36562. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  36563. constraint biomaterial_dbxref_c1 unique (biomaterial_id,dbxref_id)
  36564. );
  36565. create index biomaterial_dbxref_idx1 on biomaterial_dbxref (biomaterial_id);
  36566. create index biomaterial_dbxref_idx2 on biomaterial_dbxref (dbxref_id);
  36567. -- ================================================
  36568. -- TABLE: treatment
  36569. -- ================================================
  36570. create table treatment (
  36571. treatment_id bigserial not null,
  36572. primary key (treatment_id),
  36573. rank int not null default 0,
  36574. biomaterial_id bigint not null,
  36575. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  36576. type_id bigint not null,
  36577. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36578. protocol_id bigint null,
  36579. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  36580. name text null
  36581. );
  36582. create index treatment_idx1 on treatment (biomaterial_id);
  36583. create index treatment_idx2 on treatment (type_id);
  36584. create index treatment_idx3 on treatment (protocol_id);
  36585. COMMENT ON TABLE treatment IS 'A biomaterial may undergo multiple
  36586. treatments. Examples of treatments: apoxia, fluorophore and biotin labeling.';
  36587. -- ================================================
  36588. -- TABLE: biomaterial_treatment
  36589. -- ================================================
  36590. create table biomaterial_treatment (
  36591. biomaterial_treatment_id bigserial not null,
  36592. primary key (biomaterial_treatment_id),
  36593. biomaterial_id bigint not null,
  36594. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  36595. treatment_id bigint not null,
  36596. foreign key (treatment_id) references treatment (treatment_id) on delete cascade INITIALLY DEFERRED,
  36597. unittype_id bigint null,
  36598. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  36599. value float(15) null,
  36600. rank int not null default 0,
  36601. constraint biomaterial_treatment_c1 unique (biomaterial_id,treatment_id)
  36602. );
  36603. create index biomaterial_treatment_idx1 on biomaterial_treatment (biomaterial_id);
  36604. create index biomaterial_treatment_idx2 on biomaterial_treatment (treatment_id);
  36605. create index biomaterial_treatment_idx3 on biomaterial_treatment (unittype_id);
  36606. COMMENT ON TABLE biomaterial_treatment IS 'Link biomaterials to treatments. Treatments have an order of operations (rank), and associated measurements (unittype_id, value).';
  36607. -- ================================================
  36608. -- TABLE: assay_biomaterial
  36609. -- ================================================
  36610. create table assay_biomaterial (
  36611. assay_biomaterial_id bigserial not null,
  36612. primary key (assay_biomaterial_id),
  36613. assay_id bigint not null,
  36614. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  36615. biomaterial_id bigint not null,
  36616. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  36617. channel_id bigint null,
  36618. foreign key (channel_id) references channel (channel_id) on delete set null INITIALLY DEFERRED,
  36619. rank int not null default 0,
  36620. constraint assay_biomaterial_c1 unique (assay_id,biomaterial_id,channel_id,rank)
  36621. );
  36622. create index assay_biomaterial_idx1 on assay_biomaterial (assay_id);
  36623. create index assay_biomaterial_idx2 on assay_biomaterial (biomaterial_id);
  36624. create index assay_biomaterial_idx3 on assay_biomaterial (channel_id);
  36625. COMMENT ON TABLE assay_biomaterial IS 'A biomaterial can be hybridized many times (technical replicates), or combined with other biomaterials in a single hybridization (for two-channel arrays).';
  36626. -- ================================================
  36627. -- TABLE: acquisition
  36628. -- ================================================
  36629. create table acquisition (
  36630. acquisition_id bigserial not null,
  36631. primary key (acquisition_id),
  36632. assay_id bigint not null,
  36633. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  36634. protocol_id bigint null,
  36635. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  36636. channel_id bigint null,
  36637. foreign key (channel_id) references channel (channel_id) on delete set null INITIALLY DEFERRED,
  36638. acquisitiondate timestamp null default current_timestamp,
  36639. name text null,
  36640. uri text null,
  36641. constraint acquisition_c1 unique (name)
  36642. );
  36643. create index acquisition_idx1 on acquisition (assay_id);
  36644. create index acquisition_idx2 on acquisition (protocol_id);
  36645. create index acquisition_idx3 on acquisition (channel_id);
  36646. COMMENT ON TABLE acquisition IS 'This represents the scanning of hybridized material. The output of this process is typically a digital image of an array.';
  36647. -- ================================================
  36648. -- TABLE: acquisitionprop
  36649. -- ================================================
  36650. create table acquisitionprop (
  36651. acquisitionprop_id bigserial not null,
  36652. primary key (acquisitionprop_id),
  36653. acquisition_id bigint not null,
  36654. foreign key (acquisition_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  36655. type_id bigint not null,
  36656. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36657. value text null,
  36658. rank int not null default 0,
  36659. constraint acquisitionprop_c1 unique (acquisition_id,type_id,rank)
  36660. );
  36661. create index acquisitionprop_idx1 on acquisitionprop (acquisition_id);
  36662. create index acquisitionprop_idx2 on acquisitionprop (type_id);
  36663. COMMENT ON TABLE acquisitionprop IS 'Parameters associated with image acquisition.';
  36664. -- ================================================
  36665. -- TABLE: acquisition_relationship
  36666. -- ================================================
  36667. create table acquisition_relationship (
  36668. acquisition_relationship_id bigserial not null,
  36669. primary key (acquisition_relationship_id),
  36670. subject_id bigint not null,
  36671. foreign key (subject_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  36672. type_id bigint not null,
  36673. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36674. object_id bigint not null,
  36675. foreign key (object_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  36676. value text null,
  36677. rank int not null default 0,
  36678. constraint acquisition_relationship_c1 unique (subject_id,object_id,type_id,rank)
  36679. );
  36680. create index acquisition_relationship_idx1 on acquisition_relationship (subject_id);
  36681. create index acquisition_relationship_idx2 on acquisition_relationship (type_id);
  36682. create index acquisition_relationship_idx3 on acquisition_relationship (object_id);
  36683. COMMENT ON TABLE acquisition_relationship IS 'Multiple monochrome images may be merged to form a multi-color image. Red-green images of 2-channel hybridizations are an example of this.';
  36684. -- ================================================
  36685. -- TABLE: quantification
  36686. -- ================================================
  36687. create table quantification (
  36688. quantification_id bigserial not null,
  36689. primary key (quantification_id),
  36690. acquisition_id bigint not null,
  36691. foreign key (acquisition_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  36692. operator_id bigint null,
  36693. foreign key (operator_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  36694. protocol_id bigint null,
  36695. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  36696. analysis_id bigint not null,
  36697. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  36698. quantificationdate timestamp null default current_timestamp,
  36699. name text null,
  36700. uri text null,
  36701. constraint quantification_c1 unique (name,analysis_id)
  36702. );
  36703. create index quantification_idx1 on quantification (acquisition_id);
  36704. create index quantification_idx2 on quantification (operator_id);
  36705. create index quantification_idx3 on quantification (protocol_id);
  36706. create index quantification_idx4 on quantification (analysis_id);
  36707. COMMENT ON TABLE quantification IS 'Quantification is the transformation of an image acquisition to numeric data. This typically involves statistical procedures.';
  36708. -- ================================================
  36709. -- TABLE: quantificationprop
  36710. -- ================================================
  36711. create table quantificationprop (
  36712. quantificationprop_id bigserial not null,
  36713. primary key (quantificationprop_id),
  36714. quantification_id bigint not null,
  36715. foreign key (quantification_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  36716. type_id bigint not null,
  36717. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36718. value text null,
  36719. rank int not null default 0,
  36720. constraint quantificationprop_c1 unique (quantification_id,type_id,rank)
  36721. );
  36722. create index quantificationprop_idx1 on quantificationprop (quantification_id);
  36723. create index quantificationprop_idx2 on quantificationprop (type_id);
  36724. COMMENT ON TABLE quantificationprop IS 'Extra quantification properties that are not accounted for in quantification.';
  36725. -- ================================================
  36726. -- TABLE: quantification_relationship
  36727. -- ================================================
  36728. create table quantification_relationship (
  36729. quantification_relationship_id bigserial not null,
  36730. primary key (quantification_relationship_id),
  36731. subject_id bigint not null,
  36732. foreign key (subject_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  36733. type_id bigint not null,
  36734. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36735. object_id bigint not null,
  36736. foreign key (object_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  36737. constraint quantification_relationship_c1 unique (subject_id,object_id,type_id)
  36738. );
  36739. create index quantification_relationship_idx1 on quantification_relationship (subject_id);
  36740. create index quantification_relationship_idx2 on quantification_relationship (type_id);
  36741. create index quantification_relationship_idx3 on quantification_relationship (object_id);
  36742. COMMENT ON TABLE quantification_relationship IS 'There may be multiple rounds of quantification, this allows us to keep an audit trail of what values went where.';
  36743. -- ================================================
  36744. -- TABLE: control
  36745. -- ================================================
  36746. create table control (
  36747. control_id bigserial not null,
  36748. primary key (control_id),
  36749. type_id bigint not null,
  36750. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36751. assay_id bigint not null,
  36752. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  36753. tableinfo_id bigint not null,
  36754. foreign key (tableinfo_id) references tableinfo (tableinfo_id) on delete cascade INITIALLY DEFERRED,
  36755. row_id int not null,
  36756. name text null,
  36757. value text null,
  36758. rank int not null default 0
  36759. );
  36760. create index control_idx1 on control (type_id);
  36761. create index control_idx2 on control (assay_id);
  36762. create index control_idx3 on control (tableinfo_id);
  36763. create index control_idx4 on control (row_id);
  36764. COMMENT ON TABLE control IS NULL;
  36765. -- ================================================
  36766. -- TABLE: element
  36767. -- ================================================
  36768. create table element (
  36769. element_id bigserial not null,
  36770. primary key (element_id),
  36771. feature_id bigint null,
  36772. foreign key (feature_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  36773. arraydesign_id bigint not null,
  36774. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  36775. type_id bigint null,
  36776. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  36777. dbxref_id bigint null,
  36778. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  36779. constraint element_c1 unique (feature_id,arraydesign_id)
  36780. );
  36781. create index element_idx1 on element (feature_id);
  36782. create index element_idx2 on element (arraydesign_id);
  36783. create index element_idx3 on element (type_id);
  36784. create index element_idx4 on element (dbxref_id);
  36785. COMMENT ON TABLE element IS 'Represents a feature of the array. This is typically a region of the array coated or bound to DNA.';
  36786. -- ================================================
  36787. -- TABLE: element_result
  36788. -- ================================================
  36789. create table elementresult (
  36790. elementresult_id bigserial not null,
  36791. primary key (elementresult_id),
  36792. element_id bigint not null,
  36793. foreign key (element_id) references element (element_id) on delete cascade INITIALLY DEFERRED,
  36794. quantification_id bigint not null,
  36795. foreign key (quantification_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  36796. signal float not null,
  36797. constraint elementresult_c1 unique (element_id,quantification_id)
  36798. );
  36799. create index elementresult_idx1 on elementresult (element_id);
  36800. create index elementresult_idx2 on elementresult (quantification_id);
  36801. create index elementresult_idx3 on elementresult (signal);
  36802. COMMENT ON TABLE elementresult IS 'An element on an array produces a measurement when hybridized to a biomaterial (traceable through quantification_id). This is the base data from which tables that actually contain data inherit.';
  36803. -- ================================================
  36804. -- TABLE: element_relationship
  36805. -- ================================================
  36806. create table element_relationship (
  36807. element_relationship_id bigserial not null,
  36808. primary key (element_relationship_id),
  36809. subject_id bigint not null,
  36810. foreign key (subject_id) references element (element_id) INITIALLY DEFERRED,
  36811. type_id bigint not null,
  36812. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  36813. object_id bigint not null,
  36814. foreign key (object_id) references element (element_id) INITIALLY DEFERRED,
  36815. value text null,
  36816. rank int not null default 0,
  36817. constraint element_relationship_c1 unique (subject_id,object_id,type_id,rank)
  36818. );
  36819. create index element_relationship_idx1 on element_relationship (subject_id);
  36820. create index element_relationship_idx2 on element_relationship (type_id);
  36821. create index element_relationship_idx3 on element_relationship (object_id);
  36822. create index element_relationship_idx4 on element_relationship (value);
  36823. COMMENT ON TABLE element_relationship IS 'Sometimes we want to combine measurements from multiple elements to get a composite value. Affymetrix combines many probes to form a probeset measurement, for instance.';
  36824. -- ================================================
  36825. -- TABLE: elementresult_relationship
  36826. -- ================================================
  36827. create table elementresult_relationship (
  36828. elementresult_relationship_id bigserial not null,
  36829. primary key (elementresult_relationship_id),
  36830. subject_id bigint not null,
  36831. foreign key (subject_id) references elementresult (elementresult_id) INITIALLY DEFERRED,
  36832. type_id bigint not null,
  36833. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  36834. object_id bigint not null,
  36835. foreign key (object_id) references elementresult (elementresult_id) INITIALLY DEFERRED,
  36836. value text null,
  36837. rank int not null default 0,
  36838. constraint elementresult_relationship_c1 unique (subject_id,object_id,type_id,rank)
  36839. );
  36840. create index elementresult_relationship_idx1 on elementresult_relationship (subject_id);
  36841. create index elementresult_relationship_idx2 on elementresult_relationship (type_id);
  36842. create index elementresult_relationship_idx3 on elementresult_relationship (object_id);
  36843. create index elementresult_relationship_idx4 on elementresult_relationship (value);
  36844. COMMENT ON TABLE elementresult_relationship IS 'Sometimes we want to combine measurements from multiple elements to get a composite value. Affymetrix combines many probes to form a probeset measurement, for instance.';
  36845. -- ================================================
  36846. -- TABLE: study
  36847. -- ================================================
  36848. create table study (
  36849. study_id bigserial not null,
  36850. primary key (study_id),
  36851. contact_id bigint not null,
  36852. foreign key (contact_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  36853. pub_id bigint null,
  36854. foreign key (pub_id) references pub (pub_id) on delete set null INITIALLY DEFERRED,
  36855. dbxref_id bigint null,
  36856. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  36857. name text not null,
  36858. description text null,
  36859. constraint study_c1 unique (name)
  36860. );
  36861. create index study_idx1 on study (contact_id);
  36862. create index study_idx2 on study (pub_id);
  36863. create index study_idx3 on study (dbxref_id);
  36864. COMMENT ON TABLE study IS NULL;
  36865. -- ================================================
  36866. -- TABLE: study_assay
  36867. -- ================================================
  36868. create table study_assay (
  36869. study_assay_id bigserial not null,
  36870. primary key (study_assay_id),
  36871. study_id bigint not null,
  36872. foreign key (study_id) references study (study_id) on delete cascade INITIALLY DEFERRED,
  36873. assay_id bigint not null,
  36874. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  36875. constraint study_assay_c1 unique (study_id,assay_id)
  36876. );
  36877. create index study_assay_idx1 on study_assay (study_id);
  36878. create index study_assay_idx2 on study_assay (assay_id);
  36879. COMMENT ON TABLE study_assay IS NULL;
  36880. -- ================================================
  36881. -- TABLE: studydesign
  36882. -- ================================================
  36883. create table studydesign (
  36884. studydesign_id bigserial not null,
  36885. primary key (studydesign_id),
  36886. study_id bigint not null,
  36887. foreign key (study_id) references study (study_id) on delete cascade INITIALLY DEFERRED,
  36888. description text null
  36889. );
  36890. create index studydesign_idx1 on studydesign (study_id);
  36891. COMMENT ON TABLE studydesign IS NULL;
  36892. -- ================================================
  36893. -- TABLE: studydesignprop
  36894. -- ================================================
  36895. create table studydesignprop (
  36896. studydesignprop_id bigserial not null,
  36897. primary key (studydesignprop_id),
  36898. studydesign_id bigint not null,
  36899. foreign key (studydesign_id) references studydesign (studydesign_id) on delete cascade INITIALLY DEFERRED,
  36900. type_id bigint not null,
  36901. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36902. value text null,
  36903. rank int not null default 0,
  36904. constraint studydesignprop_c1 unique (studydesign_id,type_id,rank)
  36905. );
  36906. create index studydesignprop_idx1 on studydesignprop (studydesign_id);
  36907. create index studydesignprop_idx2 on studydesignprop (type_id);
  36908. COMMENT ON TABLE studydesignprop IS NULL;
  36909. -- ================================================
  36910. -- TABLE: studyfactor
  36911. -- ================================================
  36912. create table studyfactor (
  36913. studyfactor_id bigserial not null,
  36914. primary key (studyfactor_id),
  36915. studydesign_id bigint not null,
  36916. foreign key (studydesign_id) references studydesign (studydesign_id) on delete cascade INITIALLY DEFERRED,
  36917. type_id bigint null,
  36918. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  36919. name text not null,
  36920. description text null
  36921. );
  36922. create index studyfactor_idx1 on studyfactor (studydesign_id);
  36923. create index studyfactor_idx2 on studyfactor (type_id);
  36924. COMMENT ON TABLE studyfactor IS NULL;
  36925. -- ================================================
  36926. -- TABLE: studyfactorvalue
  36927. -- ================================================
  36928. create table studyfactorvalue (
  36929. studyfactorvalue_id bigserial not null,
  36930. primary key (studyfactorvalue_id),
  36931. studyfactor_id bigint not null,
  36932. foreign key (studyfactor_id) references studyfactor (studyfactor_id) on delete cascade INITIALLY DEFERRED,
  36933. assay_id bigint not null,
  36934. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  36935. factorvalue text null,
  36936. name text null,
  36937. rank int not null default 0
  36938. );
  36939. create index studyfactorvalue_idx1 on studyfactorvalue (studyfactor_id);
  36940. create index studyfactorvalue_idx2 on studyfactorvalue (assay_id);
  36941. COMMENT ON TABLE studyfactorvalue IS NULL;
  36942. --
  36943. -- studyprop and studyprop_feature added for Kara Dolinski's group
  36944. --
  36945. -- Here is her description of it:
  36946. --Both of the tables are used for our YFGdb project
  36947. --(http://yfgdb.princeton.edu/), which uses chado.
  36948. --
  36949. --Here is how we use those tables, using the following example:
  36950. --
  36951. --http://yfgdb.princeton.edu/cgi-bin/display.cgi?db=pmid&amp;id=15575969
  36952. --
  36953. --The above data set is represented as a row in the STUDY table. We have
  36954. --lots of attributes that we want to store about each STUDY (status, etc)
  36955. --and in the official schema, the only prop table we could use was the
  36956. --STUDYDESIGN_PROP table. This forced us to go through the STUDYDESIGN
  36957. --table when we often have no real data to store in that table (small
  36958. --percent of our collection use MAGE-ML unfortunately, and even fewer
  36959. --provide all the data in the MAGE model, of which STUDYDESIGN is a vestige).
  36960. --So, we created a STUDYPROP table. I'd think this table would be
  36961. --generally useful to people storing various types of data sets via the
  36962. --STUDY table.
  36963. --
  36964. --The other new table is STUDYPROP_FEATURE. This basically allows us to
  36965. --group features together per study. For example, we can store microarray
  36966. --clustering results by saying that the STUDYPROP type is 'cluster' (via
  36967. --type_id -> CVTERM of course), the value is 'cluster id 123', and then
  36968. --that cluster would be associated with all the features that are in that
  36969. --cluster via STUDYPROP_FEATURE. Adding type_id to STUDYPROP_FEATURE is
  36970. -- fine by us!
  36971. --
  36972. --studyprop
  36973. create table studyprop (
  36974. studyprop_id bigserial not null,
  36975. primary key (studyprop_id),
  36976. study_id bigint not null,
  36977. foreign key (study_id) references study (study_id) on delete cascade,
  36978. type_id bigint not null,
  36979. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  36980. value text null,
  36981. rank int not null default 0,
  36982. unique (study_id,type_id,rank)
  36983. );
  36984. create index studyprop_idx1 on studyprop (study_id);
  36985. create index studyprop_idx2 on studyprop (type_id);
  36986. --studyprop_feature
  36987. CREATE TABLE studyprop_feature (
  36988. studyprop_feature_id bigserial NOT NULL,
  36989. primary key (studyprop_feature_id),
  36990. studyprop_id bigint NOT NULL,
  36991. foreign key (studyprop_id) references studyprop(studyprop_id) on delete cascade,
  36992. feature_id bigint NOT NULL,
  36993. foreign key (feature_id) references feature (feature_id) on delete cascade,
  36994. type_id bigint,
  36995. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  36996. unique (studyprop_id, feature_id)
  36997. );
  36998. create index studyprop_feature_idx1 on studyprop_feature (studyprop_id);
  36999. create index studyprop_feature_idx2 on studyprop_feature (feature_id);
  37000. -- ==========================================
  37001. -- Chado cell line module
  37002. --
  37003. -- ============
  37004. -- DEPENDENCIES
  37005. -- ============
  37006. -- :import feature from sequence
  37007. -- :import synonym from sequence
  37008. -- :import library from library
  37009. -- :import cvterm from cv
  37010. -- :import dbxref from db
  37011. -- :import pub from pub
  37012. -- :import organism from organism
  37013. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  37014. -- ================================================
  37015. -- TABLE: cell_line
  37016. -- ================================================
  37017. create table cell_line (
  37018. cell_line_id bigserial not null,
  37019. primary key (cell_line_id),
  37020. name varchar(255) null,
  37021. uniquename varchar(255) not null,
  37022. organism_id bigint not null,
  37023. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  37024. timeaccessioned timestamp not null default current_timestamp,
  37025. timelastmodified timestamp not null default current_timestamp,
  37026. constraint cell_line_c1 unique (uniquename, organism_id)
  37027. );
  37028. grant all on cell_line to PUBLIC;
  37029. -- ================================================
  37030. -- TABLE: cell_line_relationship
  37031. -- ================================================
  37032. create table cell_line_relationship (
  37033. cell_line_relationship_id bigserial not null,
  37034. primary key (cell_line_relationship_id),
  37035. subject_id bigint not null,
  37036. foreign key (subject_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  37037. object_id bigint not null,
  37038. foreign key (object_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  37039. type_id bigint not null,
  37040. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37041. constraint cell_line_relationship_c1 unique (subject_id, object_id, type_id)
  37042. );
  37043. grant all on cell_line_relationship to PUBLIC;
  37044. -- ================================================
  37045. -- TABLE: cell_line_synonym
  37046. -- ================================================
  37047. create table cell_line_synonym (
  37048. cell_line_synonym_id bigserial not null,
  37049. primary key (cell_line_synonym_id),
  37050. cell_line_id bigint not null,
  37051. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  37052. synonym_id bigint not null,
  37053. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  37054. pub_id bigint not null,
  37055. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  37056. is_current boolean not null default 'false',
  37057. is_internal boolean not null default 'false',
  37058. constraint cell_line_synonym_c1 unique (synonym_id,cell_line_id,pub_id)
  37059. );
  37060. grant all on cell_line_synonym to PUBLIC;
  37061. -- ================================================
  37062. -- TABLE: cell_line_cvterm
  37063. -- ================================================
  37064. create table cell_line_cvterm (
  37065. cell_line_cvterm_id bigserial not null,
  37066. primary key (cell_line_cvterm_id),
  37067. cell_line_id bigint not null,
  37068. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  37069. cvterm_id bigint not null,
  37070. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37071. pub_id bigint not null,
  37072. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  37073. rank int not null default 0,
  37074. constraint cell_line_cvterm_c1 unique (cell_line_id,cvterm_id,pub_id,rank)
  37075. );
  37076. grant all on cell_line_cvterm to PUBLIC;
  37077. -- ================================================
  37078. -- TABLE: cell_line_dbxref
  37079. -- ================================================
  37080. create table cell_line_dbxref (
  37081. cell_line_dbxref_id bigserial not null,
  37082. primary key (cell_line_dbxref_id),
  37083. cell_line_id bigint not null,
  37084. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  37085. dbxref_id bigint not null,
  37086. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  37087. is_current boolean not null default 'true',
  37088. constraint cell_line_dbxref_c1 unique (cell_line_id,dbxref_id)
  37089. );
  37090. grant all on cell_line_dbxref to PUBLIC;
  37091. -- ================================================
  37092. -- TABLE: cell_lineprop
  37093. -- ================================================
  37094. create table cell_lineprop (
  37095. cell_lineprop_id bigserial not null,
  37096. primary key (cell_lineprop_id),
  37097. cell_line_id bigint not null,
  37098. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  37099. type_id bigint not null,
  37100. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37101. value text null,
  37102. rank int not null default 0,
  37103. constraint cell_lineprop_c1 unique (cell_line_id,type_id,rank)
  37104. );
  37105. grant all on cell_lineprop to PUBLIC;
  37106. -- ================================================
  37107. -- TABLE: cell_lineprop_pub
  37108. -- ================================================
  37109. create table cell_lineprop_pub (
  37110. cell_lineprop_pub_id bigserial not null,
  37111. primary key (cell_lineprop_pub_id),
  37112. cell_lineprop_id bigint not null,
  37113. foreign key (cell_lineprop_id) references cell_lineprop (cell_lineprop_id) on delete cascade INITIALLY DEFERRED,
  37114. pub_id bigint not null,
  37115. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  37116. constraint cell_lineprop_pub_c1 unique (cell_lineprop_id,pub_id)
  37117. );
  37118. grant all on cell_lineprop_pub to PUBLIC;
  37119. -- ================================================
  37120. -- TABLE: cell_line_feature
  37121. -- ================================================
  37122. create table cell_line_feature (
  37123. cell_line_feature_id bigserial not null,
  37124. primary key (cell_line_feature_id),
  37125. cell_line_id bigint not null,
  37126. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  37127. feature_id bigint not null,
  37128. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  37129. pub_id bigint not null,
  37130. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  37131. constraint cell_line_feature_c1 unique (cell_line_id, feature_id, pub_id)
  37132. );
  37133. grant all on cell_line_feature to PUBLIC;
  37134. -- ================================================
  37135. -- TABLE: cell_line_cvtermprop
  37136. -- ================================================
  37137. create table cell_line_cvtermprop (
  37138. cell_line_cvtermprop_id bigserial not null,
  37139. primary key (cell_line_cvtermprop_id),
  37140. cell_line_cvterm_id bigint not null,
  37141. foreign key (cell_line_cvterm_id) references cell_line_cvterm (cell_line_cvterm_id) on delete cascade INITIALLY DEFERRED,
  37142. type_id bigint not null,
  37143. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37144. value text null,
  37145. rank int not null default 0,
  37146. constraint cell_line_cvtermprop_c1 unique (cell_line_cvterm_id, type_id, rank)
  37147. );
  37148. grant all on cell_line_cvtermprop to PUBLIC;
  37149. -- ================================================
  37150. -- TABLE: cell_line_pub
  37151. -- ================================================
  37152. create table cell_line_pub (
  37153. cell_line_pub_id bigserial not null,
  37154. primary key (cell_line_pub_id),
  37155. cell_line_id bigint not null,
  37156. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  37157. pub_id bigint not null,
  37158. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  37159. constraint cell_line_pub_c1 unique (cell_line_id, pub_id)
  37160. );
  37161. grant all on cell_line_pub to PUBLIC;
  37162. -- ================================================
  37163. -- TABLE: cell_line_library
  37164. -- ================================================
  37165. create table cell_line_library (
  37166. cell_line_library_id bigserial not null,
  37167. primary key (cell_line_library_id),
  37168. cell_line_id bigint not null,
  37169. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  37170. library_id bigint not null,
  37171. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  37172. pub_id bigint not null,
  37173. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  37174. constraint cell_line_library_c1 unique (cell_line_id, library_id, pub_id)
  37175. );
  37176. grant all on cell_line_library to PUBLIC;
  37177. -- VIEW gffatts: a view to get feature attributes in a format that
  37178. -- will make it easy to convert them to GFF attributes
  37179. CREATE OR REPLACE VIEW gffatts (
  37180. feature_id,
  37181. type,
  37182. attribute
  37183. ) AS
  37184. SELECT feature_id, 'Ontology_term' AS type, s.name AS attribute
  37185. FROM cvterm s, feature_cvterm fs
  37186. WHERE fs.cvterm_id = s.cvterm_id
  37187. UNION ALL
  37188. SELECT feature_id, 'Dbxref' AS type, d.name || ':' || s.accession AS attribute
  37189. FROM dbxref s, feature_dbxref fs, db d
  37190. WHERE fs.dbxref_id = s.dbxref_id and s.db_id = d.db_id
  37191. UNION ALL
  37192. SELECT feature_id, 'Alias' AS type, s.name AS attribute
  37193. FROM synonym s, feature_synonym fs
  37194. WHERE fs.synonym_id = s.synonym_id
  37195. UNION ALL
  37196. SELECT fp.feature_id,cv.name,fp.value
  37197. FROM featureprop fp, cvterm cv
  37198. WHERE fp.type_id = cv.cvterm_id
  37199. UNION ALL
  37200. SELECT feature_id, 'pub' AS type, s.series_name || ':' || s.title AS attribute
  37201. FROM pub s, feature_pub fs
  37202. WHERE fs.pub_id = s.pub_id;
  37203. --creates a view that can be used to assemble a GFF3 compliant attribute string
  37204. CREATE OR REPLACE VIEW gff3atts (
  37205. feature_id,
  37206. type,
  37207. attribute
  37208. ) AS
  37209. SELECT feature_id,
  37210. 'Ontology_term' AS type,
  37211. CASE WHEN db.name like '%Gene Ontology%' THEN 'GO:'|| dbx.accession
  37212. WHEN db.name like 'Sequence Ontology%' THEN 'SO:'|| dbx.accession
  37213. ELSE CAST(db.name||':'|| dbx.accession AS varchar)
  37214. END
  37215. FROM cvterm s, dbxref dbx, feature_cvterm fs, db
  37216. WHERE fs.cvterm_id = s.cvterm_id and s.dbxref_id=dbx.dbxref_id and
  37217. db.db_id = dbx.db_id
  37218. UNION ALL
  37219. SELECT feature_id, 'Dbxref' AS type, d.name || ':' || s.accession AS
  37220. attribute
  37221. FROM dbxref s, feature_dbxref fs, db d
  37222. WHERE fs.dbxref_id = s.dbxref_id and s.db_id = d.db_id and
  37223. d.name != 'GFF_source'
  37224. UNION ALL
  37225. SELECT f.feature_id, 'Alias' AS type, s.name AS attribute
  37226. FROM synonym s, feature_synonym fs, feature f
  37227. WHERE fs.synonym_id = s.synonym_id and f.feature_id = fs.feature_id and
  37228. f.name != s.name and f.uniquename != s.name
  37229. UNION ALL
  37230. SELECT fp.feature_id,cv.name,fp.value
  37231. FROM featureprop fp, cvterm cv
  37232. WHERE fp.type_id = cv.cvterm_id
  37233. UNION ALL
  37234. SELECT feature_id, 'pub' AS type, s.series_name || ':' || s.title AS
  37235. attribute
  37236. FROM pub s, feature_pub fs
  37237. WHERE fs.pub_id = s.pub_id
  37238. UNION ALL
  37239. SELECT fr.subject_id as feature_id, 'Parent' as type, parent.uniquename
  37240. as attribute
  37241. FROM feature_relationship fr, feature parent
  37242. WHERE fr.object_id=parent.feature_id AND fr.type_id = (SELECT cvterm_id
  37243. FROM cvterm WHERE name='part_of' and cv_id in (select cv_id
  37244. FROM cv WHERE name='relationship'))
  37245. UNION ALL
  37246. SELECT fr.subject_id as feature_id, 'Derives_from' as type,
  37247. parent.uniquename as attribute
  37248. FROM feature_relationship fr, feature parent
  37249. WHERE fr.object_id=parent.feature_id AND fr.type_id = (SELECT cvterm_id
  37250. FROM cvterm WHERE name='derives_from' and cv_id in (select cv_id
  37251. FROM cv WHERE name='relationship'))
  37252. UNION ALL
  37253. SELECT fl.feature_id, 'Target' as type, target.name || ' ' || fl.fmin+1
  37254. || ' ' || fl.fmax || ' ' || fl.strand as attribute
  37255. FROM featureloc fl, feature target
  37256. WHERE fl.srcfeature_id=target.feature_id
  37257. AND fl.rank != 0
  37258. UNION ALL
  37259. SELECT feature_id, 'ID' as type, uniquename as attribute
  37260. FROM feature
  37261. WHERE type_id NOT IN (SELECT cvterm_id FROM cvterm WHERE name='CDS')
  37262. UNION ALL
  37263. SELECT feature_id, 'chado_feature_id' as type, CAST(feature_id AS
  37264. varchar) as attribute
  37265. FROM feature
  37266. UNION ALL
  37267. SELECT feature_id, 'Name' as type, name as attribute
  37268. FROM feature;
  37269. --replaced with Rob B's improved view
  37270. CREATE OR REPLACE VIEW gff3view (
  37271. feature_id, ref, source, type, fstart, fend,
  37272. score, strand, phase, seqlen, name, organism_id
  37273. ) AS
  37274. SELECT
  37275. f.feature_id, sf.name,
  37276. COALESCE(gffdbx.accession,'.'::varchar(255)), cv.name,
  37277. fl.fmin+1, fl.fmax,
  37278. COALESCE(CAST(af.significance AS text), '.'),
  37279. CASE WHEN fl.strand=-1 THEN '-'
  37280. WHEN fl.strand=1 THEN '+'
  37281. ELSE '.'
  37282. END,
  37283. COALESCE(CAST(fl.phase AS text), '.'), f.seqlen, f.name, f.organism_id
  37284. FROM feature f
  37285. LEFT JOIN featureloc fl ON (f.feature_id = fl.feature_id)
  37286. LEFT JOIN feature sf ON (fl.srcfeature_id = sf.feature_id)
  37287. LEFT JOIN ( SELECT fd.feature_id, d.accession
  37288. FROM feature_dbxref fd
  37289. JOIN dbxref d using(dbxref_id)
  37290. JOIN db using(db_id)
  37291. WHERE db.name = 'GFF_source'
  37292. ) as gffdbx
  37293. ON (f.feature_id=gffdbx.feature_id)
  37294. LEFT JOIN cvterm cv ON (f.type_id = cv.cvterm_id)
  37295. LEFT JOIN analysisfeature af ON (f.feature_id = af.feature_id);
  37296. -- FUNCTION gfffeatureatts (integer) is a function to get
  37297. -- data in the same format as the gffatts view so that
  37298. -- it can be easily converted to GFF attributes.
  37299. CREATE FUNCTION gfffeatureatts (bigint)
  37300. RETURNS SETOF gffatts
  37301. AS
  37302. '
  37303. SELECT feature_id, ''Ontology_term'' AS type, s.name AS attribute
  37304. FROM cvterm s, feature_cvterm fs
  37305. WHERE fs.feature_id= $1 AND fs.cvterm_id = s.cvterm_id
  37306. UNION
  37307. SELECT feature_id, ''Dbxref'' AS type, d.name || '':'' || s.accession AS attribute
  37308. FROM dbxref s, feature_dbxref fs, db d
  37309. WHERE fs.feature_id= $1 AND fs.dbxref_id = s.dbxref_id AND s.db_id = d.db_id
  37310. UNION
  37311. SELECT feature_id, ''Alias'' AS type, s.name AS attribute
  37312. FROM synonym s, feature_synonym fs
  37313. WHERE fs.feature_id= $1 AND fs.synonym_id = s.synonym_id
  37314. UNION
  37315. SELECT fp.feature_id,cv.name,fp.value
  37316. FROM featureprop fp, cvterm cv
  37317. WHERE fp.feature_id= $1 AND fp.type_id = cv.cvterm_id
  37318. UNION
  37319. SELECT feature_id, ''pub'' AS type, s.series_name || '':'' || s.title AS attribute
  37320. FROM pub s, feature_pub fs
  37321. WHERE fs.feature_id= $1 AND fs.pub_id = s.pub_id
  37322. '
  37323. LANGUAGE SQL;
  37324. --
  37325. -- functions for creating coordinate based functions
  37326. --
  37327. -- create a point
  37328. CREATE OR REPLACE FUNCTION featureslice(bigint, bigint) RETURNS setof featureloc AS
  37329. 'SELECT * from featureloc where boxquery($1, $2) @ boxrange(fmin,fmax)'
  37330. LANGUAGE 'sql';
  37331. --uses the gff3atts to create a GFF3 compliant attribute string
  37332. CREATE OR REPLACE FUNCTION gffattstring (bigint) RETURNS varchar AS
  37333. 'DECLARE
  37334. return_string varchar;
  37335. f_id ALIAS FOR $1;
  37336. atts_view gffatts%ROWTYPE;
  37337. feature_row feature%ROWTYPE;
  37338. name varchar;
  37339. uniquename varchar;
  37340. parent varchar;
  37341. escape_loc bigint;
  37342. BEGIN
  37343. --Get name from feature.name
  37344. --Get ID from feature.uniquename
  37345. SELECT INTO feature_row * FROM feature WHERE feature_id = f_id;
  37346. name = feature_row.name;
  37347. return_string = ''ID='' || feature_row.uniquename;
  37348. IF name IS NOT NULL AND name != ''''
  37349. THEN
  37350. return_string = return_string ||'';'' || ''Name='' || name;
  37351. END IF;
  37352. --Get Parent from feature_relationship
  37353. SELECT INTO feature_row * FROM feature f, feature_relationship fr
  37354. WHERE fr.subject_id = f_id AND fr.object_id = f.feature_id;
  37355. IF FOUND
  37356. THEN
  37357. return_string = return_string||'';''||''Parent=''||feature_row.uniquename;
  37358. END IF;
  37359. FOR atts_view IN SELECT * FROM gff3atts WHERE feature_id = f_id LOOP
  37360. escape_loc = position('';'' in atts_view.attribute);
  37361. IF escape_loc > 0 THEN
  37362. atts_view.attribute = replace(atts_view.attribute, '';'', ''%3B'');
  37363. END IF;
  37364. return_string = return_string || '';''
  37365. || atts_view.type || ''=''
  37366. || atts_view.attribute;
  37367. END LOOP;
  37368. RETURN return_string;
  37369. END;
  37370. '
  37371. LANGUAGE plpgsql;
  37372. --creates a view that is suitable for creating a GFF3 string
  37373. --CREATE OR REPLACE VIEW gff3view (
  37374. --REMOVED and RECREATED in sequence-gff-views.sql to avoid
  37375. --using the function above
  37376. --------------------------------
  37377. ---- all_feature_names ---------
  37378. --------------------------------
  37379. -- This is a view to replace the denormaliziation of the synonym
  37380. -- table. It contains names and uniquenames from feature and
  37381. -- synonym.names from the synonym table, so that GBrowse has one
  37382. -- place to search for names.
  37383. --
  37384. -- To materialize this view, run gmod_materialized_view_tool.pl -c and
  37385. -- answer the questions with these responses:
  37386. --
  37387. -- all_feature_names
  37388. --
  37389. -- public.all_feature_names
  37390. --
  37391. -- y (yes, replace the existing view)
  37392. --
  37393. -- (some update frequency, I chose daily)
  37394. --
  37395. -- feature_id bigint,name varchar(255),organism_id bigint
  37396. --
  37397. -- (the select part of the view below, all on one line)
  37398. --
  37399. -- feature_id,name
  37400. --
  37401. -- create index all_feature_names_lower_name on all_feature_names (lower(name))
  37402. --
  37403. -- y
  37404. --
  37405. -- OR, you could execute this command (the materialized view tool has been
  37406. -- updated to allow this all to be supplied on the command line):
  37407. --
  37408. -- (yes, it's all one really long line, to make copy and pasting easier)
  37409. -- gmod_materialized_view_tool.pl --create_view --view_name all_feature_names --table_name public.all_feature_names --refresh_time daily --column_def "feature_id bigint,name varchar(255),organism_id bigint" --sql_query "SELECT feature_id,CAST(substring(uniquename from 0 for 255) as varchar(255)) as name,organism_id FROM feature UNION SELECT feature_id, name, organism_id FROM feature where name is not null UNION SELECT fs.feature_id,s.name,f.organism_id FROM feature_synonym fs, synonym s, feature f WHERE fs.synonym_id = s.synonym_id AND fs.feature_id = f.feature_id UNION SELECT fp.feature_id, CAST(substring(fp.value from 0 for 255) as varchar(255)) as name,f.organism_id FROM featureprop fp, feature f WHERE f.feature_id = fp.feature_id UNION SELECT fd.feature_id, d.accession, f.organism_id FROM feature_dbxref fd, dbxref d,feature f WHERE fd.dbxref_id = d.dbxref_id AND fd.feature_id = f.feature_id" --index_fields "feature_id,name" --special_index "create index all_feature_names_lower_name on all_feature_names (lower(name))" --yes
  37410. --
  37411. --
  37412. -- OR, even more complicated, you could use this command to create a materialized view
  37413. -- for use with full text searching on PostgreSQL 8.4 or better:
  37414. --
  37415. -- gmod_materialized_view_tool.pl --create_view --view_name all_feature_names --table_name public.all_feature_names --refresh_time daily --column_def "feature_id bigint,name varchar(255),organism_id bigint,searchable_name tsvector" --sql_query "SELECT feature_id, CAST(substring(uniquename FROM 0 FOR 255) AS varchar(255)) AS name, organism_id, to_tsvector('english', CAST(substring(uniquename FROM 0 FOR 255) AS varchar(255))) AS searchable_name FROM feature UNION SELECT feature_id, name, organism_id, to_tsvector('english', name) AS searchable_name FROM feature WHERE name IS NOT NULL UNION SELECT fs.feature_id, s.name, f.organism_id, to_tsvector('english', s.name) AS searchable_name FROM feature_synonym fs, synonym s, feature f WHERE fs.synonym_id = s.synonym_id AND fs.feature_id = f.feature_id UNION SELECT fp.feature_id, CAST(substring(fp.value FROM 0 FOR 255) AS varchar(255)) AS name, f.organism_id, to_tsvector('english',CAST(substring(fp.value FROM 0 FOR 255) AS varchar(255))) AS searchable_name FROM featureprop fp, feature f WHERE f.feature_id = fp.feature_id UNION SELECT fd.feature_id, d.accession, f.organism_id,to_tsvector('english',d.accession) AS searchable_name FROM feature_dbxref fd, dbxref d,feature f WHERE fd.dbxref_id = d.dbxref_id AND fd.feature_id = f.feature_id" --index_fields "feature_id,name" --special_index "CREATE INDEX searchable_all_feature_names_idx ON all_feature_names USING gin(searchable_name)" --yes
  37416. --
  37417. CREATE OR REPLACE VIEW all_feature_names (
  37418. feature_id,
  37419. name,
  37420. organism_id
  37421. ) AS
  37422. SELECT feature_id,CAST(substring(uniquename from 0 for 255) as varchar(255)) as name,organism_id FROM feature
  37423. UNION
  37424. SELECT feature_id, name, organism_id FROM feature where name is not null
  37425. UNION
  37426. SELECT fs.feature_id,s.name,f.organism_id FROM feature_synonym fs, synonym s, feature f
  37427. WHERE fs.synonym_id = s.synonym_id AND fs.feature_id = f.feature_id
  37428. UNION
  37429. SELECT fp.feature_id, CAST(substring(fp.value from 0 for 255) as varchar(255)) as name,f.organism_id FROM featureprop fp, feature f
  37430. WHERE f.feature_id = fp.feature_id
  37431. UNION
  37432. SELECT fd.feature_id, d.accession, f.organism_id FROM feature_dbxref fd, dbxref d,feature f
  37433. WHERE fd.dbxref_id = d.dbxref_id AND fd.feature_id = f.feature_id;
  37434. --------------------------------
  37435. ---- dfeatureloc ---------------
  37436. --------------------------------
  37437. -- dfeatureloc is meant as an alternate representation of
  37438. -- the data in featureloc (see the descrption of featureloc
  37439. -- in sequence.sql). In dfeatureloc, fmin and fmax are
  37440. -- replaced with nbeg and nend. Whereas fmin and fmax
  37441. -- are absolute coordinates relative to the parent feature, nbeg
  37442. -- and nend are the beginning and ending coordinates
  37443. -- relative to the feature itself. For example, nbeg would
  37444. -- mark the 5' end of a gene and nend would mark the 3' end.
  37445. CREATE OR REPLACE VIEW dfeatureloc (
  37446. featureloc_id,
  37447. feature_id,
  37448. srcfeature_id,
  37449. nbeg,
  37450. is_nbeg_partial,
  37451. nend,
  37452. is_nend_partial,
  37453. strand,
  37454. phase,
  37455. residue_info,
  37456. locgroup,
  37457. rank
  37458. ) AS
  37459. SELECT featureloc_id, feature_id, srcfeature_id, fmin, is_fmin_partial,
  37460. fmax, is_fmax_partial, strand, phase, residue_info, locgroup, rank
  37461. FROM featureloc
  37462. WHERE (strand < 0 or phase < 0)
  37463. UNION
  37464. SELECT featureloc_id, feature_id, srcfeature_id, fmax, is_fmax_partial,
  37465. fmin, is_fmin_partial, strand, phase, residue_info, locgroup, rank
  37466. FROM featureloc
  37467. WHERE (strand is NULL or strand >= 0 or phase >= 0) ;
  37468. --------------------------------
  37469. ---- f_type --------------------
  37470. --------------------------------
  37471. CREATE OR REPLACE VIEW f_type
  37472. AS
  37473. SELECT f.feature_id,
  37474. f.name,
  37475. f.dbxref_id,
  37476. c.name AS type,
  37477. f.residues,
  37478. f.seqlen,
  37479. f.md5checksum,
  37480. f.type_id,
  37481. f.timeaccessioned,
  37482. f.timelastmodified
  37483. FROM feature f, cvterm c
  37484. WHERE f.type_id = c.cvterm_id;
  37485. --------------------------------
  37486. ---- fnr_type ------------------
  37487. --------------------------------
  37488. CREATE OR REPLACE VIEW fnr_type
  37489. AS
  37490. SELECT f.feature_id,
  37491. f.name,
  37492. f.dbxref_id,
  37493. c.name AS type,
  37494. f.residues,
  37495. f.seqlen,
  37496. f.md5checksum,
  37497. f.type_id,
  37498. f.timeaccessioned,
  37499. f.timelastmodified
  37500. FROM feature f left outer join analysisfeature af
  37501. on (f.feature_id = af.feature_id), cvterm c
  37502. WHERE f.type_id = c.cvterm_id
  37503. and af.feature_id is null;
  37504. --------------------------------
  37505. ---- f_loc ---------------------
  37506. --------------------------------
  37507. -- Note from Scott: I changed this view to depend on dfeatureloc,
  37508. -- since I don't know what it is used for. The change should
  37509. -- be transparent. I also changed dbxrefstr to dbxref_id since
  37510. -- dbxrefstr is no longer in feature
  37511. CREATE OR REPLACE VIEW f_loc
  37512. AS
  37513. SELECT f.feature_id,
  37514. f.name,
  37515. f.dbxref_id,
  37516. fl.nbeg,
  37517. fl.nend,
  37518. fl.strand
  37519. FROM dfeatureloc fl, f_type f
  37520. WHERE f.feature_id = fl.feature_id;
  37521. --------------------------------
  37522. ---- fp_key -------------------
  37523. --------------------------------
  37524. CREATE OR REPLACE VIEW fp_key
  37525. AS
  37526. SELECT fp.feature_id,
  37527. c.name AS pkey,
  37528. fp.value
  37529. FROM featureprop fp, cvterm c
  37530. WHERE fp.featureprop_id = c.cvterm_id;
  37531. -- [symmetric,reflexive]
  37532. -- intervals have at least one interbase point in common
  37533. -- (i.e. overlap OR abut)
  37534. -- EXAMPLE QUERY:
  37535. -- (features of same type that overlap)
  37536. -- SELECT r.*
  37537. -- FROM feature AS x
  37538. -- INNER JOIN feature_meets AS r ON (x.feature_id=r.subject_id)
  37539. -- INNER JOIN feature AS y ON (y.feature_id=r.object_id)
  37540. -- WHERE x.type_id=y.type_id
  37541. CREATE OR REPLACE VIEW feature_meets (
  37542. subject_id,
  37543. object_id
  37544. ) AS
  37545. SELECT
  37546. x.feature_id,
  37547. y.feature_id
  37548. FROM
  37549. featureloc AS x,
  37550. featureloc AS y
  37551. WHERE
  37552. x.srcfeature_id=y.srcfeature_id
  37553. AND
  37554. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  37555. COMMENT ON VIEW feature_meets IS 'intervals have at least one
  37556. interbase point in common (ie overlap OR abut). symmetric,reflexive';
  37557. -- [symmetric,reflexive]
  37558. -- as above, strands match
  37559. CREATE OR REPLACE VIEW feature_meets_on_same_strand (
  37560. subject_id,
  37561. object_id
  37562. ) AS
  37563. SELECT
  37564. x.feature_id,
  37565. y.feature_id
  37566. FROM
  37567. featureloc AS x,
  37568. featureloc AS y
  37569. WHERE
  37570. x.srcfeature_id=y.srcfeature_id
  37571. AND
  37572. x.strand = y.strand
  37573. AND
  37574. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  37575. COMMENT ON VIEW feature_meets_on_same_strand IS 'as feature_meets, but
  37576. featurelocs must be on the same strand. symmetric,reflexive';
  37577. -- [symmetric]
  37578. -- intervals have no interbase points in common and do not abut
  37579. CREATE OR REPLACE VIEW feature_disjoint (
  37580. subject_id,
  37581. object_id
  37582. ) AS
  37583. SELECT
  37584. x.feature_id,
  37585. y.feature_id
  37586. FROM
  37587. featureloc AS x,
  37588. featureloc AS y
  37589. WHERE
  37590. x.srcfeature_id=y.srcfeature_id
  37591. AND
  37592. ( x.fmax < y.fmin AND x.fmin > y.fmax );
  37593. COMMENT ON VIEW feature_disjoint IS 'featurelocs do not meet. symmetric';
  37594. -- 4-ary relation
  37595. CREATE OR REPLACE VIEW feature_union AS
  37596. SELECT
  37597. x.feature_id AS subject_id,
  37598. y.feature_id AS object_id,
  37599. x.srcfeature_id,
  37600. x.strand AS subject_strand,
  37601. y.strand AS object_strand,
  37602. CASE WHEN x.fmin<y.fmin THEN x.fmin ELSE y.fmin END AS fmin,
  37603. CASE WHEN x.fmax>y.fmax THEN x.fmax ELSE y.fmax END AS fmax
  37604. FROM
  37605. featureloc AS x,
  37606. featureloc AS y
  37607. WHERE
  37608. x.srcfeature_id=y.srcfeature_id
  37609. AND
  37610. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  37611. COMMENT ON VIEW feature_union IS 'set-union on interval defined by featureloc. featurelocs must meet';
  37612. -- 4-ary relation
  37613. CREATE OR REPLACE VIEW feature_intersection AS
  37614. SELECT
  37615. x.feature_id AS subject_id,
  37616. y.feature_id AS object_id,
  37617. x.srcfeature_id,
  37618. x.strand AS subject_strand,
  37619. y.strand AS object_strand,
  37620. CASE WHEN x.fmin<y.fmin THEN y.fmin ELSE x.fmin END AS fmin,
  37621. CASE WHEN x.fmax>y.fmax THEN y.fmax ELSE x.fmax END AS fmax
  37622. FROM
  37623. featureloc AS x,
  37624. featureloc AS y
  37625. WHERE
  37626. x.srcfeature_id=y.srcfeature_id
  37627. AND
  37628. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  37629. COMMENT ON VIEW feature_intersection IS 'set-intersection on interval defined by featureloc. featurelocs must meet';
  37630. -- 4-ary relation
  37631. -- subtract object interval from subject interval
  37632. -- (may leave zero, one or two intervals)
  37633. CREATE OR REPLACE VIEW feature_difference (
  37634. subject_id,
  37635. object_id,
  37636. srcfeature_id,
  37637. fmin,
  37638. fmax,
  37639. strand
  37640. ) AS
  37641. -- left interval
  37642. SELECT
  37643. x.feature_id,
  37644. y.feature_id,
  37645. x.strand,
  37646. x.srcfeature_id,
  37647. x.fmin,
  37648. y.fmin
  37649. FROM
  37650. featureloc AS x,
  37651. featureloc AS y
  37652. WHERE
  37653. x.srcfeature_id=y.srcfeature_id
  37654. AND
  37655. (x.fmin < y.fmin AND x.fmax >= y.fmax )
  37656. UNION
  37657. -- right interval
  37658. SELECT
  37659. x.feature_id,
  37660. y.feature_id,
  37661. x.strand,
  37662. x.srcfeature_id,
  37663. y.fmax,
  37664. x.fmax
  37665. FROM
  37666. featureloc AS x,
  37667. featureloc AS y
  37668. WHERE
  37669. x.srcfeature_id=y.srcfeature_id
  37670. AND
  37671. (x.fmax > y.fmax AND x.fmin <= y.fmin );
  37672. COMMENT ON VIEW feature_difference IS 'set-distance on interval defined by featureloc. featurelocs must meet';
  37673. -- 4-ary relation
  37674. CREATE OR REPLACE VIEW feature_distance AS
  37675. SELECT
  37676. x.feature_id AS subject_id,
  37677. y.feature_id AS object_id,
  37678. x.srcfeature_id,
  37679. x.strand AS subject_strand,
  37680. y.strand AS object_strand,
  37681. CASE WHEN x.fmax <= y.fmin THEN (x.fmax-y.fmin) ELSE (y.fmax-x.fmin) END AS distance
  37682. FROM
  37683. featureloc AS x,
  37684. featureloc AS y
  37685. WHERE
  37686. x.srcfeature_id=y.srcfeature_id
  37687. AND
  37688. ( x.fmax <= y.fmin OR x.fmin >= y.fmax );
  37689. COMMENT ON VIEW feature_difference IS 'size of gap between two features. must be abutting or disjoint';
  37690. -- [transitive,reflexive]
  37691. -- (should this be made non-reflexive?)
  37692. -- subject intervals contains (or is same as) object interval
  37693. CREATE OR REPLACE VIEW feature_contains (
  37694. subject_id,
  37695. object_id
  37696. ) AS
  37697. SELECT
  37698. x.feature_id,
  37699. y.feature_id
  37700. FROM
  37701. featureloc AS x,
  37702. featureloc AS y
  37703. WHERE
  37704. x.srcfeature_id=y.srcfeature_id
  37705. AND
  37706. ( y.fmin >= x.fmin AND y.fmin <= x.fmax );
  37707. COMMENT ON VIEW feature_contains IS 'subject intervals contains (or is
  37708. same as) object interval. transitive,reflexive';
  37709. -- featureset relations:
  37710. -- a featureset relation is true between any two features x and y
  37711. -- if the relation is true for any x' and y' where x' and y' are
  37712. -- subfeatures of x and y
  37713. -- see feature_meets
  37714. -- example: two transcripts meet if any of their exons or CDSs overlap
  37715. -- or abut
  37716. CREATE OR REPLACE VIEW featureset_meets (
  37717. subject_id,
  37718. object_id
  37719. ) AS
  37720. SELECT
  37721. x.object_id,
  37722. y.object_id
  37723. FROM
  37724. feature_meets AS r
  37725. INNER JOIN feature_relationship AS x ON (r.subject_id = x.subject_id)
  37726. INNER JOIN feature_relationship AS y ON (r.object_id = y.subject_id);
  37727. -- =================================================================
  37728. -- Dependencies:
  37729. --
  37730. -- :import feature from sequence
  37731. -- :import cvterm from cv
  37732. -- :import pub from pub
  37733. -- :import phenotype from phenotype
  37734. -- :import organism from organism
  37735. -- :import genotype from genetic
  37736. -- :import contact from contact
  37737. -- :import project from project
  37738. -- :import stock from stock
  37739. -- :import synonym
  37740. -- =================================================================
  37741. -- this probably needs some work, depending on how cross-database we
  37742. -- want to be. In Postgres, at least, there are much better ways to
  37743. -- represent geo information.
  37744. -- ================================================
  37745. -- TABLE: nd_geolocation
  37746. -- ================================================
  37747. CREATE TABLE nd_geolocation (
  37748. nd_geolocation_id bigserial PRIMARY KEY NOT NULL,
  37749. description text,
  37750. latitude real,
  37751. longitude real,
  37752. geodetic_datum character varying(32),
  37753. altitude real
  37754. );
  37755. CREATE INDEX nd_geolocation_idx1 ON nd_geolocation (latitude);
  37756. CREATE INDEX nd_geolocation_idx2 ON nd_geolocation (longitude);
  37757. CREATE INDEX nd_geolocation_idx3 ON nd_geolocation (altitude);
  37758. COMMENT ON TABLE nd_geolocation IS 'The geo-referencable location of the stock. NOTE: This entity is subject to change as a more general and possibly more OpenGIS-compliant geolocation module may be introduced into Chado.';
  37759. COMMENT ON COLUMN nd_geolocation.description IS 'A textual representation of the location, if this is the original georeference. Optional if the original georeference is available in lat/long coordinates.';
  37760. COMMENT ON COLUMN nd_geolocation.latitude IS 'The decimal latitude coordinate of the georeference, using positive and negative sign to indicate N and S, respectively.';
  37761. COMMENT ON COLUMN nd_geolocation.longitude IS 'The decimal longitude coordinate of the georeference, using positive and negative sign to indicate E and W, respectively.';
  37762. COMMENT ON COLUMN nd_geolocation.geodetic_datum IS 'The geodetic system on which the geo-reference coordinates are based. For geo-references measured between 1984 and 2010, this will typically be WGS84.';
  37763. COMMENT ON COLUMN nd_geolocation.altitude IS 'The altitude (elevation) of the location in meters. If the altitude is only known as a range, this is the average, and altitude_dev will hold half of the width of the range.';
  37764. -- ================================================
  37765. -- TABLE: nd_experiment
  37766. -- ================================================
  37767. CREATE TABLE nd_experiment (
  37768. nd_experiment_id bigserial PRIMARY KEY NOT NULL,
  37769. nd_geolocation_id bigint NOT NULL references nd_geolocation (nd_geolocation_id) on delete cascade INITIALLY DEFERRED,
  37770. type_id bigint NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37771. );
  37772. CREATE INDEX nd_experiment_idx1 ON nd_experiment (nd_geolocation_id);
  37773. CREATE INDEX nd_experiment_idx2 ON nd_experiment (type_id);
  37774. COMMENT ON TABLE nd_experiment IS 'This is the core table for the natural diversity module,
  37775. representing each individual assay that is undertaken (this is usually *not* an
  37776. entire experiment). Each nd_experiment should give rise to a single genotype or
  37777. phenotype and be described via 1 (or more) protocols. Collections of assays that
  37778. relate to each other should be linked to the same record in the project table.';
  37779. -- ================================================
  37780. -- TABLE: nd_experiment_project
  37781. -- ================================================
  37782. --
  37783. --used to be nd_diversityexperiment_project
  37784. --then was nd_assay_project
  37785. CREATE TABLE nd_experiment_project (
  37786. nd_experiment_project_id bigserial PRIMARY KEY NOT NULL,
  37787. project_id bigint not null references project (project_id) on delete cascade INITIALLY DEFERRED,
  37788. nd_experiment_id bigint NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37789. CONSTRAINT nd_experiment_project_c1 unique (project_id, nd_experiment_id)
  37790. );
  37791. CREATE INDEX nd_experiment_project_idx1 ON nd_experiment_project (project_id);
  37792. CREATE INDEX nd_experiment_project_idx2 ON nd_experiment_project (nd_experiment_id);
  37793. COMMENT ON TABLE nd_experiment_project IS 'Used to group together related nd_experiment records. All nd_experiments
  37794. should be linked to at least one project.';
  37795. -- ================================================
  37796. -- TABLE: nd_experimentprop
  37797. -- ================================================
  37798. CREATE TABLE nd_experimentprop (
  37799. nd_experimentprop_id bigserial PRIMARY KEY NOT NULL,
  37800. nd_experiment_id bigint NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37801. type_id bigint NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED ,
  37802. value text null,
  37803. rank int NOT NULL default 0,
  37804. constraint nd_experimentprop_c1 unique (nd_experiment_id,type_id,rank)
  37805. );
  37806. CREATE INDEX nd_experimentprop_idx1 ON nd_experimentprop (nd_experiment_id);
  37807. CREATE INDEX nd_experimentprop_idx2 ON nd_experimentprop (type_id);
  37808. COMMENT ON TABLE nd_experimentprop IS 'An nd_experiment can have any number of
  37809. slot-value property tags attached to it. This is an alternative to
  37810. hardcoding a list of columns in the relational schema, and is
  37811. completely extensible. There is a unique constraint, stockprop_c1, for
  37812. the combination of stock_id, rank, and type_id. Multivalued property-value pairs must be differentiated by rank.';
  37813. -- ================================================
  37814. -- TABLE: nd_experiment_pub
  37815. -- ================================================
  37816. CREATE TABLE nd_experiment_pub (
  37817. nd_experiment_pub_id bigserial PRIMARY KEY not null,
  37818. nd_experiment_id bigint not null,
  37819. foreign key (nd_experiment_id) references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37820. pub_id bigint not null,
  37821. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  37822. constraint nd_experiment_pub_c1 unique (nd_experiment_id,pub_id)
  37823. );
  37824. create index nd_experiment_pub_idx1 on nd_experiment_pub (nd_experiment_id);
  37825. create index nd_experiment_pub_idx2 on nd_experiment_pub (pub_id);
  37826. COMMENT ON TABLE nd_experiment_pub IS 'Linking nd_experiment(s) to publication(s)';
  37827. -- ================================================
  37828. -- TABLE: nd_geolocationprop
  37829. -- ================================================
  37830. CREATE TABLE nd_geolocationprop (
  37831. nd_geolocationprop_id bigserial PRIMARY KEY NOT NULL,
  37832. nd_geolocation_id bigint NOT NULL references nd_geolocation (nd_geolocation_id) on delete cascade INITIALLY DEFERRED,
  37833. type_id bigint NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37834. value text null,
  37835. rank int NOT NULL DEFAULT 0,
  37836. constraint nd_geolocationprop_c1 unique (nd_geolocation_id,type_id,rank)
  37837. );
  37838. CREATE INDEX nd_geolocationprop_idx1 ON nd_geolocationprop (nd_geolocation_id);
  37839. CREATE INDEX nd_geolocationprop_idx2 ON nd_geolocationprop (type_id);
  37840. COMMENT ON TABLE nd_geolocationprop IS 'Property/value associations for geolocations. This table can store the properties such as location and environment';
  37841. COMMENT ON COLUMN nd_geolocationprop.type_id IS 'The name of the property as a reference to a controlled vocabulary term.';
  37842. COMMENT ON COLUMN nd_geolocationprop.value IS 'The value of the property.';
  37843. COMMENT ON COLUMN nd_geolocationprop.rank IS 'The rank of the property value, if the property has an array of values.';
  37844. -- ================================================
  37845. -- TABLE: nd_protocol
  37846. -- ================================================
  37847. CREATE TABLE nd_protocol (
  37848. nd_protocol_id bigserial PRIMARY KEY NOT NULL,
  37849. name character varying(255) NOT NULL unique,
  37850. type_id bigint NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37851. );
  37852. CREATE INDEX nd_protocol_idx1 ON nd_protocol (type_id);
  37853. COMMENT ON TABLE nd_protocol IS 'A protocol can be anything that is done as part of the experiment.';
  37854. COMMENT ON COLUMN nd_protocol.name IS 'The protocol name.';
  37855. -- ================================================
  37856. -- TABLE: nd_reagent
  37857. -- ===============================================
  37858. CREATE TABLE nd_reagent (
  37859. nd_reagent_id bigserial PRIMARY KEY NOT NULL,
  37860. name character varying(80) NOT NULL,
  37861. type_id bigint NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37862. feature_id bigint NULL references feature (feature_id) on delete cascade INITIALLY DEFERRED
  37863. );
  37864. CREATE INDEX nd_reagent_idx1 ON nd_reagent (type_id);
  37865. CREATE INDEX nd_reagent_idx2 ON nd_reagent (feature_id);
  37866. COMMENT ON TABLE nd_reagent IS 'A reagent such as a primer, an enzyme, an adapter oligo, a linker oligo. Reagents are used in genotyping experiments, or in any other kind of experiment.';
  37867. COMMENT ON COLUMN nd_reagent.name IS 'The name of the reagent. The name should be unique for a given type.';
  37868. COMMENT ON COLUMN nd_reagent.type_id IS 'The type of the reagent, for example linker oligomer, or forward primer.';
  37869. COMMENT ON COLUMN nd_reagent.feature_id IS 'If the reagent is a primer, the feature that it corresponds to. More generally, the corresponding feature for any reagent that has a sequence that maps to another sequence.';
  37870. -- ================================================
  37871. -- TABLE: nd_protocol_reagent
  37872. -- ================================================
  37873. CREATE TABLE nd_protocol_reagent (
  37874. nd_protocol_reagent_id bigserial PRIMARY KEY NOT NULL,
  37875. nd_protocol_id bigint NOT NULL references nd_protocol (nd_protocol_id) on delete cascade INITIALLY DEFERRED,
  37876. reagent_id bigint NOT NULL references nd_reagent (nd_reagent_id) on delete cascade INITIALLY DEFERRED,
  37877. type_id bigint NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37878. );
  37879. CREATE INDEX nd_protocol_reagent_idx1 ON nd_protocol_reagent (nd_protocol_id);
  37880. CREATE INDEX nd_protocol_reagent_idx2 ON nd_protocol_reagent (reagent_id);
  37881. CREATE INDEX nd_protocol_reagent_idx3 ON nd_protocol_reagent (type_id);
  37882. -- ================================================
  37883. -- TABLE: nd_protocolprop
  37884. -- ================================================
  37885. CREATE TABLE nd_protocolprop (
  37886. nd_protocolprop_id bigserial PRIMARY KEY NOT NULL,
  37887. nd_protocol_id bigint NOT NULL references nd_protocol (nd_protocol_id) on delete cascade INITIALLY DEFERRED,
  37888. type_id bigint NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37889. value text null,
  37890. rank int DEFAULT 0 NOT NULL,
  37891. constraint nd_protocolprop_c1 unique (nd_protocol_id,type_id,rank)
  37892. );
  37893. CREATE INDEX nd_protocolprop_idx1 ON nd_protocolprop (nd_protocol_id);
  37894. CREATE INDEX nd_protocolprop_idx2 ON nd_protocolprop (type_id);
  37895. COMMENT ON TABLE nd_protocolprop IS 'Property/value associations for protocol.';
  37896. COMMENT ON COLUMN nd_protocolprop.nd_protocol_id IS 'The protocol to which the property applies.';
  37897. COMMENT ON COLUMN nd_protocolprop.type_id IS 'The name of the property as a reference to a controlled vocabulary term.';
  37898. COMMENT ON COLUMN nd_protocolprop.value IS 'The value of the property.';
  37899. COMMENT ON COLUMN nd_protocolprop.rank IS 'The rank of the property value, if the property has an array of values.';
  37900. -- ================================================
  37901. -- TABLE: nd_experiment_stock
  37902. -- ================================================
  37903. CREATE TABLE nd_experiment_stock (
  37904. nd_experiment_stock_id bigserial PRIMARY KEY NOT NULL,
  37905. nd_experiment_id bigint NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37906. stock_id bigint NOT NULL references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  37907. type_id bigint NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37908. );
  37909. CREATE INDEX nd_experiment_stock_idx1 ON nd_experiment_stock (nd_experiment_id);
  37910. CREATE INDEX nd_experiment_stock_idx2 ON nd_experiment_stock (stock_id);
  37911. CREATE INDEX nd_experiment_stock_idx3 ON nd_experiment_stock (type_id);
  37912. COMMENT ON TABLE nd_experiment_stock IS 'Part of a stock or a clone of a stock that is used in an experiment';
  37913. COMMENT ON COLUMN nd_experiment_stock.stock_id IS 'stock used in the extraction or the corresponding stock for the clone';
  37914. -- ================================================
  37915. -- TABLE: nd_experiment_protocol
  37916. -- ================================================
  37917. CREATE TABLE nd_experiment_protocol (
  37918. nd_experiment_protocol_id bigserial PRIMARY KEY NOT NULL,
  37919. nd_experiment_id bigint NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37920. nd_protocol_id bigint NOT NULL references nd_protocol (nd_protocol_id) on delete cascade INITIALLY DEFERRED
  37921. );
  37922. CREATE INDEX nd_experiment_protocol_idx1 ON nd_experiment_protocol (nd_experiment_id);
  37923. CREATE INDEX nd_experiment_protocol_idx2 ON nd_experiment_protocol (nd_protocol_id);
  37924. COMMENT ON TABLE nd_experiment_protocol IS 'Linking table: experiments to the protocols they involve.';
  37925. -- ================================================
  37926. -- TABLE: nd_experiment_phenotype
  37927. -- ================================================
  37928. CREATE TABLE nd_experiment_phenotype (
  37929. nd_experiment_phenotype_id bigserial PRIMARY KEY NOT NULL,
  37930. nd_experiment_id bigint NOT NULL REFERENCES nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37931. phenotype_id bigint NOT NULL references phenotype (phenotype_id) on delete cascade INITIALLY DEFERRED,
  37932. constraint nd_experiment_phenotype_c1 unique (nd_experiment_id,phenotype_id)
  37933. );
  37934. CREATE INDEX nd_experiment_phenotype_idx1 ON nd_experiment_phenotype (nd_experiment_id);
  37935. CREATE INDEX nd_experiment_phenotype_idx2 ON nd_experiment_phenotype (phenotype_id);
  37936. COMMENT ON TABLE nd_experiment_phenotype IS 'Linking table: experiments to the phenotypes they produce. There is a one-to-one relationship between an experiment and a phenotype since each phenotype record should point to one experiment. Add a new experiment_id for each phenotype record.';
  37937. -- ================================================
  37938. -- TABLE: nd_experiment_genotype
  37939. -- ================================================
  37940. CREATE TABLE nd_experiment_genotype (
  37941. nd_experiment_genotype_id bigserial PRIMARY KEY NOT NULL,
  37942. nd_experiment_id bigint NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37943. genotype_id bigint NOT NULL references genotype (genotype_id) on delete cascade INITIALLY DEFERRED ,
  37944. constraint nd_experiment_genotype_c1 unique (nd_experiment_id,genotype_id)
  37945. );
  37946. CREATE INDEX nd_experiment_genotype_idx1 ON nd_experiment_genotype (nd_experiment_id);
  37947. CREATE INDEX nd_experiment_genotype_idx2 ON nd_experiment_genotype (genotype_id);
  37948. COMMENT ON TABLE nd_experiment_genotype IS 'Linking table: experiments to the genotypes they produce. There is a one-to-one relationship between an experiment and a genotype since each genotype record should point to one experiment. Add a new experiment_id for each genotype record.';
  37949. -- ================================================
  37950. -- TABLE: nd_reagent_relationship
  37951. -- ================================================
  37952. CREATE TABLE nd_reagent_relationship (
  37953. nd_reagent_relationship_id bigserial PRIMARY KEY NOT NULL,
  37954. subject_reagent_id bigint NOT NULL references nd_reagent (nd_reagent_id) on delete cascade INITIALLY DEFERRED,
  37955. object_reagent_id bigint NOT NULL references nd_reagent (nd_reagent_id) on delete cascade INITIALLY DEFERRED,
  37956. type_id bigint NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37957. );
  37958. CREATE INDEX nd_reagent_relationship_idx1 ON nd_reagent_relationship (subject_reagent_id);
  37959. CREATE INDEX nd_reagent_relationship_idx2 ON nd_reagent_relationship (object_reagent_id);
  37960. CREATE INDEX nd_reagent_relationship_idx3 ON nd_reagent_relationship (type_id);
  37961. COMMENT ON TABLE nd_reagent_relationship IS 'Relationships between reagents. Some reagents form a group. i.e., they are used all together or not at all. Examples are adapter/linker/enzyme experiment reagents.';
  37962. COMMENT ON COLUMN nd_reagent_relationship.subject_reagent_id IS 'The subject reagent in the relationship. In parent/child terminology, the subject is the child. For example, in "linkerA 3prime-overhang-linker enzymeA" linkerA is the subject, 3prime-overhand-linker is the type, and enzymeA is the object.';
  37963. COMMENT ON COLUMN nd_reagent_relationship.object_reagent_id IS 'The object reagent in the relationship. In parent/child terminology, the object is the parent. For example, in "linkerA 3prime-overhang-linker enzymeA" linkerA is the subject, 3prime-overhand-linker is the type, and enzymeA is the object.';
  37964. COMMENT ON COLUMN nd_reagent_relationship.type_id IS 'The type (or predicate) of the relationship. For example, in "linkerA 3prime-overhang-linker enzymeA" linkerA is the subject, 3prime-overhand-linker is the type, and enzymeA is the object.';
  37965. -- ================================================
  37966. -- TABLE: nd_reagentprop
  37967. -- ================================================
  37968. CREATE TABLE nd_reagentprop (
  37969. nd_reagentprop_id bigserial PRIMARY KEY NOT NULL,
  37970. nd_reagent_id bigint NOT NULL references nd_reagent (nd_reagent_id) on delete cascade INITIALLY DEFERRED,
  37971. type_id bigint NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37972. value text null,
  37973. rank int DEFAULT 0 NOT NULL,
  37974. constraint nd_reagentprop_c1 unique (nd_reagent_id,type_id,rank)
  37975. );
  37976. CREATE INDEX nd_reagentprop_idx1 ON nd_reagentprop (nd_reagent_id);
  37977. CREATE INDEX nd_reagentprop_idx2 ON nd_reagentprop (type_id);
  37978. -- ================================================
  37979. -- TABLE: nd_experiment_stockprop
  37980. -- ================================================
  37981. CREATE TABLE nd_experiment_stockprop (
  37982. nd_experiment_stockprop_id bigserial PRIMARY KEY NOT NULL,
  37983. nd_experiment_stock_id bigint NOT NULL references nd_experiment_stock (nd_experiment_stock_id) on delete cascade INITIALLY DEFERRED,
  37984. type_id bigint NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37985. value text null,
  37986. rank int DEFAULT 0 NOT NULL,
  37987. constraint nd_experiment_stockprop_c1 unique (nd_experiment_stock_id,type_id,rank)
  37988. );
  37989. CREATE INDEX nd_experiment_stockprop_idx1 ON nd_experiment_stockprop (nd_experiment_stock_id);
  37990. CREATE INDEX nd_experiment_stockprop_idx2 ON nd_experiment_stockprop (type_id);
  37991. COMMENT ON TABLE nd_experiment_stockprop IS 'Property/value associations for experiment_stocks. This table can store the properties such as treatment';
  37992. COMMENT ON COLUMN nd_experiment_stockprop.nd_experiment_stock_id IS 'The experiment_stock to which the property applies.';
  37993. COMMENT ON COLUMN nd_experiment_stockprop.type_id IS 'The name of the property as a reference to a controlled vocabulary term.';
  37994. COMMENT ON COLUMN nd_experiment_stockprop.value IS 'The value of the property.';
  37995. COMMENT ON COLUMN nd_experiment_stockprop.rank IS 'The rank of the property value, if the property has an array of values.';
  37996. -- ================================================
  37997. -- TABLE: nd_experiment_stock_dbxref
  37998. -- ================================================
  37999. CREATE TABLE nd_experiment_stock_dbxref (
  38000. nd_experiment_stock_dbxref_id bigserial PRIMARY KEY NOT NULL,
  38001. nd_experiment_stock_id bigint NOT NULL references nd_experiment_stock (nd_experiment_stock_id) on delete cascade INITIALLY DEFERRED,
  38002. dbxref_id bigint NOT NULL references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED
  38003. );
  38004. CREATE INDEX nd_experiment_stock_dbxref_idx1 ON nd_experiment_stock_dbxref (nd_experiment_stock_id);
  38005. CREATE INDEX nd_experiment_stock_dbxref_idx2 ON nd_experiment_stock_dbxref (dbxref_id);
  38006. COMMENT ON TABLE nd_experiment_stock_dbxref IS 'Cross-reference experiment_stock to accessions, images, etc';
  38007. -- ================================================
  38008. -- TABLE: nd_experiment_dbxref
  38009. -- ===============================================
  38010. CREATE TABLE nd_experiment_dbxref (
  38011. nd_experiment_dbxref_id bigserial PRIMARY KEY NOT NULL,
  38012. nd_experiment_id bigint NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  38013. dbxref_id bigint NOT NULL references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED
  38014. );
  38015. CREATE INDEX nd_experiment_dbxref_idx1 ON nd_experiment_dbxref (nd_experiment_id);
  38016. CREATE INDEX nd_experiment_dbxref_idx2 ON nd_experiment_dbxref (dbxref_id);
  38017. COMMENT ON TABLE nd_experiment_dbxref IS 'Cross-reference experiment to accessions, images, etc';
  38018. -- ================================================
  38019. -- TABLE: nd_experiment_contact
  38020. -- ================================================
  38021. CREATE TABLE nd_experiment_contact (
  38022. nd_experiment_contact_id bigserial PRIMARY KEY NOT NULL,
  38023. nd_experiment_id bigint NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  38024. contact_id bigint NOT NULL references contact (contact_id) on delete cascade INITIALLY DEFERRED
  38025. );
  38026. CREATE INDEX nd_experiment_contact_idx1 ON nd_experiment_contact (nd_experiment_id);
  38027. CREATE INDEX nd_experiment_contact_idx2 ON nd_experiment_contact (contact_id);
  38028. -- ================================================
  38029. -- TABLE: nd_experiment_analysis
  38030. -- ================================================
  38031. CREATE TABLE nd_experiment_analysis (
  38032. nd_experiment_analysis_id bigserial PRIMARY KEY NOT NULL,
  38033. nd_experiment_id bigint NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  38034. analysis_id bigint NOT NULL references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  38035. type_id bigint NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  38036. );
  38037. CREATE INDEX nd_experiment_analysis_idx1 ON nd_experiment_analysis (nd_experiment_id);
  38038. CREATE INDEX nd_experiment_analysis_idx2 ON nd_experiment_analysis (analysis_id);
  38039. CREATE INDEX nd_experiment_analysis_idx3 ON nd_experiment_analysis (type_id);
  38040. COMMENT ON TABLE nd_experiment_analysis IS 'An analysis that is used in an experiment';