default_schema-1.2.sql 2.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889
  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 serial 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 int null,
  15. superclass_table_id int 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 serial not null,
  26. primary key (db_id),
  27. name varchar(255) not null,
  28. -- contact_id int,
  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 serial not null,
  47. primary key (dbxref_id),
  48. db_id int not null,
  49. foreign key (db_id) references db (db_id) on delete cascade INITIALLY DEFERRED,
  50. accession varchar(255) 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 INT AS
  65. 'DECLARE
  66. v_name ALIAS FOR $1;
  67. v_db_id INTEGER;
  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 INT AS
  84. 'DECLARE
  85. v_dbname ALIAS FOR $1;
  86. v_accession ALIAS FOR $1;
  87. v_db_id INTEGER;
  88. v_dbxref_id INTEGER;
  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 general
  114. -- =================================================================
  115. -- ================================================
  116. -- TABLE: cv
  117. -- ================================================
  118. create table cv (
  119. cv_id serial 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 serial not null,
  139. primary key (cvterm_id),
  140. cv_id int 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 int 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 serial not null,
  191. primary key (cvterm_relationship_id),
  192. type_id int not null,
  193. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  194. subject_id int not null,
  195. foreign key (subject_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  196. object_id int 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 serial not null,
  226. primary key (cvtermpath_id),
  227. type_id int,
  228. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  229. subject_id int not null,
  230. foreign key (subject_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  231. object_id int not null,
  232. foreign key (object_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  233. cv_id int 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 serial not null,
  260. primary key (cvtermsynonym_id),
  261. cvterm_id int 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 int,
  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 serial not null,
  281. primary key (cvterm_dbxref_id),
  282. cvterm_id int not null,
  283. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  284. dbxref_id int 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 serial not null,
  315. primary key (cvtermprop_id),
  316. cvterm_id int not null,
  317. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  318. type_id int 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 serial not null,
  339. primary key (dbxrefprop_id),
  340. dbxref_id int not null,
  341. foreign key (dbxref_id) references dbxref (dbxref_id) INITIALLY DEFERRED,
  342. type_id int 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 serial not null,
  356. primary key (cvprop_id),
  357. cv_id int not null,
  358. foreign key (cv_id) references cv (cv_id) INITIALLY DEFERRED,
  359. type_id int 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 serial not null,
  378. primary key (chadoprop_id),
  379. type_id int 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. CREATE OR REPLACE VIEW cv_root AS
  394. SELECT
  395. cv_id,
  396. cvterm_id AS root_cvterm_id
  397. FROM cvterm
  398. WHERE
  399. cvterm_id NOT IN ( SELECT subject_id FROM cvterm_relationship) AND
  400. is_obsolete=0;
  401. COMMENT ON VIEW cv_root IS 'the roots of a cv are the set of terms
  402. which have no parents (terms that are not the subject of a
  403. relation). Most cvs will have a single root, some may have >1. All
  404. will have at least 1';
  405. CREATE OR REPLACE VIEW cv_leaf AS
  406. SELECT
  407. cv_id,
  408. cvterm_id
  409. FROM cvterm
  410. WHERE
  411. cvterm_id NOT IN ( SELECT object_id FROM cvterm_relationship);
  412. COMMENT ON VIEW cv_leaf IS 'the leaves of a cv are the set of terms
  413. which have no children (terms that are not the object of a
  414. relation). All cvs will have at least 1 leaf';
  415. CREATE OR REPLACE VIEW common_ancestor_cvterm AS
  416. SELECT
  417. p1.subject_id AS cvterm1_id,
  418. p2.subject_id AS cvterm2_id,
  419. p1.object_id AS ancestor_cvterm_id,
  420. p1.pathdistance AS pathdistance1,
  421. p2.pathdistance AS pathdistance2,
  422. p1.pathdistance + p2.pathdistance
  423. AS total_pathdistance
  424. FROM
  425. cvtermpath AS p1,
  426. cvtermpath AS p2
  427. WHERE
  428. p1.object_id = p2.object_id;
  429. COMMENT ON VIEW common_ancestor_cvterm IS 'The common ancestor of any
  430. two terms is the intersection of both terms ancestors. Two terms can
  431. have multiple common ancestors. Use total_pathdistance to get the
  432. least common ancestor';
  433. CREATE OR REPLACE VIEW common_descendant_cvterm AS
  434. SELECT
  435. p1.object_id AS cvterm1_id,
  436. p2.object_id AS cvterm2_id,
  437. p1.subject_id AS ancestor_cvterm_id,
  438. p1.pathdistance AS pathdistance1,
  439. p2.pathdistance AS pathdistance2,
  440. p1.pathdistance + p2.pathdistance
  441. AS total_pathdistance
  442. FROM
  443. cvtermpath AS p1,
  444. cvtermpath AS p2
  445. WHERE
  446. p1.subject_id = p2.subject_id;
  447. COMMENT ON VIEW common_descendant_cvterm IS 'The common descendant of
  448. any two terms is the intersection of both terms descendants. Two terms
  449. can have multiple common descendants. Use total_pathdistance to get
  450. the least common ancestor';
  451. CREATE OR REPLACE VIEW stats_paths_to_root AS
  452. SELECT
  453. subject_id AS cvterm_id,
  454. count(DISTINCT cvtermpath_id) AS total_paths,
  455. avg(pathdistance) AS avg_distance,
  456. min(pathdistance) AS min_distance,
  457. max(pathdistance) AS max_distance
  458. FROM cvtermpath INNER JOIN cv_root ON (object_id=root_cvterm_id)
  459. GROUP BY cvterm_id;
  460. COMMENT ON VIEW stats_paths_to_root IS 'per-cvterm statistics on its
  461. placement in the DAG relative to the root. There may be multiple paths
  462. from any term to the root. This gives the total number of paths, and
  463. the average minimum and maximum distances. Here distance is defined by
  464. cvtermpath.pathdistance';
  465. CREATE VIEW cv_cvterm_count AS
  466. 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;
  467. COMMENT ON VIEW cv_cvterm_count IS 'per-cv terms counts (excludes obsoletes)';
  468. CREATE VIEW cv_cvterm_count_with_obs AS
  469. SELECT cv.name,count(*) AS num_terms_incl_obs FROM cv INNER JOIN cvterm USING (cv_id) GROUP BY cv.name;
  470. COMMENT ON VIEW cv_cvterm_count_with_obs IS 'per-cv terms counts (includes obsoletes)';
  471. CREATE VIEW cv_link_count AS
  472. SELECT cv.name AS cv_name,
  473. relation.name AS relation_name,
  474. relation_cv.name AS relation_cv_name,
  475. count(*) AS num_links
  476. FROM cv
  477. INNER JOIN cvterm ON (cvterm.cv_id=cv.cv_id)
  478. INNER JOIN cvterm_relationship ON (cvterm.cvterm_id=subject_id)
  479. INNER JOIN cvterm AS relation ON (type_id=relation.cvterm_id)
  480. INNER JOIN cv AS relation_cv ON (relation.cv_id=relation_cv.cv_id)
  481. GROUP BY cv.name,relation.name,relation_cv.name;
  482. COMMENT ON VIEW cv_link_count IS 'per-cv summary of number of
  483. links (cvterm_relationships) broken down by
  484. relationship_type. num_links is the total # of links of the specified
  485. type in which the subject_id of the link is in the named cv';
  486. CREATE VIEW cv_path_count AS
  487. SELECT cv.name AS cv_name,
  488. relation.name AS relation_name,
  489. relation_cv.name AS relation_cv_name,
  490. count(*) AS num_paths
  491. FROM cv
  492. INNER JOIN cvterm ON (cvterm.cv_id=cv.cv_id)
  493. INNER JOIN cvtermpath ON (cvterm.cvterm_id=subject_id)
  494. INNER JOIN cvterm AS relation ON (type_id=relation.cvterm_id)
  495. INNER JOIN cv AS relation_cv ON (relation.cv_id=relation_cv.cv_id)
  496. GROUP BY cv.name,relation.name,relation_cv.name;
  497. COMMENT ON VIEW cv_path_count IS 'per-cv summary of number of
  498. paths (cvtermpaths) broken down by relationship_type. num_paths is the
  499. total # of paths of the specified type in which the subject_id of the
  500. path is in the named cv. See also: cv_distinct_relations';
  501. CREATE OR REPLACE FUNCTION _get_all_subject_ids(integer) RETURNS SETOF cvtermpath AS
  502. '
  503. DECLARE
  504. root alias for $1;
  505. cterm cvtermpath%ROWTYPE;
  506. cterm2 cvtermpath%ROWTYPE;
  507. BEGIN
  508. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = root LOOP
  509. RETURN NEXT cterm;
  510. FOR cterm2 IN SELECT * FROM _get_all_subject_ids(cterm.subject_id) LOOP
  511. RETURN NEXT cterm2;
  512. END LOOP;
  513. END LOOP;
  514. RETURN;
  515. END;
  516. '
  517. LANGUAGE 'plpgsql';
  518. ---arg: parent term id
  519. ---return: all children term id and their parent term id with relationship type id
  520. CREATE OR REPLACE FUNCTION get_all_subject_ids(integer) RETURNS SETOF cvtermpath AS
  521. '
  522. DECLARE
  523. root alias for $1;
  524. cterm cvtermpath%ROWTYPE;
  525. exist_c int;
  526. BEGIN
  527. SELECT INTO exist_c count(*) FROM cvtermpath WHERE object_id = root and pathdistance <= 0;
  528. IF (exist_c > 0) THEN
  529. FOR cterm IN SELECT * FROM cvtermpath WHERE object_id = root and pathdistance > 0 LOOP
  530. RETURN NEXT cterm;
  531. END LOOP;
  532. ELSE
  533. FOR cterm IN SELECT * FROM _get_all_subject_ids(root) LOOP
  534. RETURN NEXT cterm;
  535. END LOOP;
  536. END IF;
  537. RETURN;
  538. END;
  539. '
  540. LANGUAGE 'plpgsql';
  541. CREATE OR REPLACE FUNCTION get_graph_below(integer) RETURNS SETOF cvtermpath AS
  542. '
  543. DECLARE
  544. root alias for $1;
  545. cterm cvtermpath%ROWTYPE;
  546. cterm2 cvtermpath%ROWTYPE;
  547. BEGIN
  548. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = root LOOP
  549. RETURN NEXT cterm;
  550. FOR cterm2 IN SELECT * FROM get_all_subject_ids(cterm.subject_id) LOOP
  551. RETURN NEXT cterm2;
  552. END LOOP;
  553. END LOOP;
  554. RETURN;
  555. END;
  556. '
  557. LANGUAGE 'plpgsql';
  558. CREATE OR REPLACE FUNCTION get_graph_above(integer) RETURNS SETOF cvtermpath AS
  559. '
  560. DECLARE
  561. leaf alias for $1;
  562. cterm cvtermpath%ROWTYPE;
  563. cterm2 cvtermpath%ROWTYPE;
  564. BEGIN
  565. FOR cterm IN SELECT * FROM cvterm_relationship WHERE subject_id = leaf LOOP
  566. RETURN NEXT cterm;
  567. FOR cterm2 IN SELECT * FROM get_all_object_ids(cterm.object_id) LOOP
  568. RETURN NEXT cterm2;
  569. END LOOP;
  570. END LOOP;
  571. RETURN;
  572. END;
  573. '
  574. LANGUAGE 'plpgsql';
  575. CREATE OR REPLACE FUNCTION _get_all_object_ids(integer) RETURNS SETOF cvtermpath AS
  576. '
  577. DECLARE
  578. leaf alias for $1;
  579. cterm cvtermpath%ROWTYPE;
  580. cterm2 cvtermpath%ROWTYPE;
  581. BEGIN
  582. FOR cterm IN SELECT * FROM cvterm_relationship WHERE subject_id = leaf LOOP
  583. RETURN NEXT cterm;
  584. FOR cterm2 IN SELECT * FROM _get_all_object_ids(cterm.object_id) LOOP
  585. RETURN NEXT cterm2;
  586. END LOOP;
  587. END LOOP;
  588. RETURN;
  589. END;
  590. '
  591. LANGUAGE 'plpgsql';
  592. ---arg: child term id
  593. ---return: all parent term id and their childrent term id with relationship type id
  594. CREATE OR REPLACE FUNCTION get_all_object_ids(integer) RETURNS SETOF cvtermpath AS
  595. '
  596. DECLARE
  597. leaf alias for $1;
  598. cterm cvtermpath%ROWTYPE;
  599. exist_c int;
  600. BEGIN
  601. SELECT INTO exist_c count(*) FROM cvtermpath WHERE object_id = leaf and pathdistance <= 0;
  602. IF (exist_c > 0) THEN
  603. FOR cterm IN SELECT * FROM cvtermpath WHERE subject_id = leaf AND pathdistance > 0 LOOP
  604. RETURN NEXT cterm;
  605. END LOOP;
  606. ELSE
  607. FOR cterm IN SELECT * FROM _get_all_object_ids(leaf) LOOP
  608. RETURN NEXT cterm;
  609. END LOOP;
  610. END IF;
  611. RETURN;
  612. END;
  613. '
  614. LANGUAGE 'plpgsql';
  615. ---arg: sql statement which must be in the form of select cvterm_id from ...
  616. ---return: a set of cvterm ids that includes what is in sql statement and their children (subject ids)
  617. CREATE OR REPLACE FUNCTION get_it_sub_cvterm_ids(text) RETURNS SETOF cvterm AS
  618. '
  619. DECLARE
  620. query alias for $1;
  621. cterm cvterm%ROWTYPE;
  622. cterm2 cvterm%ROWTYPE;
  623. BEGIN
  624. FOR cterm IN EXECUTE query LOOP
  625. RETURN NEXT cterm;
  626. FOR cterm2 IN SELECT subject_id as cvterm_id FROM get_all_subject_ids(cterm.cvterm_id) LOOP
  627. RETURN NEXT cterm2;
  628. END LOOP;
  629. END LOOP;
  630. RETURN;
  631. END;
  632. '
  633. LANGUAGE 'plpgsql';
  634. --- example: select * from fill_cvtermpath(7); where 7 is cv_id for an ontology
  635. --- fill path from the node to its children and their children
  636. CREATE OR REPLACE FUNCTION _fill_cvtermpath4node(INTEGER, INTEGER, INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS
  637. '
  638. DECLARE
  639. origin alias for $1;
  640. child_id alias for $2;
  641. cvid alias for $3;
  642. typeid alias for $4;
  643. depth alias for $5;
  644. cterm cvterm_relationship%ROWTYPE;
  645. exist_c int;
  646. BEGIN
  647. --- RAISE NOTICE ''depth=% root=%'', depth,child_id;
  648. --- not check type_id as it may be null and not very meaningful in cvtermpath when pathdistance > 1
  649. SELECT INTO exist_c count(*) FROM cvtermpath WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id AND pathdistance = depth;
  650. IF (exist_c = 0) THEN
  651. INSERT INTO cvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES(origin, child_id, cvid, typeid, depth);
  652. END IF;
  653. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = child_id LOOP
  654. PERFORM _fill_cvtermpath4node(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  655. END LOOP;
  656. RETURN 1;
  657. END;
  658. '
  659. LANGUAGE 'plpgsql';
  660. CREATE OR REPLACE FUNCTION _fill_cvtermpath4root(INTEGER, INTEGER) RETURNS INTEGER AS
  661. '
  662. DECLARE
  663. rootid alias for $1;
  664. cvid alias for $2;
  665. ttype int;
  666. cterm cvterm_relationship%ROWTYPE;
  667. child cvterm_relationship%ROWTYPE;
  668. BEGIN
  669. SELECT INTO ttype cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  670. PERFORM _fill_cvtermpath4node(rootid, rootid, cvid, ttype, 0);
  671. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = rootid LOOP
  672. PERFORM _fill_cvtermpath4root(cterm.subject_id, cvid);
  673. -- RAISE NOTICE ''DONE for term, %'', cterm.subject_id;
  674. END LOOP;
  675. RETURN 1;
  676. END;
  677. '
  678. LANGUAGE 'plpgsql';
  679. CREATE OR REPLACE FUNCTION fill_cvtermpath(INTEGER) RETURNS INTEGER AS
  680. '
  681. DECLARE
  682. cvid alias for $1;
  683. root cvterm%ROWTYPE;
  684. BEGIN
  685. DELETE FROM cvtermpath WHERE cv_id = cvid;
  686. 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
  687. PERFORM _fill_cvtermpath4root(root.cvterm_id, root.cv_id);
  688. END LOOP;
  689. RETURN 1;
  690. END;
  691. '
  692. LANGUAGE 'plpgsql';
  693. CREATE OR REPLACE FUNCTION fill_cvtermpath(cv.name%TYPE) RETURNS INTEGER AS
  694. '
  695. DECLARE
  696. cvname alias for $1;
  697. cv_id int;
  698. rtn int;
  699. BEGIN
  700. SELECT INTO cv_id cv.cv_id from cv WHERE cv.name = cvname;
  701. SELECT INTO rtn fill_cvtermpath(cv_id);
  702. RETURN rtn;
  703. END;
  704. '
  705. LANGUAGE 'plpgsql';
  706. CREATE OR REPLACE FUNCTION _fill_cvtermpath4node2detect_cycle(INTEGER, INTEGER, INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS
  707. '
  708. DECLARE
  709. origin alias for $1;
  710. child_id alias for $2;
  711. cvid alias for $3;
  712. typeid alias for $4;
  713. depth alias for $5;
  714. cterm cvterm_relationship%ROWTYPE;
  715. exist_c int;
  716. ccount int;
  717. ecount int;
  718. rtn int;
  719. BEGIN
  720. 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'';
  721. GET DIAGNOSTICS ccount = ROW_COUNT;
  722. IF (ccount > 0) THEN
  723. --RAISE EXCEPTION ''FOUND CYCLE: node % on cycle path'',origin;
  724. RETURN origin;
  725. END IF;
  726. EXECUTE ''SELECT * FROM tmpcvtermpath WHERE cv_id = '' || cvid || '' AND object_id = '' || origin || '' AND subject_id = '' || child_id || '' AND '' || origin || ''<>'' || child_id;
  727. GET DIAGNOSTICS ecount = ROW_COUNT;
  728. IF (ecount > 0) THEN
  729. --RAISE NOTICE ''FOUND TWICE (node), will check root obj % subj %'',origin, child_id;
  730. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(child_id, cvid);
  731. IF (rtn > 0) THEN
  732. RETURN rtn;
  733. END IF;
  734. END IF;
  735. EXECUTE ''SELECT * FROM tmpcvtermpath WHERE cv_id = '' || cvid || '' AND object_id = '' || origin || '' AND subject_id = '' || child_id || '' AND pathdistance = '' || depth;
  736. GET DIAGNOSTICS exist_c = ROW_COUNT;
  737. IF (exist_c = 0) THEN
  738. EXECUTE ''INSERT INTO tmpcvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES('' || origin || '', '' || child_id || '', '' || cvid || '', '' || typeid || '', '' || depth || '')'';
  739. END IF;
  740. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = child_id LOOP
  741. --RAISE NOTICE ''DOING for node, % %'', origin, cterm.subject_id;
  742. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  743. IF (rtn > 0) THEN
  744. RETURN rtn;
  745. END IF;
  746. END LOOP;
  747. RETURN 0;
  748. END;
  749. '
  750. LANGUAGE 'plpgsql';
  751. CREATE OR REPLACE FUNCTION _fill_cvtermpath4root2detect_cycle(INTEGER, INTEGER) RETURNS INTEGER AS
  752. '
  753. DECLARE
  754. rootid alias for $1;
  755. cvid alias for $2;
  756. ttype int;
  757. ccount int;
  758. cterm cvterm_relationship%ROWTYPE;
  759. child cvterm_relationship%ROWTYPE;
  760. rtn int;
  761. BEGIN
  762. SELECT INTO ttype cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  763. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(rootid, rootid, cvid, ttype, 0);
  764. IF (rtn > 0) THEN
  765. RETURN rtn;
  766. END IF;
  767. FOR cterm IN SELECT * FROM cvterm_relationship WHERE object_id = rootid LOOP
  768. 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;
  769. GET DIAGNOSTICS ccount = ROW_COUNT;
  770. IF (ccount > 0) THEN
  771. --RAISE NOTICE ''FOUND TWICE (root), will check root obj % subj %'',rootid,cterm.subject_id;
  772. SELECT INTO rtn _fill_cvtermpath4node2detect_cycle(rootid, cterm.subject_id, cvid, ttype, 0);
  773. IF (rtn > 0) THEN
  774. RETURN rtn;
  775. END IF;
  776. ELSE
  777. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(cterm.subject_id, cvid);
  778. IF (rtn > 0) THEN
  779. RETURN rtn;
  780. END IF;
  781. END IF;
  782. END LOOP;
  783. RETURN 0;
  784. END;
  785. '
  786. LANGUAGE 'plpgsql';
  787. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(INTEGER, INTEGER) RETURNS INTEGER AS
  788. '
  789. DECLARE
  790. cvid alias for $1;
  791. rootid alias for $2;
  792. rtn int;
  793. BEGIN
  794. CREATE TEMP TABLE tmpcvtermpath(object_id int, subject_id int, cv_id int, type_id int, pathdistance int);
  795. CREATE INDEX tmp_cvtpath1 ON tmpcvtermpath(object_id, subject_id);
  796. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(rootid, cvid);
  797. IF (rtn > 0) THEN
  798. DROP TABLE tmpcvtermpath;
  799. RETURN rtn;
  800. END IF;
  801. DROP TABLE tmpcvtermpath;
  802. RETURN 0;
  803. END;
  804. '
  805. LANGUAGE 'plpgsql';
  806. CREATE OR REPLACE FUNCTION get_cycle_cvterm_ids(INTEGER) RETURNS SETOF INTEGER AS
  807. '
  808. DECLARE
  809. cvid alias for $1;
  810. root cvterm%ROWTYPE;
  811. rtn int;
  812. BEGIN
  813. FOR root IN SELECT DISTINCT t.* from cvterm t WHERE cv_id = cvid LOOP
  814. SELECT INTO rtn get_cycle_cvterm_id(cvid,root.cvterm_id);
  815. IF (rtn > 0) THEN
  816. RETURN NEXT rtn;
  817. END IF;
  818. END LOOP;
  819. RETURN;
  820. END;
  821. '
  822. LANGUAGE 'plpgsql';
  823. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(INTEGER) RETURNS INTEGER AS
  824. '
  825. DECLARE
  826. cvid alias for $1;
  827. root cvterm%ROWTYPE;
  828. rtn int;
  829. BEGIN
  830. CREATE TEMP TABLE tmpcvtermpath(object_id int, subject_id int, cv_id int, type_id int, pathdistance int);
  831. CREATE INDEX tmp_cvtpath1 ON tmpcvtermpath(object_id, subject_id);
  832. 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
  833. SELECT INTO rtn _fill_cvtermpath4root2detect_cycle(root.cvterm_id, root.cv_id);
  834. IF (rtn > 0) THEN
  835. DROP TABLE tmpcvtermpath;
  836. RETURN rtn;
  837. END IF;
  838. END LOOP;
  839. DROP TABLE tmpcvtermpath;
  840. RETURN 0;
  841. END;
  842. '
  843. LANGUAGE 'plpgsql';
  844. CREATE OR REPLACE FUNCTION get_cycle_cvterm_id(cv.name%TYPE) RETURNS INTEGER AS
  845. '
  846. DECLARE
  847. cvname alias for $1;
  848. cv_id int;
  849. rtn int;
  850. BEGIN
  851. SELECT INTO cv_id cv.cv_id from cv WHERE cv.name = cvname;
  852. SELECT INTO rtn get_cycle_cvterm_id(cv_id);
  853. RETURN rtn;
  854. END;
  855. '
  856. LANGUAGE 'plpgsql';
  857. -- $Id: pub.sql,v 1.27 2007-02-19 20:50:44 briano Exp $
  858. -- ==========================================
  859. -- Chado pub module
  860. --
  861. -- =================================================================
  862. -- Dependencies:
  863. --
  864. -- :import cvterm from cv
  865. -- :import dbxref from general
  866. -- =================================================================
  867. -- ================================================
  868. -- TABLE: pub
  869. -- ================================================
  870. create table pub (
  871. pub_id serial not null,
  872. primary key (pub_id),
  873. title text,
  874. volumetitle text,
  875. volume varchar(255),
  876. series_name varchar(255),
  877. issue varchar(255),
  878. pyear varchar(255),
  879. pages varchar(255),
  880. miniref varchar(255),
  881. uniquename text not null,
  882. type_id int not null,
  883. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  884. is_obsolete boolean default 'false',
  885. publisher varchar(255),
  886. pubplace varchar(255),
  887. constraint pub_c1 unique (uniquename)
  888. );
  889. CREATE INDEX pub_idx1 ON pub (type_id);
  890. COMMENT ON TABLE pub IS 'A documented provenance artefact - publications,
  891. documents, personal communication.';
  892. COMMENT ON COLUMN pub.title IS 'Descriptive general heading.';
  893. COMMENT ON COLUMN pub.volumetitle IS 'Title of part if one of a series.';
  894. COMMENT ON COLUMN pub.series_name IS 'Full name of (journal) series.';
  895. COMMENT ON COLUMN pub.pages IS 'Page number range[s], e.g. 457--459, viii + 664pp, lv--lvii.';
  896. COMMENT ON COLUMN pub.type_id IS 'The type of the publication (book, journal, poem, graffiti, etc). Uses pub cv.';
  897. -- ================================================
  898. -- TABLE: pub_relationship
  899. -- ================================================
  900. create table pub_relationship (
  901. pub_relationship_id serial not null,
  902. primary key (pub_relationship_id),
  903. subject_id int not null,
  904. foreign key (subject_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  905. object_id int not null,
  906. foreign key (object_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  907. type_id int not null,
  908. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  909. constraint pub_relationship_c1 unique (subject_id,object_id,type_id)
  910. );
  911. create index pub_relationship_idx1 on pub_relationship (subject_id);
  912. create index pub_relationship_idx2 on pub_relationship (object_id);
  913. create index pub_relationship_idx3 on pub_relationship (type_id);
  914. COMMENT ON TABLE pub_relationship IS 'Handle relationships between
  915. publications, e.g. when one publication makes others obsolete, when one
  916. publication contains errata with respect to other publication(s), or
  917. when one publication also appears in another pub.';
  918. -- ================================================
  919. -- TABLE: pub_dbxref
  920. -- ================================================
  921. create table pub_dbxref (
  922. pub_dbxref_id serial not null,
  923. primary key (pub_dbxref_id),
  924. pub_id int not null,
  925. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  926. dbxref_id int not null,
  927. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  928. is_current boolean not null default 'true',
  929. constraint pub_dbxref_c1 unique (pub_id,dbxref_id)
  930. );
  931. create index pub_dbxref_idx1 on pub_dbxref (pub_id);
  932. create index pub_dbxref_idx2 on pub_dbxref (dbxref_id);
  933. COMMENT ON TABLE pub_dbxref IS 'Handle links to repositories,
  934. e.g. Pubmed, Biosis, zoorec, OCLC, Medline, ISSN, coden...';
  935. -- ================================================
  936. -- TABLE: pubauthor
  937. -- ================================================
  938. create table pubauthor (
  939. pubauthor_id serial not null,
  940. primary key (pubauthor_id),
  941. pub_id int not null,
  942. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  943. rank int not null,
  944. editor boolean default 'false',
  945. surname varchar(100) not null,
  946. givennames varchar(100),
  947. suffix varchar(100),
  948. constraint pubauthor_c1 unique (pub_id, rank)
  949. );
  950. create index pubauthor_idx2 on pubauthor (pub_id);
  951. 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.';
  952. COMMENT ON COLUMN pubauthor.givennames IS 'First name, initials';
  953. COMMENT ON COLUMN pubauthor.suffix IS 'Jr., Sr., etc';
  954. COMMENT ON COLUMN pubauthor.rank IS 'Order of author in author list for this pub - order is important.';
  955. 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.';
  956. -- ================================================
  957. -- TABLE: pubprop
  958. -- ================================================
  959. create table pubprop (
  960. pubprop_id serial not null,
  961. primary key (pubprop_id),
  962. pub_id int not null,
  963. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  964. type_id int not null,
  965. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  966. value text not null,
  967. rank integer,
  968. constraint pubprop_c1 unique (pub_id,type_id,rank)
  969. );
  970. create index pubprop_idx1 on pubprop (pub_id);
  971. create index pubprop_idx2 on pubprop (type_id);
  972. COMMENT ON TABLE pubprop IS 'Property-value pairs for a pub. Follows standard chado pattern.';
  973. -- $Id: organism.sql,v 1.19 2007-04-01 18:45:41 briano Exp $
  974. -- ==========================================
  975. -- Chado organism module
  976. --
  977. -- ============
  978. -- DEPENDENCIES
  979. -- ============
  980. -- :import cvterm from cv
  981. -- :import dbxref from general
  982. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  983. -- ================================================
  984. -- TABLE: organism
  985. -- ================================================
  986. create table organism (
  987. organism_id serial not null,
  988. primary key (organism_id),
  989. abbreviation varchar(255) null,
  990. genus varchar(255) not null,
  991. species varchar(255) not null,
  992. common_name varchar(255) null,
  993. comment text null,
  994. constraint organism_c1 unique (genus,species)
  995. );
  996. COMMENT ON TABLE organism IS 'The organismal taxonomic
  997. classification. Note that phylogenies are represented using the
  998. phylogeny module, and taxonomies can be represented using the cvterm
  999. module or the phylogeny module.';
  1000. COMMENT ON COLUMN organism.species IS 'A type of organism is always
  1001. uniquely identified by genus and species. When mapping from the NCBI
  1002. taxonomy names.dmp file, this column must be used where it
  1003. is present, as the common_name column is not always unique (e.g. environmental
  1004. samples). If a particular strain or subspecies is to be represented,
  1005. this is appended onto the species name. Follows standard NCBI taxonomy
  1006. pattern.';
  1007. -- ================================================
  1008. -- TABLE: organism_dbxref
  1009. -- ================================================
  1010. create table organism_dbxref (
  1011. organism_dbxref_id serial not null,
  1012. primary key (organism_dbxref_id),
  1013. organism_id int not null,
  1014. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  1015. dbxref_id int not null,
  1016. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1017. constraint organism_dbxref_c1 unique (organism_id,dbxref_id)
  1018. );
  1019. create index organism_dbxref_idx1 on organism_dbxref (organism_id);
  1020. create index organism_dbxref_idx2 on organism_dbxref (dbxref_id);
  1021. -- ================================================
  1022. -- TABLE: organismprop
  1023. -- ================================================
  1024. create table organismprop (
  1025. organismprop_id serial not null,
  1026. primary key (organismprop_id),
  1027. organism_id int not null,
  1028. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  1029. type_id int not null,
  1030. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1031. value text null,
  1032. rank int not null default 0,
  1033. constraint organismprop_c1 unique (organism_id,type_id,rank)
  1034. );
  1035. create index organismprop_idx1 on organismprop (organism_id);
  1036. create index organismprop_idx2 on organismprop (type_id);
  1037. COMMENT ON TABLE organismprop IS 'Tag-value properties - follows standard chado model.';
  1038. CREATE OR REPLACE FUNCTION get_organism_id(VARCHAR,VARCHAR) RETURNS INT
  1039. AS '
  1040. SELECT organism_id
  1041. FROM organism
  1042. WHERE genus=$1
  1043. AND species=$2
  1044. ' LANGUAGE 'sql';
  1045. CREATE OR REPLACE FUNCTION get_organism_id(VARCHAR) RETURNS INT
  1046. AS '
  1047. SELECT organism_id
  1048. FROM organism
  1049. WHERE genus=substring($1,1,position('' '' IN $1)-1)
  1050. AND species=substring($1,position('' '' IN $1)+1)
  1051. ' LANGUAGE 'sql';
  1052. CREATE OR REPLACE FUNCTION get_organism_id_abbrev(VARCHAR) RETURNS INT
  1053. AS '
  1054. SELECT organism_id
  1055. FROM organism
  1056. WHERE substr(genus,1,1)=substring($1,1,1)
  1057. AND species=substring($1,position('' '' IN $1)+1)
  1058. ' LANGUAGE 'sql';
  1059. CREATE OR REPLACE FUNCTION store_organism (VARCHAR,VARCHAR,VARCHAR)
  1060. RETURNS INT AS
  1061. 'DECLARE
  1062. v_genus ALIAS FOR $1;
  1063. v_species ALIAS FOR $2;
  1064. v_common_name ALIAS FOR $3;
  1065. v_organism_id INTEGER;
  1066. BEGIN
  1067. SELECT INTO v_organism_id organism_id
  1068. FROM organism
  1069. WHERE genus=v_genus AND
  1070. species=v_species;
  1071. IF NOT FOUND THEN
  1072. INSERT INTO organism
  1073. (genus,species,common_name)
  1074. VALUES
  1075. (v_genus,v_species,v_common_name);
  1076. RETURN currval(''organism_organism_id_seq'');
  1077. ELSE
  1078. UPDATE organism
  1079. SET common_name=v_common_name
  1080. WHERE organism_id = v_organism_id;
  1081. END IF;
  1082. RETURN v_organism_id;
  1083. END;
  1084. ' LANGUAGE 'plpgsql';
  1085. -- $Id: sequence.sql,v 1.69 2009-05-14 02:44:23 scottcain Exp $
  1086. -- ==========================================
  1087. -- Chado sequence module
  1088. --
  1089. -- =================================================================
  1090. -- Dependencies:
  1091. --
  1092. -- :import cvterm from cv
  1093. -- :import pub from pub
  1094. -- :import organism from organism
  1095. -- :import dbxref from general
  1096. -- =================================================================
  1097. -- ================================================
  1098. -- TABLE: feature
  1099. -- ================================================
  1100. create table feature (
  1101. feature_id serial not null,
  1102. primary key (feature_id),
  1103. dbxref_id int,
  1104. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  1105. organism_id int not null,
  1106. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  1107. name varchar(255),
  1108. uniquename text not null,
  1109. residues text,
  1110. seqlen int,
  1111. md5checksum char(32),
  1112. type_id int not null,
  1113. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1114. is_analysis boolean not null default 'false',
  1115. is_obsolete boolean not null default 'false',
  1116. timeaccessioned timestamp not null default current_timestamp,
  1117. timelastmodified timestamp not null default current_timestamp,
  1118. constraint feature_c1 unique (organism_id,uniquename,type_id)
  1119. );
  1120. create sequence feature_uniquename_seq;
  1121. create index feature_name_ind1 on feature(name);
  1122. create index feature_idx1 on feature (dbxref_id);
  1123. create index feature_idx2 on feature (organism_id);
  1124. create index feature_idx3 on feature (type_id);
  1125. create index feature_idx4 on feature (uniquename);
  1126. create index feature_idx5 on feature (lower(name));
  1127. ALTER TABLE feature ALTER residues SET STORAGE EXTERNAL;
  1128. COMMENT ON TABLE feature IS 'A feature is a biological sequence or a
  1129. section of a biological sequence, or a collection of such
  1130. sections. Examples include genes, exons, transcripts, regulatory
  1131. regions, polypeptides, protein domains, chromosome sequences, sequence
  1132. variations, cross-genome match regions such as hits and HSPs and so
  1133. on; see the Sequence Ontology for more. The combination of
  1134. organism_id, uniquename and type_id should be unique.';
  1135. COMMENT ON COLUMN feature.dbxref_id IS 'An optional primary public stable
  1136. identifier for this feature. Secondary identifiers and external
  1137. dbxrefs go in the table feature_dbxref.';
  1138. COMMENT ON COLUMN feature.organism_id IS 'The organism to which this feature
  1139. belongs. This column is mandatory.';
  1140. COMMENT ON COLUMN feature.name IS 'The optional human-readable common name for
  1141. a feature, for display purposes.';
  1142. COMMENT ON COLUMN feature.uniquename IS 'The unique name for a feature; may
  1143. not be necessarily be particularly human-readable, although this is
  1144. preferred. This name must be unique for this type of feature within
  1145. this organism.';
  1146. COMMENT ON COLUMN feature.residues IS 'A sequence of alphabetic characters
  1147. representing biological residues (nucleic acids, amino acids). This
  1148. column does not need to be manifested for all features; it is optional
  1149. for features such as exons where the residues can be derived from the
  1150. featureloc. It is recommended that the value for this column be
  1151. manifested for features which may may non-contiguous sublocations (e.g.
  1152. transcripts), since derivation at query time is non-trivial. For
  1153. expressed sequence, the DNA sequence should be used rather than the
  1154. RNA sequence. The default storage method for the residues column is
  1155. EXTERNAL, which will store it uncompressed to make substring operations
  1156. faster.';
  1157. COMMENT ON COLUMN feature.seqlen IS 'The length of the residue feature. See
  1158. column:residues. This column is partially redundant with the residues
  1159. column, and also with featureloc. This column is required because the
  1160. location may be unknown and the residue sequence may not be
  1161. manifested, yet it may be desirable to store and query the length of
  1162. the feature. The seqlen should always be manifested where the length
  1163. of the sequence is known.';
  1164. COMMENT ON COLUMN feature.md5checksum IS 'The 32-character checksum of the sequence,
  1165. calculated using the MD5 algorithm. This is practically guaranteed to
  1166. be unique for any feature. This column thus acts as a unique
  1167. identifier on the mathematical sequence.';
  1168. COMMENT ON COLUMN feature.type_id IS 'A required reference to a table:cvterm
  1169. giving the feature type. This will typically be a Sequence Ontology
  1170. identifier. This column is thus used to subclass the feature table.';
  1171. COMMENT ON COLUMN feature.is_analysis IS 'Boolean indicating whether this
  1172. feature is annotated or the result of an automated analysis. Analysis
  1173. results also use the companalysis module. Note that the dividing line
  1174. between analysis and annotation may be fuzzy, this should be determined on
  1175. a per-project basis in a consistent manner. One requirement is that
  1176. there should only be one non-analysis version of each wild-type gene
  1177. feature in a genome, whereas the same gene feature can be predicted
  1178. multiple times in different analyses.';
  1179. COMMENT ON COLUMN feature.is_obsolete IS 'Boolean indicating whether this
  1180. feature has been obsoleted. Some chado instances may choose to simply
  1181. remove the feature altogether, others may choose to keep an obsolete
  1182. row in the table.';
  1183. COMMENT ON COLUMN feature.timeaccessioned IS 'For handling object
  1184. accession or modification timestamps (as opposed to database auditing data,
  1185. handled elsewhere). The expectation is that these fields would be
  1186. available to software interacting with chado.';
  1187. COMMENT ON COLUMN feature.timelastmodified IS 'For handling object
  1188. accession or modification timestamps (as opposed to database auditing data,
  1189. handled elsewhere). The expectation is that these fields would be
  1190. available to software interacting with chado.';
  1191. --- COMMENT ON INDEX feature_c1 IS 'Any feature can be globally identified
  1192. --- by the combination of organism, uniquename and feature type';
  1193. -- ================================================
  1194. -- TABLE: featureloc
  1195. -- ================================================
  1196. create table featureloc (
  1197. featureloc_id serial not null,
  1198. primary key (featureloc_id),
  1199. feature_id int not null,
  1200. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1201. srcfeature_id int,
  1202. foreign key (srcfeature_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  1203. fmin int,
  1204. is_fmin_partial boolean not null default 'false',
  1205. fmax int,
  1206. is_fmax_partial boolean not null default 'false',
  1207. strand smallint,
  1208. phase int,
  1209. residue_info text,
  1210. locgroup int not null default 0,
  1211. rank int not null default 0,
  1212. constraint featureloc_c1 unique (feature_id,locgroup,rank),
  1213. constraint featureloc_c2 check (fmin <= fmax)
  1214. );
  1215. create index featureloc_idx1 on featureloc (feature_id);
  1216. create index featureloc_idx2 on featureloc (srcfeature_id);
  1217. create index featureloc_idx3 on featureloc (srcfeature_id,fmin,fmax);
  1218. COMMENT ON TABLE featureloc IS 'The location of a feature relative to
  1219. another feature. Important: interbase coordinates are used. This is
  1220. vital as it allows us to represent zero-length features e.g. splice
  1221. sites, insertion points without an awkward fuzzy system. Features
  1222. typically have exactly ONE location, but this need not be the
  1223. case. Some features may not be localized (e.g. a gene that has been
  1224. characterized genetically but no sequence or molecular information is
  1225. available). Note on multiple locations: Each feature can have 0 or
  1226. more locations. Multiple locations do NOT indicate non-contiguous
  1227. locations (if a feature such as a transcript has a non-contiguous
  1228. location, then the subfeatures such as exons should always be
  1229. manifested). Instead, multiple featurelocs for a feature designate
  1230. alternate locations or grouped locations; for instance, a feature
  1231. designating a blast hit or hsp will have two locations, one on the
  1232. query feature, one on the subject feature. Features representing
  1233. sequence variation could have alternate locations instantiated on a
  1234. feature on the mutant strain. The column:rank is used to
  1235. differentiate these different locations. Reflexive locations should
  1236. never be stored - this is for -proper- (i.e. non-self) locations only; nothing should be located relative to itself.';
  1237. COMMENT ON COLUMN featureloc.feature_id IS 'The feature that is being located. Any feature can have zero or more featurelocs.';
  1238. 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.';
  1239. 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.';
  1240. 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).';
  1241. COMMENT ON COLUMN featureloc.strand IS 'The orientation/directionality of the
  1242. location. Should be 0, -1 or +1.';
  1243. COMMENT ON COLUMN featureloc.rank IS 'Used when a feature has >1
  1244. location, otherwise the default rank 0 is used. Some features (e.g.
  1245. blast hits and HSPs) have two locations - one on the query and one on
  1246. the subject. Rank is used to differentiate these. Rank=0 is always
  1247. used for the query, Rank=1 for the subject. For multiple alignments,
  1248. assignment of rank is arbitrary. Rank is also used for
  1249. sequence_variant features, such as SNPs. Rank=0 indicates the wildtype
  1250. (or baseline) feature, Rank=1 indicates the mutant (or compared) feature.';
  1251. COMMENT ON COLUMN featureloc.locgroup IS 'This is used to manifest redundant,
  1252. derivable extra locations for a feature. The default locgroup=0 is
  1253. used for the DIRECT location of a feature. Important: most Chado users may
  1254. never use featurelocs WITH logroup > 0. Transitively derived locations
  1255. are indicated with locgroup > 0. For example, the position of an exon on
  1256. a BAC and in global chromosome coordinates. This column is used to
  1257. differentiate these groupings of locations. The default locgroup 0
  1258. is used for the main or primary location, from which the others can be
  1259. derived via coordinate transformations. Another example of redundant
  1260. locations is storing ORF coordinates relative to both transcript and
  1261. genome. Redundant locations open the possibility of the database
  1262. getting into inconsistent states; this schema gives us the flexibility
  1263. of both warehouse instantiations with redundant locations (easier for
  1264. querying) and management instantiations with no redundant
  1265. locations. An example of using both locgroup and rank: imagine a
  1266. feature indicating a conserved region between the chromosomes of two
  1267. different species. We may want to keep redundant locations on both
  1268. contigs and chromosomes. We would thus have 4 locations for the single
  1269. conserved region feature - two distinct locgroups (contig level and
  1270. chromosome level) and two distinct ranks (for the two species).';
  1271. COMMENT ON COLUMN featureloc.residue_info IS 'Alternative residues,
  1272. when these differ from feature.residues. For instance, a SNP feature
  1273. located on a wild and mutant protein would have different alternative residues.
  1274. for alignment/similarity features, the alternative residues is used to
  1275. represent the alignment string (CIGAR format). Note on variation
  1276. features; even if we do not want to instantiate a mutant
  1277. chromosome/contig feature, we can still represent a SNP etc with 2
  1278. locations, one (rank 0) on the genome, the other (rank 1) would have
  1279. most fields null, except for alternative residues.';
  1280. COMMENT ON COLUMN featureloc.phase IS 'Phase of translation with
  1281. respect to srcfeature_id.
  1282. Values are 0, 1, 2. It may not be possible to manifest this column for
  1283. some features such as exons, because the phase is dependant on the
  1284. spliceform (the same exon can appear in multiple spliceforms). This column is mostly useful for predicted exons and CDSs.';
  1285. COMMENT ON COLUMN featureloc.is_fmin_partial IS 'This is typically
  1286. false, but may be true if the value for column:fmin is inaccurate or
  1287. the leftmost part of the range is unknown/unbounded.';
  1288. COMMENT ON COLUMN featureloc.is_fmax_partial IS 'This is typically
  1289. false, but may be true if the value for column:fmax is inaccurate or
  1290. the rightmost part of the range is unknown/unbounded.';
  1291. --- COMMENT ON INDEX featureloc_c1 IS 'locgroup and rank serve to uniquely
  1292. --- partition locations for any one feature';
  1293. -- ================================================
  1294. -- TABLE: featureloc_pub
  1295. -- ================================================
  1296. create table featureloc_pub (
  1297. featureloc_pub_id serial not null,
  1298. primary key (featureloc_pub_id),
  1299. featureloc_id int not null,
  1300. foreign key (featureloc_id) references featureloc (featureloc_id) on delete cascade INITIALLY DEFERRED,
  1301. pub_id int not null,
  1302. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1303. constraint featureloc_pub_c1 unique (featureloc_id,pub_id)
  1304. );
  1305. create index featureloc_pub_idx1 on featureloc_pub (featureloc_id);
  1306. create index featureloc_pub_idx2 on featureloc_pub (pub_id);
  1307. COMMENT ON TABLE featureloc_pub IS 'Provenance of featureloc. Linking table between featurelocs and publications that mention them.';
  1308. -- ================================================
  1309. -- TABLE: feature_pub
  1310. -- ================================================
  1311. create table feature_pub (
  1312. feature_pub_id serial not null,
  1313. primary key (feature_pub_id),
  1314. feature_id int not null,
  1315. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1316. pub_id int not null,
  1317. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1318. constraint feature_pub_c1 unique (feature_id,pub_id)
  1319. );
  1320. create index feature_pub_idx1 on feature_pub (feature_id);
  1321. create index feature_pub_idx2 on feature_pub (pub_id);
  1322. COMMENT ON TABLE feature_pub IS 'Provenance. Linking table between features and publications that mention them.';
  1323. -- ================================================
  1324. -- TABLE: feature_pubprop
  1325. -- ================================================
  1326. create table feature_pubprop (
  1327. feature_pubprop_id serial not null,
  1328. primary key (feature_pubprop_id),
  1329. feature_pub_id int not null,
  1330. foreign key (feature_pub_id) references feature_pub (feature_pub_id) on delete cascade INITIALLY DEFERRED,
  1331. type_id int not null,
  1332. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1333. value text null,
  1334. rank int not null default 0,
  1335. constraint feature_pubprop_c1 unique (feature_pub_id,type_id,rank)
  1336. );
  1337. create index feature_pubprop_idx1 on feature_pubprop (feature_pub_id);
  1338. COMMENT ON TABLE feature_pubprop IS 'Property or attribute of a feature_pub link.';
  1339. -- ================================================
  1340. -- TABLE: featureprop
  1341. -- ================================================
  1342. create table featureprop (
  1343. featureprop_id serial not null,
  1344. primary key (featureprop_id),
  1345. feature_id int not null,
  1346. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1347. type_id int not null,
  1348. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1349. value text null,
  1350. rank int not null default 0,
  1351. constraint featureprop_c1 unique (feature_id,type_id,rank)
  1352. );
  1353. create index featureprop_idx1 on featureprop (feature_id);
  1354. create index featureprop_idx2 on featureprop (type_id);
  1355. 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.';
  1356. COMMENT ON COLUMN featureprop.type_id IS 'The name of the
  1357. property/slot is a cvterm. The meaning of the property is defined in
  1358. that cvterm. Certain property types will only apply to certain feature
  1359. types (e.g. the anticodon property will only apply to tRNA features) ;
  1360. the types here come from the sequence feature property ontology.';
  1361. 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.';
  1362. COMMENT ON COLUMN featureprop.rank IS 'Property-Value ordering. Any
  1363. feature can have multiple values for any particular property type -
  1364. these are ordered in a list using rank, counting from zero. For
  1365. properties that are single-valued rather than multi-valued, the
  1366. default 0 value should be used';
  1367. COMMENT ON INDEX featureprop_c1 IS 'For any one feature, multivalued
  1368. property-value pairs must be differentiated by rank.';
  1369. -- ================================================
  1370. -- TABLE: featureprop_pub
  1371. -- ================================================
  1372. create table featureprop_pub (
  1373. featureprop_pub_id serial not null,
  1374. primary key (featureprop_pub_id),
  1375. featureprop_id int not null,
  1376. foreign key (featureprop_id) references featureprop (featureprop_id) on delete cascade INITIALLY DEFERRED,
  1377. pub_id int not null,
  1378. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1379. constraint featureprop_pub_c1 unique (featureprop_id,pub_id)
  1380. );
  1381. create index featureprop_pub_idx1 on featureprop_pub (featureprop_id);
  1382. create index featureprop_pub_idx2 on featureprop_pub (pub_id);
  1383. COMMENT ON TABLE featureprop_pub IS 'Provenance. Any featureprop assignment can optionally be supported by a publication.';
  1384. -- ================================================
  1385. -- TABLE: feature_dbxref
  1386. -- ================================================
  1387. create table feature_dbxref (
  1388. feature_dbxref_id serial not null,
  1389. primary key (feature_dbxref_id),
  1390. feature_id int not null,
  1391. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1392. dbxref_id int not null,
  1393. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1394. is_current boolean not null default 'true',
  1395. constraint feature_dbxref_c1 unique (feature_id,dbxref_id)
  1396. );
  1397. create index feature_dbxref_idx1 on feature_dbxref (feature_id);
  1398. create index feature_dbxref_idx2 on feature_dbxref (dbxref_id);
  1399. COMMENT ON TABLE feature_dbxref IS 'Links a feature to dbxrefs. This is for secondary identifiers; primary identifiers should use feature.dbxref_id.';
  1400. 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';
  1401. -- ================================================
  1402. -- TABLE: feature_relationship
  1403. -- ================================================
  1404. create table feature_relationship (
  1405. feature_relationship_id serial not null,
  1406. primary key (feature_relationship_id),
  1407. subject_id int not null,
  1408. foreign key (subject_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1409. object_id int not null,
  1410. foreign key (object_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1411. type_id int not null,
  1412. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1413. value text null,
  1414. rank int not null default 0,
  1415. constraint feature_relationship_c1 unique (subject_id,object_id,type_id,rank)
  1416. );
  1417. create index feature_relationship_idx1 on feature_relationship (subject_id);
  1418. create index feature_relationship_idx2 on feature_relationship (object_id);
  1419. create index feature_relationship_idx3 on feature_relationship (type_id);
  1420. COMMENT ON TABLE feature_relationship IS 'Features can be arranged in
  1421. graphs, e.g. "exon part_of transcript part_of gene"; If type is
  1422. thought of as a verb, the each arc or edge makes a statement
  1423. [Subject Verb Object]. The object can also be thought of as parent
  1424. (containing feature), and subject as child (contained feature or
  1425. subfeature). We include the relationship rank/order, because even
  1426. though most of the time we can order things implicitly by sequence
  1427. coordinates, we can not always do this - e.g. transpliced genes. It is also
  1428. useful for quickly getting implicit introns.';
  1429. COMMENT ON COLUMN feature_relationship.subject_id IS 'The subject of the subj-predicate-obj sentence. This is typically the subfeature.';
  1430. COMMENT ON COLUMN feature_relationship.object_id IS 'The object of the subj-predicate-obj sentence. This is typically the container feature.';
  1431. 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.';
  1432. 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.';
  1433. COMMENT ON COLUMN feature_relationship.value IS 'Additional notes or comments.';
  1434. -- ================================================
  1435. -- TABLE: feature_relationship_pub
  1436. -- ================================================
  1437. create table feature_relationship_pub (
  1438. feature_relationship_pub_id serial not null,
  1439. primary key (feature_relationship_pub_id),
  1440. feature_relationship_id int not null,
  1441. foreign key (feature_relationship_id) references feature_relationship (feature_relationship_id) on delete cascade INITIALLY DEFERRED,
  1442. pub_id int not null,
  1443. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1444. constraint feature_relationship_pub_c1 unique (feature_relationship_id,pub_id)
  1445. );
  1446. create index feature_relationship_pub_idx1 on feature_relationship_pub (feature_relationship_id);
  1447. create index feature_relationship_pub_idx2 on feature_relationship_pub (pub_id);
  1448. COMMENT ON TABLE feature_relationship_pub IS 'Provenance. Attach optional evidence to a feature_relationship in the form of a publication.';
  1449. -- ================================================
  1450. -- TABLE: feature_relationshipprop
  1451. -- ================================================
  1452. create table feature_relationshipprop (
  1453. feature_relationshipprop_id serial not null,
  1454. primary key (feature_relationshipprop_id),
  1455. feature_relationship_id int not null,
  1456. foreign key (feature_relationship_id) references feature_relationship (feature_relationship_id) on delete cascade,
  1457. type_id int not null,
  1458. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1459. value text null,
  1460. rank int not null default 0,
  1461. constraint feature_relationshipprop_c1 unique (feature_relationship_id,type_id,rank)
  1462. );
  1463. create index feature_relationshipprop_idx1 on feature_relationshipprop (feature_relationship_id);
  1464. create index feature_relationshipprop_idx2 on feature_relationshipprop (type_id);
  1465. COMMENT ON TABLE feature_relationshipprop IS 'Extensible properties
  1466. for feature_relationships. Analagous structure to featureprop. This
  1467. table is largely optional and not used with a high frequency. Typical
  1468. scenarios may be if one wishes to attach additional data to a
  1469. feature_relationship - for example to say that the
  1470. feature_relationship is only true in certain contexts.';
  1471. COMMENT ON COLUMN feature_relationshipprop.type_id IS 'The name of the
  1472. property/slot is a cvterm. The meaning of the property is defined in
  1473. that cvterm. Currently there is no standard ontology for
  1474. feature_relationship property types.';
  1475. COMMENT ON COLUMN feature_relationshipprop.value IS 'The value of the
  1476. property, represented as text. Numeric values are converted to their
  1477. text representation. This is less efficient than using native database
  1478. types, but is easier to query.';
  1479. COMMENT ON COLUMN feature_relationshipprop.rank IS 'Property-Value
  1480. ordering. Any feature_relationship can have multiple values for any particular
  1481. property type - these are ordered in a list using rank, counting from
  1482. zero. For properties that are single-valued rather than multi-valued,
  1483. the default 0 value should be used.';
  1484. -- ================================================
  1485. -- TABLE: feature_relationshipprop_pub
  1486. -- ================================================
  1487. create table feature_relationshipprop_pub (
  1488. feature_relationshipprop_pub_id serial not null,
  1489. primary key (feature_relationshipprop_pub_id),
  1490. feature_relationshipprop_id int not null,
  1491. foreign key (feature_relationshipprop_id) references feature_relationshipprop (feature_relationshipprop_id) on delete cascade INITIALLY DEFERRED,
  1492. pub_id int not null,
  1493. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1494. constraint feature_relationshipprop_pub_c1 unique (feature_relationshipprop_id,pub_id)
  1495. );
  1496. create index feature_relationshipprop_pub_idx1 on feature_relationshipprop_pub (feature_relationshipprop_id);
  1497. create index feature_relationshipprop_pub_idx2 on feature_relationshipprop_pub (pub_id);
  1498. COMMENT ON TABLE feature_relationshipprop_pub IS 'Provenance for feature_relationshipprop.';
  1499. -- ================================================
  1500. -- TABLE: feature_cvterm
  1501. -- ================================================
  1502. create table feature_cvterm (
  1503. feature_cvterm_id serial not null,
  1504. primary key (feature_cvterm_id),
  1505. feature_id int not null,
  1506. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1507. cvterm_id int not null,
  1508. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1509. pub_id int not null,
  1510. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1511. is_not boolean not null default false,
  1512. rank integer not null default 0,
  1513. constraint feature_cvterm_c1 unique (feature_id,cvterm_id,pub_id,rank)
  1514. );
  1515. create index feature_cvterm_idx1 on feature_cvterm (feature_id);
  1516. create index feature_cvterm_idx2 on feature_cvterm (cvterm_id);
  1517. create index feature_cvterm_idx3 on feature_cvterm (pub_id);
  1518. COMMENT ON TABLE feature_cvterm IS 'Associate a term from a cv with a feature, for example, GO annotation.';
  1519. 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.';
  1520. 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.';
  1521. -- ================================================
  1522. -- TABLE: feature_cvtermprop
  1523. -- ================================================
  1524. create table feature_cvtermprop (
  1525. feature_cvtermprop_id serial not null,
  1526. primary key (feature_cvtermprop_id),
  1527. feature_cvterm_id int not null,
  1528. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1529. type_id int not null,
  1530. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1531. value text null,
  1532. rank int not null default 0,
  1533. constraint feature_cvtermprop_c1 unique (feature_cvterm_id,type_id,rank)
  1534. );
  1535. create index feature_cvtermprop_idx1 on feature_cvtermprop (feature_cvterm_id);
  1536. create index feature_cvtermprop_idx2 on feature_cvtermprop (type_id);
  1537. COMMENT ON TABLE feature_cvtermprop IS 'Extensible properties for
  1538. feature to cvterm associations. Examples: GO evidence codes;
  1539. qualifiers; metadata such as the date on which the entry was curated
  1540. and the source of the association. See the featureprop table for
  1541. meanings of type_id, value and rank.';
  1542. COMMENT ON COLUMN feature_cvtermprop.type_id IS 'The name of the
  1543. property/slot is a cvterm. The meaning of the property is defined in
  1544. that cvterm. cvterms may come from the OBO evidence code cv.';
  1545. COMMENT ON COLUMN feature_cvtermprop.value IS 'The value of the
  1546. property, represented as text. Numeric values are converted to their
  1547. text representation. This is less efficient than using native database
  1548. types, but is easier to query.';
  1549. COMMENT ON COLUMN feature_cvtermprop.rank IS 'Property-Value
  1550. ordering. Any feature_cvterm can have multiple values for any particular
  1551. property type - these are ordered in a list using rank, counting from
  1552. zero. For properties that are single-valued rather than multi-valued,
  1553. the default 0 value should be used.';
  1554. -- ================================================
  1555. -- TABLE: feature_cvterm_dbxref
  1556. -- ================================================
  1557. create table feature_cvterm_dbxref (
  1558. feature_cvterm_dbxref_id serial not null,
  1559. primary key (feature_cvterm_dbxref_id),
  1560. feature_cvterm_id int not null,
  1561. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1562. dbxref_id int not null,
  1563. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  1564. constraint feature_cvterm_dbxref_c1 unique (feature_cvterm_id,dbxref_id)
  1565. );
  1566. create index feature_cvterm_dbxref_idx1 on feature_cvterm_dbxref (feature_cvterm_id);
  1567. create index feature_cvterm_dbxref_idx2 on feature_cvterm_dbxref (dbxref_id);
  1568. 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.';
  1569. -- ================================================
  1570. -- TABLE: feature_cvterm_pub
  1571. -- ================================================
  1572. create table feature_cvterm_pub (
  1573. feature_cvterm_pub_id serial not null,
  1574. primary key (feature_cvterm_pub_id),
  1575. feature_cvterm_id int not null,
  1576. foreign key (feature_cvterm_id) references feature_cvterm (feature_cvterm_id) on delete cascade,
  1577. pub_id int not null,
  1578. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1579. constraint feature_cvterm_pub_c1 unique (feature_cvterm_id,pub_id)
  1580. );
  1581. create index feature_cvterm_pub_idx1 on feature_cvterm_pub (feature_cvterm_id);
  1582. create index feature_cvterm_pub_idx2 on feature_cvterm_pub (pub_id);
  1583. COMMENT ON TABLE feature_cvterm_pub IS 'Secondary pubs for an
  1584. association. Each feature_cvterm association is supported by a single
  1585. primary publication. Additional secondary pubs can be added using this
  1586. linking table (in a GO gene association file, these corresponding to
  1587. any IDs after the pipe symbol in the publications column.';
  1588. -- ================================================
  1589. -- TABLE: synonym
  1590. -- ================================================
  1591. create table synonym (
  1592. synonym_id serial not null,
  1593. primary key (synonym_id),
  1594. name varchar(255) not null,
  1595. type_id int not null,
  1596. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  1597. synonym_sgml varchar(255) not null,
  1598. constraint synonym_c1 unique (name,type_id)
  1599. );
  1600. create index synonym_idx1 on synonym (type_id);
  1601. create index synonym_idx2 on synonym ((lower(synonym_sgml)));
  1602. 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.';
  1603. COMMENT ON COLUMN synonym.name IS 'The synonym itself. Should be human-readable machine-searchable ascii text.';
  1604. COMMENT ON COLUMN synonym.synonym_sgml IS 'The fully specified synonym, with any non-ascii characters encoded in SGML.';
  1605. COMMENT ON COLUMN synonym.type_id IS 'Types would be symbol and fullname for now.';
  1606. -- ================================================
  1607. -- TABLE: feature_synonym
  1608. -- ================================================
  1609. create table feature_synonym (
  1610. feature_synonym_id serial not null,
  1611. primary key (feature_synonym_id),
  1612. synonym_id int not null,
  1613. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  1614. feature_id int not null,
  1615. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  1616. pub_id int not null,
  1617. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  1618. is_current boolean not null default 'false',
  1619. is_internal boolean not null default 'false',
  1620. constraint feature_synonym_c1 unique (synonym_id,feature_id,pub_id)
  1621. );
  1622. create index feature_synonym_idx1 on feature_synonym (synonym_id);
  1623. create index feature_synonym_idx2 on feature_synonym (feature_id);
  1624. create index feature_synonym_idx3 on feature_synonym (pub_id);
  1625. COMMENT ON TABLE feature_synonym IS 'Linking table between feature and synonym.';
  1626. 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.';
  1627. 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.';
  1628. 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.';
  1629. CREATE VIEW type_feature_count AS
  1630. SELECT t.name AS type,count(*) AS num_features
  1631. FROM cvterm AS t INNER JOIN feature ON (type_id=t.cvterm_id)
  1632. GROUP BY t.name;
  1633. COMMENT ON VIEW type_feature_count IS 'per-feature-type feature counts';
  1634. CREATE SCHEMA genetic_code;
  1635. SET search_path = genetic_code,public,pg_catalog;
  1636. CREATE TABLE gencode (
  1637. gencode_id INTEGER PRIMARY KEY NOT NULL,
  1638. organismstr VARCHAR(512) NOT NULL
  1639. );
  1640. CREATE TABLE gencode_codon_aa (
  1641. gencode_id INTEGER NOT NULL REFERENCES gencode(gencode_id),
  1642. codon CHAR(3) NOT NULL,
  1643. aa CHAR(1) NOT NULL,
  1644. CONSTRAINT gencode_codon_unique UNIQUE( gencode_id, codon )
  1645. );
  1646. CREATE INDEX gencode_codon_aa_i1 ON gencode_codon_aa(gencode_id,codon,aa);
  1647. CREATE TABLE gencode_startcodon (
  1648. gencode_id INTEGER NOT NULL REFERENCES gencode(gencode_id),
  1649. codon CHAR(3),
  1650. CONSTRAINT gencode_startcodon_unique UNIQUE( gencode_id, codon )
  1651. );
  1652. SET search_path = public,pg_catalog;
  1653. --
  1654. -- functions operating on featureloc ranges
  1655. --
  1656. -- create a point
  1657. CREATE OR REPLACE FUNCTION create_point (int, int) RETURNS point AS
  1658. 'SELECT point ($1, $2)'
  1659. LANGUAGE 'sql';
  1660. -- create a range box
  1661. -- (make this immutable so we can index it)
  1662. CREATE OR REPLACE FUNCTION boxrange (int, int) RETURNS box AS
  1663. 'SELECT box (create_point(0, $1), create_point($2,500000000))'
  1664. LANGUAGE 'sql' IMMUTABLE;
  1665. -- create a query box
  1666. CREATE OR REPLACE FUNCTION boxquery (int, int) RETURNS box AS
  1667. 'SELECT box (create_point($1, $2), create_point($1, $2))'
  1668. LANGUAGE 'sql' IMMUTABLE;
  1669. --functional index that depends on the above functions
  1670. CREATE INDEX binloc_boxrange ON featureloc USING RTREE (boxrange(fmin, fmax));
  1671. CREATE OR REPLACE FUNCTION featureloc_slice(int, int) RETURNS setof featureloc AS
  1672. 'SELECT * from featureloc where boxquery($1, $2) @ boxrange(fmin,fmax)'
  1673. LANGUAGE 'sql';
  1674. CREATE OR REPLACE FUNCTION featureloc_slice(varchar, int, int)
  1675. RETURNS setof featureloc AS
  1676. 'SELECT featureloc.*
  1677. FROM featureloc
  1678. INNER JOIN feature AS srcf ON (srcf.feature_id = featureloc.srcfeature_id)
  1679. WHERE boxquery($2, $3) @ boxrange(fmin,fmax)
  1680. AND srcf.name = $1 '
  1681. LANGUAGE 'sql';
  1682. CREATE OR REPLACE FUNCTION featureloc_slice(int, int, int)
  1683. RETURNS setof featureloc AS
  1684. 'SELECT *
  1685. FROM featureloc
  1686. WHERE boxquery($2, $3) @ boxrange(fmin,fmax)
  1687. AND srcfeature_id = $1 '
  1688. LANGUAGE 'sql';
  1689. -- can we not just do these as views?
  1690. CREATE OR REPLACE FUNCTION feature_overlaps(int)
  1691. RETURNS setof feature AS
  1692. 'SELECT feature.*
  1693. FROM feature
  1694. INNER JOIN featureloc AS x ON (x.feature_id=feature.feature_id)
  1695. INNER JOIN featureloc AS y ON (y.feature_id = $1)
  1696. WHERE
  1697. x.srcfeature_id = y.srcfeature_id AND
  1698. ( x.fmax >= y.fmin AND x.fmin <= y.fmax ) '
  1699. LANGUAGE 'sql';
  1700. CREATE OR REPLACE FUNCTION feature_disjoint_from(int)
  1701. RETURNS setof feature AS
  1702. 'SELECT feature.*
  1703. FROM feature
  1704. INNER JOIN featureloc AS x ON (x.feature_id=feature.feature_id)
  1705. INNER JOIN featureloc AS y ON (y.feature_id = $1)
  1706. WHERE
  1707. x.srcfeature_id = y.srcfeature_id AND
  1708. ( x.fmax < y.fmin OR x.fmin > y.fmax ) '
  1709. LANGUAGE 'sql';
  1710. --Evolution of the methods found in range.plpgsql (C. Pommier)
  1711. --Goal : increase performances of segment fetching
  1712. -- Implies to optimise featureloc_slice
  1713. --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.
  1714. -- 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.
  1715. -- 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 :
  1716. -- boxrange : ((srcfeature_id,fmin),(srcfeature_id,fmax))
  1717. -- boxquery : ((srcfeature_id,fmin),(srcfeature_id,fmax))
  1718. CREATE OR REPLACE FUNCTION boxrange (int, int, int) RETURNS box AS
  1719. 'SELECT box (create_point($1, $2), create_point($1,$3))'
  1720. LANGUAGE 'sql' IMMUTABLE;
  1721. -- create a query box
  1722. CREATE OR REPLACE FUNCTION boxquery (int, int, int) RETURNS box AS
  1723. 'SELECT box (create_point($1, $2), create_point($1, $3))'
  1724. LANGUAGE 'sql' IMMUTABLE;
  1725. CREATE INDEX binloc_boxrange_src ON featureloc USING RTREE (boxrange(srcfeature_id,fmin, fmax));
  1726. CREATE OR REPLACE FUNCTION featureloc_slice(int, int, int)
  1727. RETURNS setof featureloc AS
  1728. 'SELECT *
  1729. FROM featureloc
  1730. WHERE boxquery($1, $2, $3) && boxrange(srcfeature_id,fmin,fmax)'
  1731. LANGUAGE 'sql';
  1732. -- reverse_string
  1733. CREATE OR REPLACE FUNCTION reverse_string(TEXT) RETURNS TEXT AS
  1734. '
  1735. DECLARE
  1736. reversed_string TEXT;
  1737. incoming ALIAS FOR $1;
  1738. BEGIN
  1739. reversed_string = '''';
  1740. FOR i IN REVERSE char_length(incoming)..1 loop
  1741. reversed_string = reversed_string || substring(incoming FROM i FOR 1);
  1742. END loop;
  1743. RETURN reversed_string;
  1744. END'
  1745. language plpgsql;
  1746. -- complements DNA
  1747. CREATE OR REPLACE FUNCTION complement_residues(text) RETURNS text AS
  1748. 'SELECT (translate($1,
  1749. ''acgtrymkswhbvdnxACGTRYMKSWHBVDNX'',
  1750. ''tgcayrkmswdvbhnxTGCAYRKMSWDVBHNX''))'
  1751. LANGUAGE 'sql';
  1752. -- revcomp
  1753. CREATE OR REPLACE FUNCTION reverse_complement(TEXT) RETURNS TEXT AS
  1754. 'SELECT reverse_string(complement_residues($1))'
  1755. LANGUAGE 'sql';
  1756. -- DNA to AA
  1757. CREATE OR REPLACE FUNCTION translate_dna(TEXT,INT) RETURNS TEXT AS
  1758. '
  1759. DECLARE
  1760. dnaseq ALIAS FOR $1;
  1761. gcode ALIAS FOR $2;
  1762. translation TEXT;
  1763. dnaseqlen INT;
  1764. codon CHAR(3);
  1765. aa CHAR(1);
  1766. i INT;
  1767. BEGIN
  1768. translation = '''';
  1769. dnaseqlen = char_length(dnaseq);
  1770. i=1;
  1771. WHILE i+1 < dnaseqlen loop
  1772. codon = substring(dnaseq,i,3);
  1773. aa = translate_codon(codon,gcode);
  1774. translation = translation || aa;
  1775. i = i+3;
  1776. END loop;
  1777. RETURN translation;
  1778. END'
  1779. language plpgsql;
  1780. -- DNA to AA, default genetic code
  1781. CREATE OR REPLACE FUNCTION translate_dna(TEXT) RETURNS TEXT AS
  1782. 'SELECT translate_dna($1,1)'
  1783. LANGUAGE 'sql';
  1784. CREATE OR REPLACE FUNCTION translate_codon(TEXT,INT) RETURNS CHAR AS
  1785. 'SELECT aa FROM genetic_code.gencode_codon_aa WHERE codon=$1 AND gencode_id=$2'
  1786. LANGUAGE 'sql';
  1787. CREATE OR REPLACE FUNCTION concat_pair (text, text) RETURNS text AS
  1788. 'SELECT $1 || $2'
  1789. LANGUAGE 'sql';
  1790. CREATE AGGREGATE concat (
  1791. sfunc = concat_pair,
  1792. basetype = text,
  1793. stype = text,
  1794. initcond = ''
  1795. );
  1796. --function to 'unshare' exons. It looks for exons that have the same fmin
  1797. --and fmax and belong to the same gene and only keeps one. The other,
  1798. --redundant exons are marked obsolete in the feature table. Nothing
  1799. --is done with those features' entries in the featureprop, feature_dbxref,
  1800. --feature_pub, or feature_cvterm tables. For the moment, I'm assuming
  1801. --that any annotations that they have when this script is run are
  1802. --identical to their non-obsoleted doppelgangers. If that's not the case,
  1803. --they could be merged via query.
  1804. --
  1805. --The bulk of this code was contributed by Robin Houston at
  1806. --GeneDB/Sanger Centre.
  1807. CREATE OR REPLACE FUNCTION share_exons () RETURNS void AS '
  1808. DECLARE
  1809. BEGIN
  1810. /* Generate a table of shared exons */
  1811. CREATE temporary TABLE shared_exons AS
  1812. SELECT gene.feature_id as gene_feature_id
  1813. , gene.uniquename as gene_uniquename
  1814. , transcript1.uniquename as transcript1
  1815. , exon1.feature_id as exon1_feature_id
  1816. , exon1.uniquename as exon1_uniquename
  1817. , transcript2.uniquename as transcript2
  1818. , exon2.feature_id as exon2_feature_id
  1819. , exon2.uniquename as exon2_uniquename
  1820. , exon1_loc.fmin /* = exon2_loc.fmin */
  1821. , exon1_loc.fmax /* = exon2_loc.fmax */
  1822. FROM feature gene
  1823. JOIN cvterm gene_type ON gene.type_id = gene_type.cvterm_id
  1824. JOIN cv gene_type_cv USING (cv_id)
  1825. JOIN feature_relationship gene_transcript1 ON gene.feature_id = gene_transcript1.object_id
  1826. JOIN feature transcript1 ON gene_transcript1.subject_id = transcript1.feature_id
  1827. JOIN cvterm transcript1_type ON transcript1.type_id = transcript1_type.cvterm_id
  1828. JOIN cv transcript1_type_cv ON transcript1_type.cv_id = transcript1_type_cv.cv_id
  1829. JOIN feature_relationship transcript1_exon1 ON transcript1_exon1.object_id = transcript1.feature_id
  1830. JOIN feature exon1 ON transcript1_exon1.subject_id = exon1.feature_id
  1831. JOIN cvterm exon1_type ON exon1.type_id = exon1_type.cvterm_id
  1832. JOIN cv exon1_type_cv ON exon1_type.cv_id = exon1_type_cv.cv_id
  1833. JOIN featureloc exon1_loc ON exon1_loc.feature_id = exon1.feature_id
  1834. JOIN feature_relationship gene_transcript2 ON gene.feature_id = gene_transcript2.object_id
  1835. JOIN feature transcript2 ON gene_transcript2.subject_id = transcript2.feature_id
  1836. JOIN cvterm transcript2_type ON transcript2.type_id = transcript2_type.cvterm_id
  1837. JOIN cv transcript2_type_cv ON transcript2_type.cv_id = transcript2_type_cv.cv_id
  1838. JOIN feature_relationship transcript2_exon2 ON transcript2_exon2.object_id = transcript2.feature_id
  1839. JOIN feature exon2 ON transcript2_exon2.subject_id = exon2.feature_id
  1840. JOIN cvterm exon2_type ON exon2.type_id = exon2_type.cvterm_id
  1841. JOIN cv exon2_type_cv ON exon2_type.cv_id = exon2_type_cv.cv_id
  1842. JOIN featureloc exon2_loc ON exon2_loc.feature_id = exon2.feature_id
  1843. WHERE gene_type_cv.name = ''sequence''
  1844. AND gene_type.name = ''gene''
  1845. AND transcript1_type_cv.name = ''sequence''
  1846. AND transcript1_type.name = ''mRNA''
  1847. AND transcript2_type_cv.name = ''sequence''
  1848. AND transcript2_type.name = ''mRNA''
  1849. AND exon1_type_cv.name = ''sequence''
  1850. AND exon1_type.name = ''exon''
  1851. AND exon2_type_cv.name = ''sequence''
  1852. AND exon2_type.name = ''exon''
  1853. AND exon1.feature_id < exon2.feature_id
  1854. AND exon1_loc.rank = 0
  1855. AND exon2_loc.rank = 0
  1856. AND exon1_loc.fmin = exon2_loc.fmin
  1857. AND exon1_loc.fmax = exon2_loc.fmax
  1858. ;
  1859. /* Choose one of the shared exons to be the canonical representative.
  1860. We pick the one with the smallest feature_id.
  1861. */
  1862. CREATE temporary TABLE canonical_exon_representatives AS
  1863. SELECT gene_feature_id, min(exon1_feature_id) AS canonical_feature_id, fmin
  1864. FROM shared_exons
  1865. GROUP BY gene_feature_id,fmin
  1866. ;
  1867. CREATE temporary TABLE exon_replacements AS
  1868. SELECT DISTINCT shared_exons.exon2_feature_id AS actual_feature_id
  1869. , canonical_exon_representatives.canonical_feature_id
  1870. , canonical_exon_representatives.fmin
  1871. FROM shared_exons
  1872. JOIN canonical_exon_representatives USING (gene_feature_id)
  1873. WHERE shared_exons.exon2_feature_id <> canonical_exon_representatives.canonical_feature_id
  1874. AND shared_exons.fmin = canonical_exon_representatives.fmin
  1875. ;
  1876. UPDATE feature_relationship
  1877. SET subject_id = (
  1878. SELECT canonical_feature_id
  1879. FROM exon_replacements
  1880. WHERE feature_relationship.subject_id = exon_replacements.actual_feature_id)
  1881. WHERE subject_id IN (
  1882. SELECT actual_feature_id FROM exon_replacements
  1883. );
  1884. UPDATE feature_relationship
  1885. SET object_id = (
  1886. SELECT canonical_feature_id
  1887. FROM exon_replacements
  1888. WHERE feature_relationship.subject_id = exon_replacements.actual_feature_id)
  1889. WHERE object_id IN (
  1890. SELECT actual_feature_id FROM exon_replacements
  1891. );
  1892. UPDATE feature
  1893. SET is_obsolete = true
  1894. WHERE feature_id IN (
  1895. SELECT actual_feature_id FROM exon_replacements
  1896. );
  1897. END;
  1898. ' LANGUAGE 'plpgsql';
  1899. --This is a function to seek out exons of transcripts and orders them,
  1900. --using feature_relationship.rank, in "transcript order" numbering
  1901. --from 0, taking strand into account. It will not touch transcripts that
  1902. --already have their exons ordered (in case they have a non-obvious
  1903. --ordering due to trans splicing). It takes as an argument the
  1904. --feature.type_id of the parent transcript type (typically, mRNA, although
  1905. --non coding transcript types should work too).
  1906. CREATE OR REPLACE FUNCTION order_exons (integer) RETURNS void AS '
  1907. DECLARE
  1908. parent_type ALIAS FOR $1;
  1909. exon_id int;
  1910. part_of int;
  1911. exon_type int;
  1912. strand int;
  1913. arow RECORD;
  1914. order_by varchar;
  1915. rowcount int;
  1916. exon_count int;
  1917. ordered_exons int;
  1918. transcript_id int;
  1919. transcript_row feature%ROWTYPE;
  1920. BEGIN
  1921. SELECT INTO part_of cvterm_id FROM cvterm WHERE name=''part_of''
  1922. AND cv_id IN (SELECT cv_id FROM cv WHERE name=''relationship'');
  1923. --SELECT INTO exon_type cvterm_id FROM cvterm WHERE name=''exon''
  1924. -- AND cv_id IN (SELECT cv_id FROM cv WHERE name=''sequence'');
  1925. --RAISE NOTICE ''part_of %, exon %'',part_of,exon_type;
  1926. FOR transcript_row IN
  1927. SELECT * FROM feature WHERE type_id = parent_type
  1928. LOOP
  1929. transcript_id = transcript_row.feature_id;
  1930. SELECT INTO rowcount count(*) FROM feature_relationship
  1931. WHERE object_id = transcript_id
  1932. AND rank = 0;
  1933. --Dont modify this transcript if there are already numbered exons or
  1934. --if there is only one exon
  1935. IF rowcount = 1 THEN
  1936. --RAISE NOTICE ''skipping transcript %, row count %'',transcript_id,rowcount;
  1937. CONTINUE;
  1938. END IF;
  1939. --need to reverse the order if the strand is negative
  1940. SELECT INTO strand strand FROM featureloc WHERE feature_id=transcript_id;
  1941. IF strand > 0 THEN
  1942. order_by = ''fl.fmin'';
  1943. ELSE
  1944. order_by = ''fl.fmax desc'';
  1945. END IF;
  1946. exon_count = 0;
  1947. FOR arow IN EXECUTE
  1948. ''SELECT fr.*, fl.fmin, fl.fmax
  1949. FROM feature_relationship fr, featureloc fl
  1950. WHERE fr.object_id = ''||transcript_id||''
  1951. AND fr.subject_id = fl.feature_id
  1952. AND fr.type_id = ''||part_of||''
  1953. ORDER BY ''||order_by
  1954. LOOP
  1955. --number the exons for a given transcript
  1956. UPDATE feature_relationship
  1957. SET rank = exon_count
  1958. WHERE feature_relationship_id = arow.feature_relationship_id;
  1959. exon_count = exon_count + 1;
  1960. END LOOP;
  1961. END LOOP;
  1962. END;
  1963. ' LANGUAGE 'plpgsql';
  1964. -- down the graph: eg from chromosome to contig
  1965. CREATE OR REPLACE FUNCTION project_point_up(int,int,int,int)
  1966. RETURNS int AS
  1967. 'SELECT
  1968. CASE WHEN $4<0
  1969. THEN $3-$1 -- rev strand
  1970. ELSE $1-$2 -- fwd strand
  1971. END AS p'
  1972. LANGUAGE 'sql';
  1973. -- down the graph: eg from contig to chromosome
  1974. CREATE OR REPLACE FUNCTION project_point_down(int,int,int,int)
  1975. RETURNS int AS
  1976. 'SELECT
  1977. CASE WHEN $4<0
  1978. THEN $3-$1
  1979. ELSE $1+$2
  1980. END AS p'
  1981. LANGUAGE 'sql';
  1982. CREATE OR REPLACE FUNCTION project_featureloc_up(int,int)
  1983. RETURNS featureloc AS
  1984. '
  1985. DECLARE
  1986. in_featureloc_id alias for $1;
  1987. up_srcfeature_id alias for $2;
  1988. in_featureloc featureloc%ROWTYPE;
  1989. up_featureloc featureloc%ROWTYPE;
  1990. nu_featureloc featureloc%ROWTYPE;
  1991. nu_fmin INT;
  1992. nu_fmax INT;
  1993. nu_strand INT;
  1994. BEGIN
  1995. SELECT INTO in_featureloc
  1996. featureloc.*
  1997. FROM featureloc
  1998. WHERE featureloc_id = in_featureloc_id;
  1999. SELECT INTO up_featureloc
  2000. up_fl.*
  2001. FROM featureloc AS in_fl
  2002. INNER JOIN featureloc AS up_fl
  2003. ON (in_fl.srcfeature_id = up_fl.feature_id)
  2004. WHERE
  2005. in_fl.featureloc_id = in_featureloc_id AND
  2006. up_fl.srcfeature_id = up_srcfeature_id;
  2007. IF up_featureloc.strand IS NULL
  2008. THEN RETURN NULL;
  2009. END IF;
  2010. IF up_featureloc.strand < 0
  2011. THEN
  2012. nu_fmin = project_point_up(in_featureloc.fmax,
  2013. up_featureloc.fmin,up_featureloc.fmax,-1);
  2014. nu_fmax = project_point_up(in_featureloc.fmin,
  2015. up_featureloc.fmin,up_featureloc.fmax,-1);
  2016. nu_strand = -in_featureloc.strand;
  2017. ELSE
  2018. nu_fmin = project_point_up(in_featureloc.fmin,
  2019. up_featureloc.fmin,up_featureloc.fmax,1);
  2020. nu_fmax = project_point_up(in_featureloc.fmax,
  2021. up_featureloc.fmin,up_featureloc.fmax,1);
  2022. nu_strand = in_featureloc.strand;
  2023. END IF;
  2024. in_featureloc.fmin = nu_fmin;
  2025. in_featureloc.fmax = nu_fmax;
  2026. in_featureloc.strand = nu_strand;
  2027. in_featureloc.srcfeature_id = up_featureloc.srcfeature_id;
  2028. RETURN in_featureloc;
  2029. END
  2030. '
  2031. LANGUAGE 'plpgsql';
  2032. CREATE OR REPLACE FUNCTION project_point_g2t(int,int,int)
  2033. RETURNS INT AS '
  2034. DECLARE
  2035. in_p alias for $1;
  2036. srcf_id alias for $2;
  2037. t_id alias for $3;
  2038. e_floc featureloc%ROWTYPE;
  2039. out_p INT;
  2040. exon_cvterm_id INT;
  2041. BEGIN
  2042. SELECT INTO exon_cvterm_id get_feature_type_id(''exon'');
  2043. SELECT INTO out_p
  2044. CASE
  2045. WHEN strand<0 THEN fmax-p
  2046. ELSE p-fmin
  2047. END AS p
  2048. FROM featureloc
  2049. INNER JOIN feature USING (feature_id)
  2050. INNER JOIN feature_relationship ON (feature.feature_id=subject_id)
  2051. WHERE
  2052. object_id = t_id AND
  2053. feature.type_id = exon_cvterm_id AND
  2054. featureloc.srcfeature_id = srcf_id AND
  2055. in_p >= fmin AND
  2056. in_p <= fmax;
  2057. RETURN in_featureloc;
  2058. END
  2059. '
  2060. LANGUAGE 'plpgsql';
  2061. CREATE OR REPLACE FUNCTION get_cv_id_for_feature() RETURNS INT
  2062. AS 'SELECT cv_id FROM cv WHERE name=''sequence''' LANGUAGE 'sql';
  2063. CREATE OR REPLACE FUNCTION get_cv_id_for_featureprop() RETURNS INT
  2064. AS 'SELECT cv_id FROM cv WHERE name=''feature_property''' LANGUAGE 'sql';
  2065. CREATE OR REPLACE FUNCTION get_cv_id_for_feature_relationsgip() RETURNS INT
  2066. AS 'SELECT cv_id FROM cv WHERE name=''relationship''' LANGUAGE 'sql';
  2067. CREATE OR REPLACE FUNCTION get_feature_type_id(VARCHAR) RETURNS INT
  2068. AS '
  2069. SELECT cvterm_id
  2070. FROM cv INNER JOIN cvterm USING (cv_id)
  2071. WHERE cvterm.name=$1 AND cv.name=''sequence''
  2072. ' LANGUAGE 'sql';
  2073. CREATE OR REPLACE FUNCTION get_featureprop_type_id(VARCHAR) RETURNS INT
  2074. AS '
  2075. SELECT cvterm_id
  2076. FROM cv INNER JOIN cvterm USING (cv_id)
  2077. WHERE cvterm.name=$1 AND cv.name=''feature_property''
  2078. ' LANGUAGE 'sql';
  2079. CREATE OR REPLACE FUNCTION get_feature_relationship_type_id(VARCHAR) RETURNS INT
  2080. AS '
  2081. SELECT cvterm_id
  2082. FROM cv INNER JOIN cvterm USING (cv_id)
  2083. WHERE cvterm.name=$1 AND cv.name=''relationship''
  2084. ' LANGUAGE 'sql';
  2085. -- depends on sequence-cv-helper
  2086. CREATE OR REPLACE FUNCTION get_feature_id(VARCHAR,VARCHAR,VARCHAR) RETURNS INT
  2087. AS '
  2088. SELECT feature_id
  2089. FROM feature
  2090. WHERE uniquename=$1
  2091. AND type_id=get_feature_type_id($2)
  2092. AND organism_id=get_organism_id($3)
  2093. ' LANGUAGE 'sql';
  2094. --This is an automatically generated file; do not edit it as changes will not
  2095. --be saved. Instead, modify bin/create-so-bridge.pl, which creates this file.
  2096. CREATE SCHEMA so;
  2097. SET search_path=so,public,pg_catalog;
  2098. --- ************************************************
  2099. --- *** relation: region ***
  2100. --- *** relation type: VIEW ***
  2101. --- *** ***
  2102. --- *** A sequence_feature with an extent greate ***
  2103. --- *** r than zero. A nucleotide region is comp ***
  2104. --- *** osed of bases and a polypeptide region i ***
  2105. --- *** s composed of amino acids. ***
  2106. --- ************************************************
  2107. ---
  2108. CREATE VIEW region AS
  2109. SELECT
  2110. feature_id AS region_id,
  2111. feature.*
  2112. FROM
  2113. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2114. 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';
  2115. --- ************************************************
  2116. --- *** relation: sequence_secondary_structure ***
  2117. --- *** relation type: VIEW ***
  2118. --- *** ***
  2119. --- *** A folded sequence. ***
  2120. --- ************************************************
  2121. ---
  2122. CREATE VIEW sequence_secondary_structure AS
  2123. SELECT
  2124. feature_id AS sequence_secondary_structure_id,
  2125. feature.*
  2126. FROM
  2127. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2128. 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';
  2129. --- ************************************************
  2130. --- *** relation: g_quartet ***
  2131. --- *** relation type: VIEW ***
  2132. --- *** ***
  2133. --- *** G-quartets are unusual nucleic acid stru ***
  2134. --- *** ctures consisting of a planar arrangemen ***
  2135. --- *** t where each guanine is hydrogen bonded ***
  2136. --- *** by hoogsteen pairing to another guanine ***
  2137. --- *** in the quartet. ***
  2138. --- ************************************************
  2139. ---
  2140. CREATE VIEW g_quartet AS
  2141. SELECT
  2142. feature_id AS g_quartet_id,
  2143. feature.*
  2144. FROM
  2145. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2146. WHERE cvterm.name = 'G_quartet';
  2147. --- ************************************************
  2148. --- *** relation: interior_coding_exon ***
  2149. --- *** relation type: VIEW ***
  2150. --- *** ***
  2151. --- ************************************************
  2152. ---
  2153. CREATE VIEW interior_coding_exon AS
  2154. SELECT
  2155. feature_id AS interior_coding_exon_id,
  2156. feature.*
  2157. FROM
  2158. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2159. WHERE cvterm.name = 'interior_coding_exon';
  2160. --- ************************************************
  2161. --- *** relation: satellite_dna ***
  2162. --- *** relation type: VIEW ***
  2163. --- *** ***
  2164. --- *** The many tandem repeats (identical or re ***
  2165. --- *** lated) of a short basic repeating unit; ***
  2166. --- *** many have a base composition or other pr ***
  2167. --- *** operty different from the genome average ***
  2168. --- *** that allows them to be separated from t ***
  2169. --- *** he bulk (main band) genomic DNA. ***
  2170. --- ************************************************
  2171. ---
  2172. CREATE VIEW satellite_dna AS
  2173. SELECT
  2174. feature_id AS satellite_dna_id,
  2175. feature.*
  2176. FROM
  2177. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2178. 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';
  2179. --- ************************************************
  2180. --- *** relation: pcr_product ***
  2181. --- *** relation type: VIEW ***
  2182. --- *** ***
  2183. --- *** A region amplified by a PCR reaction. ***
  2184. --- ************************************************
  2185. ---
  2186. CREATE VIEW pcr_product AS
  2187. SELECT
  2188. feature_id AS pcr_product_id,
  2189. feature.*
  2190. FROM
  2191. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2192. WHERE cvterm.name = 'RAPD' OR cvterm.name = 'PCR_product';
  2193. --- ************************************************
  2194. --- *** relation: read_pair ***
  2195. --- *** relation type: VIEW ***
  2196. --- *** ***
  2197. --- *** One of a pair of sequencing reads in whi ***
  2198. --- *** ch the two members of the pair are relat ***
  2199. --- *** ed by originating at either end of a clo ***
  2200. --- *** ne insert. ***
  2201. --- ************************************************
  2202. ---
  2203. CREATE VIEW read_pair AS
  2204. SELECT
  2205. feature_id AS read_pair_id,
  2206. feature.*
  2207. FROM
  2208. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2209. WHERE cvterm.name = 'read_pair';
  2210. --- ************************************************
  2211. --- *** relation: protein_coding ***
  2212. --- *** relation type: VIEW ***
  2213. --- *** ***
  2214. --- ************************************************
  2215. ---
  2216. CREATE VIEW protein_coding AS
  2217. SELECT
  2218. feature_id AS protein_coding_id,
  2219. feature.*
  2220. FROM
  2221. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2222. WHERE cvterm.name = 'intein_containing' OR cvterm.name = 'protein_coding';
  2223. --- ************************************************
  2224. --- *** relation: non_protein_coding ***
  2225. --- *** relation type: VIEW ***
  2226. --- *** ***
  2227. --- ************************************************
  2228. ---
  2229. CREATE VIEW non_protein_coding AS
  2230. SELECT
  2231. feature_id AS non_protein_coding_id,
  2232. feature.*
  2233. FROM
  2234. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2235. 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';
  2236. --- ************************************************
  2237. --- *** relation: scrna_primary_transcript ***
  2238. --- *** relation type: VIEW ***
  2239. --- *** ***
  2240. --- *** The primary transcript of any one of sev ***
  2241. --- *** eral small cytoplasmic RNA molecules pre ***
  2242. --- *** sent in the cytoplasm and sometimes nucl ***
  2243. --- *** eus of a eukaryote. ***
  2244. --- ************************************************
  2245. ---
  2246. CREATE VIEW scrna_primary_transcript AS
  2247. SELECT
  2248. feature_id AS scrna_primary_transcript_id,
  2249. feature.*
  2250. FROM
  2251. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2252. WHERE cvterm.name = 'scRNA_primary_transcript';
  2253. --- ************************************************
  2254. --- *** relation: scrna ***
  2255. --- *** relation type: VIEW ***
  2256. --- *** ***
  2257. --- *** A small non coding RNA sequence, present ***
  2258. --- *** in the cytoplasm. ***
  2259. --- ************************************************
  2260. ---
  2261. CREATE VIEW scrna AS
  2262. SELECT
  2263. feature_id AS scrna_id,
  2264. feature.*
  2265. FROM
  2266. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2267. WHERE cvterm.name = 'scRNA';
  2268. --- ************************************************
  2269. --- *** relation: inr_motif ***
  2270. --- *** relation type: VIEW ***
  2271. --- *** ***
  2272. --- *** A sequence element characteristic of som ***
  2273. --- *** e RNA polymerase II promoters required f ***
  2274. --- *** or the correct positioning of the polyme ***
  2275. --- *** rase for the start of transcription. Ove ***
  2276. --- *** rlaps the TSS. The mammalian consensus s ***
  2277. --- *** equence is YYAN(T|A)YY; the Drosophila c ***
  2278. --- *** onsensus sequence is TCA(G|T)t(T|C). In ***
  2279. --- *** each the A is at position +1 with respec ***
  2280. --- *** t to the TSS. Functionally similar to th ***
  2281. --- *** e TATA box element. ***
  2282. --- ************************************************
  2283. ---
  2284. CREATE VIEW inr_motif AS
  2285. SELECT
  2286. feature_id AS inr_motif_id,
  2287. feature.*
  2288. FROM
  2289. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2290. WHERE cvterm.name = 'INR_motif';
  2291. --- ************************************************
  2292. --- *** relation: dpe_motif ***
  2293. --- *** relation type: VIEW ***
  2294. --- *** ***
  2295. --- *** A sequence element characteristic of som ***
  2296. --- *** e RNA polymerase II promoters; Positione ***
  2297. --- *** d from +28 to +32 with respect to the TS ***
  2298. --- *** S (+1). Experimental results suggest tha ***
  2299. --- *** t the DPE acts in conjunction with the I ***
  2300. --- *** NR_motif to provide a binding site for T ***
  2301. --- *** FIID in the absence of a TATA box to med ***
  2302. --- *** iate transcription of TATA-less promoter ***
  2303. --- *** s. Consensus sequence (A|G)G(A|T)(C|T)(G ***
  2304. --- *** |A|C). ***
  2305. --- ************************************************
  2306. ---
  2307. CREATE VIEW dpe_motif AS
  2308. SELECT
  2309. feature_id AS dpe_motif_id,
  2310. feature.*
  2311. FROM
  2312. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2313. WHERE cvterm.name = 'DPE_motif';
  2314. --- ************************************************
  2315. --- *** relation: breu_motif ***
  2316. --- *** relation type: VIEW ***
  2317. --- *** ***
  2318. --- *** A sequence element characteristic of som ***
  2319. --- *** e RNA polymerase II promoters, located i ***
  2320. --- *** mmediately upstream of some TATA box ele ***
  2321. --- *** ments at -37 to -32 with respect to the ***
  2322. --- *** TSS (+1). Consensus sequence is (G|C)(G| ***
  2323. --- *** C)(G|A)CGCC. Binds TFIIB. ***
  2324. --- ************************************************
  2325. ---
  2326. CREATE VIEW breu_motif AS
  2327. SELECT
  2328. feature_id AS breu_motif_id,
  2329. feature.*
  2330. FROM
  2331. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2332. WHERE cvterm.name = 'BREu_motif';
  2333. --- ************************************************
  2334. --- *** relation: pse_motif ***
  2335. --- *** relation type: VIEW ***
  2336. --- *** ***
  2337. --- *** A sequence element characteristic of the ***
  2338. --- *** promoters of snRNA genes transcribed by ***
  2339. --- *** RNA polymerase II or by RNA polymerase ***
  2340. --- *** III. Located between -45 and -60 relativ ***
  2341. --- *** e to the TSS. The human PSE_motif consen ***
  2342. --- *** sus sequence is TCACCNTNA(C|G)TNAAAAG(T| ***
  2343. --- *** G). ***
  2344. --- ************************************************
  2345. ---
  2346. CREATE VIEW pse_motif AS
  2347. SELECT
  2348. feature_id AS pse_motif_id,
  2349. feature.*
  2350. FROM
  2351. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2352. WHERE cvterm.name = 'PSE_motif';
  2353. --- ************************************************
  2354. --- *** relation: linkage_group ***
  2355. --- *** relation type: VIEW ***
  2356. --- *** ***
  2357. --- *** A group of loci that can be grouped in a ***
  2358. --- *** linear order representing the different ***
  2359. --- *** degrees of linkage among the genes conc ***
  2360. --- *** erned. ***
  2361. --- ************************************************
  2362. ---
  2363. CREATE VIEW linkage_group AS
  2364. SELECT
  2365. feature_id AS linkage_group_id,
  2366. feature.*
  2367. FROM
  2368. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2369. WHERE cvterm.name = 'linkage_group';
  2370. --- ************************************************
  2371. --- *** relation: rna_internal_loop ***
  2372. --- *** relation type: VIEW ***
  2373. --- *** ***
  2374. --- *** A region of double stranded RNA where th ***
  2375. --- *** e bases do not conform to WC base pairin ***
  2376. --- *** g. The loop is closed on both sides by c ***
  2377. --- *** anonical base pairing. If the interrupti ***
  2378. --- *** on to base pairing occurs on one strand ***
  2379. --- *** only, it is known as a bulge. ***
  2380. --- ************************************************
  2381. ---
  2382. CREATE VIEW rna_internal_loop AS
  2383. SELECT
  2384. feature_id AS rna_internal_loop_id,
  2385. feature.*
  2386. FROM
  2387. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2388. 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';
  2389. --- ************************************************
  2390. --- *** relation: asymmetric_rna_internal_loop ***
  2391. --- *** relation type: VIEW ***
  2392. --- *** ***
  2393. --- *** An internal RNA loop where one of the st ***
  2394. --- *** rands includes more bases than the corre ***
  2395. --- *** sponding region on the other strand. ***
  2396. --- ************************************************
  2397. ---
  2398. CREATE VIEW asymmetric_rna_internal_loop AS
  2399. SELECT
  2400. feature_id AS asymmetric_rna_internal_loop_id,
  2401. feature.*
  2402. FROM
  2403. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2404. WHERE cvterm.name = 'K_turn_RNA_motif' OR cvterm.name = 'sarcin_like_RNA_motif' OR cvterm.name = 'asymmetric_RNA_internal_loop';
  2405. --- ************************************************
  2406. --- *** relation: a_minor_rna_motif ***
  2407. --- *** relation type: VIEW ***
  2408. --- *** ***
  2409. --- *** A region forming a motif, composed of ad ***
  2410. --- *** enines, where the minor groove edges are ***
  2411. --- *** inserted into the minor groove of anoth ***
  2412. --- *** er helix. ***
  2413. --- ************************************************
  2414. ---
  2415. CREATE VIEW a_minor_rna_motif AS
  2416. SELECT
  2417. feature_id AS a_minor_rna_motif_id,
  2418. feature.*
  2419. FROM
  2420. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2421. WHERE cvterm.name = 'A_minor_RNA_motif';
  2422. --- ************************************************
  2423. --- *** relation: k_turn_rna_motif ***
  2424. --- *** relation type: VIEW ***
  2425. --- *** ***
  2426. --- *** The kink turn (K-turn) is an RNA structu ***
  2427. --- *** ral motif that creates a sharp (~120 deg ***
  2428. --- *** ree) bend between two continuous helices ***
  2429. --- *** . ***
  2430. --- ************************************************
  2431. ---
  2432. CREATE VIEW k_turn_rna_motif AS
  2433. SELECT
  2434. feature_id AS k_turn_rna_motif_id,
  2435. feature.*
  2436. FROM
  2437. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2438. WHERE cvterm.name = 'K_turn_RNA_motif';
  2439. --- ************************************************
  2440. --- *** relation: sarcin_like_rna_motif ***
  2441. --- *** relation type: VIEW ***
  2442. --- *** ***
  2443. --- *** A loop in ribosomal RNA containing the s ***
  2444. --- *** ites of attack for ricin and sarcin. ***
  2445. --- ************************************************
  2446. ---
  2447. CREATE VIEW sarcin_like_rna_motif AS
  2448. SELECT
  2449. feature_id AS sarcin_like_rna_motif_id,
  2450. feature.*
  2451. FROM
  2452. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2453. WHERE cvterm.name = 'sarcin_like_RNA_motif';
  2454. --- ************************************************
  2455. --- *** relation: symmetric_rna_internal_loop ***
  2456. --- *** relation type: VIEW ***
  2457. --- *** ***
  2458. --- *** An internal RNA loop where the extent of ***
  2459. --- *** the loop on both stands is the same siz ***
  2460. --- *** e. ***
  2461. --- ************************************************
  2462. ---
  2463. CREATE VIEW symmetric_rna_internal_loop AS
  2464. SELECT
  2465. feature_id AS symmetric_rna_internal_loop_id,
  2466. feature.*
  2467. FROM
  2468. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2469. WHERE cvterm.name = 'symmetric_RNA_internal_loop';
  2470. --- ************************************************
  2471. --- *** relation: rna_junction_loop ***
  2472. --- *** relation type: VIEW ***
  2473. --- *** ***
  2474. --- ************************************************
  2475. ---
  2476. CREATE VIEW rna_junction_loop AS
  2477. SELECT
  2478. feature_id AS rna_junction_loop_id,
  2479. feature.*
  2480. FROM
  2481. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2482. WHERE cvterm.name = 'RNA_hook_turn' OR cvterm.name = 'RNA_junction_loop';
  2483. --- ************************************************
  2484. --- *** relation: rna_hook_turn ***
  2485. --- *** relation type: VIEW ***
  2486. --- *** ***
  2487. --- ************************************************
  2488. ---
  2489. CREATE VIEW rna_hook_turn AS
  2490. SELECT
  2491. feature_id AS rna_hook_turn_id,
  2492. feature.*
  2493. FROM
  2494. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2495. WHERE cvterm.name = 'RNA_hook_turn';
  2496. --- ************************************************
  2497. --- *** relation: base_pair ***
  2498. --- *** relation type: VIEW ***
  2499. --- *** ***
  2500. --- ************************************************
  2501. ---
  2502. CREATE VIEW base_pair AS
  2503. SELECT
  2504. feature_id AS base_pair_id,
  2505. feature.*
  2506. FROM
  2507. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2508. 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';
  2509. --- ************************************************
  2510. --- *** relation: wc_base_pair ***
  2511. --- *** relation type: VIEW ***
  2512. --- *** ***
  2513. --- *** The canonical base pair, where two bases ***
  2514. --- *** interact via WC edges, with glycosidic ***
  2515. --- *** bonds oriented cis relative to the axis ***
  2516. --- *** of orientation. ***
  2517. --- ************************************************
  2518. ---
  2519. CREATE VIEW wc_base_pair AS
  2520. SELECT
  2521. feature_id AS wc_base_pair_id,
  2522. feature.*
  2523. FROM
  2524. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2525. WHERE cvterm.name = 'WC_base_pair';
  2526. --- ************************************************
  2527. --- *** relation: sugar_edge_base_pair ***
  2528. --- *** relation type: VIEW ***
  2529. --- *** ***
  2530. --- *** A type of non-canonical base-pairing. ***
  2531. --- ************************************************
  2532. ---
  2533. CREATE VIEW sugar_edge_base_pair AS
  2534. SELECT
  2535. feature_id AS sugar_edge_base_pair_id,
  2536. feature.*
  2537. FROM
  2538. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2539. WHERE cvterm.name = 'sugar_edge_base_pair';
  2540. --- ************************************************
  2541. --- *** relation: aptamer ***
  2542. --- *** relation type: VIEW ***
  2543. --- *** ***
  2544. --- *** DNA or RNA molecules that have been sele ***
  2545. --- *** cted from random pools based on their ab ***
  2546. --- *** ility to bind other molecules. ***
  2547. --- ************************************************
  2548. ---
  2549. CREATE VIEW aptamer AS
  2550. SELECT
  2551. feature_id AS aptamer_id,
  2552. feature.*
  2553. FROM
  2554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2555. WHERE cvterm.name = 'DNA_aptamer' OR cvterm.name = 'RNA_aptamer' OR cvterm.name = 'aptamer';
  2556. --- ************************************************
  2557. --- *** relation: dna_aptamer ***
  2558. --- *** relation type: VIEW ***
  2559. --- *** ***
  2560. --- *** DNA molecules that have been selected fr ***
  2561. --- *** om random pools based on their ability t ***
  2562. --- *** o bind other molecules. ***
  2563. --- ************************************************
  2564. ---
  2565. CREATE VIEW dna_aptamer AS
  2566. SELECT
  2567. feature_id AS dna_aptamer_id,
  2568. feature.*
  2569. FROM
  2570. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2571. WHERE cvterm.name = 'DNA_aptamer';
  2572. --- ************************************************
  2573. --- *** relation: rna_aptamer ***
  2574. --- *** relation type: VIEW ***
  2575. --- *** ***
  2576. --- *** RNA molecules that have been selected fr ***
  2577. --- *** om random pools based on their ability t ***
  2578. --- *** o bind other molecules. ***
  2579. --- ************************************************
  2580. ---
  2581. CREATE VIEW rna_aptamer AS
  2582. SELECT
  2583. feature_id AS rna_aptamer_id,
  2584. feature.*
  2585. FROM
  2586. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2587. WHERE cvterm.name = 'RNA_aptamer';
  2588. --- ************************************************
  2589. --- *** relation: morpholino_oligo ***
  2590. --- *** relation type: VIEW ***
  2591. --- *** ***
  2592. --- *** Morpholino oligos are synthesized from f ***
  2593. --- *** our different Morpholino subunits, each ***
  2594. --- *** of which contains one of the four geneti ***
  2595. --- *** c bases (A, C, G, T) linked to a 6-membe ***
  2596. --- *** red morpholine ring. Eighteen to 25 subu ***
  2597. --- *** nits of these four subunit types are joi ***
  2598. --- *** ned in a specific order by non-ionic pho ***
  2599. --- *** sphorodiamidate intersubunit linkages to ***
  2600. --- *** give a Morpholino. ***
  2601. --- ************************************************
  2602. ---
  2603. CREATE VIEW morpholino_oligo AS
  2604. SELECT
  2605. feature_id AS morpholino_oligo_id,
  2606. feature.*
  2607. FROM
  2608. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2609. WHERE cvterm.name = 'morpholino_oligo';
  2610. --- ************************************************
  2611. --- *** relation: riboswitch ***
  2612. --- *** relation type: VIEW ***
  2613. --- *** ***
  2614. --- *** A riboswitch is a part of an mRNA that c ***
  2615. --- *** an act as a direct sensor of small molec ***
  2616. --- *** ules to control their own expression. A ***
  2617. --- *** riboswitch is a cis element in the 5' en ***
  2618. --- *** d of an mRNA, that acts as a direct sens ***
  2619. --- *** or of metabolites. ***
  2620. --- ************************************************
  2621. ---
  2622. CREATE VIEW riboswitch AS
  2623. SELECT
  2624. feature_id AS riboswitch_id,
  2625. feature.*
  2626. FROM
  2627. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2628. WHERE cvterm.name = 'riboswitch';
  2629. --- ************************************************
  2630. --- *** relation: matrix_attachment_site ***
  2631. --- *** relation type: VIEW ***
  2632. --- *** ***
  2633. --- *** A DNA region that is required for the bi ***
  2634. --- *** nding of chromatin to the nuclear matrix ***
  2635. --- *** . ***
  2636. --- ************************************************
  2637. ---
  2638. CREATE VIEW matrix_attachment_site AS
  2639. SELECT
  2640. feature_id AS matrix_attachment_site_id,
  2641. feature.*
  2642. FROM
  2643. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2644. WHERE cvterm.name = 'matrix_attachment_site';
  2645. --- ************************************************
  2646. --- *** relation: locus_control_region ***
  2647. --- *** relation type: VIEW ***
  2648. --- *** ***
  2649. --- *** A DNA region that includes DNAse hyperse ***
  2650. --- *** nsitive sites located 5' to a gene that ***
  2651. --- *** confers the high-level, position-indepen ***
  2652. --- *** dent, and copy number-dependent expressi ***
  2653. --- *** on to that gene. ***
  2654. --- ************************************************
  2655. ---
  2656. CREATE VIEW locus_control_region AS
  2657. SELECT
  2658. feature_id AS locus_control_region_id,
  2659. feature.*
  2660. FROM
  2661. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2662. WHERE cvterm.name = 'locus_control_region';
  2663. --- ************************************************
  2664. --- *** relation: match_part ***
  2665. --- *** relation type: VIEW ***
  2666. --- *** ***
  2667. --- *** A part of a match, for example an hsp fr ***
  2668. --- *** om blast is a match_part. ***
  2669. --- ************************************************
  2670. ---
  2671. CREATE VIEW match_part AS
  2672. SELECT
  2673. feature_id AS match_part_id,
  2674. feature.*
  2675. FROM
  2676. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2677. WHERE cvterm.name = 'match_part';
  2678. --- ************************************************
  2679. --- *** relation: genomic_clone ***
  2680. --- *** relation type: VIEW ***
  2681. --- *** ***
  2682. --- *** A clone of a DNA region of a genome. ***
  2683. --- ************************************************
  2684. ---
  2685. CREATE VIEW genomic_clone AS
  2686. SELECT
  2687. feature_id AS genomic_clone_id,
  2688. feature.*
  2689. FROM
  2690. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2691. WHERE cvterm.name = 'genomic_clone';
  2692. --- ************************************************
  2693. --- *** relation: processed_pseudogene ***
  2694. --- *** relation type: VIEW ***
  2695. --- *** ***
  2696. --- *** A pseudogene where by an mRNA was retrot ***
  2697. --- *** ransposed. The mRNA sequence is transcri ***
  2698. --- *** bed back into the genome, lacking intron ***
  2699. --- *** s and promoters, but often including a p ***
  2700. --- *** olyA tail. ***
  2701. --- ************************************************
  2702. ---
  2703. CREATE VIEW processed_pseudogene AS
  2704. SELECT
  2705. feature_id AS processed_pseudogene_id,
  2706. feature.*
  2707. FROM
  2708. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2709. WHERE cvterm.name = 'processed_pseudogene';
  2710. --- ************************************************
  2711. --- *** relation: pseudogene_by_unequal_crossing_over ***
  2712. --- *** relation type: VIEW ***
  2713. --- *** ***
  2714. --- *** A pseudogene caused by unequal crossing ***
  2715. --- *** over at recombination. ***
  2716. --- ************************************************
  2717. ---
  2718. CREATE VIEW pseudogene_by_unequal_crossing_over AS
  2719. SELECT
  2720. feature_id AS pseudogene_by_unequal_crossing_over_id,
  2721. feature.*
  2722. FROM
  2723. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2724. WHERE cvterm.name = 'pseudogene_by_unequal_crossing_over';
  2725. --- ************************************************
  2726. --- *** relation: probe ***
  2727. --- *** relation type: VIEW ***
  2728. --- *** ***
  2729. --- *** A DNA sequence used experimentally to de ***
  2730. --- *** tect the presence or absence of a comple ***
  2731. --- *** mentary nucleic acid. ***
  2732. --- ************************************************
  2733. ---
  2734. CREATE VIEW probe AS
  2735. SELECT
  2736. feature_id AS probe_id,
  2737. feature.*
  2738. FROM
  2739. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2740. WHERE cvterm.name = 'microarray_oligo' OR cvterm.name = 'probe';
  2741. --- ************************************************
  2742. --- *** relation: aneuploid ***
  2743. --- *** relation type: VIEW ***
  2744. --- *** ***
  2745. --- *** A kind of chromosome variation where the ***
  2746. --- *** chromosome complement is not an exact m ***
  2747. --- *** ultiple of the haploid number. ***
  2748. --- ************************************************
  2749. ---
  2750. CREATE VIEW aneuploid AS
  2751. SELECT
  2752. feature_id AS aneuploid_id,
  2753. feature.*
  2754. FROM
  2755. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2756. WHERE cvterm.name = 'hyperploid' OR cvterm.name = 'hypoploid' OR cvterm.name = 'aneuploid';
  2757. --- ************************************************
  2758. --- *** relation: hyperploid ***
  2759. --- *** relation type: VIEW ***
  2760. --- *** ***
  2761. --- *** A kind of chromosome variation where the ***
  2762. --- *** chromosome complement is not an exact m ***
  2763. --- *** ultiple of the haploid number as extra c ***
  2764. --- *** hromosomes are present. ***
  2765. --- ************************************************
  2766. ---
  2767. CREATE VIEW hyperploid AS
  2768. SELECT
  2769. feature_id AS hyperploid_id,
  2770. feature.*
  2771. FROM
  2772. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2773. WHERE cvterm.name = 'hyperploid';
  2774. --- ************************************************
  2775. --- *** relation: hypoploid ***
  2776. --- *** relation type: VIEW ***
  2777. --- *** ***
  2778. --- *** A kind of chromosome variation where the ***
  2779. --- *** chromosome complement is not an exact m ***
  2780. --- *** ultiple of the haploid number as some ch ***
  2781. --- *** romosomes are missing. ***
  2782. --- ************************************************
  2783. ---
  2784. CREATE VIEW hypoploid AS
  2785. SELECT
  2786. feature_id AS hypoploid_id,
  2787. feature.*
  2788. FROM
  2789. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2790. WHERE cvterm.name = 'hypoploid';
  2791. --- ************************************************
  2792. --- *** relation: operator ***
  2793. --- *** relation type: VIEW ***
  2794. --- *** ***
  2795. --- *** A regulatory element of an operon to whi ***
  2796. --- *** ch activators or repressors bind thereby ***
  2797. --- *** effecting translation of genes in that ***
  2798. --- *** operon. ***
  2799. --- ************************************************
  2800. ---
  2801. CREATE VIEW operator AS
  2802. SELECT
  2803. feature_id AS operator_id,
  2804. feature.*
  2805. FROM
  2806. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2807. WHERE cvterm.name = 'operator';
  2808. --- ************************************************
  2809. --- *** relation: nuclease_binding_site ***
  2810. --- *** relation type: VIEW ***
  2811. --- *** ***
  2812. --- *** A binding site that, of a nucleotide mol ***
  2813. --- *** ecule, that interacts selectively and no ***
  2814. --- *** n-covalently with polypeptide residues o ***
  2815. --- *** f a nuclease. ***
  2816. --- ************************************************
  2817. ---
  2818. CREATE VIEW nuclease_binding_site AS
  2819. SELECT
  2820. feature_id AS nuclease_binding_site_id,
  2821. feature.*
  2822. FROM
  2823. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2824. 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';
  2825. --- ************************************************
  2826. --- *** relation: compound_chromosome_arm ***
  2827. --- *** relation type: VIEW ***
  2828. --- *** ***
  2829. --- ************************************************
  2830. ---
  2831. CREATE VIEW compound_chromosome_arm AS
  2832. SELECT
  2833. feature_id AS compound_chromosome_arm_id,
  2834. feature.*
  2835. FROM
  2836. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2837. WHERE cvterm.name = 'compound_chromosome_arm';
  2838. --- ************************************************
  2839. --- *** relation: restriction_enzyme_binding_site ***
  2840. --- *** relation type: VIEW ***
  2841. --- *** ***
  2842. --- *** A binding site that, in the nucleotide m ***
  2843. --- *** olecule, interacts selectively and non-c ***
  2844. --- *** ovalently with polypeptide residues of a ***
  2845. --- *** restriction enzyme. ***
  2846. --- ************************************************
  2847. ---
  2848. CREATE VIEW restriction_enzyme_binding_site AS
  2849. SELECT
  2850. feature_id AS restriction_enzyme_binding_site_id,
  2851. feature.*
  2852. FROM
  2853. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2854. WHERE cvterm.name = 'restriction_enzyme_binding_site';
  2855. --- ************************************************
  2856. --- *** relation: d_intrachr_transposition ***
  2857. --- *** relation type: VIEW ***
  2858. --- *** ***
  2859. --- *** An intrachromosomal transposition whereb ***
  2860. --- *** y a translocation in which one of the fo ***
  2861. --- *** ur broken ends loses a segment before re ***
  2862. --- *** -joining. ***
  2863. --- ************************************************
  2864. ---
  2865. CREATE VIEW d_intrachr_transposition AS
  2866. SELECT
  2867. feature_id AS d_intrachr_transposition_id,
  2868. feature.*
  2869. FROM
  2870. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2871. WHERE cvterm.name = 'deficient_intrachromosomal_transposition';
  2872. --- ************************************************
  2873. --- *** relation: d_interchr_transposition ***
  2874. --- *** relation type: VIEW ***
  2875. --- *** ***
  2876. --- *** An interchromosomal transposition whereb ***
  2877. --- *** y a translocation in which one of the fo ***
  2878. --- *** ur broken ends loses a segment before re ***
  2879. --- *** -joining. ***
  2880. --- ************************************************
  2881. ---
  2882. CREATE VIEW d_interchr_transposition AS
  2883. SELECT
  2884. feature_id AS d_interchr_transposition_id,
  2885. feature.*
  2886. FROM
  2887. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2888. WHERE cvterm.name = 'deficient_interchromosomal_transposition';
  2889. --- ************************************************
  2890. --- *** relation: free_chromosome_arm ***
  2891. --- *** relation type: VIEW ***
  2892. --- *** ***
  2893. --- *** A chromosome structure variation whereby ***
  2894. --- *** an arm exists as an individual chromoso ***
  2895. --- *** me element. ***
  2896. --- ************************************************
  2897. ---
  2898. CREATE VIEW free_chromosome_arm AS
  2899. SELECT
  2900. feature_id AS free_chromosome_arm_id,
  2901. feature.*
  2902. FROM
  2903. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2904. WHERE cvterm.name = 'free_chromosome_arm';
  2905. --- ************************************************
  2906. --- *** relation: gene_to_gene_feature ***
  2907. --- *** relation type: VIEW ***
  2908. --- *** ***
  2909. --- ************************************************
  2910. ---
  2911. CREATE VIEW gene_to_gene_feature AS
  2912. SELECT
  2913. feature_id AS gene_to_gene_feature_id,
  2914. feature.*
  2915. FROM
  2916. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2917. 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';
  2918. --- ************************************************
  2919. --- *** relation: overlapping ***
  2920. --- *** relation type: VIEW ***
  2921. --- *** ***
  2922. --- *** An attribute describing a gene that has ***
  2923. --- *** a sequence that overlaps the sequence of ***
  2924. --- *** another gene. ***
  2925. --- ************************************************
  2926. ---
  2927. CREATE VIEW overlapping AS
  2928. SELECT
  2929. feature_id AS overlapping_id,
  2930. feature.*
  2931. FROM
  2932. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2933. 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';
  2934. --- ************************************************
  2935. --- *** relation: inside_intron ***
  2936. --- *** relation type: VIEW ***
  2937. --- *** ***
  2938. --- *** An attribute to describe a gene when it ***
  2939. --- *** is located within the intron of another ***
  2940. --- *** gene. ***
  2941. --- ************************************************
  2942. ---
  2943. CREATE VIEW inside_intron AS
  2944. SELECT
  2945. feature_id AS inside_intron_id,
  2946. feature.*
  2947. FROM
  2948. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2949. WHERE cvterm.name = 'inside_intron_antiparallel' OR cvterm.name = 'inside_intron_parallel' OR cvterm.name = 'inside_intron';
  2950. --- ************************************************
  2951. --- *** relation: inside_intron_antiparallel ***
  2952. --- *** relation type: VIEW ***
  2953. --- *** ***
  2954. --- *** An attribute to describe a gene when it ***
  2955. --- *** is located within the intron of another ***
  2956. --- *** gene and on the opposite strand. ***
  2957. --- ************************************************
  2958. ---
  2959. CREATE VIEW inside_intron_antiparallel AS
  2960. SELECT
  2961. feature_id AS inside_intron_antiparallel_id,
  2962. feature.*
  2963. FROM
  2964. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2965. WHERE cvterm.name = 'inside_intron_antiparallel';
  2966. --- ************************************************
  2967. --- *** relation: inside_intron_parallel ***
  2968. --- *** relation type: VIEW ***
  2969. --- *** ***
  2970. --- *** An attribute to describe a gene when it ***
  2971. --- *** is located within the intron of another ***
  2972. --- *** gene and on the same strand. ***
  2973. --- ************************************************
  2974. ---
  2975. CREATE VIEW inside_intron_parallel AS
  2976. SELECT
  2977. feature_id AS inside_intron_parallel_id,
  2978. feature.*
  2979. FROM
  2980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2981. WHERE cvterm.name = 'inside_intron_parallel';
  2982. --- ************************************************
  2983. --- *** relation: five_prime_three_prime_overlap ***
  2984. --- *** relation type: VIEW ***
  2985. --- *** ***
  2986. --- *** An attribute to describe a gene when the ***
  2987. --- *** five prime region overlaps with another ***
  2988. --- *** gene's 3' region. ***
  2989. --- ************************************************
  2990. ---
  2991. CREATE VIEW five_prime_three_prime_overlap AS
  2992. SELECT
  2993. feature_id AS five_prime_three_prime_overlap_id,
  2994. feature.*
  2995. FROM
  2996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  2997. WHERE cvterm.name = 'five_prime_three_prime_overlap';
  2998. --- ************************************************
  2999. --- *** relation: five_prime_five_prime_overlap ***
  3000. --- *** relation type: VIEW ***
  3001. --- *** ***
  3002. --- *** An attribute to describe a gene when the ***
  3003. --- *** five prime region overlaps with another ***
  3004. --- *** gene's five prime region. ***
  3005. --- ************************************************
  3006. ---
  3007. CREATE VIEW five_prime_five_prime_overlap AS
  3008. SELECT
  3009. feature_id AS five_prime_five_prime_overlap_id,
  3010. feature.*
  3011. FROM
  3012. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3013. WHERE cvterm.name = 'five_prime_five_prime_overlap';
  3014. --- ************************************************
  3015. --- *** relation: three_prime_three_prime_overlap ***
  3016. --- *** relation type: VIEW ***
  3017. --- *** ***
  3018. --- *** An attribute to describe a gene when the ***
  3019. --- *** 3' region overlaps with another gene's ***
  3020. --- *** 3' region. ***
  3021. --- ************************************************
  3022. ---
  3023. CREATE VIEW three_prime_three_prime_overlap AS
  3024. SELECT
  3025. feature_id AS three_prime_three_prime_overlap_id,
  3026. feature.*
  3027. FROM
  3028. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3029. WHERE cvterm.name = 'three_prime_three_prime_overlap';
  3030. --- ************************************************
  3031. --- *** relation: three_prime_five_prime_overlap ***
  3032. --- *** relation type: VIEW ***
  3033. --- *** ***
  3034. --- *** An attribute to describe a gene when the ***
  3035. --- *** 3' region overlaps with another gene's ***
  3036. --- *** 5' region. ***
  3037. --- ************************************************
  3038. ---
  3039. CREATE VIEW three_prime_five_prime_overlap AS
  3040. SELECT
  3041. feature_id AS three_prime_five_prime_overlap_id,
  3042. feature.*
  3043. FROM
  3044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3045. WHERE cvterm.name = 'three_prime_five_prime_overlap';
  3046. --- ************************************************
  3047. --- *** relation: antisense ***
  3048. --- *** relation type: VIEW ***
  3049. --- *** ***
  3050. --- *** A region sequence that is complementary ***
  3051. --- *** to a sequence of messenger RNA. ***
  3052. --- ************************************************
  3053. ---
  3054. CREATE VIEW antisense AS
  3055. SELECT
  3056. feature_id AS antisense_id,
  3057. feature.*
  3058. FROM
  3059. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3060. WHERE cvterm.name = 'antisense';
  3061. --- ************************************************
  3062. --- *** relation: polycistronic_transcript ***
  3063. --- *** relation type: VIEW ***
  3064. --- *** ***
  3065. --- *** A transcript that is polycistronic. ***
  3066. --- ************************************************
  3067. ---
  3068. CREATE VIEW polycistronic_transcript AS
  3069. SELECT
  3070. feature_id AS polycistronic_transcript_id,
  3071. feature.*
  3072. FROM
  3073. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3074. 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';
  3075. --- ************************************************
  3076. --- *** relation: dicistronic_transcript ***
  3077. --- *** relation type: VIEW ***
  3078. --- *** ***
  3079. --- *** A transcript that is dicistronic. ***
  3080. --- ************************************************
  3081. ---
  3082. CREATE VIEW dicistronic_transcript AS
  3083. SELECT
  3084. feature_id AS dicistronic_transcript_id,
  3085. feature.*
  3086. FROM
  3087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3088. WHERE cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'dicistronic_transcript';
  3089. --- ************************************************
  3090. --- *** relation: operon_member ***
  3091. --- *** relation type: VIEW ***
  3092. --- *** ***
  3093. --- ************************************************
  3094. ---
  3095. CREATE VIEW operon_member AS
  3096. SELECT
  3097. feature_id AS operon_member_id,
  3098. feature.*
  3099. FROM
  3100. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3101. WHERE cvterm.name = 'operon_member';
  3102. --- ************************************************
  3103. --- *** relation: gene_array_member ***
  3104. --- *** relation type: VIEW ***
  3105. --- *** ***
  3106. --- ************************************************
  3107. ---
  3108. CREATE VIEW gene_array_member AS
  3109. SELECT
  3110. feature_id AS gene_array_member_id,
  3111. feature.*
  3112. FROM
  3113. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3114. 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';
  3115. --- ************************************************
  3116. --- *** relation: macronuclear_sequence ***
  3117. --- *** relation type: VIEW ***
  3118. --- *** ***
  3119. --- ************************************************
  3120. ---
  3121. CREATE VIEW macronuclear_sequence AS
  3122. SELECT
  3123. feature_id AS macronuclear_sequence_id,
  3124. feature.*
  3125. FROM
  3126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3127. WHERE cvterm.name = 'macronuclear_sequence';
  3128. --- ************************************************
  3129. --- *** relation: micronuclear_sequence ***
  3130. --- *** relation type: VIEW ***
  3131. --- *** ***
  3132. --- ************************************************
  3133. ---
  3134. CREATE VIEW micronuclear_sequence AS
  3135. SELECT
  3136. feature_id AS micronuclear_sequence_id,
  3137. feature.*
  3138. FROM
  3139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3140. WHERE cvterm.name = 'micronuclear_sequence';
  3141. --- ************************************************
  3142. --- *** relation: nuclear_gene ***
  3143. --- *** relation type: VIEW ***
  3144. --- *** ***
  3145. --- *** A gene from nuclear sequence. ***
  3146. --- ************************************************
  3147. ---
  3148. CREATE VIEW nuclear_gene AS
  3149. SELECT
  3150. feature_id AS nuclear_gene_id,
  3151. feature.*
  3152. FROM
  3153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3154. WHERE cvterm.name = 'nuclear_gene';
  3155. --- ************************************************
  3156. --- *** relation: mt_gene ***
  3157. --- *** relation type: VIEW ***
  3158. --- *** ***
  3159. --- *** A gene located in mitochondrial sequence ***
  3160. --- *** . ***
  3161. --- ************************************************
  3162. ---
  3163. CREATE VIEW mt_gene AS
  3164. SELECT
  3165. feature_id AS mt_gene_id,
  3166. feature.*
  3167. FROM
  3168. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3169. WHERE cvterm.name = 'kinetoplast_gene' OR cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'mt_gene';
  3170. --- ************************************************
  3171. --- *** relation: kinetoplast_gene ***
  3172. --- *** relation type: VIEW ***
  3173. --- *** ***
  3174. --- *** A gene located in kinetoplast sequence. ***
  3175. --- ************************************************
  3176. ---
  3177. CREATE VIEW kinetoplast_gene AS
  3178. SELECT
  3179. feature_id AS kinetoplast_gene_id,
  3180. feature.*
  3181. FROM
  3182. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3183. WHERE cvterm.name = 'maxicircle_gene' OR cvterm.name = 'minicircle_gene' OR cvterm.name = 'cryptogene' OR cvterm.name = 'kinetoplast_gene';
  3184. --- ************************************************
  3185. --- *** relation: plastid_gene ***
  3186. --- *** relation type: VIEW ***
  3187. --- *** ***
  3188. --- *** A gene from plastid sequence. ***
  3189. --- ************************************************
  3190. ---
  3191. CREATE VIEW plastid_gene AS
  3192. SELECT
  3193. feature_id AS plastid_gene_id,
  3194. feature.*
  3195. FROM
  3196. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3197. 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';
  3198. --- ************************************************
  3199. --- *** relation: apicoplast_gene ***
  3200. --- *** relation type: VIEW ***
  3201. --- *** ***
  3202. --- *** A gene from apicoplast sequence. ***
  3203. --- ************************************************
  3204. ---
  3205. CREATE VIEW apicoplast_gene AS
  3206. SELECT
  3207. feature_id AS apicoplast_gene_id,
  3208. feature.*
  3209. FROM
  3210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3211. WHERE cvterm.name = 'apicoplast_gene';
  3212. --- ************************************************
  3213. --- *** relation: ct_gene ***
  3214. --- *** relation type: VIEW ***
  3215. --- *** ***
  3216. --- *** A gene from chloroplast sequence. ***
  3217. --- ************************************************
  3218. ---
  3219. CREATE VIEW ct_gene AS
  3220. SELECT
  3221. feature_id AS ct_gene_id,
  3222. feature.*
  3223. FROM
  3224. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3225. WHERE cvterm.name = 'ct_gene';
  3226. --- ************************************************
  3227. --- *** relation: chromoplast_gene ***
  3228. --- *** relation type: VIEW ***
  3229. --- *** ***
  3230. --- *** A gene from chromoplast_sequence. ***
  3231. --- ************************************************
  3232. ---
  3233. CREATE VIEW chromoplast_gene AS
  3234. SELECT
  3235. feature_id AS chromoplast_gene_id,
  3236. feature.*
  3237. FROM
  3238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3239. WHERE cvterm.name = 'chromoplast_gene';
  3240. --- ************************************************
  3241. --- *** relation: cyanelle_gene ***
  3242. --- *** relation type: VIEW ***
  3243. --- *** ***
  3244. --- *** A gene from cyanelle sequence. ***
  3245. --- ************************************************
  3246. ---
  3247. CREATE VIEW cyanelle_gene AS
  3248. SELECT
  3249. feature_id AS cyanelle_gene_id,
  3250. feature.*
  3251. FROM
  3252. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3253. WHERE cvterm.name = 'cyanelle_gene';
  3254. --- ************************************************
  3255. --- *** relation: leucoplast_gene ***
  3256. --- *** relation type: VIEW ***
  3257. --- *** ***
  3258. --- *** A plastid gene from leucoplast sequence. ***
  3259. --- ************************************************
  3260. ---
  3261. CREATE VIEW leucoplast_gene AS
  3262. SELECT
  3263. feature_id AS leucoplast_gene_id,
  3264. feature.*
  3265. FROM
  3266. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3267. WHERE cvterm.name = 'leucoplast_gene';
  3268. --- ************************************************
  3269. --- *** relation: proplastid_gene ***
  3270. --- *** relation type: VIEW ***
  3271. --- *** ***
  3272. --- *** A gene from proplastid sequence. ***
  3273. --- ************************************************
  3274. ---
  3275. CREATE VIEW proplastid_gene AS
  3276. SELECT
  3277. feature_id AS proplastid_gene_id,
  3278. feature.*
  3279. FROM
  3280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3281. WHERE cvterm.name = 'proplastid_gene';
  3282. --- ************************************************
  3283. --- *** relation: nucleomorph_gene ***
  3284. --- *** relation type: VIEW ***
  3285. --- *** ***
  3286. --- *** A gene from nucleomorph sequence. ***
  3287. --- ************************************************
  3288. ---
  3289. CREATE VIEW nucleomorph_gene AS
  3290. SELECT
  3291. feature_id AS nucleomorph_gene_id,
  3292. feature.*
  3293. FROM
  3294. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3295. WHERE cvterm.name = 'nucleomorph_gene';
  3296. --- ************************************************
  3297. --- *** relation: plasmid_gene ***
  3298. --- *** relation type: VIEW ***
  3299. --- *** ***
  3300. --- *** A gene from plasmid sequence. ***
  3301. --- ************************************************
  3302. ---
  3303. CREATE VIEW plasmid_gene AS
  3304. SELECT
  3305. feature_id AS plasmid_gene_id,
  3306. feature.*
  3307. FROM
  3308. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3309. WHERE cvterm.name = 'plasmid_gene';
  3310. --- ************************************************
  3311. --- *** relation: proviral_gene ***
  3312. --- *** relation type: VIEW ***
  3313. --- *** ***
  3314. --- *** A gene from proviral sequence. ***
  3315. --- ************************************************
  3316. ---
  3317. CREATE VIEW proviral_gene AS
  3318. SELECT
  3319. feature_id AS proviral_gene_id,
  3320. feature.*
  3321. FROM
  3322. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3323. WHERE cvterm.name = 'endogenous_retroviral_gene' OR cvterm.name = 'proviral_gene';
  3324. --- ************************************************
  3325. --- *** relation: endogenous_retroviral_gene ***
  3326. --- *** relation type: VIEW ***
  3327. --- *** ***
  3328. --- *** A proviral gene with origin endogenous r ***
  3329. --- *** etrovirus. ***
  3330. --- ************************************************
  3331. ---
  3332. CREATE VIEW endogenous_retroviral_gene AS
  3333. SELECT
  3334. feature_id AS endogenous_retroviral_gene_id,
  3335. feature.*
  3336. FROM
  3337. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3338. WHERE cvterm.name = 'endogenous_retroviral_gene';
  3339. --- ************************************************
  3340. --- *** relation: transposable_element ***
  3341. --- *** relation type: VIEW ***
  3342. --- *** ***
  3343. --- *** A transposon or insertion sequence. An e ***
  3344. --- *** lement that can insert in a variety of D ***
  3345. --- *** NA sequences. ***
  3346. --- ************************************************
  3347. ---
  3348. CREATE VIEW transposable_element AS
  3349. SELECT
  3350. feature_id AS transposable_element_id,
  3351. feature.*
  3352. FROM
  3353. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3354. 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';
  3355. --- ************************************************
  3356. --- *** relation: expressed_sequence_match ***
  3357. --- *** relation type: VIEW ***
  3358. --- *** ***
  3359. --- *** A match to an EST or cDNA sequence. ***
  3360. --- ************************************************
  3361. ---
  3362. CREATE VIEW expressed_sequence_match AS
  3363. SELECT
  3364. feature_id AS expressed_sequence_match_id,
  3365. feature.*
  3366. FROM
  3367. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3368. 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';
  3369. --- ************************************************
  3370. --- *** relation: clone_insert_end ***
  3371. --- *** relation type: VIEW ***
  3372. --- *** ***
  3373. --- *** The end of the clone insert. ***
  3374. --- ************************************************
  3375. ---
  3376. CREATE VIEW clone_insert_end AS
  3377. SELECT
  3378. feature_id AS clone_insert_end_id,
  3379. feature.*
  3380. FROM
  3381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3382. WHERE cvterm.name = 'clone_insert_end';
  3383. --- ************************************************
  3384. --- *** relation: polypeptide ***
  3385. --- *** relation type: VIEW ***
  3386. --- *** ***
  3387. --- *** A sequence of amino acids linked by pept ***
  3388. --- *** ide bonds which may lack appreciable ter ***
  3389. --- *** tiary structure and may not be liable to ***
  3390. --- *** irreversible denaturation. ***
  3391. --- ************************************************
  3392. ---
  3393. CREATE VIEW polypeptide AS
  3394. SELECT
  3395. feature_id AS polypeptide_id,
  3396. feature.*
  3397. FROM
  3398. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3399. WHERE cvterm.name = 'polypeptide';
  3400. --- ************************************************
  3401. --- *** relation: chromosome_arm ***
  3402. --- *** relation type: VIEW ***
  3403. --- *** ***
  3404. --- *** A region of the chromosome between the c ***
  3405. --- *** entromere and the telomere. Human chromo ***
  3406. --- *** somes have two arms, the p arm (short) a ***
  3407. --- *** nd the q arm (long) which are separated ***
  3408. --- *** from each other by the centromere. ***
  3409. --- ************************************************
  3410. ---
  3411. CREATE VIEW chromosome_arm AS
  3412. SELECT
  3413. feature_id AS chromosome_arm_id,
  3414. feature.*
  3415. FROM
  3416. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3417. WHERE cvterm.name = 'chromosome_arm';
  3418. --- ************************************************
  3419. --- *** relation: sequencing_primer ***
  3420. --- *** relation type: VIEW ***
  3421. --- *** ***
  3422. --- ************************************************
  3423. ---
  3424. CREATE VIEW sequencing_primer AS
  3425. SELECT
  3426. feature_id AS sequencing_primer_id,
  3427. feature.*
  3428. FROM
  3429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3430. WHERE cvterm.name = 'sequencing_primer';
  3431. --- ************************************************
  3432. --- *** relation: mrna_with_frameshift ***
  3433. --- *** relation type: VIEW ***
  3434. --- *** ***
  3435. --- *** An mRNA with a frameshift. ***
  3436. --- ************************************************
  3437. ---
  3438. CREATE VIEW mrna_with_frameshift AS
  3439. SELECT
  3440. feature_id AS mrna_with_frameshift_id,
  3441. feature.*
  3442. FROM
  3443. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3444. 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';
  3445. --- ************************************************
  3446. --- *** relation: sequence_feature ***
  3447. --- *** relation type: VIEW ***
  3448. --- *** ***
  3449. --- *** An extent of biological sequence. ***
  3450. --- ************************************************
  3451. ---
  3452. CREATE VIEW sequence_feature AS
  3453. SELECT
  3454. feature_id AS sequence_feature_id,
  3455. feature.*
  3456. FROM
  3457. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3458. 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';
  3459. --- ************************************************
  3460. --- *** relation: transposable_element_gene ***
  3461. --- *** relation type: VIEW ***
  3462. --- *** ***
  3463. --- *** A gene encoded within a transposable ele ***
  3464. --- *** ment. For example gag, int, env and pol ***
  3465. --- *** are the transposable element genes of th ***
  3466. --- *** e TY element in yeast. ***
  3467. --- ************************************************
  3468. ---
  3469. CREATE VIEW transposable_element_gene AS
  3470. SELECT
  3471. feature_id AS transposable_element_gene_id,
  3472. feature.*
  3473. FROM
  3474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3475. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'transposable_element_gene';
  3476. --- ************************************************
  3477. --- *** relation: primer ***
  3478. --- *** relation type: VIEW ***
  3479. --- *** ***
  3480. --- *** An oligo to which new deoxyribonucleotid ***
  3481. --- *** es can be added by DNA polymerase. ***
  3482. --- ************************************************
  3483. ---
  3484. CREATE VIEW primer AS
  3485. SELECT
  3486. feature_id AS primer_id,
  3487. feature.*
  3488. FROM
  3489. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3490. 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';
  3491. --- ************************************************
  3492. --- *** relation: proviral_region ***
  3493. --- *** relation type: VIEW ***
  3494. --- *** ***
  3495. --- *** A viral sequence which has integrated in ***
  3496. --- *** to a host genome. ***
  3497. --- ************************************************
  3498. ---
  3499. CREATE VIEW proviral_region AS
  3500. SELECT
  3501. feature_id AS proviral_region_id,
  3502. feature.*
  3503. FROM
  3504. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3505. WHERE cvterm.name = 'prophage' OR cvterm.name = 'proviral_region';
  3506. --- ************************************************
  3507. --- *** relation: methylated_c ***
  3508. --- *** relation type: VIEW ***
  3509. --- *** ***
  3510. --- *** A methylated deoxy-cytosine. ***
  3511. --- ************************************************
  3512. ---
  3513. CREATE VIEW methylated_c AS
  3514. SELECT
  3515. feature_id AS methylated_c_id,
  3516. feature.*
  3517. FROM
  3518. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3519. WHERE cvterm.name = 'methylated_C';
  3520. --- ************************************************
  3521. --- *** relation: edited ***
  3522. --- *** relation type: VIEW ***
  3523. --- *** ***
  3524. --- *** An attribute describing a sequence that ***
  3525. --- *** is modified by editing. ***
  3526. --- ************************************************
  3527. ---
  3528. CREATE VIEW edited AS
  3529. SELECT
  3530. feature_id AS edited_id,
  3531. feature.*
  3532. FROM
  3533. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3534. WHERE cvterm.name = 'edited';
  3535. --- ************************************************
  3536. --- *** relation: transcript_with_translational_frameshift ***
  3537. --- *** relation type: VIEW ***
  3538. --- *** ***
  3539. --- *** A transcript with a translational frames ***
  3540. --- *** hift. ***
  3541. --- ************************************************
  3542. ---
  3543. CREATE VIEW transcript_with_translational_frameshift AS
  3544. SELECT
  3545. feature_id AS transcript_with_translational_frameshift_id,
  3546. feature.*
  3547. FROM
  3548. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3549. WHERE cvterm.name = 'transcript_with_translational_frameshift';
  3550. --- ************************************************
  3551. --- *** relation: regulated ***
  3552. --- *** relation type: VIEW ***
  3553. --- *** ***
  3554. --- *** An attribute to describe a sequence that ***
  3555. --- *** is regulated. ***
  3556. --- ************************************************
  3557. ---
  3558. CREATE VIEW regulated AS
  3559. SELECT
  3560. feature_id AS regulated_id,
  3561. feature.*
  3562. FROM
  3563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3564. 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';
  3565. --- ************************************************
  3566. --- *** relation: protein_coding_primary_transcript ***
  3567. --- *** relation type: VIEW ***
  3568. --- *** ***
  3569. --- *** A primary transcript that, at least in p ***
  3570. --- *** art, encodes one or more proteins. ***
  3571. --- ************************************************
  3572. ---
  3573. CREATE VIEW protein_coding_primary_transcript AS
  3574. SELECT
  3575. feature_id AS protein_coding_primary_transcript_id,
  3576. feature.*
  3577. FROM
  3578. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3579. WHERE cvterm.name = 'pre_edited_mRNA' OR cvterm.name = 'protein_coding_primary_transcript';
  3580. --- ************************************************
  3581. --- *** relation: forward_primer ***
  3582. --- *** relation type: VIEW ***
  3583. --- *** ***
  3584. --- *** A single stranded oligo used for polymer ***
  3585. --- *** ase chain reaction. ***
  3586. --- ************************************************
  3587. ---
  3588. CREATE VIEW forward_primer AS
  3589. SELECT
  3590. feature_id AS forward_primer_id,
  3591. feature.*
  3592. FROM
  3593. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3594. WHERE cvterm.name = 'forward_primer';
  3595. --- ************************************************
  3596. --- *** relation: rna_sequence_secondary_structure ***
  3597. --- *** relation type: VIEW ***
  3598. --- *** ***
  3599. --- *** A folded RNA sequence. ***
  3600. --- ************************************************
  3601. ---
  3602. CREATE VIEW rna_sequence_secondary_structure AS
  3603. SELECT
  3604. feature_id AS rna_sequence_secondary_structure_id,
  3605. feature.*
  3606. FROM
  3607. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3608. WHERE cvterm.name = 'stem_loop' OR cvterm.name = 'tetraloop' OR cvterm.name = 'RNA_sequence_secondary_structure';
  3609. --- ************************************************
  3610. --- *** relation: transcriptionally_regulated ***
  3611. --- *** relation type: VIEW ***
  3612. --- *** ***
  3613. --- *** An attribute describing a gene that is r ***
  3614. --- *** egulated at transcription. ***
  3615. --- ************************************************
  3616. ---
  3617. CREATE VIEW transcriptionally_regulated AS
  3618. SELECT
  3619. feature_id AS transcriptionally_regulated_id,
  3620. feature.*
  3621. FROM
  3622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3623. 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';
  3624. --- ************************************************
  3625. --- *** relation: transcriptionally_constitutive ***
  3626. --- *** relation type: VIEW ***
  3627. --- *** ***
  3628. --- *** Expressed in relatively constant amounts ***
  3629. --- *** without regard to cellular environmenta ***
  3630. --- *** l conditions such as the concentration o ***
  3631. --- *** f a particular substrate. ***
  3632. --- ************************************************
  3633. ---
  3634. CREATE VIEW transcriptionally_constitutive AS
  3635. SELECT
  3636. feature_id AS transcriptionally_constitutive_id,
  3637. feature.*
  3638. FROM
  3639. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3640. WHERE cvterm.name = 'transcriptionally_constitutive';
  3641. --- ************************************************
  3642. --- *** relation: transcriptionally_induced ***
  3643. --- *** relation type: VIEW ***
  3644. --- *** ***
  3645. --- *** An inducer molecule is required for tran ***
  3646. --- *** scription to occur. ***
  3647. --- ************************************************
  3648. ---
  3649. CREATE VIEW transcriptionally_induced AS
  3650. SELECT
  3651. feature_id AS transcriptionally_induced_id,
  3652. feature.*
  3653. FROM
  3654. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3655. WHERE cvterm.name = 'positively_autoregulated' OR cvterm.name = 'transcriptionally_induced';
  3656. --- ************************************************
  3657. --- *** relation: transcriptionally_repressed ***
  3658. --- *** relation type: VIEW ***
  3659. --- *** ***
  3660. --- *** A repressor molecule is required for tra ***
  3661. --- *** nscription to stop. ***
  3662. --- ************************************************
  3663. ---
  3664. CREATE VIEW transcriptionally_repressed AS
  3665. SELECT
  3666. feature_id AS transcriptionally_repressed_id,
  3667. feature.*
  3668. FROM
  3669. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3670. 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';
  3671. --- ************************************************
  3672. --- *** relation: silenced_gene ***
  3673. --- *** relation type: VIEW ***
  3674. --- *** ***
  3675. --- *** A gene that is silenced. ***
  3676. --- ************************************************
  3677. ---
  3678. CREATE VIEW silenced_gene AS
  3679. SELECT
  3680. feature_id AS silenced_gene_id,
  3681. feature.*
  3682. FROM
  3683. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3684. 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';
  3685. --- ************************************************
  3686. --- *** relation: gene_silenced_by_dna_modification ***
  3687. --- *** relation type: VIEW ***
  3688. --- *** ***
  3689. --- *** A gene that is silenced by DNA modificat ***
  3690. --- *** ion. ***
  3691. --- ************************************************
  3692. ---
  3693. CREATE VIEW gene_silenced_by_dna_modification AS
  3694. SELECT
  3695. feature_id AS gene_silenced_by_dna_modification_id,
  3696. feature.*
  3697. FROM
  3698. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3699. WHERE cvterm.name = 'gene_silenced_by_DNA_methylation' OR cvterm.name = 'gene_silenced_by_DNA_modification';
  3700. --- ************************************************
  3701. --- *** relation: gene_silenced_by_dna_methylation ***
  3702. --- *** relation type: VIEW ***
  3703. --- *** ***
  3704. --- *** A gene that is silenced by DNA methylati ***
  3705. --- *** on. ***
  3706. --- ************************************************
  3707. ---
  3708. CREATE VIEW gene_silenced_by_dna_methylation AS
  3709. SELECT
  3710. feature_id AS gene_silenced_by_dna_methylation_id,
  3711. feature.*
  3712. FROM
  3713. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3714. WHERE cvterm.name = 'gene_silenced_by_DNA_methylation';
  3715. --- ************************************************
  3716. --- *** relation: post_translationally_regulated ***
  3717. --- *** relation type: VIEW ***
  3718. --- *** ***
  3719. --- *** An attribute describing a gene that is r ***
  3720. --- *** egulated after it has been translated. ***
  3721. --- ************************************************
  3722. ---
  3723. CREATE VIEW post_translationally_regulated AS
  3724. SELECT
  3725. feature_id AS post_translationally_regulated_id,
  3726. feature.*
  3727. FROM
  3728. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3729. WHERE cvterm.name = 'post_translationally_regulated_by_protein_stability' OR cvterm.name = 'post_translationally_regulated_by_protein_modification' OR cvterm.name = 'post_translationally_regulated';
  3730. --- ************************************************
  3731. --- *** relation: translationally_regulated ***
  3732. --- *** relation type: VIEW ***
  3733. --- *** ***
  3734. --- *** An attribute describing a gene that is r ***
  3735. --- *** egulated as it is translated. ***
  3736. --- ************************************************
  3737. ---
  3738. CREATE VIEW translationally_regulated AS
  3739. SELECT
  3740. feature_id AS translationally_regulated_id,
  3741. feature.*
  3742. FROM
  3743. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3744. WHERE cvterm.name = 'translationally_regulated';
  3745. --- ************************************************
  3746. --- *** relation: reverse_primer ***
  3747. --- *** relation type: VIEW ***
  3748. --- *** ***
  3749. --- *** A single stranded oligo used for polymer ***
  3750. --- *** ase chain reaction. ***
  3751. --- ************************************************
  3752. ---
  3753. CREATE VIEW reverse_primer AS
  3754. SELECT
  3755. feature_id AS reverse_primer_id,
  3756. feature.*
  3757. FROM
  3758. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3759. WHERE cvterm.name = 'reverse_primer';
  3760. --- ************************************************
  3761. --- *** relation: epigenetically_modified ***
  3762. --- *** relation type: VIEW ***
  3763. --- *** ***
  3764. --- *** This attribute describes a gene where he ***
  3765. --- *** ritable changes other than those in the ***
  3766. --- *** DNA sequence occur. These changes includ ***
  3767. --- *** e: modification to the DNA (such as DNA ***
  3768. --- *** methylation, the covalent modification o ***
  3769. --- *** f cytosine), and post-translational modi ***
  3770. --- *** fication of histones. ***
  3771. --- ************************************************
  3772. ---
  3773. CREATE VIEW epigenetically_modified AS
  3774. SELECT
  3775. feature_id AS epigenetically_modified_id,
  3776. feature.*
  3777. FROM
  3778. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3779. 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';
  3780. --- ************************************************
  3781. --- *** relation: imprinted ***
  3782. --- *** relation type: VIEW ***
  3783. --- *** ***
  3784. --- *** Imprinted genes are epigenetically modif ***
  3785. --- *** ied genes that are expressed monoallelic ***
  3786. --- *** ally according to their parent of origin ***
  3787. --- *** . ***
  3788. --- ************************************************
  3789. ---
  3790. CREATE VIEW imprinted AS
  3791. SELECT
  3792. feature_id AS imprinted_id,
  3793. feature.*
  3794. FROM
  3795. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3796. WHERE cvterm.name = 'maternally_imprinted' OR cvterm.name = 'paternally_imprinted' OR cvterm.name = 'imprinted';
  3797. --- ************************************************
  3798. --- *** relation: maternally_imprinted ***
  3799. --- *** relation type: VIEW ***
  3800. --- *** ***
  3801. --- *** The maternal copy of the gene is modifie ***
  3802. --- *** d, rendering it transcriptionally silent ***
  3803. --- *** . ***
  3804. --- ************************************************
  3805. ---
  3806. CREATE VIEW maternally_imprinted AS
  3807. SELECT
  3808. feature_id AS maternally_imprinted_id,
  3809. feature.*
  3810. FROM
  3811. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3812. WHERE cvterm.name = 'maternally_imprinted';
  3813. --- ************************************************
  3814. --- *** relation: paternally_imprinted ***
  3815. --- *** relation type: VIEW ***
  3816. --- *** ***
  3817. --- *** The paternal copy of the gene is modifie ***
  3818. --- *** d, rendering it transcriptionally silent ***
  3819. --- *** . ***
  3820. --- ************************************************
  3821. ---
  3822. CREATE VIEW paternally_imprinted AS
  3823. SELECT
  3824. feature_id AS paternally_imprinted_id,
  3825. feature.*
  3826. FROM
  3827. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3828. WHERE cvterm.name = 'paternally_imprinted';
  3829. --- ************************************************
  3830. --- *** relation: allelically_excluded ***
  3831. --- *** relation type: VIEW ***
  3832. --- *** ***
  3833. --- *** Allelic exclusion is a process occurring ***
  3834. --- *** in diploid organisms, where a gene is i ***
  3835. --- *** nactivated and not expressed in that cel ***
  3836. --- *** l. ***
  3837. --- ************************************************
  3838. ---
  3839. CREATE VIEW allelically_excluded AS
  3840. SELECT
  3841. feature_id AS allelically_excluded_id,
  3842. feature.*
  3843. FROM
  3844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3845. WHERE cvterm.name = 'allelically_excluded';
  3846. --- ************************************************
  3847. --- *** relation: gene_rearranged_at_dna_level ***
  3848. --- *** relation type: VIEW ***
  3849. --- *** ***
  3850. --- *** An epigenetically modified gene, rearran ***
  3851. --- *** ged at the DNA level. ***
  3852. --- ************************************************
  3853. ---
  3854. CREATE VIEW gene_rearranged_at_dna_level AS
  3855. SELECT
  3856. feature_id AS gene_rearranged_at_dna_level_id,
  3857. feature.*
  3858. FROM
  3859. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3860. WHERE cvterm.name = 'gene_rearranged_at_DNA_level';
  3861. --- ************************************************
  3862. --- *** relation: ribosome_entry_site ***
  3863. --- *** relation type: VIEW ***
  3864. --- *** ***
  3865. --- *** Region in mRNA where ribosome assembles. ***
  3866. --- ************************************************
  3867. ---
  3868. CREATE VIEW ribosome_entry_site AS
  3869. SELECT
  3870. feature_id AS ribosome_entry_site_id,
  3871. feature.*
  3872. FROM
  3873. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3874. 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';
  3875. --- ************************************************
  3876. --- *** relation: attenuator ***
  3877. --- *** relation type: VIEW ***
  3878. --- *** ***
  3879. --- *** A sequence segment located within the fi ***
  3880. --- *** ve prime end of an mRNA that causes prem ***
  3881. --- *** ature termination of translation. ***
  3882. --- ************************************************
  3883. ---
  3884. CREATE VIEW attenuator AS
  3885. SELECT
  3886. feature_id AS attenuator_id,
  3887. feature.*
  3888. FROM
  3889. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3890. WHERE cvterm.name = 'attenuator';
  3891. --- ************************************************
  3892. --- *** relation: terminator ***
  3893. --- *** relation type: VIEW ***
  3894. --- *** ***
  3895. --- *** The sequence of DNA located either at th ***
  3896. --- *** e end of the transcript that causes RNA ***
  3897. --- *** polymerase to terminate transcription. ***
  3898. --- ************************************************
  3899. ---
  3900. CREATE VIEW terminator AS
  3901. SELECT
  3902. feature_id AS terminator_id,
  3903. feature.*
  3904. FROM
  3905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3906. 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';
  3907. --- ************************************************
  3908. --- *** relation: dna_sequence_secondary_structure ***
  3909. --- *** relation type: VIEW ***
  3910. --- *** ***
  3911. --- *** A folded DNA sequence. ***
  3912. --- ************************************************
  3913. ---
  3914. CREATE VIEW dna_sequence_secondary_structure AS
  3915. SELECT
  3916. feature_id AS dna_sequence_secondary_structure_id,
  3917. feature.*
  3918. FROM
  3919. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3920. WHERE cvterm.name = 'i_motif' OR cvterm.name = 'DNA_sequence_secondary_structure';
  3921. --- ************************************************
  3922. --- *** relation: assembly_component ***
  3923. --- *** relation type: VIEW ***
  3924. --- *** ***
  3925. --- *** A region of known length which may be us ***
  3926. --- *** ed to manufacture a longer region. ***
  3927. --- ************************************************
  3928. ---
  3929. CREATE VIEW assembly_component AS
  3930. SELECT
  3931. feature_id AS assembly_component_id,
  3932. feature.*
  3933. FROM
  3934. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3935. 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';
  3936. --- ************************************************
  3937. --- *** relation: recoded_codon ***
  3938. --- *** relation type: VIEW ***
  3939. --- *** ***
  3940. --- *** A codon that has been redefined at trans ***
  3941. --- *** lation. The redefinition may be as a res ***
  3942. --- *** ult of translational bypass, translation ***
  3943. --- *** al frameshifting or stop codon readthrou ***
  3944. --- *** gh. ***
  3945. --- ************************************************
  3946. ---
  3947. CREATE VIEW recoded_codon AS
  3948. SELECT
  3949. feature_id AS recoded_codon_id,
  3950. feature.*
  3951. FROM
  3952. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3953. 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';
  3954. --- ************************************************
  3955. --- *** relation: capped ***
  3956. --- *** relation type: VIEW ***
  3957. --- *** ***
  3958. --- *** An attribute describing when a sequence, ***
  3959. --- *** usually an mRNA is capped by the additi ***
  3960. --- *** on of a modified guanine nucleotide at t ***
  3961. --- *** he 5' end. ***
  3962. --- ************************************************
  3963. ---
  3964. CREATE VIEW capped AS
  3965. SELECT
  3966. feature_id AS capped_id,
  3967. feature.*
  3968. FROM
  3969. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3970. WHERE cvterm.name = 'capped';
  3971. --- ************************************************
  3972. --- *** relation: exon ***
  3973. --- *** relation type: VIEW ***
  3974. --- *** ***
  3975. --- *** A region of the transcript sequence with ***
  3976. --- *** in a gene which is not removed from the ***
  3977. --- *** primary RNA transcript by RNA splicing. ***
  3978. --- ************************************************
  3979. ---
  3980. CREATE VIEW exon AS
  3981. SELECT
  3982. feature_id AS exon_id,
  3983. feature.*
  3984. FROM
  3985. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  3986. 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';
  3987. --- ************************************************
  3988. --- *** relation: supercontig ***
  3989. --- *** relation type: VIEW ***
  3990. --- *** ***
  3991. --- *** One or more contigs that have been order ***
  3992. --- *** ed and oriented using end-read informati ***
  3993. --- *** on. Contains gaps that are filled with N ***
  3994. --- *** 's. ***
  3995. --- ************************************************
  3996. ---
  3997. CREATE VIEW supercontig AS
  3998. SELECT
  3999. feature_id AS supercontig_id,
  4000. feature.*
  4001. FROM
  4002. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4003. WHERE cvterm.name = 'supercontig';
  4004. --- ************************************************
  4005. --- *** relation: contig ***
  4006. --- *** relation type: VIEW ***
  4007. --- *** ***
  4008. --- *** A contiguous sequence derived from seque ***
  4009. --- *** nce assembly. Has no gaps, but may conta ***
  4010. --- *** in N's from unavailable bases. ***
  4011. --- ************************************************
  4012. ---
  4013. CREATE VIEW contig AS
  4014. SELECT
  4015. feature_id AS contig_id,
  4016. feature.*
  4017. FROM
  4018. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4019. WHERE cvterm.name = 'contig';
  4020. --- ************************************************
  4021. --- *** relation: read ***
  4022. --- *** relation type: VIEW ***
  4023. --- *** ***
  4024. --- *** A sequence obtained from a single sequen ***
  4025. --- *** cing experiment. Typically a read is pro ***
  4026. --- *** duced when a base calling program interp ***
  4027. --- *** rets information from a chromatogram tra ***
  4028. --- *** ce file produced from a sequencing machi ***
  4029. --- *** ne. ***
  4030. --- ************************************************
  4031. ---
  4032. CREATE VIEW read AS
  4033. SELECT
  4034. feature_id AS read_id,
  4035. feature.*
  4036. FROM
  4037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4038. 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';
  4039. --- ************************************************
  4040. --- *** relation: clone ***
  4041. --- *** relation type: VIEW ***
  4042. --- *** ***
  4043. --- *** A piece of DNA that has been inserted in ***
  4044. --- *** a vector so that it can be propagated i ***
  4045. --- *** n a host bacterium or some other organis ***
  4046. --- *** m. ***
  4047. --- ************************************************
  4048. ---
  4049. CREATE VIEW clone AS
  4050. SELECT
  4051. feature_id AS clone_id,
  4052. feature.*
  4053. FROM
  4054. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4055. 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';
  4056. --- ************************************************
  4057. --- *** relation: yac ***
  4058. --- *** relation type: VIEW ***
  4059. --- *** ***
  4060. --- *** Yeast Artificial Chromosome, a vector co ***
  4061. --- *** nstructed from the telomeric, centromeri ***
  4062. --- *** c, and replication origin sequences need ***
  4063. --- *** ed for replication in yeast cells. ***
  4064. --- ************************************************
  4065. ---
  4066. CREATE VIEW yac AS
  4067. SELECT
  4068. feature_id AS yac_id,
  4069. feature.*
  4070. FROM
  4071. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4072. WHERE cvterm.name = 'YAC';
  4073. --- ************************************************
  4074. --- *** relation: bac ***
  4075. --- *** relation type: VIEW ***
  4076. --- *** ***
  4077. --- *** Bacterial Artificial Chromosome, a cloni ***
  4078. --- *** ng vector that can be propagated as mini ***
  4079. --- *** -chromosomes in a bacterial host. ***
  4080. --- ************************************************
  4081. ---
  4082. CREATE VIEW bac AS
  4083. SELECT
  4084. feature_id AS bac_id,
  4085. feature.*
  4086. FROM
  4087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4088. WHERE cvterm.name = 'BAC';
  4089. --- ************************************************
  4090. --- *** relation: pac ***
  4091. --- *** relation type: VIEW ***
  4092. --- *** ***
  4093. --- *** The P1-derived artificial chromosome are ***
  4094. --- *** DNA constructs that are derived from th ***
  4095. --- *** e DNA of P1 bacteriophage. They can carr ***
  4096. --- *** y large amounts (about 100-300 kilobases ***
  4097. --- *** ) of other sequences for a variety of bi ***
  4098. --- *** oengineering purposes. It is one type of ***
  4099. --- *** vector used to clone DNA fragments (100 ***
  4100. --- *** - to 300-kb insert size; average, 150 kb ***
  4101. --- *** ) in Escherichia coli cells. ***
  4102. --- ************************************************
  4103. ---
  4104. CREATE VIEW pac AS
  4105. SELECT
  4106. feature_id AS pac_id,
  4107. feature.*
  4108. FROM
  4109. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4110. WHERE cvterm.name = 'PAC';
  4111. --- ************************************************
  4112. --- *** relation: plasmid ***
  4113. --- *** relation type: VIEW ***
  4114. --- *** ***
  4115. --- *** A self replicating, using the hosts cell ***
  4116. --- *** ular machinery, often circular nucleic a ***
  4117. --- *** cid molecule that is distinct from a chr ***
  4118. --- *** omosome in the organism. ***
  4119. --- ************************************************
  4120. ---
  4121. CREATE VIEW plasmid AS
  4122. SELECT
  4123. feature_id AS plasmid_id,
  4124. feature.*
  4125. FROM
  4126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4127. 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';
  4128. --- ************************************************
  4129. --- *** relation: cosmid ***
  4130. --- *** relation type: VIEW ***
  4131. --- *** ***
  4132. --- *** A cloning vector that is a hybrid of lam ***
  4133. --- *** bda phages and a plasmid that can be pro ***
  4134. --- *** pagated as a plasmid or packaged as a ph ***
  4135. --- *** age,since they retain the lambda cos sit ***
  4136. --- *** es. ***
  4137. --- ************************************************
  4138. ---
  4139. CREATE VIEW cosmid AS
  4140. SELECT
  4141. feature_id AS cosmid_id,
  4142. feature.*
  4143. FROM
  4144. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4145. WHERE cvterm.name = 'cosmid';
  4146. --- ************************************************
  4147. --- *** relation: phagemid ***
  4148. --- *** relation type: VIEW ***
  4149. --- *** ***
  4150. --- *** A plasmid which carries within its seque ***
  4151. --- *** nce a bacteriophage replication origin. ***
  4152. --- *** When the host bacterium is infected with ***
  4153. --- *** "helper" phage, a phagemid is replicate ***
  4154. --- *** d along with the phage DNA and packaged ***
  4155. --- *** into phage capsids. ***
  4156. --- ************************************************
  4157. ---
  4158. CREATE VIEW phagemid AS
  4159. SELECT
  4160. feature_id AS phagemid_id,
  4161. feature.*
  4162. FROM
  4163. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4164. WHERE cvterm.name = 'phagemid';
  4165. --- ************************************************
  4166. --- *** relation: fosmid ***
  4167. --- *** relation type: VIEW ***
  4168. --- *** ***
  4169. --- *** A cloning vector that utilizes the E. co ***
  4170. --- *** li F factor. ***
  4171. --- ************************************************
  4172. ---
  4173. CREATE VIEW fosmid AS
  4174. SELECT
  4175. feature_id AS fosmid_id,
  4176. feature.*
  4177. FROM
  4178. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4179. WHERE cvterm.name = 'fosmid';
  4180. --- ************************************************
  4181. --- *** relation: deletion ***
  4182. --- *** relation type: VIEW ***
  4183. --- *** ***
  4184. --- *** The point at which one or more contiguou ***
  4185. --- *** s nucleotides were excised. ***
  4186. --- ************************************************
  4187. ---
  4188. CREATE VIEW deletion AS
  4189. SELECT
  4190. feature_id AS deletion_id,
  4191. feature.*
  4192. FROM
  4193. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4194. WHERE cvterm.name = 'deletion';
  4195. --- ************************************************
  4196. --- *** relation: methylated_a ***
  4197. --- *** relation type: VIEW ***
  4198. --- *** ***
  4199. --- *** A modified RNA base in which adenine has ***
  4200. --- *** been methylated. ***
  4201. --- ************************************************
  4202. ---
  4203. CREATE VIEW methylated_a AS
  4204. SELECT
  4205. feature_id AS methylated_a_id,
  4206. feature.*
  4207. FROM
  4208. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4209. WHERE cvterm.name = 'methylated_A';
  4210. --- ************************************************
  4211. --- *** relation: splice_site ***
  4212. --- *** relation type: VIEW ***
  4213. --- *** ***
  4214. --- *** Consensus region of primary transcript b ***
  4215. --- *** ordering junction of splicing. A region ***
  4216. --- *** that overlaps exactly 2 base and adjacen ***
  4217. --- *** t_to splice_junction. ***
  4218. --- ************************************************
  4219. ---
  4220. CREATE VIEW splice_site AS
  4221. SELECT
  4222. feature_id AS splice_site_id,
  4223. feature.*
  4224. FROM
  4225. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4226. 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';
  4227. --- ************************************************
  4228. --- *** relation: five_prime_cis_splice_site ***
  4229. --- *** relation type: VIEW ***
  4230. --- *** ***
  4231. --- *** Intronic 2 bp region bordering the exon, ***
  4232. --- *** at the 5' edge of the intron. A splice_ ***
  4233. --- *** site that is downstream_adjacent_to exon ***
  4234. --- *** and starts intron. ***
  4235. --- ************************************************
  4236. ---
  4237. CREATE VIEW five_prime_cis_splice_site AS
  4238. SELECT
  4239. feature_id AS five_prime_cis_splice_site_id,
  4240. feature.*
  4241. FROM
  4242. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4243. 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';
  4244. --- ************************************************
  4245. --- *** relation: three_prime_cis_splice_site ***
  4246. --- *** relation type: VIEW ***
  4247. --- *** ***
  4248. --- *** Intronic 2 bp region bordering the exon, ***
  4249. --- *** at the 3' edge of the intron. A splice_ ***
  4250. --- *** site that is upstream_adjacent_to exon a ***
  4251. --- *** nd finishes intron. ***
  4252. --- ************************************************
  4253. ---
  4254. CREATE VIEW three_prime_cis_splice_site AS
  4255. SELECT
  4256. feature_id AS three_prime_cis_splice_site_id,
  4257. feature.*
  4258. FROM
  4259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4260. 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';
  4261. --- ************************************************
  4262. --- *** relation: enhancer ***
  4263. --- *** relation type: VIEW ***
  4264. --- *** ***
  4265. --- *** A cis-acting sequence that increases the ***
  4266. --- *** utilization of (some) eukaryotic promot ***
  4267. --- *** ers, and can function in either orientat ***
  4268. --- *** ion and in any location (upstream or dow ***
  4269. --- *** nstream) relative to the promoter. ***
  4270. --- ************************************************
  4271. ---
  4272. CREATE VIEW enhancer AS
  4273. SELECT
  4274. feature_id AS enhancer_id,
  4275. feature.*
  4276. FROM
  4277. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4278. WHERE cvterm.name = 'enhancer_bound_by_factor' OR cvterm.name = 'shadow_enhancer' OR cvterm.name = 'enhancer';
  4279. --- ************************************************
  4280. --- *** relation: enhancer_bound_by_factor ***
  4281. --- *** relation type: VIEW ***
  4282. --- *** ***
  4283. --- *** An enhancer bound by a factor. ***
  4284. --- ************************************************
  4285. ---
  4286. CREATE VIEW enhancer_bound_by_factor AS
  4287. SELECT
  4288. feature_id AS enhancer_bound_by_factor_id,
  4289. feature.*
  4290. FROM
  4291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4292. WHERE cvterm.name = 'enhancer_bound_by_factor';
  4293. --- ************************************************
  4294. --- *** relation: promoter ***
  4295. --- *** relation type: VIEW ***
  4296. --- *** ***
  4297. --- *** A regulatory_region composed of the TSS( ***
  4298. --- *** s) and binding sites for TF_complexes of ***
  4299. --- *** the basal transcription machinery. ***
  4300. --- ************************************************
  4301. ---
  4302. CREATE VIEW promoter AS
  4303. SELECT
  4304. feature_id AS promoter_id,
  4305. feature.*
  4306. FROM
  4307. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4308. 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';
  4309. --- ************************************************
  4310. --- *** relation: rnapol_i_promoter ***
  4311. --- *** relation type: VIEW ***
  4312. --- *** ***
  4313. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4314. --- *** h RNA polymerase I binds, to begin trans ***
  4315. --- *** cription. ***
  4316. --- ************************************************
  4317. ---
  4318. CREATE VIEW rnapol_i_promoter AS
  4319. SELECT
  4320. feature_id AS rnapol_i_promoter_id,
  4321. feature.*
  4322. FROM
  4323. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4324. WHERE cvterm.name = 'RNApol_I_promoter';
  4325. --- ************************************************
  4326. --- *** relation: rnapol_ii_promoter ***
  4327. --- *** relation type: VIEW ***
  4328. --- *** ***
  4329. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4330. --- *** h RNA polymerase II binds, to begin tran ***
  4331. --- *** scription. ***
  4332. --- ************************************************
  4333. ---
  4334. CREATE VIEW rnapol_ii_promoter AS
  4335. SELECT
  4336. feature_id AS rnapol_ii_promoter_id,
  4337. feature.*
  4338. FROM
  4339. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4340. WHERE cvterm.name = 'RNApol_II_core_promoter' OR cvterm.name = 'RNApol_II_promoter';
  4341. --- ************************************************
  4342. --- *** relation: rnapol_iii_promoter ***
  4343. --- *** relation type: VIEW ***
  4344. --- *** ***
  4345. --- *** A DNA sequence in eukaryotic DNA to whic ***
  4346. --- *** h RNA polymerase III binds, to begin tra ***
  4347. --- *** nscription. ***
  4348. --- ************************************************
  4349. ---
  4350. CREATE VIEW rnapol_iii_promoter AS
  4351. SELECT
  4352. feature_id AS rnapol_iii_promoter_id,
  4353. feature.*
  4354. FROM
  4355. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4356. 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';
  4357. --- ************************************************
  4358. --- *** relation: caat_signal ***
  4359. --- *** relation type: VIEW ***
  4360. --- *** ***
  4361. --- *** Part of a conserved sequence located abo ***
  4362. --- *** ut 75-bp upstream of the start point of ***
  4363. --- *** eukaryotic transcription units which may ***
  4364. --- *** be involved in RNA polymerase binding; ***
  4365. --- *** consensus=GG(C|T)CAATCT. ***
  4366. --- ************************************************
  4367. ---
  4368. CREATE VIEW caat_signal AS
  4369. SELECT
  4370. feature_id AS caat_signal_id,
  4371. feature.*
  4372. FROM
  4373. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4374. WHERE cvterm.name = 'CAAT_signal';
  4375. --- ************************************************
  4376. --- *** relation: gc_rich_promoter_region ***
  4377. --- *** relation type: VIEW ***
  4378. --- *** ***
  4379. --- *** A conserved GC-rich region located upstr ***
  4380. --- *** eam of the start point of eukaryotic tra ***
  4381. --- *** nscription units which may occur in mult ***
  4382. --- *** iple copies or in either orientation; co ***
  4383. --- *** nsensus=GGGCGG. ***
  4384. --- ************************************************
  4385. ---
  4386. CREATE VIEW gc_rich_promoter_region AS
  4387. SELECT
  4388. feature_id AS gc_rich_promoter_region_id,
  4389. feature.*
  4390. FROM
  4391. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4392. WHERE cvterm.name = 'GC_rich_promoter_region';
  4393. --- ************************************************
  4394. --- *** relation: tata_box ***
  4395. --- *** relation type: VIEW ***
  4396. --- *** ***
  4397. --- *** A conserved AT-rich septamer found about ***
  4398. --- *** 25-bp before the start point of many eu ***
  4399. --- *** karyotic RNA polymerase II transcript un ***
  4400. --- *** its; may be involved in positioning the ***
  4401. --- *** enzyme for correct initiation; consensus ***
  4402. --- *** =TATA(A|T)A(A|T). ***
  4403. --- ************************************************
  4404. ---
  4405. CREATE VIEW tata_box AS
  4406. SELECT
  4407. feature_id AS tata_box_id,
  4408. feature.*
  4409. FROM
  4410. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4411. WHERE cvterm.name = 'RNA_polymerase_II_TATA_box' OR cvterm.name = 'RNA_polymerase_III_TATA_box' OR cvterm.name = 'TATA_box';
  4412. --- ************************************************
  4413. --- *** relation: minus_10_signal ***
  4414. --- *** relation type: VIEW ***
  4415. --- *** ***
  4416. --- *** A conserved region about 10-bp upstream ***
  4417. --- *** of the start point of bacterial transcri ***
  4418. --- *** ption units which may be involved in bin ***
  4419. --- *** ding RNA polymerase; consensus=TAtAaT. T ***
  4420. --- *** his region is associated with sigma fact ***
  4421. --- *** or 70. ***
  4422. --- ************************************************
  4423. ---
  4424. CREATE VIEW minus_10_signal AS
  4425. SELECT
  4426. feature_id AS minus_10_signal_id,
  4427. feature.*
  4428. FROM
  4429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4430. WHERE cvterm.name = 'minus_10_signal';
  4431. --- ************************************************
  4432. --- *** relation: minus_35_signal ***
  4433. --- *** relation type: VIEW ***
  4434. --- *** ***
  4435. --- *** A conserved hexamer about 35-bp upstream ***
  4436. --- *** of the start point of bacterial transcr ***
  4437. --- *** iption units; consensus=TTGACa or TGTTGA ***
  4438. --- *** CA. This region is associated with sigma ***
  4439. --- *** factor 70. ***
  4440. --- ************************************************
  4441. ---
  4442. CREATE VIEW minus_35_signal AS
  4443. SELECT
  4444. feature_id AS minus_35_signal_id,
  4445. feature.*
  4446. FROM
  4447. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4448. WHERE cvterm.name = 'minus_35_signal';
  4449. --- ************************************************
  4450. --- *** relation: cross_genome_match ***
  4451. --- *** relation type: VIEW ***
  4452. --- *** ***
  4453. --- *** A nucleotide match against a sequence fr ***
  4454. --- *** om another organism. ***
  4455. --- ************************************************
  4456. ---
  4457. CREATE VIEW cross_genome_match AS
  4458. SELECT
  4459. feature_id AS cross_genome_match_id,
  4460. feature.*
  4461. FROM
  4462. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4463. WHERE cvterm.name = 'cross_genome_match';
  4464. --- ************************************************
  4465. --- *** relation: operon ***
  4466. --- *** relation type: VIEW ***
  4467. --- *** ***
  4468. --- *** A group of contiguous genes transcribed ***
  4469. --- *** as a single (polycistronic) mRNA from a ***
  4470. --- *** single regulatory region. ***
  4471. --- ************************************************
  4472. ---
  4473. CREATE VIEW operon AS
  4474. SELECT
  4475. feature_id AS operon_id,
  4476. feature.*
  4477. FROM
  4478. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4479. WHERE cvterm.name = 'operon';
  4480. --- ************************************************
  4481. --- *** relation: clone_insert_start ***
  4482. --- *** relation type: VIEW ***
  4483. --- *** ***
  4484. --- *** The start of the clone insert. ***
  4485. --- ************************************************
  4486. ---
  4487. CREATE VIEW clone_insert_start AS
  4488. SELECT
  4489. feature_id AS clone_insert_start_id,
  4490. feature.*
  4491. FROM
  4492. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4493. WHERE cvterm.name = 'clone_insert_start';
  4494. --- ************************************************
  4495. --- *** relation: retrotransposon ***
  4496. --- *** relation type: VIEW ***
  4497. --- *** ***
  4498. --- *** A transposable element that is incorpora ***
  4499. --- *** ted into a chromosome by a mechanism tha ***
  4500. --- *** t requires reverse transcriptase. ***
  4501. --- ************************************************
  4502. ---
  4503. CREATE VIEW retrotransposon AS
  4504. SELECT
  4505. feature_id AS retrotransposon_id,
  4506. feature.*
  4507. FROM
  4508. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4509. 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';
  4510. --- ************************************************
  4511. --- *** relation: translated_nucleotide_match ***
  4512. --- *** relation type: VIEW ***
  4513. --- *** ***
  4514. --- *** A match against a translated sequence. ***
  4515. --- ************************************************
  4516. ---
  4517. CREATE VIEW translated_nucleotide_match AS
  4518. SELECT
  4519. feature_id AS translated_nucleotide_match_id,
  4520. feature.*
  4521. FROM
  4522. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4523. WHERE cvterm.name = 'translated_nucleotide_match';
  4524. --- ************************************************
  4525. --- *** relation: dna_transposon ***
  4526. --- *** relation type: VIEW ***
  4527. --- *** ***
  4528. --- *** A transposon where the mechanism of tran ***
  4529. --- *** sposition is via a DNA intermediate. ***
  4530. --- ************************************************
  4531. ---
  4532. CREATE VIEW dna_transposon AS
  4533. SELECT
  4534. feature_id AS dna_transposon_id,
  4535. feature.*
  4536. FROM
  4537. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4538. 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';
  4539. --- ************************************************
  4540. --- *** relation: non_transcribed_region ***
  4541. --- *** relation type: VIEW ***
  4542. --- *** ***
  4543. --- *** A region of the gene which is not transc ***
  4544. --- *** ribed. ***
  4545. --- ************************************************
  4546. ---
  4547. CREATE VIEW non_transcribed_region AS
  4548. SELECT
  4549. feature_id AS non_transcribed_region_id,
  4550. feature.*
  4551. FROM
  4552. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4553. WHERE cvterm.name = 'non_transcribed_region';
  4554. --- ************************************************
  4555. --- *** relation: u2_intron ***
  4556. --- *** relation type: VIEW ***
  4557. --- *** ***
  4558. --- *** A major type of spliceosomal intron spli ***
  4559. --- *** ced by the U2 spliceosome, that includes ***
  4560. --- *** U1, U2, U4/U6 and U5 snRNAs. ***
  4561. --- ************************************************
  4562. ---
  4563. CREATE VIEW u2_intron AS
  4564. SELECT
  4565. feature_id AS u2_intron_id,
  4566. feature.*
  4567. FROM
  4568. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4569. WHERE cvterm.name = 'U2_intron';
  4570. --- ************************************************
  4571. --- *** relation: primary_transcript ***
  4572. --- *** relation type: VIEW ***
  4573. --- *** ***
  4574. --- *** A transcript that in its initial state r ***
  4575. --- *** equires modification to be functional. ***
  4576. --- ************************************************
  4577. ---
  4578. CREATE VIEW primary_transcript AS
  4579. SELECT
  4580. feature_id AS primary_transcript_id,
  4581. feature.*
  4582. FROM
  4583. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4584. 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';
  4585. --- ************************************************
  4586. --- *** relation: ltr_retrotransposon ***
  4587. --- *** relation type: VIEW ***
  4588. --- *** ***
  4589. --- *** A retrotransposon flanked by long termin ***
  4590. --- *** al repeat sequences. ***
  4591. --- ************************************************
  4592. ---
  4593. CREATE VIEW ltr_retrotransposon AS
  4594. SELECT
  4595. feature_id AS ltr_retrotransposon_id,
  4596. feature.*
  4597. FROM
  4598. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4599. WHERE cvterm.name = 'LTR_retrotransposon';
  4600. --- ************************************************
  4601. --- *** relation: intron ***
  4602. --- *** relation type: VIEW ***
  4603. --- *** ***
  4604. --- *** A region of a primary transcript that is ***
  4605. --- *** transcribed, but removed from within th ***
  4606. --- *** e transcript by splicing together the se ***
  4607. --- *** quences (exons) on either side of it. ***
  4608. --- ************************************************
  4609. ---
  4610. CREATE VIEW intron AS
  4611. SELECT
  4612. feature_id AS intron_id,
  4613. feature.*
  4614. FROM
  4615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4616. 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';
  4617. --- ************************************************
  4618. --- *** relation: non_ltr_retrotransposon ***
  4619. --- *** relation type: VIEW ***
  4620. --- *** ***
  4621. --- *** A retrotransposon without long terminal ***
  4622. --- *** repeat sequences. ***
  4623. --- ************************************************
  4624. ---
  4625. CREATE VIEW non_ltr_retrotransposon AS
  4626. SELECT
  4627. feature_id AS non_ltr_retrotransposon_id,
  4628. feature.*
  4629. FROM
  4630. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4631. WHERE cvterm.name = 'LINE_element' OR cvterm.name = 'SINE_element' OR cvterm.name = 'non_LTR_retrotransposon';
  4632. --- ************************************************
  4633. --- *** relation: five_prime_intron ***
  4634. --- *** relation type: VIEW ***
  4635. --- *** ***
  4636. --- ************************************************
  4637. ---
  4638. CREATE VIEW five_prime_intron AS
  4639. SELECT
  4640. feature_id AS five_prime_intron_id,
  4641. feature.*
  4642. FROM
  4643. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4644. WHERE cvterm.name = 'five_prime_intron';
  4645. --- ************************************************
  4646. --- *** relation: interior_intron ***
  4647. --- *** relation type: VIEW ***
  4648. --- *** ***
  4649. --- ************************************************
  4650. ---
  4651. CREATE VIEW interior_intron AS
  4652. SELECT
  4653. feature_id AS interior_intron_id,
  4654. feature.*
  4655. FROM
  4656. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4657. WHERE cvterm.name = 'interior_intron';
  4658. --- ************************************************
  4659. --- *** relation: three_prime_intron ***
  4660. --- *** relation type: VIEW ***
  4661. --- *** ***
  4662. --- ************************************************
  4663. ---
  4664. CREATE VIEW three_prime_intron AS
  4665. SELECT
  4666. feature_id AS three_prime_intron_id,
  4667. feature.*
  4668. FROM
  4669. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4670. WHERE cvterm.name = 'three_prime_intron';
  4671. --- ************************************************
  4672. --- *** relation: rflp_fragment ***
  4673. --- *** relation type: VIEW ***
  4674. --- *** ***
  4675. --- *** A DNA fragment used as a reagent to dete ***
  4676. --- *** ct the polymorphic genomic loci by hybri ***
  4677. --- *** dizing against the genomic DNA digested ***
  4678. --- *** with a given restriction enzyme. ***
  4679. --- ************************************************
  4680. ---
  4681. CREATE VIEW rflp_fragment AS
  4682. SELECT
  4683. feature_id AS rflp_fragment_id,
  4684. feature.*
  4685. FROM
  4686. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4687. WHERE cvterm.name = 'RFLP_fragment';
  4688. --- ************************************************
  4689. --- *** relation: line_element ***
  4690. --- *** relation type: VIEW ***
  4691. --- *** ***
  4692. --- *** A dispersed repeat family with many copi ***
  4693. --- *** es, each from 1 to 6 kb long. New elemen ***
  4694. --- *** ts are generated by retroposition of a t ***
  4695. --- *** ranscribed copy. Typically the LINE cont ***
  4696. --- *** ains 2 ORF's one of which is reverse tra ***
  4697. --- *** nscriptase, and 3'and 5' direct repeats. ***
  4698. --- ************************************************
  4699. ---
  4700. CREATE VIEW line_element AS
  4701. SELECT
  4702. feature_id AS line_element_id,
  4703. feature.*
  4704. FROM
  4705. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4706. WHERE cvterm.name = 'LINE_element';
  4707. --- ************************************************
  4708. --- *** relation: coding_exon ***
  4709. --- *** relation type: VIEW ***
  4710. --- *** ***
  4711. --- *** An exon whereby at least one base is par ***
  4712. --- *** t of a codon (here, 'codon' is inclusive ***
  4713. --- *** of the stop_codon). ***
  4714. --- ************************************************
  4715. ---
  4716. CREATE VIEW coding_exon AS
  4717. SELECT
  4718. feature_id AS coding_exon_id,
  4719. feature.*
  4720. FROM
  4721. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4722. 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';
  4723. --- ************************************************
  4724. --- *** relation: five_prime_coding_exon_coding_region ***
  4725. --- *** relation type: VIEW ***
  4726. --- *** ***
  4727. --- *** The sequence of the five_prime_coding_ex ***
  4728. --- *** on that codes for protein. ***
  4729. --- ************************************************
  4730. ---
  4731. CREATE VIEW five_prime_coding_exon_coding_region AS
  4732. SELECT
  4733. feature_id AS five_prime_coding_exon_coding_region_id,
  4734. feature.*
  4735. FROM
  4736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4737. WHERE cvterm.name = 'five_prime_coding_exon_coding_region';
  4738. --- ************************************************
  4739. --- *** relation: three_prime_coding_exon_coding_region ***
  4740. --- *** relation type: VIEW ***
  4741. --- *** ***
  4742. --- *** The sequence of the three_prime_coding_e ***
  4743. --- *** xon that codes for protein. ***
  4744. --- ************************************************
  4745. ---
  4746. CREATE VIEW three_prime_coding_exon_coding_region AS
  4747. SELECT
  4748. feature_id AS three_prime_coding_exon_coding_region_id,
  4749. feature.*
  4750. FROM
  4751. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4752. WHERE cvterm.name = 'three_prime_coding_exon_coding_region';
  4753. --- ************************************************
  4754. --- *** relation: noncoding_exon ***
  4755. --- *** relation type: VIEW ***
  4756. --- *** ***
  4757. --- *** An exon that does not contain any codons ***
  4758. --- *** . ***
  4759. --- ************************************************
  4760. ---
  4761. CREATE VIEW noncoding_exon AS
  4762. SELECT
  4763. feature_id AS noncoding_exon_id,
  4764. feature.*
  4765. FROM
  4766. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4767. WHERE cvterm.name = 'three_prime_noncoding_exon' OR cvterm.name = 'five_prime_noncoding_exon' OR cvterm.name = 'noncoding_exon';
  4768. --- ************************************************
  4769. --- *** relation: translocation ***
  4770. --- *** relation type: VIEW ***
  4771. --- *** ***
  4772. --- *** A region of nucleotide sequence that has ***
  4773. --- *** translocated to a new position. ***
  4774. --- ************************************************
  4775. ---
  4776. CREATE VIEW translocation AS
  4777. SELECT
  4778. feature_id AS translocation_id,
  4779. feature.*
  4780. FROM
  4781. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4782. WHERE cvterm.name = 'translocation';
  4783. --- ************************************************
  4784. --- *** relation: five_prime_coding_exon ***
  4785. --- *** relation type: VIEW ***
  4786. --- *** ***
  4787. --- *** The 5' most coding exon. ***
  4788. --- ************************************************
  4789. ---
  4790. CREATE VIEW five_prime_coding_exon AS
  4791. SELECT
  4792. feature_id AS five_prime_coding_exon_id,
  4793. feature.*
  4794. FROM
  4795. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4796. WHERE cvterm.name = 'five_prime_coding_exon';
  4797. --- ************************************************
  4798. --- *** relation: interior_exon ***
  4799. --- *** relation type: VIEW ***
  4800. --- *** ***
  4801. --- *** An exon that is bounded by 5' and 3' spl ***
  4802. --- *** ice sites. ***
  4803. --- ************************************************
  4804. ---
  4805. CREATE VIEW interior_exon AS
  4806. SELECT
  4807. feature_id AS interior_exon_id,
  4808. feature.*
  4809. FROM
  4810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4811. WHERE cvterm.name = 'interior_exon';
  4812. --- ************************************************
  4813. --- *** relation: three_prime_coding_exon ***
  4814. --- *** relation type: VIEW ***
  4815. --- *** ***
  4816. --- *** The coding exon that is most 3-prime on ***
  4817. --- *** a given transcript. ***
  4818. --- ************************************************
  4819. ---
  4820. CREATE VIEW three_prime_coding_exon AS
  4821. SELECT
  4822. feature_id AS three_prime_coding_exon_id,
  4823. feature.*
  4824. FROM
  4825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4826. WHERE cvterm.name = 'three_prime_coding_exon';
  4827. --- ************************************************
  4828. --- *** relation: utr ***
  4829. --- *** relation type: VIEW ***
  4830. --- *** ***
  4831. --- *** Messenger RNA sequences that are untrans ***
  4832. --- *** lated and lie five prime or three prime ***
  4833. --- *** to sequences which are translated. ***
  4834. --- ************************************************
  4835. ---
  4836. CREATE VIEW utr AS
  4837. SELECT
  4838. feature_id AS utr_id,
  4839. feature.*
  4840. FROM
  4841. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4842. 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';
  4843. --- ************************************************
  4844. --- *** relation: five_prime_utr ***
  4845. --- *** relation type: VIEW ***
  4846. --- *** ***
  4847. --- *** A region at the 5' end of a mature trans ***
  4848. --- *** cript (preceding the initiation codon) t ***
  4849. --- *** hat is not translated into a protein. ***
  4850. --- ************************************************
  4851. ---
  4852. CREATE VIEW five_prime_utr AS
  4853. SELECT
  4854. feature_id AS five_prime_utr_id,
  4855. feature.*
  4856. FROM
  4857. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4858. WHERE cvterm.name = 'five_prime_UTR';
  4859. --- ************************************************
  4860. --- *** relation: three_prime_utr ***
  4861. --- *** relation type: VIEW ***
  4862. --- *** ***
  4863. --- *** A region at the 3' end of a mature trans ***
  4864. --- *** cript (following the stop codon) that is ***
  4865. --- *** not translated into a protein. ***
  4866. --- ************************************************
  4867. ---
  4868. CREATE VIEW three_prime_utr AS
  4869. SELECT
  4870. feature_id AS three_prime_utr_id,
  4871. feature.*
  4872. FROM
  4873. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4874. WHERE cvterm.name = 'three_prime_UTR';
  4875. --- ************************************************
  4876. --- *** relation: sine_element ***
  4877. --- *** relation type: VIEW ***
  4878. --- *** ***
  4879. --- *** A repetitive element, a few hundred base ***
  4880. --- *** pairs long, that is dispersed throughou ***
  4881. --- *** t the genome. A common human SINE is the ***
  4882. --- *** Alu element. ***
  4883. --- ************************************************
  4884. ---
  4885. CREATE VIEW sine_element AS
  4886. SELECT
  4887. feature_id AS sine_element_id,
  4888. feature.*
  4889. FROM
  4890. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4891. WHERE cvterm.name = 'SINE_element';
  4892. --- ************************************************
  4893. --- *** relation: simple_sequence_length_variation ***
  4894. --- *** relation type: VIEW ***
  4895. --- *** ***
  4896. --- ************************************************
  4897. ---
  4898. CREATE VIEW simple_sequence_length_variation AS
  4899. SELECT
  4900. feature_id AS simple_sequence_length_variation_id,
  4901. feature.*
  4902. FROM
  4903. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4904. WHERE cvterm.name = 'simple_sequence_length_variation';
  4905. --- ************************************************
  4906. --- *** relation: terminal_inverted_repeat_element ***
  4907. --- *** relation type: VIEW ***
  4908. --- *** ***
  4909. --- *** A DNA transposable element defined as ha ***
  4910. --- *** ving termini with perfect, or nearly per ***
  4911. --- *** fect short inverted repeats, generally 1 ***
  4912. --- *** 0 - 40 nucleotides long. ***
  4913. --- ************************************************
  4914. ---
  4915. CREATE VIEW terminal_inverted_repeat_element AS
  4916. SELECT
  4917. feature_id AS terminal_inverted_repeat_element_id,
  4918. feature.*
  4919. FROM
  4920. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4921. WHERE cvterm.name = 'MITE' OR cvterm.name = 'insertion_sequence' OR cvterm.name = 'polinton' OR cvterm.name = 'terminal_inverted_repeat_element';
  4922. --- ************************************************
  4923. --- *** relation: rrna_primary_transcript ***
  4924. --- *** relation type: VIEW ***
  4925. --- *** ***
  4926. --- *** A primary transcript encoding a ribosoma ***
  4927. --- *** l RNA. ***
  4928. --- ************************************************
  4929. ---
  4930. CREATE VIEW rrna_primary_transcript AS
  4931. SELECT
  4932. feature_id AS rrna_primary_transcript_id,
  4933. feature.*
  4934. FROM
  4935. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4936. WHERE cvterm.name = 'rRNA_small_subunit_primary_transcript' OR cvterm.name = 'rRNA_large_subunit_primary_transcript' OR cvterm.name = 'rRNA_primary_transcript';
  4937. --- ************************************************
  4938. --- *** relation: trna_primary_transcript ***
  4939. --- *** relation type: VIEW ***
  4940. --- *** ***
  4941. --- *** A primary transcript encoding a transfer ***
  4942. --- *** RNA (SO:0000253). ***
  4943. --- ************************************************
  4944. ---
  4945. CREATE VIEW trna_primary_transcript AS
  4946. SELECT
  4947. feature_id AS trna_primary_transcript_id,
  4948. feature.*
  4949. FROM
  4950. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4951. 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';
  4952. --- ************************************************
  4953. --- *** relation: alanine_trna_primary_transcript ***
  4954. --- *** relation type: VIEW ***
  4955. --- *** ***
  4956. --- *** A primary transcript encoding alanyl tRN ***
  4957. --- *** A. ***
  4958. --- ************************************************
  4959. ---
  4960. CREATE VIEW alanine_trna_primary_transcript AS
  4961. SELECT
  4962. feature_id AS alanine_trna_primary_transcript_id,
  4963. feature.*
  4964. FROM
  4965. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4966. WHERE cvterm.name = 'alanine_tRNA_primary_transcript';
  4967. --- ************************************************
  4968. --- *** relation: arg_trna_primary_transcript ***
  4969. --- *** relation type: VIEW ***
  4970. --- *** ***
  4971. --- *** A primary transcript encoding arginyl tR ***
  4972. --- *** NA (SO:0000255). ***
  4973. --- ************************************************
  4974. ---
  4975. CREATE VIEW arg_trna_primary_transcript AS
  4976. SELECT
  4977. feature_id AS arg_trna_primary_transcript_id,
  4978. feature.*
  4979. FROM
  4980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4981. WHERE cvterm.name = 'arginine_tRNA_primary_transcript';
  4982. --- ************************************************
  4983. --- *** relation: asparagine_trna_primary_transcript ***
  4984. --- *** relation type: VIEW ***
  4985. --- *** ***
  4986. --- *** A primary transcript encoding asparaginy ***
  4987. --- *** l tRNA (SO:0000256). ***
  4988. --- ************************************************
  4989. ---
  4990. CREATE VIEW asparagine_trna_primary_transcript AS
  4991. SELECT
  4992. feature_id AS asparagine_trna_primary_transcript_id,
  4993. feature.*
  4994. FROM
  4995. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  4996. WHERE cvterm.name = 'asparagine_tRNA_primary_transcript';
  4997. --- ************************************************
  4998. --- *** relation: aspartic_acid_trna_primary_transcript ***
  4999. --- *** relation type: VIEW ***
  5000. --- *** ***
  5001. --- *** A primary transcript encoding aspartyl t ***
  5002. --- *** RNA (SO:0000257). ***
  5003. --- ************************************************
  5004. ---
  5005. CREATE VIEW aspartic_acid_trna_primary_transcript AS
  5006. SELECT
  5007. feature_id AS aspartic_acid_trna_primary_transcript_id,
  5008. feature.*
  5009. FROM
  5010. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5011. WHERE cvterm.name = 'aspartic_acid_tRNA_primary_transcript';
  5012. --- ************************************************
  5013. --- *** relation: cysteine_trna_primary_transcript ***
  5014. --- *** relation type: VIEW ***
  5015. --- *** ***
  5016. --- *** A primary transcript encoding cysteinyl ***
  5017. --- *** tRNA (SO:0000258). ***
  5018. --- ************************************************
  5019. ---
  5020. CREATE VIEW cysteine_trna_primary_transcript AS
  5021. SELECT
  5022. feature_id AS cysteine_trna_primary_transcript_id,
  5023. feature.*
  5024. FROM
  5025. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5026. WHERE cvterm.name = 'cysteine_tRNA_primary_transcript';
  5027. --- ************************************************
  5028. --- *** relation: glutamic_acid_trna_primary_transcript ***
  5029. --- *** relation type: VIEW ***
  5030. --- *** ***
  5031. --- *** A primary transcript encoding glutaminyl ***
  5032. --- *** tRNA (SO:0000260). ***
  5033. --- ************************************************
  5034. ---
  5035. CREATE VIEW glutamic_acid_trna_primary_transcript AS
  5036. SELECT
  5037. feature_id AS glutamic_acid_trna_primary_transcript_id,
  5038. feature.*
  5039. FROM
  5040. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5041. WHERE cvterm.name = 'glutamic_acid_tRNA_primary_transcript';
  5042. --- ************************************************
  5043. --- *** relation: glutamine_trna_primary_transcript ***
  5044. --- *** relation type: VIEW ***
  5045. --- *** ***
  5046. --- *** A primary transcript encoding glutamyl t ***
  5047. --- *** RNA (SO:0000260). ***
  5048. --- ************************************************
  5049. ---
  5050. CREATE VIEW glutamine_trna_primary_transcript AS
  5051. SELECT
  5052. feature_id AS glutamine_trna_primary_transcript_id,
  5053. feature.*
  5054. FROM
  5055. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5056. WHERE cvterm.name = 'glutamine_tRNA_primary_transcript';
  5057. --- ************************************************
  5058. --- *** relation: glycine_trna_primary_transcript ***
  5059. --- *** relation type: VIEW ***
  5060. --- *** ***
  5061. --- *** A primary transcript encoding glycyl tRN ***
  5062. --- *** A (SO:0000263). ***
  5063. --- ************************************************
  5064. ---
  5065. CREATE VIEW glycine_trna_primary_transcript AS
  5066. SELECT
  5067. feature_id AS glycine_trna_primary_transcript_id,
  5068. feature.*
  5069. FROM
  5070. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5071. WHERE cvterm.name = 'glycine_tRNA_primary_transcript';
  5072. --- ************************************************
  5073. --- *** relation: histidine_trna_primary_transcript ***
  5074. --- *** relation type: VIEW ***
  5075. --- *** ***
  5076. --- *** A primary transcript encoding histidyl t ***
  5077. --- *** RNA (SO:0000262). ***
  5078. --- ************************************************
  5079. ---
  5080. CREATE VIEW histidine_trna_primary_transcript AS
  5081. SELECT
  5082. feature_id AS histidine_trna_primary_transcript_id,
  5083. feature.*
  5084. FROM
  5085. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5086. WHERE cvterm.name = 'histidine_tRNA_primary_transcript';
  5087. --- ************************************************
  5088. --- *** relation: isoleucine_trna_primary_transcript ***
  5089. --- *** relation type: VIEW ***
  5090. --- *** ***
  5091. --- *** A primary transcript encoding isoleucyl ***
  5092. --- *** tRNA (SO:0000263). ***
  5093. --- ************************************************
  5094. ---
  5095. CREATE VIEW isoleucine_trna_primary_transcript AS
  5096. SELECT
  5097. feature_id AS isoleucine_trna_primary_transcript_id,
  5098. feature.*
  5099. FROM
  5100. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5101. WHERE cvterm.name = 'isoleucine_tRNA_primary_transcript';
  5102. --- ************************************************
  5103. --- *** relation: leucine_trna_primary_transcript ***
  5104. --- *** relation type: VIEW ***
  5105. --- *** ***
  5106. --- *** A primary transcript encoding leucyl tRN ***
  5107. --- *** A (SO:0000264). ***
  5108. --- ************************************************
  5109. ---
  5110. CREATE VIEW leucine_trna_primary_transcript AS
  5111. SELECT
  5112. feature_id AS leucine_trna_primary_transcript_id,
  5113. feature.*
  5114. FROM
  5115. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5116. WHERE cvterm.name = 'leucine_tRNA_primary_transcript';
  5117. --- ************************************************
  5118. --- *** relation: lysine_trna_primary_transcript ***
  5119. --- *** relation type: VIEW ***
  5120. --- *** ***
  5121. --- *** A primary transcript encoding lysyl tRNA ***
  5122. --- *** (SO:0000265). ***
  5123. --- ************************************************
  5124. ---
  5125. CREATE VIEW lysine_trna_primary_transcript AS
  5126. SELECT
  5127. feature_id AS lysine_trna_primary_transcript_id,
  5128. feature.*
  5129. FROM
  5130. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5131. WHERE cvterm.name = 'lysine_tRNA_primary_transcript';
  5132. --- ************************************************
  5133. --- *** relation: methionine_trna_primary_transcript ***
  5134. --- *** relation type: VIEW ***
  5135. --- *** ***
  5136. --- *** A primary transcript encoding methionyl ***
  5137. --- *** tRNA (SO:0000266). ***
  5138. --- ************************************************
  5139. ---
  5140. CREATE VIEW methionine_trna_primary_transcript AS
  5141. SELECT
  5142. feature_id AS methionine_trna_primary_transcript_id,
  5143. feature.*
  5144. FROM
  5145. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5146. WHERE cvterm.name = 'methionine_tRNA_primary_transcript';
  5147. --- ************************************************
  5148. --- *** relation: phe_trna_primary_transcript ***
  5149. --- *** relation type: VIEW ***
  5150. --- *** ***
  5151. --- *** A primary transcript encoding phenylalan ***
  5152. --- *** yl tRNA (SO:0000267). ***
  5153. --- ************************************************
  5154. ---
  5155. CREATE VIEW phe_trna_primary_transcript AS
  5156. SELECT
  5157. feature_id AS phe_trna_primary_transcript_id,
  5158. feature.*
  5159. FROM
  5160. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5161. WHERE cvterm.name = 'phenylalanine_tRNA_primary_transcript';
  5162. --- ************************************************
  5163. --- *** relation: proline_trna_primary_transcript ***
  5164. --- *** relation type: VIEW ***
  5165. --- *** ***
  5166. --- *** A primary transcript encoding prolyl tRN ***
  5167. --- *** A (SO:0000268). ***
  5168. --- ************************************************
  5169. ---
  5170. CREATE VIEW proline_trna_primary_transcript AS
  5171. SELECT
  5172. feature_id AS proline_trna_primary_transcript_id,
  5173. feature.*
  5174. FROM
  5175. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5176. WHERE cvterm.name = 'proline_tRNA_primary_transcript';
  5177. --- ************************************************
  5178. --- *** relation: serine_trna_primary_transcript ***
  5179. --- *** relation type: VIEW ***
  5180. --- *** ***
  5181. --- *** A primary transcript encoding seryl tRNA ***
  5182. --- *** (SO:000269). ***
  5183. --- ************************************************
  5184. ---
  5185. CREATE VIEW serine_trna_primary_transcript AS
  5186. SELECT
  5187. feature_id AS serine_trna_primary_transcript_id,
  5188. feature.*
  5189. FROM
  5190. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5191. WHERE cvterm.name = 'serine_tRNA_primary_transcript';
  5192. --- ************************************************
  5193. --- *** relation: thr_trna_primary_transcript ***
  5194. --- *** relation type: VIEW ***
  5195. --- *** ***
  5196. --- *** A primary transcript encoding threonyl t ***
  5197. --- *** RNA (SO:000270). ***
  5198. --- ************************************************
  5199. ---
  5200. CREATE VIEW thr_trna_primary_transcript AS
  5201. SELECT
  5202. feature_id AS thr_trna_primary_transcript_id,
  5203. feature.*
  5204. FROM
  5205. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5206. WHERE cvterm.name = 'threonine_tRNA_primary_transcript';
  5207. --- ************************************************
  5208. --- *** relation: try_trna_primary_transcript ***
  5209. --- *** relation type: VIEW ***
  5210. --- *** ***
  5211. --- *** A primary transcript encoding tryptophan ***
  5212. --- *** yl tRNA (SO:000271). ***
  5213. --- ************************************************
  5214. ---
  5215. CREATE VIEW try_trna_primary_transcript AS
  5216. SELECT
  5217. feature_id AS try_trna_primary_transcript_id,
  5218. feature.*
  5219. FROM
  5220. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5221. WHERE cvterm.name = 'tryptophan_tRNA_primary_transcript';
  5222. --- ************************************************
  5223. --- *** relation: tyrosine_trna_primary_transcript ***
  5224. --- *** relation type: VIEW ***
  5225. --- *** ***
  5226. --- *** A primary transcript encoding tyrosyl tR ***
  5227. --- *** NA (SO:000272). ***
  5228. --- ************************************************
  5229. ---
  5230. CREATE VIEW tyrosine_trna_primary_transcript AS
  5231. SELECT
  5232. feature_id AS tyrosine_trna_primary_transcript_id,
  5233. feature.*
  5234. FROM
  5235. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5236. WHERE cvterm.name = 'tyrosine_tRNA_primary_transcript';
  5237. --- ************************************************
  5238. --- *** relation: valine_trna_primary_transcript ***
  5239. --- *** relation type: VIEW ***
  5240. --- *** ***
  5241. --- *** A primary transcript encoding valyl tRNA ***
  5242. --- *** (SO:000273). ***
  5243. --- ************************************************
  5244. ---
  5245. CREATE VIEW valine_trna_primary_transcript AS
  5246. SELECT
  5247. feature_id AS valine_trna_primary_transcript_id,
  5248. feature.*
  5249. FROM
  5250. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5251. WHERE cvterm.name = 'valine_tRNA_primary_transcript';
  5252. --- ************************************************
  5253. --- *** relation: snrna_primary_transcript ***
  5254. --- *** relation type: VIEW ***
  5255. --- *** ***
  5256. --- *** A primary transcript encoding a small nu ***
  5257. --- *** clear RNA (SO:0000274). ***
  5258. --- ************************************************
  5259. ---
  5260. CREATE VIEW snrna_primary_transcript AS
  5261. SELECT
  5262. feature_id AS snrna_primary_transcript_id,
  5263. feature.*
  5264. FROM
  5265. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5266. WHERE cvterm.name = 'snRNA_primary_transcript';
  5267. --- ************************************************
  5268. --- *** relation: snorna_primary_transcript ***
  5269. --- *** relation type: VIEW ***
  5270. --- *** ***
  5271. --- *** A primary transcript encoding a small nu ***
  5272. --- *** cleolar mRNA (SO:0000275). ***
  5273. --- ************************************************
  5274. ---
  5275. CREATE VIEW snorna_primary_transcript AS
  5276. SELECT
  5277. feature_id AS snorna_primary_transcript_id,
  5278. feature.*
  5279. FROM
  5280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5281. 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';
  5282. --- ************************************************
  5283. --- *** relation: mature_transcript ***
  5284. --- *** relation type: VIEW ***
  5285. --- *** ***
  5286. --- *** A transcript which has undergone the nec ***
  5287. --- *** essary modifications, if any, for its fu ***
  5288. --- *** nction. In eukaryotes this includes, for ***
  5289. --- *** example, processing of introns, cleavag ***
  5290. --- *** e, base modification, and modifications ***
  5291. --- *** to the 5' and/or the 3' ends, other than ***
  5292. --- *** addition of bases. In bacteria function ***
  5293. --- *** al mRNAs are usually not modified. ***
  5294. --- ************************************************
  5295. ---
  5296. CREATE VIEW mature_transcript AS
  5297. SELECT
  5298. feature_id AS mature_transcript_id,
  5299. feature.*
  5300. FROM
  5301. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5302. 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';
  5303. --- ************************************************
  5304. --- *** relation: mrna ***
  5305. --- *** relation type: VIEW ***
  5306. --- *** ***
  5307. --- *** Messenger RNA is the intermediate molecu ***
  5308. --- *** le between DNA and protein. It includes ***
  5309. --- *** UTR and coding sequences. It does not co ***
  5310. --- *** ntain introns. ***
  5311. --- ************************************************
  5312. ---
  5313. CREATE VIEW mrna AS
  5314. SELECT
  5315. feature_id AS mrna_id,
  5316. feature.*
  5317. FROM
  5318. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5319. 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';
  5320. --- ************************************************
  5321. --- *** relation: tf_binding_site ***
  5322. --- *** relation type: VIEW ***
  5323. --- *** ***
  5324. --- *** A region of a nucleotide molecule that b ***
  5325. --- *** inds a Transcription Factor or Transcrip ***
  5326. --- *** tion Factor complex [GO:0005667]. ***
  5327. --- ************************************************
  5328. ---
  5329. CREATE VIEW tf_binding_site AS
  5330. SELECT
  5331. feature_id AS tf_binding_site_id,
  5332. feature.*
  5333. FROM
  5334. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5335. WHERE cvterm.name = 'TF_binding_site';
  5336. --- ************************************************
  5337. --- *** relation: orf ***
  5338. --- *** relation type: VIEW ***
  5339. --- *** ***
  5340. --- *** The in-frame interval between the stop c ***
  5341. --- *** odons of a reading frame which when read ***
  5342. --- *** as sequential triplets, has the potenti ***
  5343. --- *** al of encoding a sequential string of am ***
  5344. --- *** ino acids. TER(NNN)nTER. ***
  5345. --- ************************************************
  5346. ---
  5347. CREATE VIEW orf AS
  5348. SELECT
  5349. feature_id AS orf_id,
  5350. feature.*
  5351. FROM
  5352. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5353. WHERE cvterm.name = 'mini_gene' OR cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'ORF';
  5354. --- ************************************************
  5355. --- *** relation: transcript_attribute ***
  5356. --- *** relation type: VIEW ***
  5357. --- *** ***
  5358. --- ************************************************
  5359. ---
  5360. CREATE VIEW transcript_attribute AS
  5361. SELECT
  5362. feature_id AS transcript_attribute_id,
  5363. feature.*
  5364. FROM
  5365. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5366. 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';
  5367. --- ************************************************
  5368. --- *** relation: foldback_element ***
  5369. --- *** relation type: VIEW ***
  5370. --- *** ***
  5371. --- *** A transposable element with extensive se ***
  5372. --- *** condary structure, characterized by larg ***
  5373. --- *** e modular imperfect long inverted repeat ***
  5374. --- *** s. ***
  5375. --- ************************************************
  5376. ---
  5377. CREATE VIEW foldback_element AS
  5378. SELECT
  5379. feature_id AS foldback_element_id,
  5380. feature.*
  5381. FROM
  5382. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5383. WHERE cvterm.name = 'foldback_element';
  5384. --- ************************************************
  5385. --- *** relation: flanking_region ***
  5386. --- *** relation type: VIEW ***
  5387. --- *** ***
  5388. --- *** The sequences extending on either side o ***
  5389. --- *** f a specific region. ***
  5390. --- ************************************************
  5391. ---
  5392. CREATE VIEW flanking_region AS
  5393. SELECT
  5394. feature_id AS flanking_region_id,
  5395. feature.*
  5396. FROM
  5397. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5398. 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';
  5399. --- ************************************************
  5400. --- *** relation: chromosome_variation ***
  5401. --- *** relation type: VIEW ***
  5402. --- *** ***
  5403. --- ************************************************
  5404. ---
  5405. CREATE VIEW chromosome_variation AS
  5406. SELECT
  5407. feature_id AS chromosome_variation_id,
  5408. feature.*
  5409. FROM
  5410. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5411. 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';
  5412. --- ************************************************
  5413. --- *** relation: internal_utr ***
  5414. --- *** relation type: VIEW ***
  5415. --- *** ***
  5416. --- *** A UTR bordered by the terminal and initi ***
  5417. --- *** al codons of two CDSs in a polycistronic ***
  5418. --- *** transcript. Every UTR is either 5', 3' ***
  5419. --- *** or internal. ***
  5420. --- ************************************************
  5421. ---
  5422. CREATE VIEW internal_utr AS
  5423. SELECT
  5424. feature_id AS internal_utr_id,
  5425. feature.*
  5426. FROM
  5427. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5428. WHERE cvterm.name = 'internal_UTR';
  5429. --- ************************************************
  5430. --- *** relation: untranslated_region_polycistronic_mrna ***
  5431. --- *** relation type: VIEW ***
  5432. --- *** ***
  5433. --- *** The untranslated sequence separating the ***
  5434. --- *** 'cistrons' of multicistronic mRNA. ***
  5435. --- ************************************************
  5436. ---
  5437. CREATE VIEW untranslated_region_polycistronic_mrna AS
  5438. SELECT
  5439. feature_id AS untranslated_region_polycistronic_mrna_id,
  5440. feature.*
  5441. FROM
  5442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5443. WHERE cvterm.name = 'untranslated_region_polycistronic_mRNA';
  5444. --- ************************************************
  5445. --- *** relation: internal_ribosome_entry_site ***
  5446. --- *** relation type: VIEW ***
  5447. --- *** ***
  5448. --- *** Sequence element that recruits a ribosom ***
  5449. --- *** al subunit to internal mRNA for translat ***
  5450. --- *** ion initiation. ***
  5451. --- ************************************************
  5452. ---
  5453. CREATE VIEW internal_ribosome_entry_site AS
  5454. SELECT
  5455. feature_id AS internal_ribosome_entry_site_id,
  5456. feature.*
  5457. FROM
  5458. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5459. WHERE cvterm.name = 'internal_Shine_Dalgarno_sequence' OR cvterm.name = 'internal_ribosome_entry_site';
  5460. --- ************************************************
  5461. --- *** relation: polyadenylated ***
  5462. --- *** relation type: VIEW ***
  5463. --- *** ***
  5464. --- *** A attribute describing the addition of a ***
  5465. --- *** poly A tail to the 3' end of a mRNA mol ***
  5466. --- *** ecule. ***
  5467. --- ************************************************
  5468. ---
  5469. CREATE VIEW polyadenylated AS
  5470. SELECT
  5471. feature_id AS polyadenylated_id,
  5472. feature.*
  5473. FROM
  5474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5475. WHERE cvterm.name = 'polyadenylated';
  5476. --- ************************************************
  5477. --- *** relation: sequence_length_variation ***
  5478. --- *** relation type: VIEW ***
  5479. --- *** ***
  5480. --- ************************************************
  5481. ---
  5482. CREATE VIEW sequence_length_variation AS
  5483. SELECT
  5484. feature_id AS sequence_length_variation_id,
  5485. feature.*
  5486. FROM
  5487. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5488. WHERE cvterm.name = 'simple_sequence_length_variation' OR cvterm.name = 'sequence_length_variation';
  5489. --- ************************************************
  5490. --- *** relation: modified_rna_base_feature ***
  5491. --- *** relation type: VIEW ***
  5492. --- *** ***
  5493. --- *** A post_transcriptionally modified base. ***
  5494. --- ************************************************
  5495. ---
  5496. CREATE VIEW modified_rna_base_feature AS
  5497. SELECT
  5498. feature_id AS modified_rna_base_feature_id,
  5499. feature.*
  5500. FROM
  5501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5502. 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';
  5503. --- ************************************************
  5504. --- *** relation: rrna ***
  5505. --- *** relation type: VIEW ***
  5506. --- *** ***
  5507. --- *** RNA that comprises part of a ribosome, a ***
  5508. --- *** nd that can provide both structural scaf ***
  5509. --- *** folding and catalytic activity. ***
  5510. --- ************************************************
  5511. ---
  5512. CREATE VIEW rrna AS
  5513. SELECT
  5514. feature_id AS rrna_id,
  5515. feature.*
  5516. FROM
  5517. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5518. 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';
  5519. --- ************************************************
  5520. --- *** relation: trna ***
  5521. --- *** relation type: VIEW ***
  5522. --- *** ***
  5523. --- *** Transfer RNA (tRNA) molecules are approx ***
  5524. --- *** imately 80 nucleotides in length. Their ***
  5525. --- *** secondary structure includes four short ***
  5526. --- *** double-helical elements and three loops ***
  5527. --- *** (D, anti-codon, and T loops). Further hy ***
  5528. --- *** drogen bonds mediate the characteristic ***
  5529. --- *** L-shaped molecular structure. Transfer R ***
  5530. --- *** NAs have two regions of fundamental func ***
  5531. --- *** tional importance: the anti-codon, which ***
  5532. --- *** is responsible for specific mRNA codon ***
  5533. --- *** recognition, and the 3' end, to which th ***
  5534. --- *** e tRNA's corresponding amino acid is att ***
  5535. --- *** ached (by aminoacyl-tRNA synthetases). T ***
  5536. --- *** ransfer RNAs cope with the degeneracy of ***
  5537. --- *** the genetic code in two manners: having ***
  5538. --- *** more than one tRNA (with a specific ant ***
  5539. --- *** i-codon) for a particular amino acid; an ***
  5540. --- *** d 'wobble' base-pairing, i.e. permitting ***
  5541. --- *** non-standard base-pairing at the 3rd an ***
  5542. --- *** ti-codon position. ***
  5543. --- ************************************************
  5544. ---
  5545. CREATE VIEW trna AS
  5546. SELECT
  5547. feature_id AS trna_id,
  5548. feature.*
  5549. FROM
  5550. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5551. 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';
  5552. --- ************************************************
  5553. --- *** relation: alanyl_trna ***
  5554. --- *** relation type: VIEW ***
  5555. --- *** ***
  5556. --- *** A tRNA sequence that has an alanine anti ***
  5557. --- *** codon, and a 3' alanine binding region. ***
  5558. --- ************************************************
  5559. ---
  5560. CREATE VIEW alanyl_trna AS
  5561. SELECT
  5562. feature_id AS alanyl_trna_id,
  5563. feature.*
  5564. FROM
  5565. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5566. WHERE cvterm.name = 'alanyl_tRNA';
  5567. --- ************************************************
  5568. --- *** relation: rrna_small_subunit_primary_transcript ***
  5569. --- *** relation type: VIEW ***
  5570. --- *** ***
  5571. --- *** A primary transcript encoding a small ri ***
  5572. --- *** bosomal subunit RNA. ***
  5573. --- ************************************************
  5574. ---
  5575. CREATE VIEW rrna_small_subunit_primary_transcript AS
  5576. SELECT
  5577. feature_id AS rrna_small_subunit_primary_transcript_id,
  5578. feature.*
  5579. FROM
  5580. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5581. WHERE cvterm.name = 'rRNA_small_subunit_primary_transcript';
  5582. --- ************************************************
  5583. --- *** relation: asparaginyl_trna ***
  5584. --- *** relation type: VIEW ***
  5585. --- *** ***
  5586. --- *** A tRNA sequence that has an asparagine a ***
  5587. --- *** nticodon, and a 3' asparagine binding re ***
  5588. --- *** gion. ***
  5589. --- ************************************************
  5590. ---
  5591. CREATE VIEW asparaginyl_trna AS
  5592. SELECT
  5593. feature_id AS asparaginyl_trna_id,
  5594. feature.*
  5595. FROM
  5596. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5597. WHERE cvterm.name = 'asparaginyl_tRNA';
  5598. --- ************************************************
  5599. --- *** relation: aspartyl_trna ***
  5600. --- *** relation type: VIEW ***
  5601. --- *** ***
  5602. --- *** A tRNA sequence that has an aspartic aci ***
  5603. --- *** d anticodon, and a 3' aspartic acid bind ***
  5604. --- *** ing region. ***
  5605. --- ************************************************
  5606. ---
  5607. CREATE VIEW aspartyl_trna AS
  5608. SELECT
  5609. feature_id AS aspartyl_trna_id,
  5610. feature.*
  5611. FROM
  5612. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5613. WHERE cvterm.name = 'aspartyl_tRNA';
  5614. --- ************************************************
  5615. --- *** relation: cysteinyl_trna ***
  5616. --- *** relation type: VIEW ***
  5617. --- *** ***
  5618. --- *** A tRNA sequence that has a cysteine anti ***
  5619. --- *** codon, and a 3' cysteine binding region. ***
  5620. --- ************************************************
  5621. ---
  5622. CREATE VIEW cysteinyl_trna AS
  5623. SELECT
  5624. feature_id AS cysteinyl_trna_id,
  5625. feature.*
  5626. FROM
  5627. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5628. WHERE cvterm.name = 'cysteinyl_tRNA';
  5629. --- ************************************************
  5630. --- *** relation: glutaminyl_trna ***
  5631. --- *** relation type: VIEW ***
  5632. --- *** ***
  5633. --- *** A tRNA sequence that has a glutamine ant ***
  5634. --- *** icodon, and a 3' glutamine binding regio ***
  5635. --- *** n. ***
  5636. --- ************************************************
  5637. ---
  5638. CREATE VIEW glutaminyl_trna AS
  5639. SELECT
  5640. feature_id AS glutaminyl_trna_id,
  5641. feature.*
  5642. FROM
  5643. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5644. WHERE cvterm.name = 'glutaminyl_tRNA';
  5645. --- ************************************************
  5646. --- *** relation: glutamyl_trna ***
  5647. --- *** relation type: VIEW ***
  5648. --- *** ***
  5649. --- *** A tRNA sequence that has a glutamic acid ***
  5650. --- *** anticodon, and a 3' glutamic acid bindi ***
  5651. --- *** ng region. ***
  5652. --- ************************************************
  5653. ---
  5654. CREATE VIEW glutamyl_trna AS
  5655. SELECT
  5656. feature_id AS glutamyl_trna_id,
  5657. feature.*
  5658. FROM
  5659. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5660. WHERE cvterm.name = 'glutamyl_tRNA';
  5661. --- ************************************************
  5662. --- *** relation: glycyl_trna ***
  5663. --- *** relation type: VIEW ***
  5664. --- *** ***
  5665. --- *** A tRNA sequence that has a glycine antic ***
  5666. --- *** odon, and a 3' glycine binding region. ***
  5667. --- ************************************************
  5668. ---
  5669. CREATE VIEW glycyl_trna AS
  5670. SELECT
  5671. feature_id AS glycyl_trna_id,
  5672. feature.*
  5673. FROM
  5674. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5675. WHERE cvterm.name = 'glycyl_tRNA';
  5676. --- ************************************************
  5677. --- *** relation: histidyl_trna ***
  5678. --- *** relation type: VIEW ***
  5679. --- *** ***
  5680. --- *** A tRNA sequence that has a histidine ant ***
  5681. --- *** icodon, and a 3' histidine binding regio ***
  5682. --- *** n. ***
  5683. --- ************************************************
  5684. ---
  5685. CREATE VIEW histidyl_trna AS
  5686. SELECT
  5687. feature_id AS histidyl_trna_id,
  5688. feature.*
  5689. FROM
  5690. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5691. WHERE cvterm.name = 'histidyl_tRNA';
  5692. --- ************************************************
  5693. --- *** relation: isoleucyl_trna ***
  5694. --- *** relation type: VIEW ***
  5695. --- *** ***
  5696. --- *** A tRNA sequence that has an isoleucine a ***
  5697. --- *** nticodon, and a 3' isoleucine binding re ***
  5698. --- *** gion. ***
  5699. --- ************************************************
  5700. ---
  5701. CREATE VIEW isoleucyl_trna AS
  5702. SELECT
  5703. feature_id AS isoleucyl_trna_id,
  5704. feature.*
  5705. FROM
  5706. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5707. WHERE cvterm.name = 'isoleucyl_tRNA';
  5708. --- ************************************************
  5709. --- *** relation: leucyl_trna ***
  5710. --- *** relation type: VIEW ***
  5711. --- *** ***
  5712. --- *** A tRNA sequence that has a leucine antic ***
  5713. --- *** odon, and a 3' leucine binding region. ***
  5714. --- ************************************************
  5715. ---
  5716. CREATE VIEW leucyl_trna AS
  5717. SELECT
  5718. feature_id AS leucyl_trna_id,
  5719. feature.*
  5720. FROM
  5721. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5722. WHERE cvterm.name = 'leucyl_tRNA';
  5723. --- ************************************************
  5724. --- *** relation: lysyl_trna ***
  5725. --- *** relation type: VIEW ***
  5726. --- *** ***
  5727. --- *** A tRNA sequence that has a lysine antico ***
  5728. --- *** don, and a 3' lysine binding region. ***
  5729. --- ************************************************
  5730. ---
  5731. CREATE VIEW lysyl_trna AS
  5732. SELECT
  5733. feature_id AS lysyl_trna_id,
  5734. feature.*
  5735. FROM
  5736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5737. WHERE cvterm.name = 'lysyl_tRNA';
  5738. --- ************************************************
  5739. --- *** relation: methionyl_trna ***
  5740. --- *** relation type: VIEW ***
  5741. --- *** ***
  5742. --- *** A tRNA sequence that has a methionine an ***
  5743. --- *** ticodon, and a 3' methionine binding reg ***
  5744. --- *** ion. ***
  5745. --- ************************************************
  5746. ---
  5747. CREATE VIEW methionyl_trna AS
  5748. SELECT
  5749. feature_id AS methionyl_trna_id,
  5750. feature.*
  5751. FROM
  5752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5753. WHERE cvterm.name = 'methionyl_tRNA';
  5754. --- ************************************************
  5755. --- *** relation: phenylalanyl_trna ***
  5756. --- *** relation type: VIEW ***
  5757. --- *** ***
  5758. --- *** A tRNA sequence that has a phenylalanine ***
  5759. --- *** anticodon, and a 3' phenylalanine bindi ***
  5760. --- *** ng region. ***
  5761. --- ************************************************
  5762. ---
  5763. CREATE VIEW phenylalanyl_trna AS
  5764. SELECT
  5765. feature_id AS phenylalanyl_trna_id,
  5766. feature.*
  5767. FROM
  5768. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5769. WHERE cvterm.name = 'phenylalanyl_tRNA';
  5770. --- ************************************************
  5771. --- *** relation: prolyl_trna ***
  5772. --- *** relation type: VIEW ***
  5773. --- *** ***
  5774. --- *** A tRNA sequence that has a proline antic ***
  5775. --- *** odon, and a 3' proline binding region. ***
  5776. --- ************************************************
  5777. ---
  5778. CREATE VIEW prolyl_trna AS
  5779. SELECT
  5780. feature_id AS prolyl_trna_id,
  5781. feature.*
  5782. FROM
  5783. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5784. WHERE cvterm.name = 'prolyl_tRNA';
  5785. --- ************************************************
  5786. --- *** relation: seryl_trna ***
  5787. --- *** relation type: VIEW ***
  5788. --- *** ***
  5789. --- *** A tRNA sequence that has a serine antico ***
  5790. --- *** don, and a 3' serine binding region. ***
  5791. --- ************************************************
  5792. ---
  5793. CREATE VIEW seryl_trna AS
  5794. SELECT
  5795. feature_id AS seryl_trna_id,
  5796. feature.*
  5797. FROM
  5798. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5799. WHERE cvterm.name = 'seryl_tRNA';
  5800. --- ************************************************
  5801. --- *** relation: threonyl_trna ***
  5802. --- *** relation type: VIEW ***
  5803. --- *** ***
  5804. --- *** A tRNA sequence that has a threonine ant ***
  5805. --- *** icodon, and a 3' threonine binding regio ***
  5806. --- *** n. ***
  5807. --- ************************************************
  5808. ---
  5809. CREATE VIEW threonyl_trna AS
  5810. SELECT
  5811. feature_id AS threonyl_trna_id,
  5812. feature.*
  5813. FROM
  5814. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5815. WHERE cvterm.name = 'threonyl_tRNA';
  5816. --- ************************************************
  5817. --- *** relation: tryptophanyl_trna ***
  5818. --- *** relation type: VIEW ***
  5819. --- *** ***
  5820. --- *** A tRNA sequence that has a tryptophan an ***
  5821. --- *** ticodon, and a 3' tryptophan binding reg ***
  5822. --- *** ion. ***
  5823. --- ************************************************
  5824. ---
  5825. CREATE VIEW tryptophanyl_trna AS
  5826. SELECT
  5827. feature_id AS tryptophanyl_trna_id,
  5828. feature.*
  5829. FROM
  5830. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5831. WHERE cvterm.name = 'tryptophanyl_tRNA';
  5832. --- ************************************************
  5833. --- *** relation: tyrosyl_trna ***
  5834. --- *** relation type: VIEW ***
  5835. --- *** ***
  5836. --- *** A tRNA sequence that has a tyrosine anti ***
  5837. --- *** codon, and a 3' tyrosine binding region. ***
  5838. --- ************************************************
  5839. ---
  5840. CREATE VIEW tyrosyl_trna AS
  5841. SELECT
  5842. feature_id AS tyrosyl_trna_id,
  5843. feature.*
  5844. FROM
  5845. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5846. WHERE cvterm.name = 'tyrosyl_tRNA';
  5847. --- ************************************************
  5848. --- *** relation: valyl_trna ***
  5849. --- *** relation type: VIEW ***
  5850. --- *** ***
  5851. --- *** A tRNA sequence that has a valine antico ***
  5852. --- *** don, and a 3' valine binding region. ***
  5853. --- ************************************************
  5854. ---
  5855. CREATE VIEW valyl_trna AS
  5856. SELECT
  5857. feature_id AS valyl_trna_id,
  5858. feature.*
  5859. FROM
  5860. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5861. WHERE cvterm.name = 'valyl_tRNA';
  5862. --- ************************************************
  5863. --- *** relation: snrna ***
  5864. --- *** relation type: VIEW ***
  5865. --- *** ***
  5866. --- *** A small nuclear RNA molecule involved in ***
  5867. --- *** pre-mRNA splicing and processing. ***
  5868. --- ************************************************
  5869. ---
  5870. CREATE VIEW snrna AS
  5871. SELECT
  5872. feature_id AS snrna_id,
  5873. feature.*
  5874. FROM
  5875. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5876. 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';
  5877. --- ************************************************
  5878. --- *** relation: snorna ***
  5879. --- *** relation type: VIEW ***
  5880. --- *** ***
  5881. --- *** A snoRNA (small nucleolar RNA) is any on ***
  5882. --- *** e of a class of small RNAs that are asso ***
  5883. --- *** ciated with the eukaryotic nucleus as co ***
  5884. --- *** mponents of small nucleolar ribonucleopr ***
  5885. --- *** oteins. They participate in the processi ***
  5886. --- *** ng or modifications of many RNAs, mostly ***
  5887. --- *** ribosomal RNAs (rRNAs) though snoRNAs a ***
  5888. --- *** re also known to target other classes of ***
  5889. --- *** RNA, including spliceosomal RNAs, tRNAs ***
  5890. --- *** , and mRNAs via a stretch of sequence th ***
  5891. --- *** at is complementary to a sequence in the ***
  5892. --- *** targeted RNA. ***
  5893. --- ************************************************
  5894. ---
  5895. CREATE VIEW snorna AS
  5896. SELECT
  5897. feature_id AS snorna_id,
  5898. feature.*
  5899. FROM
  5900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5901. 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';
  5902. --- ************************************************
  5903. --- *** relation: mirna ***
  5904. --- *** relation type: VIEW ***
  5905. --- *** ***
  5906. --- *** Small, ~22-nt, RNA molecule that is the ***
  5907. --- *** endogenous transcript of a miRNA gene. M ***
  5908. --- *** icro RNAs are produced from precursor mo ***
  5909. --- *** lecules (SO:0000647) that can form local ***
  5910. --- *** hairpin structures, which ordinarily ar ***
  5911. --- *** e processed (via the Dicer pathway) such ***
  5912. --- *** that a single miRNA molecule accumulate ***
  5913. --- *** s from one arm of a hairpin precursor mo ***
  5914. --- *** lecule. Micro RNAs may trigger the cleav ***
  5915. --- *** age of their target molecules or act as ***
  5916. --- *** translational repressors. ***
  5917. --- ************************************************
  5918. ---
  5919. CREATE VIEW mirna AS
  5920. SELECT
  5921. feature_id AS mirna_id,
  5922. feature.*
  5923. FROM
  5924. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5925. WHERE cvterm.name = 'miRNA';
  5926. --- ************************************************
  5927. --- *** relation: bound_by_factor ***
  5928. --- *** relation type: VIEW ***
  5929. --- *** ***
  5930. --- *** An attribute describing a sequence that ***
  5931. --- *** is bound by another molecule. ***
  5932. --- ************************************************
  5933. ---
  5934. CREATE VIEW bound_by_factor AS
  5935. SELECT
  5936. feature_id AS bound_by_factor_id,
  5937. feature.*
  5938. FROM
  5939. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5940. WHERE cvterm.name = 'bound_by_protein' OR cvterm.name = 'bound_by_nucleic_acid' OR cvterm.name = 'bound_by_factor';
  5941. --- ************************************************
  5942. --- *** relation: transcript_bound_by_nucleic_acid ***
  5943. --- *** relation type: VIEW ***
  5944. --- *** ***
  5945. --- *** A transcript that is bound by a nucleic ***
  5946. --- *** acid. ***
  5947. --- ************************************************
  5948. ---
  5949. CREATE VIEW transcript_bound_by_nucleic_acid AS
  5950. SELECT
  5951. feature_id AS transcript_bound_by_nucleic_acid_id,
  5952. feature.*
  5953. FROM
  5954. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5955. WHERE cvterm.name = 'transcript_bound_by_nucleic_acid';
  5956. --- ************************************************
  5957. --- *** relation: transcript_bound_by_protein ***
  5958. --- *** relation type: VIEW ***
  5959. --- *** ***
  5960. --- *** A transcript that is bound by a protein. ***
  5961. --- ************************************************
  5962. ---
  5963. CREATE VIEW transcript_bound_by_protein AS
  5964. SELECT
  5965. feature_id AS transcript_bound_by_protein_id,
  5966. feature.*
  5967. FROM
  5968. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5969. WHERE cvterm.name = 'transcript_bound_by_protein';
  5970. --- ************************************************
  5971. --- *** relation: engineered_gene ***
  5972. --- *** relation type: VIEW ***
  5973. --- *** ***
  5974. --- *** A gene that is engineered. ***
  5975. --- ************************************************
  5976. ---
  5977. CREATE VIEW engineered_gene AS
  5978. SELECT
  5979. feature_id AS engineered_gene_id,
  5980. feature.*
  5981. FROM
  5982. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5983. 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';
  5984. --- ************************************************
  5985. --- *** relation: engineered_foreign_gene ***
  5986. --- *** relation type: VIEW ***
  5987. --- *** ***
  5988. --- *** A gene that is engineered and foreign. ***
  5989. --- ************************************************
  5990. ---
  5991. CREATE VIEW engineered_foreign_gene AS
  5992. SELECT
  5993. feature_id AS engineered_foreign_gene_id,
  5994. feature.*
  5995. FROM
  5996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  5997. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'engineered_foreign_gene';
  5998. --- ************************************************
  5999. --- *** relation: mrna_with_minus_1_frameshift ***
  6000. --- *** relation type: VIEW ***
  6001. --- *** ***
  6002. --- *** An mRNA with a minus 1 frameshift. ***
  6003. --- ************************************************
  6004. ---
  6005. CREATE VIEW mrna_with_minus_1_frameshift AS
  6006. SELECT
  6007. feature_id AS mrna_with_minus_1_frameshift_id,
  6008. feature.*
  6009. FROM
  6010. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6011. WHERE cvterm.name = 'mRNA_with_minus_1_frameshift';
  6012. --- ************************************************
  6013. --- *** relation: engineered_foreign_transposable_element_gene ***
  6014. --- *** relation type: VIEW ***
  6015. --- *** ***
  6016. --- *** A transposable_element that is engineere ***
  6017. --- *** d and foreign. ***
  6018. --- ************************************************
  6019. ---
  6020. CREATE VIEW engineered_foreign_transposable_element_gene AS
  6021. SELECT
  6022. feature_id AS engineered_foreign_transposable_element_gene_id,
  6023. feature.*
  6024. FROM
  6025. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6026. WHERE cvterm.name = 'engineered_foreign_transposable_element_gene';
  6027. --- ************************************************
  6028. --- *** relation: foreign_gene ***
  6029. --- *** relation type: VIEW ***
  6030. --- *** ***
  6031. --- *** A gene that is foreign. ***
  6032. --- ************************************************
  6033. ---
  6034. CREATE VIEW foreign_gene AS
  6035. SELECT
  6036. feature_id AS foreign_gene_id,
  6037. feature.*
  6038. FROM
  6039. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6040. WHERE cvterm.name = 'engineered_foreign_gene' OR cvterm.name = 'engineered_foreign_transposable_element_gene' OR cvterm.name = 'foreign_gene';
  6041. --- ************************************************
  6042. --- *** relation: long_terminal_repeat ***
  6043. --- *** relation type: VIEW ***
  6044. --- *** ***
  6045. --- *** A sequence directly repeated at both end ***
  6046. --- *** s of a defined sequence, of the sort typ ***
  6047. --- *** ically found in retroviruses. ***
  6048. --- ************************************************
  6049. ---
  6050. CREATE VIEW long_terminal_repeat AS
  6051. SELECT
  6052. feature_id AS long_terminal_repeat_id,
  6053. feature.*
  6054. FROM
  6055. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6056. WHERE cvterm.name = 'five_prime_LTR' OR cvterm.name = 'three_prime_LTR' OR cvterm.name = 'solo_LTR' OR cvterm.name = 'long_terminal_repeat';
  6057. --- ************************************************
  6058. --- *** relation: fusion_gene ***
  6059. --- *** relation type: VIEW ***
  6060. --- *** ***
  6061. --- *** A gene that is a fusion. ***
  6062. --- ************************************************
  6063. ---
  6064. CREATE VIEW fusion_gene AS
  6065. SELECT
  6066. feature_id AS fusion_gene_id,
  6067. feature.*
  6068. FROM
  6069. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6070. WHERE cvterm.name = 'engineered_fusion_gene' OR cvterm.name = 'fusion_gene';
  6071. --- ************************************************
  6072. --- *** relation: engineered_fusion_gene ***
  6073. --- *** relation type: VIEW ***
  6074. --- *** ***
  6075. --- *** A fusion gene that is engineered. ***
  6076. --- ************************************************
  6077. ---
  6078. CREATE VIEW engineered_fusion_gene AS
  6079. SELECT
  6080. feature_id AS engineered_fusion_gene_id,
  6081. feature.*
  6082. FROM
  6083. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6084. WHERE cvterm.name = 'engineered_fusion_gene';
  6085. --- ************************************************
  6086. --- *** relation: microsatellite ***
  6087. --- *** relation type: VIEW ***
  6088. --- *** ***
  6089. --- *** A repeat_region containing repeat_units ***
  6090. --- *** (2 to 4 bp) that is repeated multiple ti ***
  6091. --- *** mes in tandem. ***
  6092. --- ************************************************
  6093. ---
  6094. CREATE VIEW microsatellite AS
  6095. SELECT
  6096. feature_id AS microsatellite_id,
  6097. feature.*
  6098. FROM
  6099. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6100. 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';
  6101. --- ************************************************
  6102. --- *** relation: dinucleotide_repeat_microsatellite_feature ***
  6103. --- *** relation type: VIEW ***
  6104. --- *** ***
  6105. --- ************************************************
  6106. ---
  6107. CREATE VIEW dinucleotide_repeat_microsatellite_feature AS
  6108. SELECT
  6109. feature_id AS dinucleotide_repeat_microsatellite_feature_id,
  6110. feature.*
  6111. FROM
  6112. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6113. WHERE cvterm.name = 'dinucleotide_repeat_microsatellite_feature';
  6114. --- ************************************************
  6115. --- *** relation: trinuc_repeat_microsat ***
  6116. --- *** relation type: VIEW ***
  6117. --- *** ***
  6118. --- ************************************************
  6119. ---
  6120. CREATE VIEW trinuc_repeat_microsat AS
  6121. SELECT
  6122. feature_id AS trinuc_repeat_microsat_id,
  6123. feature.*
  6124. FROM
  6125. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6126. WHERE cvterm.name = 'trinucleotide_repeat_microsatellite_feature';
  6127. --- ************************************************
  6128. --- *** relation: engineered_foreign_repetitive_element ***
  6129. --- *** relation type: VIEW ***
  6130. --- *** ***
  6131. --- *** A repetitive element that is engineered ***
  6132. --- *** and foreign. ***
  6133. --- ************************************************
  6134. ---
  6135. CREATE VIEW engineered_foreign_repetitive_element AS
  6136. SELECT
  6137. feature_id AS engineered_foreign_repetitive_element_id,
  6138. feature.*
  6139. FROM
  6140. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6141. WHERE cvterm.name = 'engineered_foreign_repetitive_element';
  6142. --- ************************************************
  6143. --- *** relation: inverted_repeat ***
  6144. --- *** relation type: VIEW ***
  6145. --- *** ***
  6146. --- *** The sequence is complementarily repeated ***
  6147. --- *** on the opposite strand. It is a palindr ***
  6148. --- *** ome, and it may, or may not be hyphenate ***
  6149. --- *** d. Examples: GCTGATCAGC, or GCTGA-----TC ***
  6150. --- *** AGC. ***
  6151. --- ************************************************
  6152. ---
  6153. CREATE VIEW inverted_repeat AS
  6154. SELECT
  6155. feature_id AS inverted_repeat_id,
  6156. feature.*
  6157. FROM
  6158. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6159. 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';
  6160. --- ************************************************
  6161. --- *** relation: u12_intron ***
  6162. --- *** relation type: VIEW ***
  6163. --- *** ***
  6164. --- *** A type of spliceosomal intron spliced by ***
  6165. --- *** the U12 spliceosome, that includes U11, ***
  6166. --- *** U12, U4atac/U6atac and U5 snRNAs. ***
  6167. --- ************************************************
  6168. ---
  6169. CREATE VIEW u12_intron AS
  6170. SELECT
  6171. feature_id AS u12_intron_id,
  6172. feature.*
  6173. FROM
  6174. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6175. WHERE cvterm.name = 'U12_intron';
  6176. --- ************************************************
  6177. --- *** relation: origin_of_replication ***
  6178. --- *** relation type: VIEW ***
  6179. --- *** ***
  6180. --- *** The origin of replication; starting site ***
  6181. --- *** for duplication of a nucleic acid molec ***
  6182. --- *** ule to give two identical copies. ***
  6183. --- ************************************************
  6184. ---
  6185. CREATE VIEW origin_of_replication AS
  6186. SELECT
  6187. feature_id AS origin_of_replication_id,
  6188. feature.*
  6189. FROM
  6190. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6191. 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';
  6192. --- ************************************************
  6193. --- *** relation: d_loop ***
  6194. --- *** relation type: VIEW ***
  6195. --- *** ***
  6196. --- *** Displacement loop; a region within mitoc ***
  6197. --- *** hondrial DNA in which a short stretch of ***
  6198. --- *** RNA is paired with one strand of DNA, d ***
  6199. --- *** isplacing the original partner DNA stran ***
  6200. --- *** d in this region; also used to describe ***
  6201. --- *** the displacement of a region of one stra ***
  6202. --- *** nd of duplex DNA by a single stranded in ***
  6203. --- *** vader in the reaction catalyzed by RecA ***
  6204. --- *** protein. ***
  6205. --- ************************************************
  6206. ---
  6207. CREATE VIEW d_loop AS
  6208. SELECT
  6209. feature_id AS d_loop_id,
  6210. feature.*
  6211. FROM
  6212. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6213. WHERE cvterm.name = 'D_loop';
  6214. --- ************************************************
  6215. --- *** relation: recombination_feature ***
  6216. --- *** relation type: VIEW ***
  6217. --- *** ***
  6218. --- ************************************************
  6219. ---
  6220. CREATE VIEW recombination_feature AS
  6221. SELECT
  6222. feature_id AS recombination_feature_id,
  6223. feature.*
  6224. FROM
  6225. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6226. 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';
  6227. --- ************************************************
  6228. --- *** relation: specific_recombination_site ***
  6229. --- *** relation type: VIEW ***
  6230. --- *** ***
  6231. --- ************************************************
  6232. ---
  6233. CREATE VIEW specific_recombination_site AS
  6234. SELECT
  6235. feature_id AS specific_recombination_site_id,
  6236. feature.*
  6237. FROM
  6238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6239. 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';
  6240. --- ************************************************
  6241. --- *** relation: recombination_feature_of_rearranged_gene ***
  6242. --- *** relation type: VIEW ***
  6243. --- *** ***
  6244. --- ************************************************
  6245. ---
  6246. CREATE VIEW recombination_feature_of_rearranged_gene AS
  6247. SELECT
  6248. feature_id AS recombination_feature_of_rearranged_gene_id,
  6249. feature.*
  6250. FROM
  6251. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6252. 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';
  6253. --- ************************************************
  6254. --- *** relation: vertebrate_immune_system_gene_recombination_feature ***
  6255. --- *** relation type: VIEW ***
  6256. --- *** ***
  6257. --- ************************************************
  6258. ---
  6259. CREATE VIEW vertebrate_immune_system_gene_recombination_feature AS
  6260. SELECT
  6261. feature_id AS vertebrate_immune_system_gene_recombination_feature_id,
  6262. feature.*
  6263. FROM
  6264. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6265. 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';
  6266. --- ************************************************
  6267. --- *** relation: j_gene_recombination_feature ***
  6268. --- *** relation type: VIEW ***
  6269. --- *** ***
  6270. --- *** Recombination signal including J-heptame ***
  6271. --- *** r, J-spacer and J-nonamer in 5' of J-reg ***
  6272. --- *** ion of a J-gene or J-sequence. ***
  6273. --- ************************************************
  6274. ---
  6275. CREATE VIEW j_gene_recombination_feature AS
  6276. SELECT
  6277. feature_id AS j_gene_recombination_feature_id,
  6278. feature.*
  6279. FROM
  6280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6281. WHERE cvterm.name = 'J_gene_recombination_feature';
  6282. --- ************************************************
  6283. --- *** relation: clip ***
  6284. --- *** relation type: VIEW ***
  6285. --- *** ***
  6286. --- *** Part of the primary transcript that is c ***
  6287. --- *** lipped off during processing. ***
  6288. --- ************************************************
  6289. ---
  6290. CREATE VIEW clip AS
  6291. SELECT
  6292. feature_id AS clip_id,
  6293. feature.*
  6294. FROM
  6295. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6296. WHERE cvterm.name = 'five_prime_clip' OR cvterm.name = 'three_prime_clip' OR cvterm.name = 'clip';
  6297. --- ************************************************
  6298. --- *** relation: modified_base ***
  6299. --- *** relation type: VIEW ***
  6300. --- *** ***
  6301. --- *** A modified nucleotide, i.e. a nucleotide ***
  6302. --- *** other than A, T, C. G. ***
  6303. --- ************************************************
  6304. ---
  6305. CREATE VIEW modified_base AS
  6306. SELECT
  6307. feature_id AS modified_base_id,
  6308. feature.*
  6309. FROM
  6310. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6311. WHERE cvterm.name = 'methylated_base_feature' OR cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'modified_base';
  6312. --- ************************************************
  6313. --- *** relation: methylated_base_feature ***
  6314. --- *** relation type: VIEW ***
  6315. --- *** ***
  6316. --- *** A nucleotide modified by methylation. ***
  6317. --- ************************************************
  6318. ---
  6319. CREATE VIEW methylated_base_feature AS
  6320. SELECT
  6321. feature_id AS methylated_base_feature_id,
  6322. feature.*
  6323. FROM
  6324. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6325. WHERE cvterm.name = 'methylated_C' OR cvterm.name = 'methylated_A' OR cvterm.name = 'methylated_base_feature';
  6326. --- ************************************************
  6327. --- *** relation: cpg_island ***
  6328. --- *** relation type: VIEW ***
  6329. --- *** ***
  6330. --- *** Regions of a few hundred to a few thousa ***
  6331. --- *** nd bases in vertebrate genomes that are ***
  6332. --- *** relatively GC and CpG rich; they are typ ***
  6333. --- *** ically unmethylated and often found near ***
  6334. --- *** the 5' ends of genes. ***
  6335. --- ************************************************
  6336. ---
  6337. CREATE VIEW cpg_island AS
  6338. SELECT
  6339. feature_id AS cpg_island_id,
  6340. feature.*
  6341. FROM
  6342. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6343. WHERE cvterm.name = 'CpG_island';
  6344. --- ************************************************
  6345. --- *** relation: experimentally_determined ***
  6346. --- *** relation type: VIEW ***
  6347. --- *** ***
  6348. --- *** Attribute to describe a feature that has ***
  6349. --- *** been experimentally verified. ***
  6350. --- ************************************************
  6351. ---
  6352. CREATE VIEW experimentally_determined AS
  6353. SELECT
  6354. feature_id AS experimentally_determined_id,
  6355. feature.*
  6356. FROM
  6357. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6358. WHERE cvterm.name = 'experimentally_determined';
  6359. --- ************************************************
  6360. --- *** relation: stem_loop ***
  6361. --- *** relation type: VIEW ***
  6362. --- *** ***
  6363. --- *** A double-helical region of nucleic acid ***
  6364. --- *** formed by base-pairing between adjacent ***
  6365. --- *** (inverted) complementary sequences. ***
  6366. --- ************************************************
  6367. ---
  6368. CREATE VIEW stem_loop AS
  6369. SELECT
  6370. feature_id AS stem_loop_id,
  6371. feature.*
  6372. FROM
  6373. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6374. WHERE cvterm.name = 'tetraloop' OR cvterm.name = 'stem_loop';
  6375. --- ************************************************
  6376. --- *** relation: direct_repeat ***
  6377. --- *** relation type: VIEW ***
  6378. --- *** ***
  6379. --- *** A repeat where the same sequence is repe ***
  6380. --- *** ated in the same direction. Example: GCT ***
  6381. --- *** GA-----GCTGA. ***
  6382. --- ************************************************
  6383. ---
  6384. CREATE VIEW direct_repeat AS
  6385. SELECT
  6386. feature_id AS direct_repeat_id,
  6387. feature.*
  6388. FROM
  6389. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6390. WHERE cvterm.name = 'target_site_duplication' OR cvterm.name = 'CRISPR' OR cvterm.name = 'direct_repeat';
  6391. --- ************************************************
  6392. --- *** relation: tss ***
  6393. --- *** relation type: VIEW ***
  6394. --- *** ***
  6395. --- *** The first base where RNA polymerase begi ***
  6396. --- *** ns to synthesize the RNA transcript. ***
  6397. --- ************************************************
  6398. ---
  6399. CREATE VIEW tss AS
  6400. SELECT
  6401. feature_id AS tss_id,
  6402. feature.*
  6403. FROM
  6404. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6405. WHERE cvterm.name = 'major_TSS' OR cvterm.name = 'minor_TSS' OR cvterm.name = 'TSS';
  6406. --- ************************************************
  6407. --- *** relation: cds ***
  6408. --- *** relation type: VIEW ***
  6409. --- *** ***
  6410. --- *** A contiguous sequence which begins with, ***
  6411. --- *** and includes, a start codon and ends wi ***
  6412. --- *** th, and includes, a stop codon. ***
  6413. --- ************************************************
  6414. ---
  6415. CREATE VIEW cds AS
  6416. SELECT
  6417. feature_id AS cds_id,
  6418. feature.*
  6419. FROM
  6420. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6421. 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';
  6422. --- ************************************************
  6423. --- *** relation: cdna_clone ***
  6424. --- *** relation type: VIEW ***
  6425. --- *** ***
  6426. --- *** Complementary DNA; A piece of DNA copied ***
  6427. --- *** from an mRNA and spliced into a vector ***
  6428. --- *** for propagation in a suitable host. ***
  6429. --- ************************************************
  6430. ---
  6431. CREATE VIEW cdna_clone AS
  6432. SELECT
  6433. feature_id AS cdna_clone_id,
  6434. feature.*
  6435. FROM
  6436. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6437. 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';
  6438. --- ************************************************
  6439. --- *** relation: start_codon ***
  6440. --- *** relation type: VIEW ***
  6441. --- *** ***
  6442. --- *** First codon to be translated by a riboso ***
  6443. --- *** me. ***
  6444. --- ************************************************
  6445. ---
  6446. CREATE VIEW start_codon AS
  6447. SELECT
  6448. feature_id AS start_codon_id,
  6449. feature.*
  6450. FROM
  6451. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6452. 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';
  6453. --- ************************************************
  6454. --- *** relation: stop_codon ***
  6455. --- *** relation type: VIEW ***
  6456. --- *** ***
  6457. --- *** In mRNA, a set of three nucleotides that ***
  6458. --- *** indicates the end of information for pr ***
  6459. --- *** otein synthesis. ***
  6460. --- ************************************************
  6461. ---
  6462. CREATE VIEW stop_codon AS
  6463. SELECT
  6464. feature_id AS stop_codon_id,
  6465. feature.*
  6466. FROM
  6467. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6468. WHERE cvterm.name = 'stop_codon';
  6469. --- ************************************************
  6470. --- *** relation: intronic_splice_enhancer ***
  6471. --- *** relation type: VIEW ***
  6472. --- *** ***
  6473. --- *** Sequences within the intron that modulat ***
  6474. --- *** e splice site selection for some introns ***
  6475. --- *** . ***
  6476. --- ************************************************
  6477. ---
  6478. CREATE VIEW intronic_splice_enhancer AS
  6479. SELECT
  6480. feature_id AS intronic_splice_enhancer_id,
  6481. feature.*
  6482. FROM
  6483. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6484. WHERE cvterm.name = 'intronic_splice_enhancer';
  6485. --- ************************************************
  6486. --- *** relation: mrna_with_plus_1_frameshift ***
  6487. --- *** relation type: VIEW ***
  6488. --- *** ***
  6489. --- *** An mRNA with a plus 1 frameshift. ***
  6490. --- ************************************************
  6491. ---
  6492. CREATE VIEW mrna_with_plus_1_frameshift AS
  6493. SELECT
  6494. feature_id AS mrna_with_plus_1_frameshift_id,
  6495. feature.*
  6496. FROM
  6497. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6498. WHERE cvterm.name = 'mRNA_with_plus_1_frameshift';
  6499. --- ************************************************
  6500. --- *** relation: nuclease_hypersensitive_site ***
  6501. --- *** relation type: VIEW ***
  6502. --- *** ***
  6503. --- ************************************************
  6504. ---
  6505. CREATE VIEW nuclease_hypersensitive_site AS
  6506. SELECT
  6507. feature_id AS nuclease_hypersensitive_site_id,
  6508. feature.*
  6509. FROM
  6510. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6511. WHERE cvterm.name = 'DNAseI_hypersensitive_site' OR cvterm.name = 'nuclease_hypersensitive_site';
  6512. --- ************************************************
  6513. --- *** relation: coding_start ***
  6514. --- *** relation type: VIEW ***
  6515. --- *** ***
  6516. --- *** The first base to be translated into pro ***
  6517. --- *** tein. ***
  6518. --- ************************************************
  6519. ---
  6520. CREATE VIEW coding_start AS
  6521. SELECT
  6522. feature_id AS coding_start_id,
  6523. feature.*
  6524. FROM
  6525. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6526. WHERE cvterm.name = 'coding_start';
  6527. --- ************************************************
  6528. --- *** relation: tag ***
  6529. --- *** relation type: VIEW ***
  6530. --- *** ***
  6531. --- *** A nucleotide sequence that may be used t ***
  6532. --- *** o identify a larger sequence. ***
  6533. --- ************************************************
  6534. ---
  6535. CREATE VIEW tag AS
  6536. SELECT
  6537. feature_id AS tag_id,
  6538. feature.*
  6539. FROM
  6540. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6541. 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';
  6542. --- ************************************************
  6543. --- *** relation: rrna_large_subunit_primary_transcript ***
  6544. --- *** relation type: VIEW ***
  6545. --- *** ***
  6546. --- *** A primary transcript encoding a large ri ***
  6547. --- *** bosomal subunit RNA. ***
  6548. --- ************************************************
  6549. ---
  6550. CREATE VIEW rrna_large_subunit_primary_transcript AS
  6551. SELECT
  6552. feature_id AS rrna_large_subunit_primary_transcript_id,
  6553. feature.*
  6554. FROM
  6555. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6556. WHERE cvterm.name = 'rRNA_large_subunit_primary_transcript';
  6557. --- ************************************************
  6558. --- *** relation: sage_tag ***
  6559. --- *** relation type: VIEW ***
  6560. --- *** ***
  6561. --- *** A short diagnostic sequence tag, serial ***
  6562. --- *** analysis of gene expression (SAGE), that ***
  6563. --- *** allows the quantitative and simultaneou ***
  6564. --- *** s analysis of a large number of transcri ***
  6565. --- *** pts. ***
  6566. --- ************************************************
  6567. ---
  6568. CREATE VIEW sage_tag AS
  6569. SELECT
  6570. feature_id AS sage_tag_id,
  6571. feature.*
  6572. FROM
  6573. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6574. WHERE cvterm.name = 'SAGE_tag';
  6575. --- ************************************************
  6576. --- *** relation: coding_end ***
  6577. --- *** relation type: VIEW ***
  6578. --- *** ***
  6579. --- *** The last base to be translated into prot ***
  6580. --- *** ein. It does not include the stop codon. ***
  6581. --- ************************************************
  6582. ---
  6583. CREATE VIEW coding_end AS
  6584. SELECT
  6585. feature_id AS coding_end_id,
  6586. feature.*
  6587. FROM
  6588. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6589. WHERE cvterm.name = 'coding_end';
  6590. --- ************************************************
  6591. --- *** relation: microarray_oligo ***
  6592. --- *** relation type: VIEW ***
  6593. --- *** ***
  6594. --- ************************************************
  6595. ---
  6596. CREATE VIEW microarray_oligo AS
  6597. SELECT
  6598. feature_id AS microarray_oligo_id,
  6599. feature.*
  6600. FROM
  6601. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6602. WHERE cvterm.name = 'microarray_oligo';
  6603. --- ************************************************
  6604. --- *** relation: mrna_with_plus_2_frameshift ***
  6605. --- *** relation type: VIEW ***
  6606. --- *** ***
  6607. --- *** An mRNA with a plus 2 frameshift. ***
  6608. --- ************************************************
  6609. ---
  6610. CREATE VIEW mrna_with_plus_2_frameshift AS
  6611. SELECT
  6612. feature_id AS mrna_with_plus_2_frameshift_id,
  6613. feature.*
  6614. FROM
  6615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6616. WHERE cvterm.name = 'mRNA_with_plus_2_frameshift';
  6617. --- ************************************************
  6618. --- *** relation: conserved_region ***
  6619. --- *** relation type: VIEW ***
  6620. --- *** ***
  6621. --- *** Region of sequence similarity by descent ***
  6622. --- *** from a common ancestor. ***
  6623. --- ************************************************
  6624. ---
  6625. CREATE VIEW conserved_region AS
  6626. SELECT
  6627. feature_id AS conserved_region_id,
  6628. feature.*
  6629. FROM
  6630. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6631. 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';
  6632. --- ************************************************
  6633. --- *** relation: sts ***
  6634. --- *** relation type: VIEW ***
  6635. --- *** ***
  6636. --- *** Short (typically a few hundred base pair ***
  6637. --- *** s) DNA sequence that has a single occurr ***
  6638. --- *** ence in a genome and whose location and ***
  6639. --- *** base sequence are known. ***
  6640. --- ************************************************
  6641. ---
  6642. CREATE VIEW sts AS
  6643. SELECT
  6644. feature_id AS sts_id,
  6645. feature.*
  6646. FROM
  6647. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6648. WHERE cvterm.name = 'STS';
  6649. --- ************************************************
  6650. --- *** relation: coding_conserved_region ***
  6651. --- *** relation type: VIEW ***
  6652. --- *** ***
  6653. --- *** Coding region of sequence similarity by ***
  6654. --- *** descent from a common ancestor. ***
  6655. --- ************************************************
  6656. ---
  6657. CREATE VIEW coding_conserved_region AS
  6658. SELECT
  6659. feature_id AS coding_conserved_region_id,
  6660. feature.*
  6661. FROM
  6662. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6663. WHERE cvterm.name = 'coding_conserved_region';
  6664. --- ************************************************
  6665. --- *** relation: exon_junction ***
  6666. --- *** relation type: VIEW ***
  6667. --- *** ***
  6668. --- *** The boundary between two exons in a proc ***
  6669. --- *** essed transcript. ***
  6670. --- ************************************************
  6671. ---
  6672. CREATE VIEW exon_junction AS
  6673. SELECT
  6674. feature_id AS exon_junction_id,
  6675. feature.*
  6676. FROM
  6677. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6678. WHERE cvterm.name = 'exon_junction';
  6679. --- ************************************************
  6680. --- *** relation: nc_conserved_region ***
  6681. --- *** relation type: VIEW ***
  6682. --- *** ***
  6683. --- *** Non-coding region of sequence similarity ***
  6684. --- *** by descent from a common ancestor. ***
  6685. --- ************************************************
  6686. ---
  6687. CREATE VIEW nc_conserved_region AS
  6688. SELECT
  6689. feature_id AS nc_conserved_region_id,
  6690. feature.*
  6691. FROM
  6692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6693. WHERE cvterm.name = 'nc_conserved_region';
  6694. --- ************************************************
  6695. --- *** relation: mrna_with_minus_2_frameshift ***
  6696. --- *** relation type: VIEW ***
  6697. --- *** ***
  6698. --- *** A mRNA with a minus 2 frameshift. ***
  6699. --- ************************************************
  6700. ---
  6701. CREATE VIEW mrna_with_minus_2_frameshift AS
  6702. SELECT
  6703. feature_id AS mrna_with_minus_2_frameshift_id,
  6704. feature.*
  6705. FROM
  6706. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6707. WHERE cvterm.name = 'mRNA_with_minus_2_frameshift';
  6708. --- ************************************************
  6709. --- *** relation: pseudogene ***
  6710. --- *** relation type: VIEW ***
  6711. --- *** ***
  6712. --- *** A sequence that closely resembles a know ***
  6713. --- *** n functional gene, at another locus with ***
  6714. --- *** in a genome, that is non-functional as a ***
  6715. --- *** consequence of (usually several) mutati ***
  6716. --- *** ons that prevent either its transcriptio ***
  6717. --- *** n or translation (or both). In general, ***
  6718. --- *** pseudogenes result from either reverse t ***
  6719. --- *** ranscription of a transcript of their "n ***
  6720. --- *** ormal" paralog (SO:0000043) (in which ca ***
  6721. --- *** se the pseudogene typically lacks intron ***
  6722. --- *** s and includes a poly(A) tail) or from r ***
  6723. --- *** ecombination (SO:0000044) (in which case ***
  6724. --- *** the pseudogene is typically a tandem du ***
  6725. --- *** plication of its "normal" paralog). ***
  6726. --- ************************************************
  6727. ---
  6728. CREATE VIEW pseudogene AS
  6729. SELECT
  6730. feature_id AS pseudogene_id,
  6731. feature.*
  6732. FROM
  6733. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6734. 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';
  6735. --- ************************************************
  6736. --- *** relation: rnai_reagent ***
  6737. --- *** relation type: VIEW ***
  6738. --- *** ***
  6739. --- *** A double stranded RNA duplex, at least 2 ***
  6740. --- *** 0bp long, used experimentally to inhibit ***
  6741. --- *** gene function by RNA interference. ***
  6742. --- ************************************************
  6743. ---
  6744. CREATE VIEW rnai_reagent AS
  6745. SELECT
  6746. feature_id AS rnai_reagent_id,
  6747. feature.*
  6748. FROM
  6749. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6750. WHERE cvterm.name = 'RNAi_reagent';
  6751. --- ************************************************
  6752. --- *** relation: mite ***
  6753. --- *** relation type: VIEW ***
  6754. --- *** ***
  6755. --- *** A highly repetitive and short (100-500 b ***
  6756. --- *** ase pair) transposable element with term ***
  6757. --- *** inal inverted repeats (TIR) and target s ***
  6758. --- *** ite duplication (TSD). MITEs do not enco ***
  6759. --- *** de proteins. ***
  6760. --- ************************************************
  6761. ---
  6762. CREATE VIEW mite AS
  6763. SELECT
  6764. feature_id AS mite_id,
  6765. feature.*
  6766. FROM
  6767. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6768. WHERE cvterm.name = 'MITE';
  6769. --- ************************************************
  6770. --- *** relation: recombination_hotspot ***
  6771. --- *** relation type: VIEW ***
  6772. --- *** ***
  6773. --- *** A region in a genome which promotes reco ***
  6774. --- *** mbination. ***
  6775. --- ************************************************
  6776. ---
  6777. CREATE VIEW recombination_hotspot AS
  6778. SELECT
  6779. feature_id AS recombination_hotspot_id,
  6780. feature.*
  6781. FROM
  6782. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6783. WHERE cvterm.name = 'recombination_hotspot';
  6784. --- ************************************************
  6785. --- *** relation: chromosome ***
  6786. --- *** relation type: VIEW ***
  6787. --- *** ***
  6788. --- *** Structural unit composed of a nucleic ac ***
  6789. --- *** id molecule which controls its own repli ***
  6790. --- *** cation through the interaction of specif ***
  6791. --- *** ic proteins at one or more origins of re ***
  6792. --- *** plication. ***
  6793. --- ************************************************
  6794. ---
  6795. CREATE VIEW chromosome AS
  6796. SELECT
  6797. feature_id AS chromosome_id,
  6798. feature.*
  6799. FROM
  6800. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6801. 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';
  6802. --- ************************************************
  6803. --- *** relation: chromosome_band ***
  6804. --- *** relation type: VIEW ***
  6805. --- *** ***
  6806. --- *** A cytologically distinguishable feature ***
  6807. --- *** of a chromosome, often made visible by s ***
  6808. --- *** taining, and usually alternating light a ***
  6809. --- *** nd dark. ***
  6810. --- ************************************************
  6811. ---
  6812. CREATE VIEW chromosome_band AS
  6813. SELECT
  6814. feature_id AS chromosome_band_id,
  6815. feature.*
  6816. FROM
  6817. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6818. WHERE cvterm.name = 'chromosome_band';
  6819. --- ************************************************
  6820. --- *** relation: site_specific_recombination_target_region ***
  6821. --- *** relation type: VIEW ***
  6822. --- *** ***
  6823. --- ************************************************
  6824. ---
  6825. CREATE VIEW site_specific_recombination_target_region AS
  6826. SELECT
  6827. feature_id AS site_specific_recombination_target_region_id,
  6828. feature.*
  6829. FROM
  6830. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6831. 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';
  6832. --- ************************************************
  6833. --- *** relation: match ***
  6834. --- *** relation type: VIEW ***
  6835. --- *** ***
  6836. --- *** A region of sequence, aligned to another ***
  6837. --- *** sequence with some statistical signific ***
  6838. --- *** ance, using an algorithm such as BLAST o ***
  6839. --- *** r SIM4. ***
  6840. --- ************************************************
  6841. ---
  6842. CREATE VIEW match AS
  6843. SELECT
  6844. feature_id AS match_id,
  6845. feature.*
  6846. FROM
  6847. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6848. 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';
  6849. --- ************************************************
  6850. --- *** relation: splice_enhancer ***
  6851. --- *** relation type: VIEW ***
  6852. --- *** ***
  6853. --- *** Region of a transcript that regulates sp ***
  6854. --- *** licing. ***
  6855. --- ************************************************
  6856. ---
  6857. CREATE VIEW splice_enhancer AS
  6858. SELECT
  6859. feature_id AS splice_enhancer_id,
  6860. feature.*
  6861. FROM
  6862. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6863. WHERE cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'splice_enhancer';
  6864. --- ************************************************
  6865. --- *** relation: est ***
  6866. --- *** relation type: VIEW ***
  6867. --- *** ***
  6868. --- *** A tag produced from a single sequencing ***
  6869. --- *** read from a cDNA clone or PCR product; t ***
  6870. --- *** ypically a few hundred base pairs long. ***
  6871. --- ************************************************
  6872. ---
  6873. CREATE VIEW est AS
  6874. SELECT
  6875. feature_id AS est_id,
  6876. feature.*
  6877. FROM
  6878. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6879. 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';
  6880. --- ************************************************
  6881. --- *** relation: loxp_site ***
  6882. --- *** relation type: VIEW ***
  6883. --- *** ***
  6884. --- ************************************************
  6885. ---
  6886. CREATE VIEW loxp_site AS
  6887. SELECT
  6888. feature_id AS loxp_site_id,
  6889. feature.*
  6890. FROM
  6891. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6892. WHERE cvterm.name = 'loxP_site';
  6893. --- ************************************************
  6894. --- *** relation: nucleotide_match ***
  6895. --- *** relation type: VIEW ***
  6896. --- *** ***
  6897. --- *** A match against a nucleotide sequence. ***
  6898. --- ************************************************
  6899. ---
  6900. CREATE VIEW nucleotide_match AS
  6901. SELECT
  6902. feature_id AS nucleotide_match_id,
  6903. feature.*
  6904. FROM
  6905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6906. 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';
  6907. --- ************************************************
  6908. --- *** relation: nucleic_acid ***
  6909. --- *** relation type: VIEW ***
  6910. --- *** ***
  6911. --- *** An attribute describing a sequence consi ***
  6912. --- *** sting of nucleobases bound to repeating ***
  6913. --- *** units. The forms found in nature are deo ***
  6914. --- *** xyribonucleic acid (DNA), where the repe ***
  6915. --- *** ating units are 2-deoxy-D-ribose rings c ***
  6916. --- *** onnected to a phosphate backbone, and ri ***
  6917. --- *** bonucleic acid (RNA), where the repeatin ***
  6918. --- *** g units are D-ribose rings connected to ***
  6919. --- *** a phosphate backbone. ***
  6920. --- ************************************************
  6921. ---
  6922. CREATE VIEW nucleic_acid AS
  6923. SELECT
  6924. feature_id AS nucleic_acid_id,
  6925. feature.*
  6926. FROM
  6927. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6928. 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';
  6929. --- ************************************************
  6930. --- *** relation: protein_match ***
  6931. --- *** relation type: VIEW ***
  6932. --- *** ***
  6933. --- *** A match against a protein sequence. ***
  6934. --- ************************************************
  6935. ---
  6936. CREATE VIEW protein_match AS
  6937. SELECT
  6938. feature_id AS protein_match_id,
  6939. feature.*
  6940. FROM
  6941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6942. WHERE cvterm.name = 'protein_match';
  6943. --- ************************************************
  6944. --- *** relation: frt_site ***
  6945. --- *** relation type: VIEW ***
  6946. --- *** ***
  6947. --- *** An inversion site found on the Saccharom ***
  6948. --- *** yces cerevisiae 2 micron plasmid. ***
  6949. --- ************************************************
  6950. ---
  6951. CREATE VIEW frt_site AS
  6952. SELECT
  6953. feature_id AS frt_site_id,
  6954. feature.*
  6955. FROM
  6956. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6957. WHERE cvterm.name = 'FRT_site';
  6958. --- ************************************************
  6959. --- *** relation: synthetic_sequence ***
  6960. --- *** relation type: VIEW ***
  6961. --- *** ***
  6962. --- *** An attribute to decide a sequence of nuc ***
  6963. --- *** leotides, nucleotide analogs, or amino a ***
  6964. --- *** cids that has been designed by an experi ***
  6965. --- *** menter and which may, or may not, corres ***
  6966. --- *** pond with any natural sequence. ***
  6967. --- ************************************************
  6968. ---
  6969. CREATE VIEW synthetic_sequence AS
  6970. SELECT
  6971. feature_id AS synthetic_sequence_id,
  6972. feature.*
  6973. FROM
  6974. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6975. WHERE cvterm.name = 'random_sequence' OR cvterm.name = 'designed_sequence' OR cvterm.name = 'synthetic_sequence';
  6976. --- ************************************************
  6977. --- *** relation: dna ***
  6978. --- *** relation type: VIEW ***
  6979. --- *** ***
  6980. --- *** An attribute describing a sequence consi ***
  6981. --- *** sting of nucleobases bound to a repeatin ***
  6982. --- *** g unit made of a 2-deoxy-D-ribose ring c ***
  6983. --- *** onnected to a phosphate backbone. ***
  6984. --- ************************************************
  6985. ---
  6986. CREATE VIEW dna AS
  6987. SELECT
  6988. feature_id AS dna_id,
  6989. feature.*
  6990. FROM
  6991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  6992. 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';
  6993. --- ************************************************
  6994. --- *** relation: sequence_assembly ***
  6995. --- *** relation type: VIEW ***
  6996. --- *** ***
  6997. --- *** A sequence of nucleotides that has been ***
  6998. --- *** algorithmically derived from an alignmen ***
  6999. --- *** t of two or more different sequences. ***
  7000. --- ************************************************
  7001. ---
  7002. CREATE VIEW sequence_assembly AS
  7003. SELECT
  7004. feature_id AS sequence_assembly_id,
  7005. feature.*
  7006. FROM
  7007. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7008. 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';
  7009. --- ************************************************
  7010. --- *** relation: group_1_intron_homing_endonuclease_target_region ***
  7011. --- *** relation type: VIEW ***
  7012. --- *** ***
  7013. --- *** A region of intronic nucleotide sequence ***
  7014. --- *** targeted by a nuclease enzyme. ***
  7015. --- ************************************************
  7016. ---
  7017. CREATE VIEW group_1_intron_homing_endonuclease_target_region AS
  7018. SELECT
  7019. feature_id AS group_1_intron_homing_endonuclease_target_region_id,
  7020. feature.*
  7021. FROM
  7022. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7023. WHERE cvterm.name = 'group_1_intron_homing_endonuclease_target_region';
  7024. --- ************************************************
  7025. --- *** relation: haplotype_block ***
  7026. --- *** relation type: VIEW ***
  7027. --- *** ***
  7028. --- *** A region of the genome which is co-inher ***
  7029. --- *** ited as the result of the lack of histor ***
  7030. --- *** ic recombination within it. ***
  7031. --- ************************************************
  7032. ---
  7033. CREATE VIEW haplotype_block AS
  7034. SELECT
  7035. feature_id AS haplotype_block_id,
  7036. feature.*
  7037. FROM
  7038. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7039. WHERE cvterm.name = 'haplotype_block';
  7040. --- ************************************************
  7041. --- *** relation: rna ***
  7042. --- *** relation type: VIEW ***
  7043. --- *** ***
  7044. --- *** An attribute describing a sequence consi ***
  7045. --- *** sting of nucleobases bound to a repeatin ***
  7046. --- *** g unit made of a D-ribose ring connected ***
  7047. --- *** to a phosphate backbone. ***
  7048. --- ************************************************
  7049. ---
  7050. CREATE VIEW rna AS
  7051. SELECT
  7052. feature_id AS rna_id,
  7053. feature.*
  7054. FROM
  7055. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7056. WHERE cvterm.name = 'RNA';
  7057. --- ************************************************
  7058. --- *** relation: flanked ***
  7059. --- *** relation type: VIEW ***
  7060. --- *** ***
  7061. --- *** An attribute describing a region that is ***
  7062. --- *** bounded either side by a particular kin ***
  7063. --- *** d of region. ***
  7064. --- ************************************************
  7065. ---
  7066. CREATE VIEW flanked AS
  7067. SELECT
  7068. feature_id AS flanked_id,
  7069. feature.*
  7070. FROM
  7071. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7072. WHERE cvterm.name = 'floxed' OR cvterm.name = 'FRT_flanked' OR cvterm.name = 'flanked';
  7073. --- ************************************************
  7074. --- *** relation: floxed ***
  7075. --- *** relation type: VIEW ***
  7076. --- *** ***
  7077. --- *** An attribute describing sequence that is ***
  7078. --- *** flanked by Lox-P sites. ***
  7079. --- ************************************************
  7080. ---
  7081. CREATE VIEW floxed AS
  7082. SELECT
  7083. feature_id AS floxed_id,
  7084. feature.*
  7085. FROM
  7086. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7087. WHERE cvterm.name = 'floxed';
  7088. --- ************************************************
  7089. --- *** relation: codon ***
  7090. --- *** relation type: VIEW ***
  7091. --- *** ***
  7092. --- *** A set of (usually) three nucleotide base ***
  7093. --- *** s in a DNA or RNA sequence, which togeth ***
  7094. --- *** er code for a unique amino acid or the t ***
  7095. --- *** ermination of translation and are contai ***
  7096. --- *** ned within the CDS. ***
  7097. --- ************************************************
  7098. ---
  7099. CREATE VIEW codon AS
  7100. SELECT
  7101. feature_id AS codon_id,
  7102. feature.*
  7103. FROM
  7104. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7105. 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';
  7106. --- ************************************************
  7107. --- *** relation: frt_flanked ***
  7108. --- *** relation type: VIEW ***
  7109. --- *** ***
  7110. --- *** An attribute to describe sequence that i ***
  7111. --- *** s flanked by the FLP recombinase recogni ***
  7112. --- *** tion site, FRT. ***
  7113. --- ************************************************
  7114. ---
  7115. CREATE VIEW frt_flanked AS
  7116. SELECT
  7117. feature_id AS frt_flanked_id,
  7118. feature.*
  7119. FROM
  7120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7121. WHERE cvterm.name = 'FRT_flanked';
  7122. --- ************************************************
  7123. --- *** relation: invalidated_by_chimeric_cdna ***
  7124. --- *** relation type: VIEW ***
  7125. --- *** ***
  7126. --- *** A cDNA clone constructed from more than ***
  7127. --- *** one mRNA. Usually an experimental artifa ***
  7128. --- *** ct. ***
  7129. --- ************************************************
  7130. ---
  7131. CREATE VIEW invalidated_by_chimeric_cdna AS
  7132. SELECT
  7133. feature_id AS invalidated_by_chimeric_cdna_id,
  7134. feature.*
  7135. FROM
  7136. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7137. WHERE cvterm.name = 'invalidated_by_chimeric_cDNA';
  7138. --- ************************************************
  7139. --- *** relation: floxed_gene ***
  7140. --- *** relation type: VIEW ***
  7141. --- *** ***
  7142. --- *** A transgene that is floxed. ***
  7143. --- ************************************************
  7144. ---
  7145. CREATE VIEW floxed_gene AS
  7146. SELECT
  7147. feature_id AS floxed_gene_id,
  7148. feature.*
  7149. FROM
  7150. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7151. WHERE cvterm.name = 'floxed_gene';
  7152. --- ************************************************
  7153. --- *** relation: transposable_element_flanking_region ***
  7154. --- *** relation type: VIEW ***
  7155. --- *** ***
  7156. --- *** The region of sequence surrounding a tra ***
  7157. --- *** nsposable element. ***
  7158. --- ************************************************
  7159. ---
  7160. CREATE VIEW transposable_element_flanking_region AS
  7161. SELECT
  7162. feature_id AS transposable_element_flanking_region_id,
  7163. feature.*
  7164. FROM
  7165. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7166. WHERE cvterm.name = 'transposable_element_flanking_region';
  7167. --- ************************************************
  7168. --- *** relation: integron ***
  7169. --- *** relation type: VIEW ***
  7170. --- *** ***
  7171. --- *** A region encoding an integrase which act ***
  7172. --- *** s at a site adjacent to it (attI_site) t ***
  7173. --- *** o insert DNA which must include but is n ***
  7174. --- *** ot limited to an attC_site. ***
  7175. --- ************************************************
  7176. ---
  7177. CREATE VIEW integron AS
  7178. SELECT
  7179. feature_id AS integron_id,
  7180. feature.*
  7181. FROM
  7182. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7183. WHERE cvterm.name = 'integron';
  7184. --- ************************************************
  7185. --- *** relation: insertion_site ***
  7186. --- *** relation type: VIEW ***
  7187. --- *** ***
  7188. --- *** The junction where an insertion occurred ***
  7189. --- *** . ***
  7190. --- ************************************************
  7191. ---
  7192. CREATE VIEW insertion_site AS
  7193. SELECT
  7194. feature_id AS insertion_site_id,
  7195. feature.*
  7196. FROM
  7197. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7198. WHERE cvterm.name = 'transposable_element_insertion_site' OR cvterm.name = 'insertion_site';
  7199. --- ************************************************
  7200. --- *** relation: atti_site ***
  7201. --- *** relation type: VIEW ***
  7202. --- *** ***
  7203. --- *** A region within an integron, adjacent to ***
  7204. --- *** an integrase, at which site specific re ***
  7205. --- *** combination involving an attC_site takes ***
  7206. --- *** place. ***
  7207. --- ************************************************
  7208. ---
  7209. CREATE VIEW atti_site AS
  7210. SELECT
  7211. feature_id AS atti_site_id,
  7212. feature.*
  7213. FROM
  7214. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7215. WHERE cvterm.name = 'attI_site';
  7216. --- ************************************************
  7217. --- *** relation: transposable_element_insertion_site ***
  7218. --- *** relation type: VIEW ***
  7219. --- *** ***
  7220. --- *** The junction in a genome where a transpo ***
  7221. --- *** sable_element has inserted. ***
  7222. --- ************************************************
  7223. ---
  7224. CREATE VIEW transposable_element_insertion_site AS
  7225. SELECT
  7226. feature_id AS transposable_element_insertion_site_id,
  7227. feature.*
  7228. FROM
  7229. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7230. WHERE cvterm.name = 'transposable_element_insertion_site';
  7231. --- ************************************************
  7232. --- *** relation: small_regulatory_ncrna ***
  7233. --- *** relation type: VIEW ***
  7234. --- *** ***
  7235. --- *** A non-coding RNA, usually with a specifi ***
  7236. --- *** c secondary structure, that acts to regu ***
  7237. --- *** late gene expression. ***
  7238. --- ************************************************
  7239. ---
  7240. CREATE VIEW small_regulatory_ncrna AS
  7241. SELECT
  7242. feature_id AS small_regulatory_ncrna_id,
  7243. feature.*
  7244. FROM
  7245. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7246. 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';
  7247. --- ************************************************
  7248. --- *** relation: conjugative_transposon ***
  7249. --- *** relation type: VIEW ***
  7250. --- *** ***
  7251. --- *** A transposon that encodes function requi ***
  7252. --- *** red for conjugation. ***
  7253. --- ************************************************
  7254. ---
  7255. CREATE VIEW conjugative_transposon AS
  7256. SELECT
  7257. feature_id AS conjugative_transposon_id,
  7258. feature.*
  7259. FROM
  7260. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7261. WHERE cvterm.name = 'conjugative_transposon';
  7262. --- ************************************************
  7263. --- *** relation: enzymatic_rna ***
  7264. --- *** relation type: VIEW ***
  7265. --- *** ***
  7266. --- *** An RNA sequence that has catalytic activ ***
  7267. --- *** ity with or without an associated ribonu ***
  7268. --- *** cleoprotein. ***
  7269. --- ************************************************
  7270. ---
  7271. CREATE VIEW enzymatic_rna AS
  7272. SELECT
  7273. feature_id AS enzymatic_rna_id,
  7274. feature.*
  7275. FROM
  7276. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7277. WHERE cvterm.name = 'ribozyme' OR cvterm.name = 'enzymatic_RNA';
  7278. --- ************************************************
  7279. --- *** relation: recombinationally_inverted_gene ***
  7280. --- *** relation type: VIEW ***
  7281. --- *** ***
  7282. --- *** A recombinationally rearranged gene by i ***
  7283. --- *** nversion. ***
  7284. --- ************************************************
  7285. ---
  7286. CREATE VIEW recombinationally_inverted_gene AS
  7287. SELECT
  7288. feature_id AS recombinationally_inverted_gene_id,
  7289. feature.*
  7290. FROM
  7291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7292. WHERE cvterm.name = 'recombinationally_inverted_gene';
  7293. --- ************************************************
  7294. --- *** relation: ribozyme ***
  7295. --- *** relation type: VIEW ***
  7296. --- *** ***
  7297. --- *** An RNA with catalytic activity. ***
  7298. --- ************************************************
  7299. ---
  7300. CREATE VIEW ribozyme AS
  7301. SELECT
  7302. feature_id AS ribozyme_id,
  7303. feature.*
  7304. FROM
  7305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7306. WHERE cvterm.name = 'ribozyme';
  7307. --- ************************************************
  7308. --- *** relation: rrna_5_8s ***
  7309. --- *** relation type: VIEW ***
  7310. --- *** ***
  7311. --- *** 5_8S ribosomal RNA (5. 8S rRNA) is a com ***
  7312. --- *** ponent of the large subunit of the eukar ***
  7313. --- *** yotic ribosome. It is transcribed by RNA ***
  7314. --- *** polymerase I as part of the 45S precurs ***
  7315. --- *** or that also contains 18S and 28S rRNA. ***
  7316. --- *** Functionally, it is thought that 5.8S rR ***
  7317. --- *** NA may be involved in ribosome transloca ***
  7318. --- *** tion. It is also known to form covalent ***
  7319. --- *** linkage to the p53 tumour suppressor pro ***
  7320. --- *** tein. 5_8S rRNA is also found in archaea ***
  7321. --- *** . ***
  7322. --- ************************************************
  7323. ---
  7324. CREATE VIEW rrna_5_8s AS
  7325. SELECT
  7326. feature_id AS rrna_5_8s_id,
  7327. feature.*
  7328. FROM
  7329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7330. WHERE cvterm.name = 'rRNA_5_8S';
  7331. --- ************************************************
  7332. --- *** relation: rna_6s ***
  7333. --- *** relation type: VIEW ***
  7334. --- *** ***
  7335. --- *** A small (184-nt in E. coli) RNA that for ***
  7336. --- *** ms a hairpin type structure. 6S RNA asso ***
  7337. --- *** ciates with RNA polymerase in a highly s ***
  7338. --- *** pecific manner. 6S RNA represses express ***
  7339. --- *** ion from a sigma70-dependent promoter du ***
  7340. --- *** ring stationary phase. ***
  7341. --- ************************************************
  7342. ---
  7343. CREATE VIEW rna_6s AS
  7344. SELECT
  7345. feature_id AS rna_6s_id,
  7346. feature.*
  7347. FROM
  7348. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7349. WHERE cvterm.name = 'RNA_6S';
  7350. --- ************************************************
  7351. --- *** relation: csrb_rsmb_rna ***
  7352. --- *** relation type: VIEW ***
  7353. --- *** ***
  7354. --- *** An enterobacterial RNA that binds the Cs ***
  7355. --- *** rA protein. The CsrB RNAs contain a cons ***
  7356. --- *** erved motif CAGGXXG that is found in up ***
  7357. --- *** to 18 copies and has been suggested to b ***
  7358. --- *** ind CsrA. The Csr regulatory system has ***
  7359. --- *** a strong negative regulatory effect on g ***
  7360. --- *** lycogen biosynthesis, glyconeogenesis an ***
  7361. --- *** d glycogen catabolism and a positive reg ***
  7362. --- *** ulatory effect on glycolysis. In other b ***
  7363. --- *** acteria such as Erwinia caratovara the R ***
  7364. --- *** smA protein has been shown to regulate t ***
  7365. --- *** he production of virulence determinants, ***
  7366. --- *** such extracellular enzymes. RsmA binds ***
  7367. --- *** to RsmB regulatory RNA which is also a m ***
  7368. --- *** ember of this family. ***
  7369. --- ************************************************
  7370. ---
  7371. CREATE VIEW csrb_rsmb_rna AS
  7372. SELECT
  7373. feature_id AS csrb_rsmb_rna_id,
  7374. feature.*
  7375. FROM
  7376. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7377. WHERE cvterm.name = 'CsrB_RsmB_RNA';
  7378. --- ************************************************
  7379. --- *** relation: dsra_rna ***
  7380. --- *** relation type: VIEW ***
  7381. --- *** ***
  7382. --- *** DsrA RNA regulates both transcription, b ***
  7383. --- *** y overcoming transcriptional silencing b ***
  7384. --- *** y the nucleoid-associated H-NS protein, ***
  7385. --- *** and translation, by promoting efficient ***
  7386. --- *** translation of the stress sigma factor, ***
  7387. --- *** RpoS. These two activities of DsrA can b ***
  7388. --- *** e separated by mutation: the first of th ***
  7389. --- *** ree stem-loops of the 85 nucleotide RNA ***
  7390. --- *** is necessary for RpoS translation but no ***
  7391. --- *** t for anti-H-NS action, while the second ***
  7392. --- *** stem-loop is essential for antisilencin ***
  7393. --- *** g and less critical for RpoS translation ***
  7394. --- *** . The third stem-loop, which behaves as ***
  7395. --- *** a transcription terminator, can be subst ***
  7396. --- *** ituted by the trp transcription terminat ***
  7397. --- *** or without loss of either DsrA function. ***
  7398. --- *** The sequence of the first stem-loop of ***
  7399. --- *** DsrA is complementary with the upstream ***
  7400. --- *** leader portion of RpoS messenger RNA, su ***
  7401. --- *** ggesting that pairing of DsrA with the R ***
  7402. --- *** poS message might be important for trans ***
  7403. --- *** lational regulation. ***
  7404. --- ************************************************
  7405. ---
  7406. CREATE VIEW dsra_rna AS
  7407. SELECT
  7408. feature_id AS dsra_rna_id,
  7409. feature.*
  7410. FROM
  7411. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7412. WHERE cvterm.name = 'GcvB_RNA' OR cvterm.name = 'DsrA_RNA';
  7413. --- ************************************************
  7414. --- *** relation: gcvb_rna ***
  7415. --- *** relation type: VIEW ***
  7416. --- *** ***
  7417. --- *** A small untranslated RNA involved in exp ***
  7418. --- *** ression of the dipeptide and oligopeptid ***
  7419. --- *** e transport systems in Escherichia coli. ***
  7420. --- ************************************************
  7421. ---
  7422. CREATE VIEW gcvb_rna AS
  7423. SELECT
  7424. feature_id AS gcvb_rna_id,
  7425. feature.*
  7426. FROM
  7427. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7428. WHERE cvterm.name = 'GcvB_RNA';
  7429. --- ************************************************
  7430. --- *** relation: hammerhead_ribozyme ***
  7431. --- *** relation type: VIEW ***
  7432. --- *** ***
  7433. --- *** A small catalytic RNA motif that catalyz ***
  7434. --- *** es self-cleavage reaction. Its name come ***
  7435. --- *** s from its secondary structure which res ***
  7436. --- *** embles a carpenter's hammer. The hammerh ***
  7437. --- *** ead ribozyme is involved in the replicat ***
  7438. --- *** ion of some viroid and some satellite RN ***
  7439. --- *** As. ***
  7440. --- ************************************************
  7441. ---
  7442. CREATE VIEW hammerhead_ribozyme AS
  7443. SELECT
  7444. feature_id AS hammerhead_ribozyme_id,
  7445. feature.*
  7446. FROM
  7447. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7448. WHERE cvterm.name = 'hammerhead_ribozyme';
  7449. --- ************************************************
  7450. --- *** relation: group_iia_intron ***
  7451. --- *** relation type: VIEW ***
  7452. --- *** ***
  7453. --- ************************************************
  7454. ---
  7455. CREATE VIEW group_iia_intron AS
  7456. SELECT
  7457. feature_id AS group_iia_intron_id,
  7458. feature.*
  7459. FROM
  7460. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7461. WHERE cvterm.name = 'group_IIA_intron';
  7462. --- ************************************************
  7463. --- *** relation: group_iib_intron ***
  7464. --- *** relation type: VIEW ***
  7465. --- *** ***
  7466. --- ************************************************
  7467. ---
  7468. CREATE VIEW group_iib_intron AS
  7469. SELECT
  7470. feature_id AS group_iib_intron_id,
  7471. feature.*
  7472. FROM
  7473. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7474. WHERE cvterm.name = 'group_IIB_intron';
  7475. --- ************************************************
  7476. --- *** relation: micf_rna ***
  7477. --- *** relation type: VIEW ***
  7478. --- *** ***
  7479. --- *** A non-translated 93 nt antisense RNA tha ***
  7480. --- *** t binds its target ompF mRNA and regulat ***
  7481. --- *** es ompF expression by inhibiting transla ***
  7482. --- *** tion and inducing degradation of the mes ***
  7483. --- *** sage. ***
  7484. --- ************************************************
  7485. ---
  7486. CREATE VIEW micf_rna AS
  7487. SELECT
  7488. feature_id AS micf_rna_id,
  7489. feature.*
  7490. FROM
  7491. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7492. WHERE cvterm.name = 'MicF_RNA';
  7493. --- ************************************************
  7494. --- *** relation: oxys_rna ***
  7495. --- *** relation type: VIEW ***
  7496. --- *** ***
  7497. --- *** A small untranslated RNA which is induce ***
  7498. --- *** d in response to oxidative stress in Esc ***
  7499. --- *** herichia coli. Acts as a global regulato ***
  7500. --- *** r to activate or repress the expression ***
  7501. --- *** of as many as 40 genes, including the fh ***
  7502. --- *** lA-encoded transcriptional activator and ***
  7503. --- *** the rpoS-encoded sigma(s) subunit of RN ***
  7504. --- *** A polymerase. OxyS is bound by the Hfq p ***
  7505. --- *** rotein, that increases the OxyS RNA inte ***
  7506. --- *** raction with its target messages. ***
  7507. --- ************************************************
  7508. ---
  7509. CREATE VIEW oxys_rna AS
  7510. SELECT
  7511. feature_id AS oxys_rna_id,
  7512. feature.*
  7513. FROM
  7514. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7515. WHERE cvterm.name = 'OxyS_RNA';
  7516. --- ************************************************
  7517. --- *** relation: rnase_mrp_rna ***
  7518. --- *** relation type: VIEW ***
  7519. --- *** ***
  7520. --- *** The RNA molecule essential for the catal ***
  7521. --- *** ytic activity of RNase MRP, an enzymatic ***
  7522. --- *** ally active ribonucleoprotein with two d ***
  7523. --- *** istinct roles in eukaryotes. In mitochon ***
  7524. --- *** dria it plays a direct role in the initi ***
  7525. --- *** ation of mitochondrial DNA replication. ***
  7526. --- *** In the nucleus it is involved in precurs ***
  7527. --- *** or rRNA processing, where it cleaves the ***
  7528. --- *** internal transcribed spacer 1 between 1 ***
  7529. --- *** 8S and 5.8S rRNAs. ***
  7530. --- ************************************************
  7531. ---
  7532. CREATE VIEW rnase_mrp_rna AS
  7533. SELECT
  7534. feature_id AS rnase_mrp_rna_id,
  7535. feature.*
  7536. FROM
  7537. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7538. WHERE cvterm.name = 'RNase_MRP_RNA';
  7539. --- ************************************************
  7540. --- *** relation: rnase_p_rna ***
  7541. --- *** relation type: VIEW ***
  7542. --- *** ***
  7543. --- *** The RNA component of Ribonuclease P (RNa ***
  7544. --- *** se P), a ubiquitous endoribonuclease, fo ***
  7545. --- *** und in archaea, bacteria and eukarya as ***
  7546. --- *** well as chloroplasts and mitochondria. I ***
  7547. --- *** ts best characterized activity is the ge ***
  7548. --- *** neration of mature 5 prime ends of tRNAs ***
  7549. --- *** by cleaving the 5 prime leader elements ***
  7550. --- *** of precursor-tRNAs. Cellular RNase Ps a ***
  7551. --- *** re ribonucleoproteins. RNA from bacteria ***
  7552. --- *** l RNase Ps retains its catalytic activit ***
  7553. --- *** y in the absence of the protein subunit, ***
  7554. --- *** i.e. it is a ribozyme. Isolated eukaryo ***
  7555. --- *** tic and archaeal RNase P RNA has not bee ***
  7556. --- *** n shown to retain its catalytic function ***
  7557. --- *** , but is still essential for the catalyt ***
  7558. --- *** ic activity of the holoenzyme. Although ***
  7559. --- *** the archaeal and eukaryotic holoenzymes ***
  7560. --- *** have a much greater protein content than ***
  7561. --- *** the bacterial ones, the RNA cores from ***
  7562. --- *** all the three lineages are homologous. H ***
  7563. --- *** elices corresponding to P1, P2, P3, P4, ***
  7564. --- *** and P10/11 are common to all cellular RN ***
  7565. --- *** ase P RNAs. Yet, there is considerable s ***
  7566. --- *** equence variation, particularly among th ***
  7567. --- *** e eukaryotic RNAs. ***
  7568. --- ************************************************
  7569. ---
  7570. CREATE VIEW rnase_p_rna AS
  7571. SELECT
  7572. feature_id AS rnase_p_rna_id,
  7573. feature.*
  7574. FROM
  7575. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7576. WHERE cvterm.name = 'RNase_P_RNA';
  7577. --- ************************************************
  7578. --- *** relation: rpra_rna ***
  7579. --- *** relation type: VIEW ***
  7580. --- *** ***
  7581. --- *** Translational regulation of the stationa ***
  7582. --- *** ry phase sigma factor RpoS is mediated b ***
  7583. --- *** y the formation of a double-stranded RNA ***
  7584. --- *** stem-loop structure in the upstream reg ***
  7585. --- *** ion of the rpoS messenger RNA, occluding ***
  7586. --- *** the translation initiation site. Clones ***
  7587. --- *** carrying rprA (RpoS regulator RNA) incr ***
  7588. --- *** eased the translation of RpoS. The rprA ***
  7589. --- *** gene encodes a 106 nucleotide regulatory ***
  7590. --- *** RNA. As with DsrA Rfam:RF00014, RprA is ***
  7591. --- *** predicted to form three stem-loops. Thu ***
  7592. --- *** s, at least two small RNAs, DsrA and Rpr ***
  7593. --- *** A, participate in the positive regulatio ***
  7594. --- *** n of RpoS translation. Unlike DsrA, RprA ***
  7595. --- *** does not have an extensive region of co ***
  7596. --- *** mplementarity to the RpoS leader, leavin ***
  7597. --- *** g its mechanism of action unclear. RprA ***
  7598. --- *** is non-essential. ***
  7599. --- ************************************************
  7600. ---
  7601. CREATE VIEW rpra_rna AS
  7602. SELECT
  7603. feature_id AS rpra_rna_id,
  7604. feature.*
  7605. FROM
  7606. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7607. WHERE cvterm.name = 'RprA_RNA';
  7608. --- ************************************************
  7609. --- *** relation: rre_rna ***
  7610. --- *** relation type: VIEW ***
  7611. --- *** ***
  7612. --- *** The Rev response element (RRE) is encode ***
  7613. --- *** d within the HIV-env gene. Rev is an ess ***
  7614. --- *** ential regulatory protein of HIV that bi ***
  7615. --- *** nds an internal loop of the RRE leading, ***
  7616. --- *** encouraging further Rev-RRE binding. Th ***
  7617. --- *** is RNP complex is critical for mRNA expo ***
  7618. --- *** rt and hence for expression of the HIV s ***
  7619. --- *** tructural proteins. ***
  7620. --- ************************************************
  7621. ---
  7622. CREATE VIEW rre_rna AS
  7623. SELECT
  7624. feature_id AS rre_rna_id,
  7625. feature.*
  7626. FROM
  7627. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7628. WHERE cvterm.name = 'RRE_RNA';
  7629. --- ************************************************
  7630. --- *** relation: spot_42_rna ***
  7631. --- *** relation type: VIEW ***
  7632. --- *** ***
  7633. --- *** A 109-nucleotide RNA of E. coli that see ***
  7634. --- *** ms to have a regulatory role on the gala ***
  7635. --- *** ctose operon. Changes in Spot 42 levels ***
  7636. --- *** are implicated in affecting DNA polymera ***
  7637. --- *** se I levels. ***
  7638. --- ************************************************
  7639. ---
  7640. CREATE VIEW spot_42_rna AS
  7641. SELECT
  7642. feature_id AS spot_42_rna_id,
  7643. feature.*
  7644. FROM
  7645. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7646. WHERE cvterm.name = 'spot_42_RNA';
  7647. --- ************************************************
  7648. --- *** relation: telomerase_rna ***
  7649. --- *** relation type: VIEW ***
  7650. --- *** ***
  7651. --- *** The RNA component of telomerase, a rever ***
  7652. --- *** se transcriptase that synthesizes telome ***
  7653. --- *** ric DNA. ***
  7654. --- ************************************************
  7655. ---
  7656. CREATE VIEW telomerase_rna AS
  7657. SELECT
  7658. feature_id AS telomerase_rna_id,
  7659. feature.*
  7660. FROM
  7661. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7662. WHERE cvterm.name = 'telomerase_RNA';
  7663. --- ************************************************
  7664. --- *** relation: u1_snrna ***
  7665. --- *** relation type: VIEW ***
  7666. --- *** ***
  7667. --- *** U1 is a small nuclear RNA (snRNA) compon ***
  7668. --- *** ent of the spliceosome (involved in pre- ***
  7669. --- *** mRNA splicing). Its 5' end forms complem ***
  7670. --- *** entary base pairs with the 5' splice jun ***
  7671. --- *** ction, thus defining the 5' donor site o ***
  7672. --- *** f an intron. There are significant diffe ***
  7673. --- *** rences in sequence and secondary structu ***
  7674. --- *** re between metazoan and yeast U1 snRNAs, ***
  7675. --- *** the latter being much longer (568 nucle ***
  7676. --- *** otides as compared to 164 nucleotides in ***
  7677. --- *** human). Nevertheless, secondary structu ***
  7678. --- *** re predictions suggest that all U1 snRNA ***
  7679. --- *** s share a 'common core' consisting of he ***
  7680. --- *** lices I, II, the proximal region of III, ***
  7681. --- *** and IV. ***
  7682. --- ************************************************
  7683. ---
  7684. CREATE VIEW u1_snrna AS
  7685. SELECT
  7686. feature_id AS u1_snrna_id,
  7687. feature.*
  7688. FROM
  7689. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7690. WHERE cvterm.name = 'U1_snRNA';
  7691. --- ************************************************
  7692. --- *** relation: u2_snrna ***
  7693. --- *** relation type: VIEW ***
  7694. --- *** ***
  7695. --- *** U2 is a small nuclear RNA (snRNA) compon ***
  7696. --- *** ent of the spliceosome (involved in pre- ***
  7697. --- *** mRNA splicing). Complementary binding be ***
  7698. --- *** tween U2 snRNA (in an area lying towards ***
  7699. --- *** the 5' end but 3' to hairpin I) and the ***
  7700. --- *** branchpoint sequence (BPS) of the intro ***
  7701. --- *** n results in the bulging out of an unpai ***
  7702. --- *** red adenine, on the BPS, which initiates ***
  7703. --- *** a nucleophilic attack at the intronic 5 ***
  7704. --- *** ' splice site, thus starting the first o ***
  7705. --- *** f two transesterification reactions that ***
  7706. --- *** mediate splicing. ***
  7707. --- ************************************************
  7708. ---
  7709. CREATE VIEW u2_snrna AS
  7710. SELECT
  7711. feature_id AS u2_snrna_id,
  7712. feature.*
  7713. FROM
  7714. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7715. WHERE cvterm.name = 'U2_snRNA';
  7716. --- ************************************************
  7717. --- *** relation: u4_snrna ***
  7718. --- *** relation type: VIEW ***
  7719. --- *** ***
  7720. --- *** U4 small nuclear RNA (U4 snRNA) is a com ***
  7721. --- *** ponent of the major U2-dependent spliceo ***
  7722. --- *** some. It forms a duplex with U6, and wit ***
  7723. --- *** h each splicing round, it is displaced f ***
  7724. --- *** rom U6 (and the spliceosome) in an ATP-d ***
  7725. --- *** ependent manner, allowing U6 to refold a ***
  7726. --- *** nd create the active site for splicing c ***
  7727. --- *** atalysis. A recycling process involving ***
  7728. --- *** protein Prp24 re-anneals U4 and U6. ***
  7729. --- ************************************************
  7730. ---
  7731. CREATE VIEW u4_snrna AS
  7732. SELECT
  7733. feature_id AS u4_snrna_id,
  7734. feature.*
  7735. FROM
  7736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7737. WHERE cvterm.name = 'U4_snRNA';
  7738. --- ************************************************
  7739. --- *** relation: u4atac_snrna ***
  7740. --- *** relation type: VIEW ***
  7741. --- *** ***
  7742. --- *** An snRNA required for the splicing of th ***
  7743. --- *** e minor U12-dependent class of eukaryoti ***
  7744. --- *** c nuclear introns. It forms a base paire ***
  7745. --- *** d complex with U6atac_snRNA (SO:0000397) ***
  7746. --- *** . ***
  7747. --- ************************************************
  7748. ---
  7749. CREATE VIEW u4atac_snrna AS
  7750. SELECT
  7751. feature_id AS u4atac_snrna_id,
  7752. feature.*
  7753. FROM
  7754. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7755. WHERE cvterm.name = 'U4atac_snRNA';
  7756. --- ************************************************
  7757. --- *** relation: u5_snrna ***
  7758. --- *** relation type: VIEW ***
  7759. --- *** ***
  7760. --- *** U5 RNA is a component of both types of k ***
  7761. --- *** nown spliceosome. The precise function o ***
  7762. --- *** f this molecule is unknown, though it is ***
  7763. --- *** known that the 5' loop is required for ***
  7764. --- *** splice site selection and p220 binding, ***
  7765. --- *** and that both the 3' stem-loop and the S ***
  7766. --- *** m site are important for Sm protein bind ***
  7767. --- *** ing and cap methylation. ***
  7768. --- ************************************************
  7769. ---
  7770. CREATE VIEW u5_snrna AS
  7771. SELECT
  7772. feature_id AS u5_snrna_id,
  7773. feature.*
  7774. FROM
  7775. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7776. WHERE cvterm.name = 'U5_snRNA';
  7777. --- ************************************************
  7778. --- *** relation: u6_snrna ***
  7779. --- *** relation type: VIEW ***
  7780. --- *** ***
  7781. --- *** U6 snRNA is a component of the spliceoso ***
  7782. --- *** me which is involved in splicing pre-mRN ***
  7783. --- *** A. The putative secondary structure cons ***
  7784. --- *** ensus base pairing is confined to a shor ***
  7785. --- *** t 5' stem loop, but U6 snRNA is thought ***
  7786. --- *** to form extensive base-pair interactions ***
  7787. --- *** with U4 snRNA. ***
  7788. --- ************************************************
  7789. ---
  7790. CREATE VIEW u6_snrna AS
  7791. SELECT
  7792. feature_id AS u6_snrna_id,
  7793. feature.*
  7794. FROM
  7795. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7796. WHERE cvterm.name = 'U6_snRNA';
  7797. --- ************************************************
  7798. --- *** relation: u6atac_snrna ***
  7799. --- *** relation type: VIEW ***
  7800. --- *** ***
  7801. --- *** U6atac_snRNA is an snRNA required for th ***
  7802. --- *** e splicing of the minor U12-dependent cl ***
  7803. --- *** ass of eukaryotic nuclear introns. It fo ***
  7804. --- *** rms a base paired complex with U4atac_sn ***
  7805. --- *** RNA (SO:0000394). ***
  7806. --- ************************************************
  7807. ---
  7808. CREATE VIEW u6atac_snrna AS
  7809. SELECT
  7810. feature_id AS u6atac_snrna_id,
  7811. feature.*
  7812. FROM
  7813. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7814. WHERE cvterm.name = 'U6atac_snRNA';
  7815. --- ************************************************
  7816. --- *** relation: u11_snrna ***
  7817. --- *** relation type: VIEW ***
  7818. --- *** ***
  7819. --- *** U11 snRNA plays a role in splicing of th ***
  7820. --- *** e minor U12-dependent class of eukaryoti ***
  7821. --- *** c nuclear introns, similar to U1 snRNA i ***
  7822. --- *** n the major class spliceosome it base pa ***
  7823. --- *** irs to the conserved 5' splice site sequ ***
  7824. --- *** ence. ***
  7825. --- ************************************************
  7826. ---
  7827. CREATE VIEW u11_snrna AS
  7828. SELECT
  7829. feature_id AS u11_snrna_id,
  7830. feature.*
  7831. FROM
  7832. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7833. WHERE cvterm.name = 'U11_snRNA';
  7834. --- ************************************************
  7835. --- *** relation: u12_snrna ***
  7836. --- *** relation type: VIEW ***
  7837. --- *** ***
  7838. --- *** The U12 small nuclear (snRNA), together ***
  7839. --- *** with U4atac/U6atac, U5, and U11 snRNAs a ***
  7840. --- *** nd associated proteins, forms a spliceos ***
  7841. --- *** ome that cleaves a divergent class of lo ***
  7842. --- *** w-abundance pre-mRNA introns. ***
  7843. --- ************************************************
  7844. ---
  7845. CREATE VIEW u12_snrna AS
  7846. SELECT
  7847. feature_id AS u12_snrna_id,
  7848. feature.*
  7849. FROM
  7850. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7851. WHERE cvterm.name = 'U12_snRNA';
  7852. --- ************************************************
  7853. --- *** relation: sequence_attribute ***
  7854. --- *** relation type: VIEW ***
  7855. --- *** ***
  7856. --- *** An attribute describes a quality of sequ ***
  7857. --- *** ence. ***
  7858. --- ************************************************
  7859. ---
  7860. CREATE VIEW sequence_attribute AS
  7861. SELECT
  7862. feature_id AS sequence_attribute_id,
  7863. feature.*
  7864. FROM
  7865. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7866. 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';
  7867. --- ************************************************
  7868. --- *** relation: gene_attribute ***
  7869. --- *** relation type: VIEW ***
  7870. --- *** ***
  7871. --- ************************************************
  7872. ---
  7873. CREATE VIEW gene_attribute AS
  7874. SELECT
  7875. feature_id AS gene_attribute_id,
  7876. feature.*
  7877. FROM
  7878. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7879. 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';
  7880. --- ************************************************
  7881. --- *** relation: u14_snorna ***
  7882. --- *** relation type: VIEW ***
  7883. --- *** ***
  7884. --- *** U14 small nucleolar RNA (U14 snoRNA) is ***
  7885. --- *** required for early cleavages of eukaryot ***
  7886. --- *** ic precursor rRNAs. In yeasts, this mole ***
  7887. --- *** cule possess a stem-loop region (known a ***
  7888. --- *** s the Y-domain) which is essential for f ***
  7889. --- *** unction. A similar structure, but with a ***
  7890. --- *** different consensus sequence, is found ***
  7891. --- *** in plants, but is absent in vertebrates. ***
  7892. --- ************************************************
  7893. ---
  7894. CREATE VIEW u14_snorna AS
  7895. SELECT
  7896. feature_id AS u14_snorna_id,
  7897. feature.*
  7898. FROM
  7899. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7900. WHERE cvterm.name = 'U14_snoRNA';
  7901. --- ************************************************
  7902. --- *** relation: vault_rna ***
  7903. --- *** relation type: VIEW ***
  7904. --- *** ***
  7905. --- *** A family of RNAs are found as part of th ***
  7906. --- *** e enigmatic vault ribonucleoprotein comp ***
  7907. --- *** lex. The complex consists of a major vau ***
  7908. --- *** lt protein (MVP), two minor vault protei ***
  7909. --- *** ns (VPARP and TEP1), and several small u ***
  7910. --- *** ntranslated RNA molecules. It has been s ***
  7911. --- *** uggested that the vault complex is invol ***
  7912. --- *** ved in drug resistance. ***
  7913. --- ************************************************
  7914. ---
  7915. CREATE VIEW vault_rna AS
  7916. SELECT
  7917. feature_id AS vault_rna_id,
  7918. feature.*
  7919. FROM
  7920. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7921. WHERE cvterm.name = 'vault_RNA';
  7922. --- ************************************************
  7923. --- *** relation: y_rna ***
  7924. --- *** relation type: VIEW ***
  7925. --- *** ***
  7926. --- *** Y RNAs are components of the Ro ribonucl ***
  7927. --- *** eoprotein particle (Ro RNP), in associat ***
  7928. --- *** ion with Ro60 and La proteins. The Y RNA ***
  7929. --- *** s and Ro60 and La proteins are well cons ***
  7930. --- *** erved, but the function of the Ro RNP is ***
  7931. --- *** not known. In humans the RNA component ***
  7932. --- *** can be one of four small RNAs: hY1, hY3, ***
  7933. --- *** hY4 and hY5. These small RNAs are predi ***
  7934. --- *** cted to fold into a conserved secondary ***
  7935. --- *** structure containing three stem structur ***
  7936. --- *** es. The largest of the four, hY1, contai ***
  7937. --- *** ns an additional hairpin. ***
  7938. --- ************************************************
  7939. ---
  7940. CREATE VIEW y_rna AS
  7941. SELECT
  7942. feature_id AS y_rna_id,
  7943. feature.*
  7944. FROM
  7945. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7946. WHERE cvterm.name = 'Y_RNA';
  7947. --- ************************************************
  7948. --- *** relation: twintron ***
  7949. --- *** relation type: VIEW ***
  7950. --- *** ***
  7951. --- *** An intron within an intron. Twintrons ar ***
  7952. --- *** e group II or III introns, into which an ***
  7953. --- *** other group II or III intron has been tr ***
  7954. --- *** ansposed. ***
  7955. --- ************************************************
  7956. ---
  7957. CREATE VIEW twintron AS
  7958. SELECT
  7959. feature_id AS twintron_id,
  7960. feature.*
  7961. FROM
  7962. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7963. WHERE cvterm.name = 'twintron';
  7964. --- ************************************************
  7965. --- *** relation: rrna_18s ***
  7966. --- *** relation type: VIEW ***
  7967. --- *** ***
  7968. --- *** A large polynucleotide in eukaryotes, wh ***
  7969. --- *** ich functions as the small subunit of th ***
  7970. --- *** e ribosome. ***
  7971. --- ************************************************
  7972. ---
  7973. CREATE VIEW rrna_18s AS
  7974. SELECT
  7975. feature_id AS rrna_18s_id,
  7976. feature.*
  7977. FROM
  7978. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  7979. WHERE cvterm.name = 'rRNA_18S';
  7980. --- ************************************************
  7981. --- *** relation: binding_site ***
  7982. --- *** relation type: VIEW ***
  7983. --- *** ***
  7984. --- *** A biological_region of sequence that, in ***
  7985. --- *** the molecule, interacts selectively and ***
  7986. --- *** non-covalently with other molecules. A ***
  7987. --- *** region on the surface of a molecule that ***
  7988. --- *** may interact with another molecule. Whe ***
  7989. --- *** n applied to polypeptides: Amino acids i ***
  7990. --- *** nvolved in binding or interactions. It c ***
  7991. --- *** an also apply to an amino acid bond whic ***
  7992. --- *** h is represented by the positions of the ***
  7993. --- *** two flanking amino acids. ***
  7994. --- ************************************************
  7995. ---
  7996. CREATE VIEW binding_site AS
  7997. SELECT
  7998. feature_id AS binding_site_id,
  7999. feature.*
  8000. FROM
  8001. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8002. 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';
  8003. --- ************************************************
  8004. --- *** relation: protein_binding_site ***
  8005. --- *** relation type: VIEW ***
  8006. --- *** ***
  8007. --- *** A binding site that, in the molecule, in ***
  8008. --- *** teracts selectively and non-covalently w ***
  8009. --- *** ith polypeptide molecules. ***
  8010. --- ************************************************
  8011. ---
  8012. CREATE VIEW protein_binding_site AS
  8013. SELECT
  8014. feature_id AS protein_binding_site_id,
  8015. feature.*
  8016. FROM
  8017. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8018. 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';
  8019. --- ************************************************
  8020. --- *** relation: rescue_region ***
  8021. --- *** relation type: VIEW ***
  8022. --- *** ***
  8023. --- *** A region that rescues. ***
  8024. --- ************************************************
  8025. ---
  8026. CREATE VIEW rescue_region AS
  8027. SELECT
  8028. feature_id AS rescue_region_id,
  8029. feature.*
  8030. FROM
  8031. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8032. WHERE cvterm.name = 'engineered_rescue_region' OR cvterm.name = 'rescue_region';
  8033. --- ************************************************
  8034. --- *** relation: restriction_fragment ***
  8035. --- *** relation type: VIEW ***
  8036. --- *** ***
  8037. --- *** A region of polynucleotide sequence prod ***
  8038. --- *** uced by digestion with a restriction end ***
  8039. --- *** onuclease. ***
  8040. --- ************************************************
  8041. ---
  8042. CREATE VIEW restriction_fragment AS
  8043. SELECT
  8044. feature_id AS restriction_fragment_id,
  8045. feature.*
  8046. FROM
  8047. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8048. WHERE cvterm.name = 'RFLP_fragment' OR cvterm.name = 'restriction_fragment';
  8049. --- ************************************************
  8050. --- *** relation: sequence_difference ***
  8051. --- *** relation type: VIEW ***
  8052. --- *** ***
  8053. --- *** A region where the sequence differs from ***
  8054. --- *** that of a specified sequence. ***
  8055. --- ************************************************
  8056. ---
  8057. CREATE VIEW sequence_difference AS
  8058. SELECT
  8059. feature_id AS sequence_difference_id,
  8060. feature.*
  8061. FROM
  8062. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8063. 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';
  8064. --- ************************************************
  8065. --- *** relation: invalidated_by_genomic_contamination ***
  8066. --- *** relation type: VIEW ***
  8067. --- *** ***
  8068. --- *** An attribute to describe a feature that ***
  8069. --- *** is invalidated due to genomic contaminat ***
  8070. --- *** ion. ***
  8071. --- ************************************************
  8072. ---
  8073. CREATE VIEW invalidated_by_genomic_contamination AS
  8074. SELECT
  8075. feature_id AS invalidated_by_genomic_contamination_id,
  8076. feature.*
  8077. FROM
  8078. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8079. WHERE cvterm.name = 'invalidated_by_genomic_contamination';
  8080. --- ************************************************
  8081. --- *** relation: invalidated_by_genomic_polya_primed_cdna ***
  8082. --- *** relation type: VIEW ***
  8083. --- *** ***
  8084. --- *** An attribute to describe a feature that ***
  8085. --- *** is invalidated due to polyA priming. ***
  8086. --- ************************************************
  8087. ---
  8088. CREATE VIEW invalidated_by_genomic_polya_primed_cdna AS
  8089. SELECT
  8090. feature_id AS invalidated_by_genomic_polya_primed_cdna_id,
  8091. feature.*
  8092. FROM
  8093. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8094. WHERE cvterm.name = 'invalidated_by_genomic_polyA_primed_cDNA';
  8095. --- ************************************************
  8096. --- *** relation: invalidated_by_partial_processing ***
  8097. --- *** relation type: VIEW ***
  8098. --- *** ***
  8099. --- *** An attribute to describe a feature that ***
  8100. --- *** is invalidated due to partial processing ***
  8101. --- *** . ***
  8102. --- ************************************************
  8103. ---
  8104. CREATE VIEW invalidated_by_partial_processing AS
  8105. SELECT
  8106. feature_id AS invalidated_by_partial_processing_id,
  8107. feature.*
  8108. FROM
  8109. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8110. WHERE cvterm.name = 'invalidated_by_partial_processing';
  8111. --- ************************************************
  8112. --- *** relation: polypeptide_domain ***
  8113. --- *** relation type: VIEW ***
  8114. --- *** ***
  8115. --- *** A structurally or functionally defined p ***
  8116. --- *** rotein region. In proteins with multiple ***
  8117. --- *** domains, the combination of the domains ***
  8118. --- *** determines the function of the protein. ***
  8119. --- *** A region which has been shown to recur ***
  8120. --- *** throughout evolution. ***
  8121. --- ************************************************
  8122. ---
  8123. CREATE VIEW polypeptide_domain AS
  8124. SELECT
  8125. feature_id AS polypeptide_domain_id,
  8126. feature.*
  8127. FROM
  8128. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8129. WHERE cvterm.name = 'polypeptide_domain';
  8130. --- ************************************************
  8131. --- *** relation: signal_peptide ***
  8132. --- *** relation type: VIEW ***
  8133. --- *** ***
  8134. --- *** The signal_peptide is a short region of ***
  8135. --- *** the peptide located at the N-terminus th ***
  8136. --- *** at directs the protein to be secreted or ***
  8137. --- *** part of membrane components. ***
  8138. --- ************************************************
  8139. ---
  8140. CREATE VIEW signal_peptide AS
  8141. SELECT
  8142. feature_id AS signal_peptide_id,
  8143. feature.*
  8144. FROM
  8145. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8146. WHERE cvterm.name = 'signal_peptide';
  8147. --- ************************************************
  8148. --- *** relation: mature_protein_region ***
  8149. --- *** relation type: VIEW ***
  8150. --- *** ***
  8151. --- *** The polypeptide sequence that remains wh ***
  8152. --- *** en the cleaved peptide regions have been ***
  8153. --- *** cleaved from the immature peptide. ***
  8154. --- ************************************************
  8155. ---
  8156. CREATE VIEW mature_protein_region AS
  8157. SELECT
  8158. feature_id AS mature_protein_region_id,
  8159. feature.*
  8160. FROM
  8161. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8162. WHERE cvterm.name = 'active_peptide' OR cvterm.name = 'mature_protein_region';
  8163. --- ************************************************
  8164. --- *** relation: five_prime_terminal_inverted_repeat ***
  8165. --- *** relation type: VIEW ***
  8166. --- *** ***
  8167. --- ************************************************
  8168. ---
  8169. CREATE VIEW five_prime_terminal_inverted_repeat AS
  8170. SELECT
  8171. feature_id AS five_prime_terminal_inverted_repeat_id,
  8172. feature.*
  8173. FROM
  8174. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8175. WHERE cvterm.name = 'five_prime_terminal_inverted_repeat';
  8176. --- ************************************************
  8177. --- *** relation: three_prime_terminal_inverted_repeat ***
  8178. --- *** relation type: VIEW ***
  8179. --- *** ***
  8180. --- ************************************************
  8181. ---
  8182. CREATE VIEW three_prime_terminal_inverted_repeat AS
  8183. SELECT
  8184. feature_id AS three_prime_terminal_inverted_repeat_id,
  8185. feature.*
  8186. FROM
  8187. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8188. WHERE cvterm.name = 'three_prime_terminal_inverted_repeat';
  8189. --- ************************************************
  8190. --- *** relation: u5_ltr_region ***
  8191. --- *** relation type: VIEW ***
  8192. --- *** ***
  8193. --- ************************************************
  8194. ---
  8195. CREATE VIEW u5_ltr_region AS
  8196. SELECT
  8197. feature_id AS u5_ltr_region_id,
  8198. feature.*
  8199. FROM
  8200. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8201. WHERE cvterm.name = 'U5_five_prime_LTR_region' OR cvterm.name = 'U5_LTR_region';
  8202. --- ************************************************
  8203. --- *** relation: r_ltr_region ***
  8204. --- *** relation type: VIEW ***
  8205. --- *** ***
  8206. --- ************************************************
  8207. ---
  8208. CREATE VIEW r_ltr_region AS
  8209. SELECT
  8210. feature_id AS r_ltr_region_id,
  8211. feature.*
  8212. FROM
  8213. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8214. WHERE cvterm.name = 'R_five_prime_LTR_region' OR cvterm.name = 'R_LTR_region';
  8215. --- ************************************************
  8216. --- *** relation: u3_ltr_region ***
  8217. --- *** relation type: VIEW ***
  8218. --- *** ***
  8219. --- ************************************************
  8220. ---
  8221. CREATE VIEW u3_ltr_region AS
  8222. SELECT
  8223. feature_id AS u3_ltr_region_id,
  8224. feature.*
  8225. FROM
  8226. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8227. WHERE cvterm.name = 'U3_five_prime_LTR_region' OR cvterm.name = 'U3_LTR_region';
  8228. --- ************************************************
  8229. --- *** relation: five_prime_ltr ***
  8230. --- *** relation type: VIEW ***
  8231. --- *** ***
  8232. --- ************************************************
  8233. ---
  8234. CREATE VIEW five_prime_ltr AS
  8235. SELECT
  8236. feature_id AS five_prime_ltr_id,
  8237. feature.*
  8238. FROM
  8239. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8240. WHERE cvterm.name = 'five_prime_LTR';
  8241. --- ************************************************
  8242. --- *** relation: three_prime_ltr ***
  8243. --- *** relation type: VIEW ***
  8244. --- *** ***
  8245. --- ************************************************
  8246. ---
  8247. CREATE VIEW three_prime_ltr AS
  8248. SELECT
  8249. feature_id AS three_prime_ltr_id,
  8250. feature.*
  8251. FROM
  8252. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8253. WHERE cvterm.name = 'three_prime_LTR';
  8254. --- ************************************************
  8255. --- *** relation: r_five_prime_ltr_region ***
  8256. --- *** relation type: VIEW ***
  8257. --- *** ***
  8258. --- ************************************************
  8259. ---
  8260. CREATE VIEW r_five_prime_ltr_region AS
  8261. SELECT
  8262. feature_id AS r_five_prime_ltr_region_id,
  8263. feature.*
  8264. FROM
  8265. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8266. WHERE cvterm.name = 'R_five_prime_LTR_region';
  8267. --- ************************************************
  8268. --- *** relation: u5_five_prime_ltr_region ***
  8269. --- *** relation type: VIEW ***
  8270. --- *** ***
  8271. --- ************************************************
  8272. ---
  8273. CREATE VIEW u5_five_prime_ltr_region AS
  8274. SELECT
  8275. feature_id AS u5_five_prime_ltr_region_id,
  8276. feature.*
  8277. FROM
  8278. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8279. WHERE cvterm.name = 'U5_five_prime_LTR_region';
  8280. --- ************************************************
  8281. --- *** relation: u3_five_prime_ltr_region ***
  8282. --- *** relation type: VIEW ***
  8283. --- *** ***
  8284. --- ************************************************
  8285. ---
  8286. CREATE VIEW u3_five_prime_ltr_region AS
  8287. SELECT
  8288. feature_id AS u3_five_prime_ltr_region_id,
  8289. feature.*
  8290. FROM
  8291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8292. WHERE cvterm.name = 'U3_five_prime_LTR_region';
  8293. --- ************************************************
  8294. --- *** relation: r_three_prime_ltr_region ***
  8295. --- *** relation type: VIEW ***
  8296. --- *** ***
  8297. --- ************************************************
  8298. ---
  8299. CREATE VIEW r_three_prime_ltr_region AS
  8300. SELECT
  8301. feature_id AS r_three_prime_ltr_region_id,
  8302. feature.*
  8303. FROM
  8304. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8305. WHERE cvterm.name = 'R_three_prime_LTR_region';
  8306. --- ************************************************
  8307. --- *** relation: u3_three_prime_ltr_region ***
  8308. --- *** relation type: VIEW ***
  8309. --- *** ***
  8310. --- ************************************************
  8311. ---
  8312. CREATE VIEW u3_three_prime_ltr_region AS
  8313. SELECT
  8314. feature_id AS u3_three_prime_ltr_region_id,
  8315. feature.*
  8316. FROM
  8317. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8318. WHERE cvterm.name = 'U3_three_prime_LTR_region';
  8319. --- ************************************************
  8320. --- *** relation: u5_three_prime_ltr_region ***
  8321. --- *** relation type: VIEW ***
  8322. --- *** ***
  8323. --- ************************************************
  8324. ---
  8325. CREATE VIEW u5_three_prime_ltr_region AS
  8326. SELECT
  8327. feature_id AS u5_three_prime_ltr_region_id,
  8328. feature.*
  8329. FROM
  8330. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8331. WHERE cvterm.name = 'U5_three_prime_LTR_region';
  8332. --- ************************************************
  8333. --- *** relation: non_ltr_retrotransposon_polymeric_tract ***
  8334. --- *** relation type: VIEW ***
  8335. --- *** ***
  8336. --- *** A polymeric tract, such as poly(dA), wit ***
  8337. --- *** hin a non_LTR_retrotransposon. ***
  8338. --- ************************************************
  8339. ---
  8340. CREATE VIEW non_ltr_retrotransposon_polymeric_tract AS
  8341. SELECT
  8342. feature_id AS non_ltr_retrotransposon_polymeric_tract_id,
  8343. feature.*
  8344. FROM
  8345. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8346. WHERE cvterm.name = 'non_LTR_retrotransposon_polymeric_tract';
  8347. --- ************************************************
  8348. --- *** relation: target_site_duplication ***
  8349. --- *** relation type: VIEW ***
  8350. --- *** ***
  8351. --- *** A sequence of the target DNA that is dup ***
  8352. --- *** licated when a transposable element or p ***
  8353. --- *** hage inserts; usually found at each end ***
  8354. --- *** the insertion. ***
  8355. --- ************************************************
  8356. ---
  8357. CREATE VIEW target_site_duplication AS
  8358. SELECT
  8359. feature_id AS target_site_duplication_id,
  8360. feature.*
  8361. FROM
  8362. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8363. WHERE cvterm.name = 'target_site_duplication';
  8364. --- ************************************************
  8365. --- *** relation: rr_tract ***
  8366. --- *** relation type: VIEW ***
  8367. --- *** ***
  8368. --- *** A polypurine tract within an LTR_retrotr ***
  8369. --- *** ansposon. ***
  8370. --- ************************************************
  8371. ---
  8372. CREATE VIEW rr_tract AS
  8373. SELECT
  8374. feature_id AS rr_tract_id,
  8375. feature.*
  8376. FROM
  8377. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8378. WHERE cvterm.name = 'RR_tract';
  8379. --- ************************************************
  8380. --- *** relation: ars ***
  8381. --- *** relation type: VIEW ***
  8382. --- *** ***
  8383. --- *** A sequence that can autonomously replica ***
  8384. --- *** te, as a plasmid, when transformed into ***
  8385. --- *** a bacterial host. ***
  8386. --- ************************************************
  8387. ---
  8388. CREATE VIEW ars AS
  8389. SELECT
  8390. feature_id AS ars_id,
  8391. feature.*
  8392. FROM
  8393. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8394. WHERE cvterm.name = 'ARS';
  8395. --- ************************************************
  8396. --- *** relation: inverted_ring_chromosome ***
  8397. --- *** relation type: VIEW ***
  8398. --- *** ***
  8399. --- ************************************************
  8400. ---
  8401. CREATE VIEW inverted_ring_chromosome AS
  8402. SELECT
  8403. feature_id AS inverted_ring_chromosome_id,
  8404. feature.*
  8405. FROM
  8406. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8407. WHERE cvterm.name = 'inverted_ring_chromosome';
  8408. --- ************************************************
  8409. --- *** relation: vector_replicon ***
  8410. --- *** relation type: VIEW ***
  8411. --- *** ***
  8412. --- *** A replicon that has been modified to act ***
  8413. --- *** as a vector for foreign sequence. ***
  8414. --- ************************************************
  8415. ---
  8416. CREATE VIEW vector_replicon AS
  8417. SELECT
  8418. feature_id AS vector_replicon_id,
  8419. feature.*
  8420. FROM
  8421. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8422. 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';
  8423. --- ************************************************
  8424. --- *** relation: ss_oligo ***
  8425. --- *** relation type: VIEW ***
  8426. --- *** ***
  8427. --- *** A single stranded oligonucleotide. ***
  8428. --- ************************************************
  8429. ---
  8430. CREATE VIEW ss_oligo AS
  8431. SELECT
  8432. feature_id AS ss_oligo_id,
  8433. feature.*
  8434. FROM
  8435. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8436. 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';
  8437. --- ************************************************
  8438. --- *** relation: ds_oligo ***
  8439. --- *** relation type: VIEW ***
  8440. --- *** ***
  8441. --- *** A double stranded oligonucleotide. ***
  8442. --- ************************************************
  8443. ---
  8444. CREATE VIEW ds_oligo AS
  8445. SELECT
  8446. feature_id AS ds_oligo_id,
  8447. feature.*
  8448. FROM
  8449. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8450. WHERE cvterm.name = 'RNAi_reagent' OR cvterm.name = 'DNA_constraint_sequence' OR cvterm.name = 'ds_oligo';
  8451. --- ************************************************
  8452. --- *** relation: polymer_attribute ***
  8453. --- *** relation type: VIEW ***
  8454. --- *** ***
  8455. --- *** An attribute to describe the kind of bio ***
  8456. --- *** logical sequence. ***
  8457. --- ************************************************
  8458. ---
  8459. CREATE VIEW polymer_attribute AS
  8460. SELECT
  8461. feature_id AS polymer_attribute_id,
  8462. feature.*
  8463. FROM
  8464. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8465. 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';
  8466. --- ************************************************
  8467. --- *** relation: three_prime_noncoding_exon ***
  8468. --- *** relation type: VIEW ***
  8469. --- *** ***
  8470. --- *** Non-coding exon in the 3' UTR. ***
  8471. --- ************************************************
  8472. ---
  8473. CREATE VIEW three_prime_noncoding_exon AS
  8474. SELECT
  8475. feature_id AS three_prime_noncoding_exon_id,
  8476. feature.*
  8477. FROM
  8478. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8479. WHERE cvterm.name = 'three_prime_noncoding_exon';
  8480. --- ************************************************
  8481. --- *** relation: five_prime_noncoding_exon ***
  8482. --- *** relation type: VIEW ***
  8483. --- *** ***
  8484. --- *** Non-coding exon in the 5' UTR. ***
  8485. --- ************************************************
  8486. ---
  8487. CREATE VIEW five_prime_noncoding_exon AS
  8488. SELECT
  8489. feature_id AS five_prime_noncoding_exon_id,
  8490. feature.*
  8491. FROM
  8492. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8493. WHERE cvterm.name = 'five_prime_noncoding_exon';
  8494. --- ************************************************
  8495. --- *** relation: utr_intron ***
  8496. --- *** relation type: VIEW ***
  8497. --- *** ***
  8498. --- *** Intron located in the untranslated regio ***
  8499. --- *** n. ***
  8500. --- ************************************************
  8501. ---
  8502. CREATE VIEW utr_intron AS
  8503. SELECT
  8504. feature_id AS utr_intron_id,
  8505. feature.*
  8506. FROM
  8507. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8508. WHERE cvterm.name = 'five_prime_UTR_intron' OR cvterm.name = 'three_prime_UTR_intron' OR cvterm.name = 'UTR_intron';
  8509. --- ************************************************
  8510. --- *** relation: five_prime_utr_intron ***
  8511. --- *** relation type: VIEW ***
  8512. --- *** ***
  8513. --- *** An intron located in the 5' UTR. ***
  8514. --- ************************************************
  8515. ---
  8516. CREATE VIEW five_prime_utr_intron AS
  8517. SELECT
  8518. feature_id AS five_prime_utr_intron_id,
  8519. feature.*
  8520. FROM
  8521. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8522. WHERE cvterm.name = 'five_prime_UTR_intron';
  8523. --- ************************************************
  8524. --- *** relation: three_prime_utr_intron ***
  8525. --- *** relation type: VIEW ***
  8526. --- *** ***
  8527. --- *** An intron located in the 3' UTR. ***
  8528. --- ************************************************
  8529. ---
  8530. CREATE VIEW three_prime_utr_intron AS
  8531. SELECT
  8532. feature_id AS three_prime_utr_intron_id,
  8533. feature.*
  8534. FROM
  8535. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8536. WHERE cvterm.name = 'three_prime_UTR_intron';
  8537. --- ************************************************
  8538. --- *** relation: random_sequence ***
  8539. --- *** relation type: VIEW ***
  8540. --- *** ***
  8541. --- *** A sequence of nucleotides or amino acids ***
  8542. --- *** which, by design, has a "random" order ***
  8543. --- *** of components, given a predetermined inp ***
  8544. --- *** ut frequency of these components. ***
  8545. --- ************************************************
  8546. ---
  8547. CREATE VIEW random_sequence AS
  8548. SELECT
  8549. feature_id AS random_sequence_id,
  8550. feature.*
  8551. FROM
  8552. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8553. WHERE cvterm.name = 'random_sequence';
  8554. --- ************************************************
  8555. --- *** relation: interband ***
  8556. --- *** relation type: VIEW ***
  8557. --- *** ***
  8558. --- *** A light region between two darkly staini ***
  8559. --- *** ng bands in a polytene chromosome. ***
  8560. --- ************************************************
  8561. ---
  8562. CREATE VIEW interband AS
  8563. SELECT
  8564. feature_id AS interband_id,
  8565. feature.*
  8566. FROM
  8567. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8568. WHERE cvterm.name = 'interband';
  8569. --- ************************************************
  8570. --- *** relation: gene_with_polyadenylated_mrna ***
  8571. --- *** relation type: VIEW ***
  8572. --- *** ***
  8573. --- *** A gene that encodes a polyadenylated mRN ***
  8574. --- *** A. ***
  8575. --- ************************************************
  8576. ---
  8577. CREATE VIEW gene_with_polyadenylated_mrna AS
  8578. SELECT
  8579. feature_id AS gene_with_polyadenylated_mrna_id,
  8580. feature.*
  8581. FROM
  8582. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8583. WHERE cvterm.name = 'gene_with_polyadenylated_mRNA';
  8584. --- ************************************************
  8585. --- *** relation: chromosomal_transposition ***
  8586. --- *** relation type: VIEW ***
  8587. --- *** ***
  8588. --- *** A chromosome structure variant whereby a ***
  8589. --- *** region of a chromosome has been transfe ***
  8590. --- *** rred to another position. Among interchr ***
  8591. --- *** omosomal rearrangements, the term transp ***
  8592. --- *** osition is reserved for that class in wh ***
  8593. --- *** ich the telomeres of the chromosomes inv ***
  8594. --- *** olved are coupled (that is to say, form ***
  8595. --- *** the two ends of a single DNA molecule) a ***
  8596. --- *** s in wild-type. ***
  8597. --- ************************************************
  8598. ---
  8599. CREATE VIEW chromosomal_transposition AS
  8600. SELECT
  8601. feature_id AS chromosomal_transposition_id,
  8602. feature.*
  8603. FROM
  8604. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8605. 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';
  8606. --- ************************************************
  8607. --- *** relation: rasirna ***
  8608. --- *** relation type: VIEW ***
  8609. --- *** ***
  8610. --- *** A 17-28-nt, small interfering RNA derive ***
  8611. --- *** d from transcripts of repetitive element ***
  8612. --- *** s. ***
  8613. --- ************************************************
  8614. ---
  8615. CREATE VIEW rasirna AS
  8616. SELECT
  8617. feature_id AS rasirna_id,
  8618. feature.*
  8619. FROM
  8620. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8621. WHERE cvterm.name = 'rasiRNA';
  8622. --- ************************************************
  8623. --- *** relation: gene_with_mrna_with_frameshift ***
  8624. --- *** relation type: VIEW ***
  8625. --- *** ***
  8626. --- *** A gene that encodes an mRNA with a frame ***
  8627. --- *** shift. ***
  8628. --- ************************************************
  8629. ---
  8630. CREATE VIEW gene_with_mrna_with_frameshift AS
  8631. SELECT
  8632. feature_id AS gene_with_mrna_with_frameshift_id,
  8633. feature.*
  8634. FROM
  8635. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8636. WHERE cvterm.name = 'gene_with_mRNA_with_frameshift';
  8637. --- ************************************************
  8638. --- *** relation: recombinationally_rearranged_gene ***
  8639. --- *** relation type: VIEW ***
  8640. --- *** ***
  8641. --- *** A gene that is recombinationally rearran ***
  8642. --- *** ged. ***
  8643. --- ************************************************
  8644. ---
  8645. CREATE VIEW recombinationally_rearranged_gene AS
  8646. SELECT
  8647. feature_id AS recombinationally_rearranged_gene_id,
  8648. feature.*
  8649. FROM
  8650. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8651. WHERE cvterm.name = 'recombinationally_inverted_gene' OR cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene' OR cvterm.name = 'recombinationally_rearranged_gene';
  8652. --- ************************************************
  8653. --- *** relation: interchromosomal_duplication ***
  8654. --- *** relation type: VIEW ***
  8655. --- *** ***
  8656. --- *** A chromosome duplication involving an in ***
  8657. --- *** sertion from another chromosome. ***
  8658. --- ************************************************
  8659. ---
  8660. CREATE VIEW interchromosomal_duplication AS
  8661. SELECT
  8662. feature_id AS interchromosomal_duplication_id,
  8663. feature.*
  8664. FROM
  8665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8666. WHERE cvterm.name = 'interchromosomal_duplication';
  8667. --- ************************************************
  8668. --- *** relation: d_gene ***
  8669. --- *** relation type: VIEW ***
  8670. --- *** ***
  8671. --- *** Germline genomic DNA including D-region ***
  8672. --- *** with 5' UTR and 3' UTR, also designated ***
  8673. --- *** as D-segment. ***
  8674. --- ************************************************
  8675. ---
  8676. CREATE VIEW d_gene AS
  8677. SELECT
  8678. feature_id AS d_gene_id,
  8679. feature.*
  8680. FROM
  8681. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8682. WHERE cvterm.name = 'D_gene';
  8683. --- ************************************************
  8684. --- *** relation: gene_with_trans_spliced_transcript ***
  8685. --- *** relation type: VIEW ***
  8686. --- *** ***
  8687. --- *** A gene with a transcript that is trans-s ***
  8688. --- *** pliced. ***
  8689. --- ************************************************
  8690. ---
  8691. CREATE VIEW gene_with_trans_spliced_transcript AS
  8692. SELECT
  8693. feature_id AS gene_with_trans_spliced_transcript_id,
  8694. feature.*
  8695. FROM
  8696. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8697. WHERE cvterm.name = 'gene_with_trans_spliced_transcript';
  8698. --- ************************************************
  8699. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_segment ***
  8700. --- *** relation type: VIEW ***
  8701. --- *** ***
  8702. --- ************************************************
  8703. ---
  8704. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_segment AS
  8705. SELECT
  8706. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_segment_id,
  8707. feature.*
  8708. FROM
  8709. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8710. 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';
  8711. --- ************************************************
  8712. --- *** relation: inversion_derived_bipartite_deficiency ***
  8713. --- *** relation type: VIEW ***
  8714. --- *** ***
  8715. --- *** A chromosomal deletion whereby a chromos ***
  8716. --- *** ome generated by recombination between t ***
  8717. --- *** wo inversions; has a deficiency at each ***
  8718. --- *** end of the inversion. ***
  8719. --- ************************************************
  8720. ---
  8721. CREATE VIEW inversion_derived_bipartite_deficiency AS
  8722. SELECT
  8723. feature_id AS inversion_derived_bipartite_deficiency_id,
  8724. feature.*
  8725. FROM
  8726. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8727. WHERE cvterm.name = 'inversion_derived_bipartite_deficiency';
  8728. --- ************************************************
  8729. --- *** relation: pseudogenic_region ***
  8730. --- *** relation type: VIEW ***
  8731. --- *** ***
  8732. --- *** A non-functional descendent of a functio ***
  8733. --- *** nal entity. ***
  8734. --- ************************************************
  8735. ---
  8736. CREATE VIEW pseudogenic_region AS
  8737. SELECT
  8738. feature_id AS pseudogenic_region_id,
  8739. feature.*
  8740. FROM
  8741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8742. 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';
  8743. --- ************************************************
  8744. --- *** relation: encodes_alternately_spliced_transcripts ***
  8745. --- *** relation type: VIEW ***
  8746. --- *** ***
  8747. --- *** A gene that encodes more than one transc ***
  8748. --- *** ript. ***
  8749. --- ************************************************
  8750. ---
  8751. CREATE VIEW encodes_alternately_spliced_transcripts AS
  8752. SELECT
  8753. feature_id AS encodes_alternately_spliced_transcripts_id,
  8754. feature.*
  8755. FROM
  8756. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8757. 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';
  8758. --- ************************************************
  8759. --- *** relation: decayed_exon ***
  8760. --- *** relation type: VIEW ***
  8761. --- *** ***
  8762. --- *** A non-functional descendant of an exon. ***
  8763. --- ************************************************
  8764. ---
  8765. CREATE VIEW decayed_exon AS
  8766. SELECT
  8767. feature_id AS decayed_exon_id,
  8768. feature.*
  8769. FROM
  8770. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8771. WHERE cvterm.name = 'decayed_exon';
  8772. --- ************************************************
  8773. --- *** relation: inversion_derived_deficiency_plus_duplication ***
  8774. --- *** relation type: VIEW ***
  8775. --- *** ***
  8776. --- *** A chromosome deletion whereby a chromoso ***
  8777. --- *** me is generated by recombination between ***
  8778. --- *** two inversions; there is a deficiency a ***
  8779. --- *** t one end of the inversion and a duplica ***
  8780. --- *** tion at the other end of the inversion. ***
  8781. --- ************************************************
  8782. ---
  8783. CREATE VIEW inversion_derived_deficiency_plus_duplication AS
  8784. SELECT
  8785. feature_id AS inversion_derived_deficiency_plus_duplication_id,
  8786. feature.*
  8787. FROM
  8788. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8789. WHERE cvterm.name = 'inversion_derived_deficiency_plus_duplication';
  8790. --- ************************************************
  8791. --- *** relation: v_gene ***
  8792. --- *** relation type: VIEW ***
  8793. --- *** ***
  8794. --- *** Germline genomic DNA including L-part1, ***
  8795. --- *** V-intron and V-exon, with the 5' UTR and ***
  8796. --- *** 3' UTR. ***
  8797. --- ************************************************
  8798. ---
  8799. CREATE VIEW v_gene AS
  8800. SELECT
  8801. feature_id AS v_gene_id,
  8802. feature.*
  8803. FROM
  8804. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8805. WHERE cvterm.name = 'V_gene';
  8806. --- ************************************************
  8807. --- *** relation: post_translationally_regulated_by_protein_stability ***
  8808. --- *** relation type: VIEW ***
  8809. --- *** ***
  8810. --- *** An attribute describing a gene sequence ***
  8811. --- *** where the resulting protein is regulated ***
  8812. --- *** by the stability of the resulting prote ***
  8813. --- *** in. ***
  8814. --- ************************************************
  8815. ---
  8816. CREATE VIEW post_translationally_regulated_by_protein_stability AS
  8817. SELECT
  8818. feature_id AS post_translationally_regulated_by_protein_stability_id,
  8819. feature.*
  8820. FROM
  8821. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8822. WHERE cvterm.name = 'post_translationally_regulated_by_protein_stability';
  8823. --- ************************************************
  8824. --- *** relation: golden_path_fragment ***
  8825. --- *** relation type: VIEW ***
  8826. --- *** ***
  8827. --- *** One of the pieces of sequence that make ***
  8828. --- *** up a golden path. ***
  8829. --- ************************************************
  8830. ---
  8831. CREATE VIEW golden_path_fragment AS
  8832. SELECT
  8833. feature_id AS golden_path_fragment_id,
  8834. feature.*
  8835. FROM
  8836. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8837. WHERE cvterm.name = 'golden_path_fragment';
  8838. --- ************************************************
  8839. --- *** relation: post_translationally_regulated_by_protein_modification ***
  8840. --- *** relation type: VIEW ***
  8841. --- *** ***
  8842. --- *** An attribute describing a gene sequence ***
  8843. --- *** where the resulting protein is modified ***
  8844. --- *** to regulate it. ***
  8845. --- ************************************************
  8846. ---
  8847. CREATE VIEW post_translationally_regulated_by_protein_modification AS
  8848. SELECT
  8849. feature_id AS post_translationally_regulated_by_protein_modification_id,
  8850. feature.*
  8851. FROM
  8852. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8853. WHERE cvterm.name = 'post_translationally_regulated_by_protein_modification';
  8854. --- ************************************************
  8855. --- *** relation: j_gene ***
  8856. --- *** relation type: VIEW ***
  8857. --- *** ***
  8858. --- *** Germline genomic DNA of an immunoglobuli ***
  8859. --- *** n/T-cell receptor gene including J-regio ***
  8860. --- *** n with 5' UTR (SO:0000204) and 3' UTR (S ***
  8861. --- *** O:0000205), also designated as J-segment ***
  8862. --- *** . ***
  8863. --- ************************************************
  8864. ---
  8865. CREATE VIEW j_gene AS
  8866. SELECT
  8867. feature_id AS j_gene_id,
  8868. feature.*
  8869. FROM
  8870. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8871. WHERE cvterm.name = 'J_gene';
  8872. --- ************************************************
  8873. --- *** relation: autoregulated ***
  8874. --- *** relation type: VIEW ***
  8875. --- *** ***
  8876. --- *** The gene product is involved in its own ***
  8877. --- *** transcriptional regulation. ***
  8878. --- ************************************************
  8879. ---
  8880. CREATE VIEW autoregulated AS
  8881. SELECT
  8882. feature_id AS autoregulated_id,
  8883. feature.*
  8884. FROM
  8885. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8886. WHERE cvterm.name = 'negatively_autoregulated' OR cvterm.name = 'positively_autoregulated' OR cvterm.name = 'autoregulated';
  8887. --- ************************************************
  8888. --- *** relation: tiling_path ***
  8889. --- *** relation type: VIEW ***
  8890. --- *** ***
  8891. --- *** A set of regions which overlap with mini ***
  8892. --- *** mal polymorphism to form a linear sequen ***
  8893. --- *** ce. ***
  8894. --- ************************************************
  8895. ---
  8896. CREATE VIEW tiling_path AS
  8897. SELECT
  8898. feature_id AS tiling_path_id,
  8899. feature.*
  8900. FROM
  8901. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8902. WHERE cvterm.name = 'tiling_path';
  8903. --- ************************************************
  8904. --- *** relation: negatively_autoregulated ***
  8905. --- *** relation type: VIEW ***
  8906. --- *** ***
  8907. --- *** The gene product is involved in its own ***
  8908. --- *** transcriptional regulation where it decr ***
  8909. --- *** eases transcription. ***
  8910. --- ************************************************
  8911. ---
  8912. CREATE VIEW negatively_autoregulated AS
  8913. SELECT
  8914. feature_id AS negatively_autoregulated_id,
  8915. feature.*
  8916. FROM
  8917. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8918. WHERE cvterm.name = 'negatively_autoregulated';
  8919. --- ************************************************
  8920. --- *** relation: tiling_path_fragment ***
  8921. --- *** relation type: VIEW ***
  8922. --- *** ***
  8923. --- *** A piece of sequence that makes up a tili ***
  8924. --- *** ng_path (SO:0000472). ***
  8925. --- ************************************************
  8926. ---
  8927. CREATE VIEW tiling_path_fragment AS
  8928. SELECT
  8929. feature_id AS tiling_path_fragment_id,
  8930. feature.*
  8931. FROM
  8932. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8933. WHERE cvterm.name = 'tiling_path_clone' OR cvterm.name = 'tiling_path_fragment';
  8934. --- ************************************************
  8935. --- *** relation: positively_autoregulated ***
  8936. --- *** relation type: VIEW ***
  8937. --- *** ***
  8938. --- *** The gene product is involved in its own ***
  8939. --- *** transcriptional regulation, where it inc ***
  8940. --- *** reases transcription. ***
  8941. --- ************************************************
  8942. ---
  8943. CREATE VIEW positively_autoregulated AS
  8944. SELECT
  8945. feature_id AS positively_autoregulated_id,
  8946. feature.*
  8947. FROM
  8948. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8949. WHERE cvterm.name = 'positively_autoregulated';
  8950. --- ************************************************
  8951. --- *** relation: contig_read ***
  8952. --- *** relation type: VIEW ***
  8953. --- *** ***
  8954. --- *** A DNA sequencer read which is part of a ***
  8955. --- *** contig. ***
  8956. --- ************************************************
  8957. ---
  8958. CREATE VIEW contig_read AS
  8959. SELECT
  8960. feature_id AS contig_read_id,
  8961. feature.*
  8962. FROM
  8963. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8964. WHERE cvterm.name = 'contig_read';
  8965. --- ************************************************
  8966. --- *** relation: c_gene ***
  8967. --- *** relation type: VIEW ***
  8968. --- *** ***
  8969. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  8970. --- *** eptor gene including C-region (and intro ***
  8971. --- *** ns if present) with 5' UTR (SO:0000204) ***
  8972. --- *** and 3' UTR (SO:0000205). ***
  8973. --- ************************************************
  8974. ---
  8975. CREATE VIEW c_gene AS
  8976. SELECT
  8977. feature_id AS c_gene_id,
  8978. feature.*
  8979. FROM
  8980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8981. WHERE cvterm.name = 'C_gene';
  8982. --- ************************************************
  8983. --- *** relation: trans_spliced_transcript ***
  8984. --- *** relation type: VIEW ***
  8985. --- *** ***
  8986. --- *** A transcript that is trans-spliced. ***
  8987. --- ************************************************
  8988. ---
  8989. CREATE VIEW trans_spliced_transcript AS
  8990. SELECT
  8991. feature_id AS trans_spliced_transcript_id,
  8992. feature.*
  8993. FROM
  8994. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  8995. WHERE cvterm.name = 'trans_spliced_mRNA' OR cvterm.name = 'trans_spliced_transcript';
  8996. --- ************************************************
  8997. --- *** relation: tiling_path_clone ***
  8998. --- *** relation type: VIEW ***
  8999. --- *** ***
  9000. --- *** A clone which is part of a tiling path. ***
  9001. --- *** A tiling path is a set of sequencing sub ***
  9002. --- *** strates, typically clones, which have be ***
  9003. --- *** en selected in order to efficiently cove ***
  9004. --- *** r a region of the genome in preparation ***
  9005. --- *** for sequencing and assembly. ***
  9006. --- ************************************************
  9007. ---
  9008. CREATE VIEW tiling_path_clone AS
  9009. SELECT
  9010. feature_id AS tiling_path_clone_id,
  9011. feature.*
  9012. FROM
  9013. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9014. WHERE cvterm.name = 'tiling_path_clone';
  9015. --- ************************************************
  9016. --- *** relation: terminal_inverted_repeat ***
  9017. --- *** relation type: VIEW ***
  9018. --- *** ***
  9019. --- *** An inverted repeat (SO:0000294) occurrin ***
  9020. --- *** g at the termini of a DNA transposon. ***
  9021. --- ************************************************
  9022. ---
  9023. CREATE VIEW terminal_inverted_repeat AS
  9024. SELECT
  9025. feature_id AS terminal_inverted_repeat_id,
  9026. feature.*
  9027. FROM
  9028. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9029. WHERE cvterm.name = 'five_prime_terminal_inverted_repeat' OR cvterm.name = 'three_prime_terminal_inverted_repeat' OR cvterm.name = 'terminal_inverted_repeat';
  9030. --- ************************************************
  9031. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_gene_cluster ***
  9032. --- *** relation type: VIEW ***
  9033. --- *** ***
  9034. --- ************************************************
  9035. ---
  9036. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_gene_cluster AS
  9037. SELECT
  9038. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_gene_cluster_id,
  9039. feature.*
  9040. FROM
  9041. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9042. 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';
  9043. --- ************************************************
  9044. --- *** relation: nc_primary_transcript ***
  9045. --- *** relation type: VIEW ***
  9046. --- *** ***
  9047. --- *** A primary transcript that is never trans ***
  9048. --- *** lated into a protein. ***
  9049. --- ************************************************
  9050. ---
  9051. CREATE VIEW nc_primary_transcript AS
  9052. SELECT
  9053. feature_id AS nc_primary_transcript_id,
  9054. feature.*
  9055. FROM
  9056. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9057. 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';
  9058. --- ************************************************
  9059. --- *** relation: three_prime_coding_exon_noncoding_region ***
  9060. --- *** relation type: VIEW ***
  9061. --- *** ***
  9062. --- *** The sequence of the 3' exon that is not ***
  9063. --- *** coding. ***
  9064. --- ************************************************
  9065. ---
  9066. CREATE VIEW three_prime_coding_exon_noncoding_region AS
  9067. SELECT
  9068. feature_id AS three_prime_coding_exon_noncoding_region_id,
  9069. feature.*
  9070. FROM
  9071. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9072. WHERE cvterm.name = 'three_prime_coding_exon_noncoding_region';
  9073. --- ************************************************
  9074. --- *** relation: dj_j_cluster ***
  9075. --- *** relation type: VIEW ***
  9076. --- *** ***
  9077. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9078. --- *** eptor gene in rearranged configuration i ***
  9079. --- *** ncluding at least one DJ-gene, and one J ***
  9080. --- *** -gene. ***
  9081. --- ************************************************
  9082. ---
  9083. CREATE VIEW dj_j_cluster AS
  9084. SELECT
  9085. feature_id AS dj_j_cluster_id,
  9086. feature.*
  9087. FROM
  9088. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9089. WHERE cvterm.name = 'DJ_J_cluster';
  9090. --- ************************************************
  9091. --- *** relation: five_prime_coding_exon_noncoding_region ***
  9092. --- *** relation type: VIEW ***
  9093. --- *** ***
  9094. --- *** The sequence of the 5' exon preceding th ***
  9095. --- *** e start codon. ***
  9096. --- ************************************************
  9097. ---
  9098. CREATE VIEW five_prime_coding_exon_noncoding_region AS
  9099. SELECT
  9100. feature_id AS five_prime_coding_exon_noncoding_region_id,
  9101. feature.*
  9102. FROM
  9103. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9104. WHERE cvterm.name = 'five_prime_coding_exon_noncoding_region';
  9105. --- ************************************************
  9106. --- *** relation: vdj_j_c_cluster ***
  9107. --- *** relation type: VIEW ***
  9108. --- *** ***
  9109. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9110. --- *** eptor gene in rearranged configuration i ***
  9111. --- *** ncluding at least one VDJ-gene, one J-ge ***
  9112. --- *** ne and one C-gene. ***
  9113. --- ************************************************
  9114. ---
  9115. CREATE VIEW vdj_j_c_cluster AS
  9116. SELECT
  9117. feature_id AS vdj_j_c_cluster_id,
  9118. feature.*
  9119. FROM
  9120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9121. WHERE cvterm.name = 'VDJ_J_C_cluster';
  9122. --- ************************************************
  9123. --- *** relation: vdj_j_cluster ***
  9124. --- *** relation type: VIEW ***
  9125. --- *** ***
  9126. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9127. --- *** eptor gene in rearranged configuration i ***
  9128. --- *** ncluding at least one VDJ-gene and one J ***
  9129. --- *** -gene. ***
  9130. --- ************************************************
  9131. ---
  9132. CREATE VIEW vdj_j_cluster AS
  9133. SELECT
  9134. feature_id AS vdj_j_cluster_id,
  9135. feature.*
  9136. FROM
  9137. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9138. WHERE cvterm.name = 'VDJ_J_cluster';
  9139. --- ************************************************
  9140. --- *** relation: vj_c_cluster ***
  9141. --- *** relation type: VIEW ***
  9142. --- *** ***
  9143. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9144. --- *** eptor gene in rearranged configuration i ***
  9145. --- *** ncluding at least one VJ-gene and one C- ***
  9146. --- *** gene. ***
  9147. --- ************************************************
  9148. ---
  9149. CREATE VIEW vj_c_cluster AS
  9150. SELECT
  9151. feature_id AS vj_c_cluster_id,
  9152. feature.*
  9153. FROM
  9154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9155. WHERE cvterm.name = 'VJ_C_cluster';
  9156. --- ************************************************
  9157. --- *** relation: vj_j_c_cluster ***
  9158. --- *** relation type: VIEW ***
  9159. --- *** ***
  9160. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9161. --- *** eptor gene in rearranged configuration i ***
  9162. --- *** ncluding at least one VJ-gene, one J-gen ***
  9163. --- *** e and one C-gene. ***
  9164. --- ************************************************
  9165. ---
  9166. CREATE VIEW vj_j_c_cluster AS
  9167. SELECT
  9168. feature_id AS vj_j_c_cluster_id,
  9169. feature.*
  9170. FROM
  9171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9172. WHERE cvterm.name = 'VJ_J_C_cluster';
  9173. --- ************************************************
  9174. --- *** relation: vj_j_cluster ***
  9175. --- *** relation type: VIEW ***
  9176. --- *** ***
  9177. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9178. --- *** eptor gene in rearranged configuration i ***
  9179. --- *** ncluding at least one VJ-gene and one J- ***
  9180. --- *** gene. ***
  9181. --- ************************************************
  9182. ---
  9183. CREATE VIEW vj_j_cluster AS
  9184. SELECT
  9185. feature_id AS vj_j_cluster_id,
  9186. feature.*
  9187. FROM
  9188. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9189. WHERE cvterm.name = 'VJ_J_cluster';
  9190. --- ************************************************
  9191. --- *** relation: d_gene_recombination_feature ***
  9192. --- *** relation type: VIEW ***
  9193. --- *** ***
  9194. --- ************************************************
  9195. ---
  9196. CREATE VIEW d_gene_recombination_feature AS
  9197. SELECT
  9198. feature_id AS d_gene_recombination_feature_id,
  9199. feature.*
  9200. FROM
  9201. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9202. 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';
  9203. --- ************************************************
  9204. --- *** relation: three_prime_d_heptamer ***
  9205. --- *** relation type: VIEW ***
  9206. --- *** ***
  9207. --- *** 7 nucleotide recombination site like CAC ***
  9208. --- *** AGTG, part of a 3' D-recombination signa ***
  9209. --- *** l sequence of an immunoglobulin/T-cell r ***
  9210. --- *** eceptor gene. ***
  9211. --- ************************************************
  9212. ---
  9213. CREATE VIEW three_prime_d_heptamer AS
  9214. SELECT
  9215. feature_id AS three_prime_d_heptamer_id,
  9216. feature.*
  9217. FROM
  9218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9219. WHERE cvterm.name = 'three_prime_D_heptamer';
  9220. --- ************************************************
  9221. --- *** relation: three_prime_d_nonamer ***
  9222. --- *** relation type: VIEW ***
  9223. --- *** ***
  9224. --- *** A 9 nucleotide recombination site (e.g. ***
  9225. --- *** ACAAAAACC), part of a 3' D-recombination ***
  9226. --- *** signal sequence of an immunoglobulin/T- ***
  9227. --- *** cell receptor gene. ***
  9228. --- ************************************************
  9229. ---
  9230. CREATE VIEW three_prime_d_nonamer AS
  9231. SELECT
  9232. feature_id AS three_prime_d_nonamer_id,
  9233. feature.*
  9234. FROM
  9235. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9236. WHERE cvterm.name = 'three_prime_D_nonamer';
  9237. --- ************************************************
  9238. --- *** relation: three_prime_d_spacer ***
  9239. --- *** relation type: VIEW ***
  9240. --- *** ***
  9241. --- *** A 12 or 23 nucleotide spacer between the ***
  9242. --- *** 3'D-HEPTAMER and 3'D-NONAMER of a 3'D-R ***
  9243. --- *** S. ***
  9244. --- ************************************************
  9245. ---
  9246. CREATE VIEW three_prime_d_spacer AS
  9247. SELECT
  9248. feature_id AS three_prime_d_spacer_id,
  9249. feature.*
  9250. FROM
  9251. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9252. WHERE cvterm.name = 'three_prime_D_spacer';
  9253. --- ************************************************
  9254. --- *** relation: five_prime_d_heptamer ***
  9255. --- *** relation type: VIEW ***
  9256. --- *** ***
  9257. --- *** 7 nucleotide recombination site (e.g. CA ***
  9258. --- *** CTGTG), part of a 5' D-recombination sig ***
  9259. --- *** nal sequence (SO:0000556) of an immunogl ***
  9260. --- *** obulin/T-cell receptor gene. ***
  9261. --- ************************************************
  9262. ---
  9263. CREATE VIEW five_prime_d_heptamer AS
  9264. SELECT
  9265. feature_id AS five_prime_d_heptamer_id,
  9266. feature.*
  9267. FROM
  9268. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9269. WHERE cvterm.name = 'five_prime_D_heptamer';
  9270. --- ************************************************
  9271. --- *** relation: five_prime_d_nonamer ***
  9272. --- *** relation type: VIEW ***
  9273. --- *** ***
  9274. --- *** 9 nucleotide recombination site (e.g. GG ***
  9275. --- *** TTTTTGT), part of a five_prime_D-recombi ***
  9276. --- *** nation signal sequence (SO:0000556) of a ***
  9277. --- *** n immunoglobulin/T-cell receptor gene. ***
  9278. --- ************************************************
  9279. ---
  9280. CREATE VIEW five_prime_d_nonamer AS
  9281. SELECT
  9282. feature_id AS five_prime_d_nonamer_id,
  9283. feature.*
  9284. FROM
  9285. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9286. WHERE cvterm.name = 'five_prime_D_nonamer';
  9287. --- ************************************************
  9288. --- *** relation: five_prime_d_spacer ***
  9289. --- *** relation type: VIEW ***
  9290. --- *** ***
  9291. --- *** 12 or 23 nucleotide spacer between the 5 ***
  9292. --- *** ' D-heptamer (SO:0000496) and 5' D-nonam ***
  9293. --- *** er (SO:0000497) of a 5' D-recombination ***
  9294. --- *** signal sequence (SO:0000556) of an immun ***
  9295. --- *** oglobulin/T-cell receptor gene. ***
  9296. --- ************************************************
  9297. ---
  9298. CREATE VIEW five_prime_d_spacer AS
  9299. SELECT
  9300. feature_id AS five_prime_d_spacer_id,
  9301. feature.*
  9302. FROM
  9303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9304. WHERE cvterm.name = 'five_prime_D_spacer';
  9305. --- ************************************************
  9306. --- *** relation: virtual_sequence ***
  9307. --- *** relation type: VIEW ***
  9308. --- *** ***
  9309. --- *** A continuous piece of sequence similar t ***
  9310. --- *** o the 'virtual contig' concept of the En ***
  9311. --- *** sembl database. ***
  9312. --- ************************************************
  9313. ---
  9314. CREATE VIEW virtual_sequence AS
  9315. SELECT
  9316. feature_id AS virtual_sequence_id,
  9317. feature.*
  9318. FROM
  9319. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9320. WHERE cvterm.name = 'virtual_sequence';
  9321. --- ************************************************
  9322. --- *** relation: hoogsteen_base_pair ***
  9323. --- *** relation type: VIEW ***
  9324. --- *** ***
  9325. --- *** A type of non-canonical base-pairing. Th ***
  9326. --- *** is is less energetically favourable than ***
  9327. --- *** watson crick base pairing. Hoogsteen GC ***
  9328. --- *** base pairs only have two hydrogen bonds ***
  9329. --- *** . ***
  9330. --- ************************************************
  9331. ---
  9332. CREATE VIEW hoogsteen_base_pair AS
  9333. SELECT
  9334. feature_id AS hoogsteen_base_pair_id,
  9335. feature.*
  9336. FROM
  9337. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9338. WHERE cvterm.name = 'Hoogsteen_base_pair';
  9339. --- ************************************************
  9340. --- *** relation: reverse_hoogsteen_base_pair ***
  9341. --- *** relation type: VIEW ***
  9342. --- *** ***
  9343. --- *** A type of non-canonical base-pairing. ***
  9344. --- ************************************************
  9345. ---
  9346. CREATE VIEW reverse_hoogsteen_base_pair AS
  9347. SELECT
  9348. feature_id AS reverse_hoogsteen_base_pair_id,
  9349. feature.*
  9350. FROM
  9351. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9352. WHERE cvterm.name = 'reverse_Hoogsteen_base_pair';
  9353. --- ************************************************
  9354. --- *** relation: d_dj_c_cluster ***
  9355. --- *** relation type: VIEW ***
  9356. --- *** ***
  9357. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9358. --- *** eptor gene in rearranged configuration i ***
  9359. --- *** ncluding at least one D-gene, one DJ-gen ***
  9360. --- *** e and one C-gene. ***
  9361. --- ************************************************
  9362. ---
  9363. CREATE VIEW d_dj_c_cluster AS
  9364. SELECT
  9365. feature_id AS d_dj_c_cluster_id,
  9366. feature.*
  9367. FROM
  9368. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9369. WHERE cvterm.name = 'D_DJ_C_cluster';
  9370. --- ************************************************
  9371. --- *** relation: d_dj_cluster ***
  9372. --- *** relation type: VIEW ***
  9373. --- *** ***
  9374. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9375. --- *** eptor gene in rearranged configuration i ***
  9376. --- *** ncluding at least one D-gene and one DJ- ***
  9377. --- *** gene. ***
  9378. --- ************************************************
  9379. ---
  9380. CREATE VIEW d_dj_cluster AS
  9381. SELECT
  9382. feature_id AS d_dj_cluster_id,
  9383. feature.*
  9384. FROM
  9385. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9386. WHERE cvterm.name = 'D_DJ_cluster';
  9387. --- ************************************************
  9388. --- *** relation: d_dj_j_c_cluster ***
  9389. --- *** relation type: VIEW ***
  9390. --- *** ***
  9391. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9392. --- *** eptor gene in rearranged configuration i ***
  9393. --- *** ncluding at least one D-gene, one DJ-gen ***
  9394. --- *** e, one J-gene and one C-gene. ***
  9395. --- ************************************************
  9396. ---
  9397. CREATE VIEW d_dj_j_c_cluster AS
  9398. SELECT
  9399. feature_id AS d_dj_j_c_cluster_id,
  9400. feature.*
  9401. FROM
  9402. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9403. WHERE cvterm.name = 'D_DJ_J_C_cluster';
  9404. --- ************************************************
  9405. --- *** relation: pseudogenic_exon ***
  9406. --- *** relation type: VIEW ***
  9407. --- *** ***
  9408. --- *** A non functional descendant of an exon, ***
  9409. --- *** part of a pseudogene. ***
  9410. --- ************************************************
  9411. ---
  9412. CREATE VIEW pseudogenic_exon AS
  9413. SELECT
  9414. feature_id AS pseudogenic_exon_id,
  9415. feature.*
  9416. FROM
  9417. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9418. WHERE cvterm.name = 'pseudogenic_exon';
  9419. --- ************************************************
  9420. --- *** relation: d_dj_j_cluster ***
  9421. --- *** relation type: VIEW ***
  9422. --- *** ***
  9423. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9424. --- *** eptor gene in rearranged configuration i ***
  9425. --- *** ncluding at least one D-gene, one DJ-gen ***
  9426. --- *** e, and one J-gene. ***
  9427. --- ************************************************
  9428. ---
  9429. CREATE VIEW d_dj_j_cluster AS
  9430. SELECT
  9431. feature_id AS d_dj_j_cluster_id,
  9432. feature.*
  9433. FROM
  9434. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9435. WHERE cvterm.name = 'D_DJ_J_cluster';
  9436. --- ************************************************
  9437. --- *** relation: d_j_c_cluster ***
  9438. --- *** relation type: VIEW ***
  9439. --- *** ***
  9440. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9441. --- *** eptor gene in germline configuration inc ***
  9442. --- *** luding at least one D-gene, one J-gene a ***
  9443. --- *** nd one C-gene. ***
  9444. --- ************************************************
  9445. ---
  9446. CREATE VIEW d_j_c_cluster AS
  9447. SELECT
  9448. feature_id AS d_j_c_cluster_id,
  9449. feature.*
  9450. FROM
  9451. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9452. WHERE cvterm.name = 'D_J_C_cluster';
  9453. --- ************************************************
  9454. --- *** relation: vd_gene ***
  9455. --- *** relation type: VIEW ***
  9456. --- *** ***
  9457. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9458. --- *** eptor gene in partially rearranged genom ***
  9459. --- *** ic DNA including L-part1, V-intron and V ***
  9460. --- *** -D-exon, with the 5' UTR (SO:0000204) an ***
  9461. --- *** d 3' UTR (SO:0000205). ***
  9462. --- ************************************************
  9463. ---
  9464. CREATE VIEW vd_gene AS
  9465. SELECT
  9466. feature_id AS vd_gene_id,
  9467. feature.*
  9468. FROM
  9469. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9470. WHERE cvterm.name = 'VD_gene';
  9471. --- ************************************************
  9472. --- *** relation: j_c_cluster ***
  9473. --- *** relation type: VIEW ***
  9474. --- *** ***
  9475. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9476. --- *** eptor gene in germline configuration inc ***
  9477. --- *** luding at least one J-gene and one C-gen ***
  9478. --- *** e. ***
  9479. --- ************************************************
  9480. ---
  9481. CREATE VIEW j_c_cluster AS
  9482. SELECT
  9483. feature_id AS j_c_cluster_id,
  9484. feature.*
  9485. FROM
  9486. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9487. WHERE cvterm.name = 'J_C_cluster';
  9488. --- ************************************************
  9489. --- *** relation: inversion_derived_deficiency_plus_aneuploid ***
  9490. --- *** relation type: VIEW ***
  9491. --- *** ***
  9492. --- *** A chromosomal deletion whereby a chromos ***
  9493. --- *** ome generated by recombination between t ***
  9494. --- *** wo inversions; has a deficiency at one e ***
  9495. --- *** nd and presumed to have a deficiency or ***
  9496. --- *** duplication at the other end of the inve ***
  9497. --- *** rsion. ***
  9498. --- ************************************************
  9499. ---
  9500. CREATE VIEW inversion_derived_deficiency_plus_aneuploid AS
  9501. SELECT
  9502. feature_id AS inversion_derived_deficiency_plus_aneuploid_id,
  9503. feature.*
  9504. FROM
  9505. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9506. WHERE cvterm.name = 'inversion_derived_deficiency_plus_aneuploid';
  9507. --- ************************************************
  9508. --- *** relation: j_cluster ***
  9509. --- *** relation type: VIEW ***
  9510. --- *** ***
  9511. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9512. --- *** eptor gene in germline configuration inc ***
  9513. --- *** luding more than one J-gene. ***
  9514. --- ************************************************
  9515. ---
  9516. CREATE VIEW j_cluster AS
  9517. SELECT
  9518. feature_id AS j_cluster_id,
  9519. feature.*
  9520. FROM
  9521. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9522. WHERE cvterm.name = 'J_cluster';
  9523. --- ************************************************
  9524. --- *** relation: j_nonamer ***
  9525. --- *** relation type: VIEW ***
  9526. --- *** ***
  9527. --- *** 9 nucleotide recombination site (e.g. GG ***
  9528. --- *** TTTTTGT), part of a J-gene recombination ***
  9529. --- *** feature of an immunoglobulin/T-cell rec ***
  9530. --- *** eptor gene. ***
  9531. --- ************************************************
  9532. ---
  9533. CREATE VIEW j_nonamer AS
  9534. SELECT
  9535. feature_id AS j_nonamer_id,
  9536. feature.*
  9537. FROM
  9538. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9539. WHERE cvterm.name = 'J_nonamer';
  9540. --- ************************************************
  9541. --- *** relation: j_heptamer ***
  9542. --- *** relation type: VIEW ***
  9543. --- *** ***
  9544. --- *** 7 nucleotide recombination site (e.g. CA ***
  9545. --- *** CAGTG), part of a J-gene recombination f ***
  9546. --- *** eature of an immunoglobulin/T-cell recep ***
  9547. --- *** tor gene. ***
  9548. --- ************************************************
  9549. ---
  9550. CREATE VIEW j_heptamer AS
  9551. SELECT
  9552. feature_id AS j_heptamer_id,
  9553. feature.*
  9554. FROM
  9555. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9556. WHERE cvterm.name = 'J_heptamer';
  9557. --- ************************************************
  9558. --- *** relation: pseudogenic_transcript ***
  9559. --- *** relation type: VIEW ***
  9560. --- *** ***
  9561. --- *** A non functional descendant of a transcr ***
  9562. --- *** ipt, part of a pseudogene. ***
  9563. --- ************************************************
  9564. ---
  9565. CREATE VIEW pseudogenic_transcript AS
  9566. SELECT
  9567. feature_id AS pseudogenic_transcript_id,
  9568. feature.*
  9569. FROM
  9570. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9571. WHERE cvterm.name = 'pseudogenic_transcript';
  9572. --- ************************************************
  9573. --- *** relation: j_spacer ***
  9574. --- *** relation type: VIEW ***
  9575. --- *** ***
  9576. --- *** 12 or 23 nucleotide spacer between the J ***
  9577. --- *** -nonamer and the J-heptamer of a J-gene ***
  9578. --- *** recombination feature of an immunoglobul ***
  9579. --- *** in/T-cell receptor gene. ***
  9580. --- ************************************************
  9581. ---
  9582. CREATE VIEW j_spacer AS
  9583. SELECT
  9584. feature_id AS j_spacer_id,
  9585. feature.*
  9586. FROM
  9587. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9588. WHERE cvterm.name = 'J_spacer';
  9589. --- ************************************************
  9590. --- *** relation: v_dj_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 V-gene and one DJ- ***
  9596. --- *** gene. ***
  9597. --- ************************************************
  9598. ---
  9599. CREATE VIEW v_dj_cluster AS
  9600. SELECT
  9601. feature_id AS v_dj_cluster_id,
  9602. feature.*
  9603. FROM
  9604. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9605. WHERE cvterm.name = 'V_DJ_cluster';
  9606. --- ************************************************
  9607. --- *** relation: v_dj_j_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 V-gene, one DJ-gen ***
  9613. --- *** e and one J-gene. ***
  9614. --- ************************************************
  9615. ---
  9616. CREATE VIEW v_dj_j_cluster AS
  9617. SELECT
  9618. feature_id AS v_dj_j_cluster_id,
  9619. feature.*
  9620. FROM
  9621. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9622. WHERE cvterm.name = 'V_DJ_J_cluster';
  9623. --- ************************************************
  9624. --- *** relation: v_vdj_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 V-gene, one VDJ-ge ***
  9630. --- *** ne and one C-gene. ***
  9631. --- ************************************************
  9632. ---
  9633. CREATE VIEW v_vdj_c_cluster AS
  9634. SELECT
  9635. feature_id AS v_vdj_c_cluster_id,
  9636. feature.*
  9637. FROM
  9638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9639. WHERE cvterm.name = 'V_VDJ_C_cluster';
  9640. --- ************************************************
  9641. --- *** relation: v_vdj_cluster ***
  9642. --- *** relation type: VIEW ***
  9643. --- *** ***
  9644. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9645. --- *** eptor gene in rearranged configuration i ***
  9646. --- *** ncluding at least one V-gene and one VDJ ***
  9647. --- *** -gene. ***
  9648. --- ************************************************
  9649. ---
  9650. CREATE VIEW v_vdj_cluster AS
  9651. SELECT
  9652. feature_id AS v_vdj_cluster_id,
  9653. feature.*
  9654. FROM
  9655. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9656. WHERE cvterm.name = 'V_VDJ_cluster';
  9657. --- ************************************************
  9658. --- *** relation: v_vdj_j_cluster ***
  9659. --- *** relation type: VIEW ***
  9660. --- *** ***
  9661. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9662. --- *** eptor gene in rearranged configuration i ***
  9663. --- *** ncluding at least one V-gene, one VDJ-ge ***
  9664. --- *** ne and one J-gene. ***
  9665. --- ************************************************
  9666. ---
  9667. CREATE VIEW v_vdj_j_cluster AS
  9668. SELECT
  9669. feature_id AS v_vdj_j_cluster_id,
  9670. feature.*
  9671. FROM
  9672. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9673. WHERE cvterm.name = 'V_VDJ_J_cluster';
  9674. --- ************************************************
  9675. --- *** relation: v_vj_c_cluster ***
  9676. --- *** relation type: VIEW ***
  9677. --- *** ***
  9678. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9679. --- *** eptor gene in rearranged configuration i ***
  9680. --- *** ncluding at least one V-gene, one VJ-gen ***
  9681. --- *** e and one C-gene. ***
  9682. --- ************************************************
  9683. ---
  9684. CREATE VIEW v_vj_c_cluster AS
  9685. SELECT
  9686. feature_id AS v_vj_c_cluster_id,
  9687. feature.*
  9688. FROM
  9689. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9690. WHERE cvterm.name = 'V_VJ_C_cluster';
  9691. --- ************************************************
  9692. --- *** relation: v_vj_cluster ***
  9693. --- *** relation type: VIEW ***
  9694. --- *** ***
  9695. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9696. --- *** eptor gene in rearranged configuration i ***
  9697. --- *** ncluding at least one V-gene and one VJ- ***
  9698. --- *** gene. ***
  9699. --- ************************************************
  9700. ---
  9701. CREATE VIEW v_vj_cluster AS
  9702. SELECT
  9703. feature_id AS v_vj_cluster_id,
  9704. feature.*
  9705. FROM
  9706. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9707. WHERE cvterm.name = 'V_VJ_cluster';
  9708. --- ************************************************
  9709. --- *** relation: v_vj_j_cluster ***
  9710. --- *** relation type: VIEW ***
  9711. --- *** ***
  9712. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9713. --- *** eptor gene in rearranged configuration i ***
  9714. --- *** ncluding at least one V-gene, one VJ-gen ***
  9715. --- *** e and one J-gene. ***
  9716. --- ************************************************
  9717. ---
  9718. CREATE VIEW v_vj_j_cluster AS
  9719. SELECT
  9720. feature_id AS v_vj_j_cluster_id,
  9721. feature.*
  9722. FROM
  9723. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9724. WHERE cvterm.name = 'V_VJ_J_cluster';
  9725. --- ************************************************
  9726. --- *** relation: v_cluster ***
  9727. --- *** relation type: VIEW ***
  9728. --- *** ***
  9729. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9730. --- *** eptor gene in germline configuration inc ***
  9731. --- *** luding more than one V-gene. ***
  9732. --- ************************************************
  9733. ---
  9734. CREATE VIEW v_cluster AS
  9735. SELECT
  9736. feature_id AS v_cluster_id,
  9737. feature.*
  9738. FROM
  9739. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9740. WHERE cvterm.name = 'V_cluster';
  9741. --- ************************************************
  9742. --- *** relation: v_d_dj_c_cluster ***
  9743. --- *** relation type: VIEW ***
  9744. --- *** ***
  9745. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9746. --- *** eptor gene in rearranged configuration i ***
  9747. --- *** ncluding at least one V-gene, one D-gene ***
  9748. --- *** , one DJ-gene and one C-gene. ***
  9749. --- ************************************************
  9750. ---
  9751. CREATE VIEW v_d_dj_c_cluster AS
  9752. SELECT
  9753. feature_id AS v_d_dj_c_cluster_id,
  9754. feature.*
  9755. FROM
  9756. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9757. WHERE cvterm.name = 'V_D_DJ_C_cluster';
  9758. --- ************************************************
  9759. --- *** relation: v_d_dj_cluster ***
  9760. --- *** relation type: VIEW ***
  9761. --- *** ***
  9762. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9763. --- *** eptor gene in rearranged configuration i ***
  9764. --- *** ncluding at least one V-gene, one D-gene ***
  9765. --- *** , one DJ-gene. ***
  9766. --- ************************************************
  9767. ---
  9768. CREATE VIEW v_d_dj_cluster AS
  9769. SELECT
  9770. feature_id AS v_d_dj_cluster_id,
  9771. feature.*
  9772. FROM
  9773. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9774. WHERE cvterm.name = 'V_D_DJ_cluster';
  9775. --- ************************************************
  9776. --- *** relation: v_d_dj_j_c_cluster ***
  9777. --- *** relation type: VIEW ***
  9778. --- *** ***
  9779. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9780. --- *** eptor gene in rearranged configuration i ***
  9781. --- *** ncluding at least one V-gene, one D-gene ***
  9782. --- *** , one DJ-gene, one J-gene and one C-gene ***
  9783. --- *** . ***
  9784. --- ************************************************
  9785. ---
  9786. CREATE VIEW v_d_dj_j_c_cluster AS
  9787. SELECT
  9788. feature_id AS v_d_dj_j_c_cluster_id,
  9789. feature.*
  9790. FROM
  9791. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9792. WHERE cvterm.name = 'V_D_DJ_J_C_cluster';
  9793. --- ************************************************
  9794. --- *** relation: v_d_dj_j_cluster ***
  9795. --- *** relation type: VIEW ***
  9796. --- *** ***
  9797. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9798. --- *** eptor gene in rearranged configuration i ***
  9799. --- *** ncluding at least one V-gene, one D-gene ***
  9800. --- *** , one DJ-gene and one J-gene. ***
  9801. --- ************************************************
  9802. ---
  9803. CREATE VIEW v_d_dj_j_cluster AS
  9804. SELECT
  9805. feature_id AS v_d_dj_j_cluster_id,
  9806. feature.*
  9807. FROM
  9808. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9809. WHERE cvterm.name = 'V_D_DJ_J_cluster';
  9810. --- ************************************************
  9811. --- *** relation: v_d_j_c_cluster ***
  9812. --- *** relation type: VIEW ***
  9813. --- *** ***
  9814. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9815. --- *** eptor gene in germline configuration inc ***
  9816. --- *** luding at least one V-gene, one D-gene a ***
  9817. --- *** nd one J-gene and one C-gene. ***
  9818. --- ************************************************
  9819. ---
  9820. CREATE VIEW v_d_j_c_cluster AS
  9821. SELECT
  9822. feature_id AS v_d_j_c_cluster_id,
  9823. feature.*
  9824. FROM
  9825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9826. WHERE cvterm.name = 'V_D_J_C_cluster';
  9827. --- ************************************************
  9828. --- *** relation: v_d_j_cluster ***
  9829. --- *** relation type: VIEW ***
  9830. --- *** ***
  9831. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9832. --- *** eptor gene in germline configuration inc ***
  9833. --- *** luding at least one V-gene, one D-gene a ***
  9834. --- *** nd one J-gene. ***
  9835. --- ************************************************
  9836. ---
  9837. CREATE VIEW v_d_j_cluster AS
  9838. SELECT
  9839. feature_id AS v_d_j_cluster_id,
  9840. feature.*
  9841. FROM
  9842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9843. WHERE cvterm.name = 'V_D_J_cluster';
  9844. --- ************************************************
  9845. --- *** relation: v_heptamer ***
  9846. --- *** relation type: VIEW ***
  9847. --- *** ***
  9848. --- *** 7 nucleotide recombination site (e.g. CA ***
  9849. --- *** CAGTG), part of V-gene recombination fea ***
  9850. --- *** ture of an immunoglobulin/T-cell recepto ***
  9851. --- *** r gene. ***
  9852. --- ************************************************
  9853. ---
  9854. CREATE VIEW v_heptamer AS
  9855. SELECT
  9856. feature_id AS v_heptamer_id,
  9857. feature.*
  9858. FROM
  9859. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9860. WHERE cvterm.name = 'V_heptamer';
  9861. --- ************************************************
  9862. --- *** relation: v_j_cluster ***
  9863. --- *** relation type: VIEW ***
  9864. --- *** ***
  9865. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9866. --- *** eptor gene in germline configuration inc ***
  9867. --- *** luding at least one V-gene and one J-gen ***
  9868. --- *** e. ***
  9869. --- ************************************************
  9870. ---
  9871. CREATE VIEW v_j_cluster AS
  9872. SELECT
  9873. feature_id AS v_j_cluster_id,
  9874. feature.*
  9875. FROM
  9876. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9877. WHERE cvterm.name = 'V_J_cluster';
  9878. --- ************************************************
  9879. --- *** relation: v_j_c_cluster ***
  9880. --- *** relation type: VIEW ***
  9881. --- *** ***
  9882. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9883. --- *** eptor gene in germline configuration inc ***
  9884. --- *** luding at least one V-gene, one J-gene a ***
  9885. --- *** nd one C-gene. ***
  9886. --- ************************************************
  9887. ---
  9888. CREATE VIEW v_j_c_cluster AS
  9889. SELECT
  9890. feature_id AS v_j_c_cluster_id,
  9891. feature.*
  9892. FROM
  9893. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9894. WHERE cvterm.name = 'V_J_C_cluster';
  9895. --- ************************************************
  9896. --- *** relation: v_nonamer ***
  9897. --- *** relation type: VIEW ***
  9898. --- *** ***
  9899. --- *** 9 nucleotide recombination site (e.g. AC ***
  9900. --- *** AAAAACC), part of V-gene recombination f ***
  9901. --- *** eature of an immunoglobulin/T-cell recep ***
  9902. --- *** tor gene. ***
  9903. --- ************************************************
  9904. ---
  9905. CREATE VIEW v_nonamer AS
  9906. SELECT
  9907. feature_id AS v_nonamer_id,
  9908. feature.*
  9909. FROM
  9910. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9911. WHERE cvterm.name = 'V_nonamer';
  9912. --- ************************************************
  9913. --- *** relation: v_spacer ***
  9914. --- *** relation type: VIEW ***
  9915. --- *** ***
  9916. --- *** 12 or 23 nucleotide spacer between the V ***
  9917. --- *** -heptamer and the V-nonamer of a V-gene ***
  9918. --- *** recombination feature of an immunoglobul ***
  9919. --- *** in/T-cell receptor gene. ***
  9920. --- ************************************************
  9921. ---
  9922. CREATE VIEW v_spacer AS
  9923. SELECT
  9924. feature_id AS v_spacer_id,
  9925. feature.*
  9926. FROM
  9927. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9928. WHERE cvterm.name = 'V_spacer';
  9929. --- ************************************************
  9930. --- *** relation: v_gene_recombination_feature ***
  9931. --- *** relation type: VIEW ***
  9932. --- *** ***
  9933. --- *** Recombination signal including V-heptame ***
  9934. --- *** r, V-spacer and V-nonamer in 3' of V-reg ***
  9935. --- *** ion of a V-gene or V-sequence of an immu ***
  9936. --- *** noglobulin/T-cell receptor gene. ***
  9937. --- ************************************************
  9938. ---
  9939. CREATE VIEW v_gene_recombination_feature AS
  9940. SELECT
  9941. feature_id AS v_gene_recombination_feature_id,
  9942. feature.*
  9943. FROM
  9944. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9945. WHERE cvterm.name = 'V_gene_recombination_feature';
  9946. --- ************************************************
  9947. --- *** relation: dj_c_cluster ***
  9948. --- *** relation type: VIEW ***
  9949. --- *** ***
  9950. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9951. --- *** eptor gene in rearranged configuration i ***
  9952. --- *** ncluding at least one DJ-gene and one C- ***
  9953. --- *** gene. ***
  9954. --- ************************************************
  9955. ---
  9956. CREATE VIEW dj_c_cluster AS
  9957. SELECT
  9958. feature_id AS dj_c_cluster_id,
  9959. feature.*
  9960. FROM
  9961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9962. WHERE cvterm.name = 'DJ_C_cluster';
  9963. --- ************************************************
  9964. --- *** relation: dj_j_c_cluster ***
  9965. --- *** relation type: VIEW ***
  9966. --- *** ***
  9967. --- *** Genomic DNA in rearranged configuration ***
  9968. --- *** including at least one D-J-GENE, one J-G ***
  9969. --- *** ENE and one C-GENE. ***
  9970. --- ************************************************
  9971. ---
  9972. CREATE VIEW dj_j_c_cluster AS
  9973. SELECT
  9974. feature_id AS dj_j_c_cluster_id,
  9975. feature.*
  9976. FROM
  9977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9978. WHERE cvterm.name = 'DJ_J_C_cluster';
  9979. --- ************************************************
  9980. --- *** relation: vdj_c_cluster ***
  9981. --- *** relation type: VIEW ***
  9982. --- *** ***
  9983. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  9984. --- *** eptor gene in rearranged configuration i ***
  9985. --- *** ncluding at least one VDJ-gene and one C ***
  9986. --- *** -gene. ***
  9987. --- ************************************************
  9988. ---
  9989. CREATE VIEW vdj_c_cluster AS
  9990. SELECT
  9991. feature_id AS vdj_c_cluster_id,
  9992. feature.*
  9993. FROM
  9994. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  9995. WHERE cvterm.name = 'VDJ_C_cluster';
  9996. --- ************************************************
  9997. --- *** relation: v_dj_c_cluster ***
  9998. --- *** relation type: VIEW ***
  9999. --- *** ***
  10000. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10001. --- *** eptor gene in rearranged configuration i ***
  10002. --- *** ncluding at least one V-gene, one DJ-gen ***
  10003. --- *** e and one C-gene. ***
  10004. --- ************************************************
  10005. ---
  10006. CREATE VIEW v_dj_c_cluster AS
  10007. SELECT
  10008. feature_id AS v_dj_c_cluster_id,
  10009. feature.*
  10010. FROM
  10011. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10012. WHERE cvterm.name = 'V_DJ_C_cluster';
  10013. --- ************************************************
  10014. --- *** relation: helitron ***
  10015. --- *** relation type: VIEW ***
  10016. --- *** ***
  10017. --- *** A rolling circle transposon. Autonomous ***
  10018. --- *** helitrons encode a 5'-to-3' DNA helicase ***
  10019. --- *** and nuclease/ligase similar to those en ***
  10020. --- *** coded by known rolling-circle replicons. ***
  10021. --- ************************************************
  10022. ---
  10023. CREATE VIEW helitron AS
  10024. SELECT
  10025. feature_id AS helitron_id,
  10026. feature.*
  10027. FROM
  10028. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10029. WHERE cvterm.name = 'helitron';
  10030. --- ************************************************
  10031. --- *** relation: recoding_pseudoknot ***
  10032. --- *** relation type: VIEW ***
  10033. --- *** ***
  10034. --- *** The pseudoknots involved in recoding are ***
  10035. --- *** unique in that, as they play their role ***
  10036. --- *** as a structure, they are immediately un ***
  10037. --- *** folded and their now linear sequence ser ***
  10038. --- *** ves as a template for decoding. ***
  10039. --- ************************************************
  10040. ---
  10041. CREATE VIEW recoding_pseudoknot AS
  10042. SELECT
  10043. feature_id AS recoding_pseudoknot_id,
  10044. feature.*
  10045. FROM
  10046. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10047. WHERE cvterm.name = 'recoding_pseudoknot';
  10048. --- ************************************************
  10049. --- *** relation: designed_sequence ***
  10050. --- *** relation type: VIEW ***
  10051. --- *** ***
  10052. --- ************************************************
  10053. ---
  10054. CREATE VIEW designed_sequence AS
  10055. SELECT
  10056. feature_id AS designed_sequence_id,
  10057. feature.*
  10058. FROM
  10059. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10060. WHERE cvterm.name = 'designed_sequence';
  10061. --- ************************************************
  10062. --- *** relation: inversion_derived_bipartite_duplication ***
  10063. --- *** relation type: VIEW ***
  10064. --- *** ***
  10065. --- *** A chromosome generated by recombination ***
  10066. --- *** between two inversions; there is a dupli ***
  10067. --- *** cation at each end of the inversion. ***
  10068. --- ************************************************
  10069. ---
  10070. CREATE VIEW inversion_derived_bipartite_duplication AS
  10071. SELECT
  10072. feature_id AS inversion_derived_bipartite_duplication_id,
  10073. feature.*
  10074. FROM
  10075. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10076. WHERE cvterm.name = 'inversion_derived_bipartite_duplication';
  10077. --- ************************************************
  10078. --- *** relation: gene_with_edited_transcript ***
  10079. --- *** relation type: VIEW ***
  10080. --- *** ***
  10081. --- *** A gene that encodes a transcript that is ***
  10082. --- *** edited. ***
  10083. --- ************************************************
  10084. ---
  10085. CREATE VIEW gene_with_edited_transcript AS
  10086. SELECT
  10087. feature_id AS gene_with_edited_transcript_id,
  10088. feature.*
  10089. FROM
  10090. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10091. WHERE cvterm.name = 'gene_with_edited_transcript';
  10092. --- ************************************************
  10093. --- *** relation: inversion_derived_duplication_plus_aneuploid ***
  10094. --- *** relation type: VIEW ***
  10095. --- *** ***
  10096. --- *** A chromosome generated by recombination ***
  10097. --- *** between two inversions; has a duplicatio ***
  10098. --- *** n at one end and presumed to have a defi ***
  10099. --- *** ciency or duplication at the other end o ***
  10100. --- *** f the inversion. ***
  10101. --- ************************************************
  10102. ---
  10103. CREATE VIEW inversion_derived_duplication_plus_aneuploid AS
  10104. SELECT
  10105. feature_id AS inversion_derived_duplication_plus_aneuploid_id,
  10106. feature.*
  10107. FROM
  10108. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10109. WHERE cvterm.name = 'inversion_derived_duplication_plus_aneuploid';
  10110. --- ************************************************
  10111. --- *** relation: aneuploid_chromosome ***
  10112. --- *** relation type: VIEW ***
  10113. --- *** ***
  10114. --- *** A chromosome structural variation whereb ***
  10115. --- *** y either a chromosome exists in addition ***
  10116. --- *** to the normal chromosome complement or ***
  10117. --- *** is lacking. ***
  10118. --- ************************************************
  10119. ---
  10120. CREATE VIEW aneuploid_chromosome AS
  10121. SELECT
  10122. feature_id AS aneuploid_chromosome_id,
  10123. feature.*
  10124. FROM
  10125. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10126. WHERE cvterm.name = 'inversion_derived_aneuploid_chromosome' OR cvterm.name = 'aneuploid_chromosome';
  10127. --- ************************************************
  10128. --- *** relation: polya_signal_sequence ***
  10129. --- *** relation type: VIEW ***
  10130. --- *** ***
  10131. --- *** The recognition sequence necessary for e ***
  10132. --- *** ndonuclease cleavage of an RNA transcrip ***
  10133. --- *** t that is followed by polyadenylation; c ***
  10134. --- *** onsensus=AATAAA. ***
  10135. --- ************************************************
  10136. ---
  10137. CREATE VIEW polya_signal_sequence AS
  10138. SELECT
  10139. feature_id AS polya_signal_sequence_id,
  10140. feature.*
  10141. FROM
  10142. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10143. WHERE cvterm.name = 'polyA_signal_sequence';
  10144. --- ************************************************
  10145. --- *** relation: shine_dalgarno_sequence ***
  10146. --- *** relation type: VIEW ***
  10147. --- *** ***
  10148. --- *** A region in the 5' UTR that pairs with t ***
  10149. --- *** he 16S rRNA during formation of the prei ***
  10150. --- *** nitiation complex. ***
  10151. --- ************************************************
  10152. ---
  10153. CREATE VIEW shine_dalgarno_sequence AS
  10154. SELECT
  10155. feature_id AS shine_dalgarno_sequence_id,
  10156. feature.*
  10157. FROM
  10158. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10159. WHERE cvterm.name = 'Shine_Dalgarno_sequence';
  10160. --- ************************************************
  10161. --- *** relation: polya_site ***
  10162. --- *** relation type: VIEW ***
  10163. --- *** ***
  10164. --- *** The site on an RNA transcript to which w ***
  10165. --- *** ill be added adenine residues by post-tr ***
  10166. --- *** anscriptional polyadenylation. The bound ***
  10167. --- *** ary between the UTR and the polyA sequen ***
  10168. --- *** ce. ***
  10169. --- ************************************************
  10170. ---
  10171. CREATE VIEW polya_site AS
  10172. SELECT
  10173. feature_id AS polya_site_id,
  10174. feature.*
  10175. FROM
  10176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10177. WHERE cvterm.name = 'polyA_site';
  10178. --- ************************************************
  10179. --- *** relation: five_prime_clip ***
  10180. --- *** relation type: VIEW ***
  10181. --- *** ***
  10182. --- *** 5' most region of a precursor transcript ***
  10183. --- *** that is clipped off during processing. ***
  10184. --- ************************************************
  10185. ---
  10186. CREATE VIEW five_prime_clip AS
  10187. SELECT
  10188. feature_id AS five_prime_clip_id,
  10189. feature.*
  10190. FROM
  10191. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10192. WHERE cvterm.name = 'five_prime_clip';
  10193. --- ************************************************
  10194. --- *** relation: five_prime_d_recombination_signal_sequence ***
  10195. --- *** relation type: VIEW ***
  10196. --- *** ***
  10197. --- *** Recombination signal of an immunoglobuli ***
  10198. --- *** n/T-cell receptor gene, including the 5' ***
  10199. --- *** D-nonamer (SO:0000497), 5' D-spacer (SO ***
  10200. --- *** :0000498), and 5' D-heptamer (SO:0000396 ***
  10201. --- *** ) in 5' of the D-region of a D-gene, or ***
  10202. --- *** in 5' of the D-region of DJ-gene. ***
  10203. --- ************************************************
  10204. ---
  10205. CREATE VIEW five_prime_d_recombination_signal_sequence AS
  10206. SELECT
  10207. feature_id AS five_prime_d_recombination_signal_sequence_id,
  10208. feature.*
  10209. FROM
  10210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10211. WHERE cvterm.name = 'five_prime_D_recombination_signal_sequence';
  10212. --- ************************************************
  10213. --- *** relation: three_prime_clip ***
  10214. --- *** relation type: VIEW ***
  10215. --- *** ***
  10216. --- *** 3'-most region of a precursor transcript ***
  10217. --- *** that is clipped off during processing. ***
  10218. --- ************************************************
  10219. ---
  10220. CREATE VIEW three_prime_clip AS
  10221. SELECT
  10222. feature_id AS three_prime_clip_id,
  10223. feature.*
  10224. FROM
  10225. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10226. WHERE cvterm.name = 'three_prime_clip';
  10227. --- ************************************************
  10228. --- *** relation: c_cluster ***
  10229. --- *** relation type: VIEW ***
  10230. --- *** ***
  10231. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10232. --- *** eptor gene including more than one C-gen ***
  10233. --- *** e. ***
  10234. --- ************************************************
  10235. ---
  10236. CREATE VIEW c_cluster AS
  10237. SELECT
  10238. feature_id AS c_cluster_id,
  10239. feature.*
  10240. FROM
  10241. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10242. WHERE cvterm.name = 'C_cluster';
  10243. --- ************************************************
  10244. --- *** relation: d_cluster ***
  10245. --- *** relation type: VIEW ***
  10246. --- *** ***
  10247. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10248. --- *** eptor gene in germline configuration inc ***
  10249. --- *** luding more than one D-gene. ***
  10250. --- ************************************************
  10251. ---
  10252. CREATE VIEW d_cluster AS
  10253. SELECT
  10254. feature_id AS d_cluster_id,
  10255. feature.*
  10256. FROM
  10257. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10258. WHERE cvterm.name = 'D_cluster';
  10259. --- ************************************************
  10260. --- *** relation: d_j_cluster ***
  10261. --- *** relation type: VIEW ***
  10262. --- *** ***
  10263. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10264. --- *** eptor gene in germline configuration inc ***
  10265. --- *** luding at least one D-gene and one J-gen ***
  10266. --- *** e. ***
  10267. --- ************************************************
  10268. ---
  10269. CREATE VIEW d_j_cluster AS
  10270. SELECT
  10271. feature_id AS d_j_cluster_id,
  10272. feature.*
  10273. FROM
  10274. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10275. WHERE cvterm.name = 'D_J_cluster';
  10276. --- ************************************************
  10277. --- *** relation: heptamer_of_recombination_feature_of_vertebrate_im_sys_gene ***
  10278. --- *** relation type: VIEW ***
  10279. --- *** ***
  10280. --- *** Seven nucleotide recombination site (e.g ***
  10281. --- *** . CACAGTG), part of V-gene, D-gene or J- ***
  10282. --- *** gene recombination feature of an immunog ***
  10283. --- *** lobulin or T-cell receptor gene. ***
  10284. --- ************************************************
  10285. ---
  10286. CREATE VIEW heptamer_of_recombination_feature_of_vertebrate_im_sys_gene AS
  10287. SELECT
  10288. feature_id AS heptamer_of_recombination_feature_of_vertebrate_im_sys_gene_id,
  10289. feature.*
  10290. FROM
  10291. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10292. 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';
  10293. --- ************************************************
  10294. --- *** relation: nonamer_of_recombination_feature_of_vertebrate_im_sys_gene ***
  10295. --- *** relation type: VIEW ***
  10296. --- *** ***
  10297. --- ************************************************
  10298. ---
  10299. CREATE VIEW nonamer_of_recombination_feature_of_vertebrate_im_sys_gene AS
  10300. SELECT
  10301. feature_id AS nonamer_of_recombination_feature_of_vertebrate_im_sys_gene_id,
  10302. feature.*
  10303. FROM
  10304. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10305. 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';
  10306. --- ************************************************
  10307. --- *** relation: vertebrate_immune_system_gene_recombination_spacer ***
  10308. --- *** relation type: VIEW ***
  10309. --- *** ***
  10310. --- ************************************************
  10311. ---
  10312. CREATE VIEW vertebrate_immune_system_gene_recombination_spacer AS
  10313. SELECT
  10314. feature_id AS vertebrate_immune_system_gene_recombination_spacer_id,
  10315. feature.*
  10316. FROM
  10317. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10318. 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';
  10319. --- ************************************************
  10320. --- *** relation: v_dj_j_c_cluster ***
  10321. --- *** relation type: VIEW ***
  10322. --- *** ***
  10323. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10324. --- *** eptor gene in rearranged configuration i ***
  10325. --- *** ncluding at least one V-gene, one DJ-gen ***
  10326. --- *** e, one J-gene and one C-gene. ***
  10327. --- ************************************************
  10328. ---
  10329. CREATE VIEW v_dj_j_c_cluster AS
  10330. SELECT
  10331. feature_id AS v_dj_j_c_cluster_id,
  10332. feature.*
  10333. FROM
  10334. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10335. WHERE cvterm.name = 'V_DJ_J_C_cluster';
  10336. --- ************************************************
  10337. --- *** relation: v_vdj_j_c_cluster ***
  10338. --- *** relation type: VIEW ***
  10339. --- *** ***
  10340. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10341. --- *** eptor gene in rearranged configuration i ***
  10342. --- *** ncluding at least one V-gene, one VDJ-ge ***
  10343. --- *** ne, one J-gene and one C-gene. ***
  10344. --- ************************************************
  10345. ---
  10346. CREATE VIEW v_vdj_j_c_cluster AS
  10347. SELECT
  10348. feature_id AS v_vdj_j_c_cluster_id,
  10349. feature.*
  10350. FROM
  10351. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10352. WHERE cvterm.name = 'V_VDJ_J_C_cluster';
  10353. --- ************************************************
  10354. --- *** relation: v_vj_j_c_cluster ***
  10355. --- *** relation type: VIEW ***
  10356. --- *** ***
  10357. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10358. --- *** eptor gene in rearranged configuration i ***
  10359. --- *** ncluding at least one V-gene, one VJ-gen ***
  10360. --- *** e, one J-gene and one C-gene. ***
  10361. --- ************************************************
  10362. ---
  10363. CREATE VIEW v_vj_j_c_cluster AS
  10364. SELECT
  10365. feature_id AS v_vj_j_c_cluster_id,
  10366. feature.*
  10367. FROM
  10368. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10369. WHERE cvterm.name = 'V_VJ_J_C_cluster';
  10370. --- ************************************************
  10371. --- *** relation: inversion_derived_aneuploid_chromosome ***
  10372. --- *** relation type: VIEW ***
  10373. --- *** ***
  10374. --- *** A chromosome may be generated by recombi ***
  10375. --- *** nation between two inversions; presumed ***
  10376. --- *** to have a deficiency or duplication at e ***
  10377. --- *** ach end of the inversion. ***
  10378. --- ************************************************
  10379. ---
  10380. CREATE VIEW inversion_derived_aneuploid_chromosome AS
  10381. SELECT
  10382. feature_id AS inversion_derived_aneuploid_chromosome_id,
  10383. feature.*
  10384. FROM
  10385. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10386. WHERE cvterm.name = 'inversion_derived_aneuploid_chromosome';
  10387. --- ************************************************
  10388. --- *** relation: bidirectional_promoter ***
  10389. --- *** relation type: VIEW ***
  10390. --- *** ***
  10391. --- ************************************************
  10392. ---
  10393. CREATE VIEW bidirectional_promoter AS
  10394. SELECT
  10395. feature_id AS bidirectional_promoter_id,
  10396. feature.*
  10397. FROM
  10398. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10399. WHERE cvterm.name = 'bidirectional_promoter';
  10400. --- ************************************************
  10401. --- *** relation: retrotransposed ***
  10402. --- *** relation type: VIEW ***
  10403. --- *** ***
  10404. --- *** An attribute of a feature that occurred ***
  10405. --- *** as the product of a reverse transcriptas ***
  10406. --- *** e mediated event. ***
  10407. --- ************************************************
  10408. ---
  10409. CREATE VIEW retrotransposed AS
  10410. SELECT
  10411. feature_id AS retrotransposed_id,
  10412. feature.*
  10413. FROM
  10414. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10415. WHERE cvterm.name = 'retrotransposed';
  10416. --- ************************************************
  10417. --- *** relation: three_prime_d_recombination_signal_sequence ***
  10418. --- *** relation type: VIEW ***
  10419. --- *** ***
  10420. --- *** Recombination signal of an immunoglobuli ***
  10421. --- *** n/T-cell receptor gene, including the 3' ***
  10422. --- *** D-heptamer (SO:0000493), 3' D-spacer, a ***
  10423. --- *** nd 3' D-nonamer (SO:0000494) in 3' of th ***
  10424. --- *** e D-region of a D-gene. ***
  10425. --- ************************************************
  10426. ---
  10427. CREATE VIEW three_prime_d_recombination_signal_sequence AS
  10428. SELECT
  10429. feature_id AS three_prime_d_recombination_signal_sequence_id,
  10430. feature.*
  10431. FROM
  10432. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10433. WHERE cvterm.name = 'three_prime_D_recombination_signal_sequence';
  10434. --- ************************************************
  10435. --- *** relation: mirna_encoding ***
  10436. --- *** relation type: VIEW ***
  10437. --- *** ***
  10438. --- ************************************************
  10439. ---
  10440. CREATE VIEW mirna_encoding AS
  10441. SELECT
  10442. feature_id AS mirna_encoding_id,
  10443. feature.*
  10444. FROM
  10445. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10446. WHERE cvterm.name = 'miRNA_encoding';
  10447. --- ************************************************
  10448. --- *** relation: dj_gene ***
  10449. --- *** relation type: VIEW ***
  10450. --- *** ***
  10451. --- *** Genomic DNA of immunoglobulin/T-cell rec ***
  10452. --- *** eptor gene in partially rearranged genom ***
  10453. --- *** ic DNA including D-J-region with 5' UTR ***
  10454. --- *** and 3' UTR, also designated as D-J-segme ***
  10455. --- *** nt. ***
  10456. --- ************************************************
  10457. ---
  10458. CREATE VIEW dj_gene AS
  10459. SELECT
  10460. feature_id AS dj_gene_id,
  10461. feature.*
  10462. FROM
  10463. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10464. WHERE cvterm.name = 'DJ_gene';
  10465. --- ************************************************
  10466. --- *** relation: rrna_encoding ***
  10467. --- *** relation type: VIEW ***
  10468. --- *** ***
  10469. --- ************************************************
  10470. ---
  10471. CREATE VIEW rrna_encoding AS
  10472. SELECT
  10473. feature_id AS rrna_encoding_id,
  10474. feature.*
  10475. FROM
  10476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10477. WHERE cvterm.name = 'rRNA_encoding';
  10478. --- ************************************************
  10479. --- *** relation: vdj_gene ***
  10480. --- *** relation type: VIEW ***
  10481. --- *** ***
  10482. --- *** Rearranged genomic DNA of immunoglobulin ***
  10483. --- *** /T-cell receptor gene including L-part1, ***
  10484. --- *** V-intron and V-D-J-exon, with the 5'UTR ***
  10485. --- *** (SO:0000204) and 3'UTR (SO:0000205). ***
  10486. --- ************************************************
  10487. ---
  10488. CREATE VIEW vdj_gene AS
  10489. SELECT
  10490. feature_id AS vdj_gene_id,
  10491. feature.*
  10492. FROM
  10493. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10494. WHERE cvterm.name = 'VDJ_gene';
  10495. --- ************************************************
  10496. --- *** relation: scrna_encoding ***
  10497. --- *** relation type: VIEW ***
  10498. --- *** ***
  10499. --- ************************************************
  10500. ---
  10501. CREATE VIEW scrna_encoding AS
  10502. SELECT
  10503. feature_id AS scrna_encoding_id,
  10504. feature.*
  10505. FROM
  10506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10507. WHERE cvterm.name = 'scRNA_encoding';
  10508. --- ************************************************
  10509. --- *** relation: vj_gene ***
  10510. --- *** relation type: VIEW ***
  10511. --- *** ***
  10512. --- *** Rearranged genomic DNA of immunoglobulin ***
  10513. --- *** /T-cell receptor gene including L-part1, ***
  10514. --- *** V-intron and V-J-exon, with the 5'UTR ( ***
  10515. --- *** SO:0000204) and 3'UTR (SO:0000205). ***
  10516. --- ************************************************
  10517. ---
  10518. CREATE VIEW vj_gene AS
  10519. SELECT
  10520. feature_id AS vj_gene_id,
  10521. feature.*
  10522. FROM
  10523. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10524. WHERE cvterm.name = 'VJ_gene';
  10525. --- ************************************************
  10526. --- *** relation: centromere ***
  10527. --- *** relation type: VIEW ***
  10528. --- *** ***
  10529. --- *** A region of chromosome where the spindle ***
  10530. --- *** fibers attach during mitosis and meiosi ***
  10531. --- *** s. ***
  10532. --- ************************************************
  10533. ---
  10534. CREATE VIEW centromere AS
  10535. SELECT
  10536. feature_id AS centromere_id,
  10537. feature.*
  10538. FROM
  10539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10540. WHERE cvterm.name = 'point_centromere' OR cvterm.name = 'regional_centromere' OR cvterm.name = 'centromere';
  10541. --- ************************************************
  10542. --- *** relation: snorna_encoding ***
  10543. --- *** relation type: VIEW ***
  10544. --- *** ***
  10545. --- ************************************************
  10546. ---
  10547. CREATE VIEW snorna_encoding AS
  10548. SELECT
  10549. feature_id AS snorna_encoding_id,
  10550. feature.*
  10551. FROM
  10552. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10553. WHERE cvterm.name = 'C_D_box_snoRNA_encoding' OR cvterm.name = 'H_ACA_box_snoRNA_encoding' OR cvterm.name = 'snoRNA_encoding';
  10554. --- ************************************************
  10555. --- *** relation: edited_transcript_feature ***
  10556. --- *** relation type: VIEW ***
  10557. --- *** ***
  10558. --- *** A locatable feature on a transcript that ***
  10559. --- *** is edited. ***
  10560. --- ************************************************
  10561. ---
  10562. CREATE VIEW edited_transcript_feature AS
  10563. SELECT
  10564. feature_id AS edited_transcript_feature_id,
  10565. feature.*
  10566. FROM
  10567. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10568. 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';
  10569. --- ************************************************
  10570. --- *** relation: methylation_guide_snorna_primary_transcript ***
  10571. --- *** relation type: VIEW ***
  10572. --- *** ***
  10573. --- *** A primary transcript encoding a methylat ***
  10574. --- *** ion guide small nucleolar RNA. ***
  10575. --- ************************************************
  10576. ---
  10577. CREATE VIEW methylation_guide_snorna_primary_transcript AS
  10578. SELECT
  10579. feature_id AS methylation_guide_snorna_primary_transcript_id,
  10580. feature.*
  10581. FROM
  10582. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10583. WHERE cvterm.name = 'methylation_guide_snoRNA_primary_transcript';
  10584. --- ************************************************
  10585. --- *** relation: cap ***
  10586. --- *** relation type: VIEW ***
  10587. --- *** ***
  10588. --- *** A structure consisting of a 7-methylguan ***
  10589. --- *** osine in 5'-5' triphosphate linkage with ***
  10590. --- *** the first nucleotide of an mRNA. It is ***
  10591. --- *** added post-transcriptionally, and is not ***
  10592. --- *** encoded in the DNA. ***
  10593. --- ************************************************
  10594. ---
  10595. CREATE VIEW cap AS
  10596. SELECT
  10597. feature_id AS cap_id,
  10598. feature.*
  10599. FROM
  10600. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10601. WHERE cvterm.name = 'cap';
  10602. --- ************************************************
  10603. --- *** relation: rrna_cleavage_snorna_primary_transcript ***
  10604. --- *** relation type: VIEW ***
  10605. --- *** ***
  10606. --- *** A primary transcript encoding an rRNA cl ***
  10607. --- *** eavage snoRNA. ***
  10608. --- ************************************************
  10609. ---
  10610. CREATE VIEW rrna_cleavage_snorna_primary_transcript AS
  10611. SELECT
  10612. feature_id AS rrna_cleavage_snorna_primary_transcript_id,
  10613. feature.*
  10614. FROM
  10615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10616. WHERE cvterm.name = 'rRNA_cleavage_snoRNA_primary_transcript';
  10617. --- ************************************************
  10618. --- *** relation: pre_edited_region ***
  10619. --- *** relation type: VIEW ***
  10620. --- *** ***
  10621. --- *** The region of a transcript that will be ***
  10622. --- *** edited. ***
  10623. --- ************************************************
  10624. ---
  10625. CREATE VIEW pre_edited_region AS
  10626. SELECT
  10627. feature_id AS pre_edited_region_id,
  10628. feature.*
  10629. FROM
  10630. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10631. WHERE cvterm.name = 'pre_edited_region';
  10632. --- ************************************************
  10633. --- *** relation: tmrna ***
  10634. --- *** relation type: VIEW ***
  10635. --- *** ***
  10636. --- *** A tmRNA liberates a mRNA from a stalled ***
  10637. --- *** ribosome. To accomplish this part of the ***
  10638. --- *** tmRNA is used as a reading frame that e ***
  10639. --- *** nds in a translation stop signal. The br ***
  10640. --- *** oken mRNA is replaced in the ribosome by ***
  10641. --- *** the tmRNA and translation of the tmRNA ***
  10642. --- *** leads to addition of a proteolysis tag t ***
  10643. --- *** o the incomplete protein enabling recogn ***
  10644. --- *** ition by a protease. Recently a number o ***
  10645. --- *** f permuted tmRNAs genes have been found ***
  10646. --- *** encoded in two parts. TmRNAs have been i ***
  10647. --- *** dentified in eubacteria and some chlorop ***
  10648. --- *** lasts but are absent from archeal and Eu ***
  10649. --- *** karyote nuclear genomes. ***
  10650. --- ************************************************
  10651. ---
  10652. CREATE VIEW tmrna AS
  10653. SELECT
  10654. feature_id AS tmrna_id,
  10655. feature.*
  10656. FROM
  10657. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10658. WHERE cvterm.name = 'tmRNA';
  10659. --- ************************************************
  10660. --- *** relation: c_d_box_snorna_encoding ***
  10661. --- *** relation type: VIEW ***
  10662. --- *** ***
  10663. --- ************************************************
  10664. ---
  10665. CREATE VIEW c_d_box_snorna_encoding AS
  10666. SELECT
  10667. feature_id AS c_d_box_snorna_encoding_id,
  10668. feature.*
  10669. FROM
  10670. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10671. WHERE cvterm.name = 'C_D_box_snoRNA_encoding';
  10672. --- ************************************************
  10673. --- *** relation: tmrna_primary_transcript ***
  10674. --- *** relation type: VIEW ***
  10675. --- *** ***
  10676. --- *** A primary transcript encoding a tmRNA (S ***
  10677. --- *** O:0000584). ***
  10678. --- ************************************************
  10679. ---
  10680. CREATE VIEW tmrna_primary_transcript AS
  10681. SELECT
  10682. feature_id AS tmrna_primary_transcript_id,
  10683. feature.*
  10684. FROM
  10685. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10686. WHERE cvterm.name = 'tmRNA_primary_transcript';
  10687. --- ************************************************
  10688. --- *** relation: group_i_intron ***
  10689. --- *** relation type: VIEW ***
  10690. --- *** ***
  10691. --- *** Group I catalytic introns are large self ***
  10692. --- *** -splicing ribozymes. They catalyze their ***
  10693. --- *** own excision from mRNA, tRNA and rRNA p ***
  10694. --- *** recursors in a wide range of organisms. ***
  10695. --- *** The core secondary structure consists of ***
  10696. --- *** 9 paired regions (P1-P9). These fold to ***
  10697. --- *** essentially two domains, the P4-P6 doma ***
  10698. --- *** in (formed from the stacking of P5, P4, ***
  10699. --- *** P6 and P6a helices) and the P3-P9 domain ***
  10700. --- *** (formed from the P8, P3, P7 and P9 heli ***
  10701. --- *** ces). Group I catalytic introns often ha ***
  10702. --- *** ve long ORFs inserted in loop regions. ***
  10703. --- ************************************************
  10704. ---
  10705. CREATE VIEW group_i_intron AS
  10706. SELECT
  10707. feature_id AS group_i_intron_id,
  10708. feature.*
  10709. FROM
  10710. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10711. WHERE cvterm.name = 'group_I_intron';
  10712. --- ************************************************
  10713. --- *** relation: autocatalytically_spliced_intron ***
  10714. --- *** relation type: VIEW ***
  10715. --- *** ***
  10716. --- *** A self spliced intron. ***
  10717. --- ************************************************
  10718. ---
  10719. CREATE VIEW autocatalytically_spliced_intron AS
  10720. SELECT
  10721. feature_id AS autocatalytically_spliced_intron_id,
  10722. feature.*
  10723. FROM
  10724. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10725. 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';
  10726. --- ************************************************
  10727. --- *** relation: srp_rna_primary_transcript ***
  10728. --- *** relation type: VIEW ***
  10729. --- *** ***
  10730. --- *** A primary transcript encoding a signal r ***
  10731. --- *** ecognition particle RNA. ***
  10732. --- ************************************************
  10733. ---
  10734. CREATE VIEW srp_rna_primary_transcript AS
  10735. SELECT
  10736. feature_id AS srp_rna_primary_transcript_id,
  10737. feature.*
  10738. FROM
  10739. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10740. WHERE cvterm.name = 'SRP_RNA_primary_transcript';
  10741. --- ************************************************
  10742. --- *** relation: srp_rna ***
  10743. --- *** relation type: VIEW ***
  10744. --- *** ***
  10745. --- *** The signal recognition particle (SRP) is ***
  10746. --- *** a universally conserved ribonucleoprote ***
  10747. --- *** in. It is involved in the co-translation ***
  10748. --- *** al targeting of proteins to membranes. T ***
  10749. --- *** he eukaryotic SRP consists of a 300-nucl ***
  10750. --- *** eotide 7S RNA and six proteins: SRPs 72, ***
  10751. --- *** 68, 54, 19, 14, and 9. Archaeal SRP con ***
  10752. --- *** sists of a 7S RNA and homologues of the ***
  10753. --- *** eukaryotic SRP19 and SRP54 proteins. In ***
  10754. --- *** most eubacteria, the SRP consists of a 4 ***
  10755. --- *** .5S RNA and the Ffh protein (a homologue ***
  10756. --- *** of the eukaryotic SRP54 protein). Eukar ***
  10757. --- *** yotic and archaeal 7S RNAs have very sim ***
  10758. --- *** ilar secondary structures, with eight he ***
  10759. --- *** lical elements. These fold into the Alu ***
  10760. --- *** and S domains, separated by a long linke ***
  10761. --- *** r region. Eubacterial SRP is generally a ***
  10762. --- *** simpler structure, with the M domain of ***
  10763. --- *** Ffh bound to a region of the 4.5S RNA t ***
  10764. --- *** hat corresponds to helix 8 of the eukary ***
  10765. --- *** otic and archaeal SRP S domain. Some Gra ***
  10766. --- *** m-positive bacteria (e.g. Bacillus subti ***
  10767. --- *** lis), however, have a larger SRP RNA tha ***
  10768. --- *** t also has an Alu domain. The Alu domain ***
  10769. --- *** is thought to mediate the peptide chain ***
  10770. --- *** elongation retardation function of the ***
  10771. --- *** SRP. The universally conserved helix whi ***
  10772. --- *** ch interacts with the SRP54/Ffh M domain ***
  10773. --- *** mediates signal sequence recognition. I ***
  10774. --- *** n eukaryotes and archaea, the SRP19-heli ***
  10775. --- *** x 6 complex is thought to be involved in ***
  10776. --- *** SRP assembly and stabilizes helix 8 for ***
  10777. --- *** SRP54 binding. ***
  10778. --- ************************************************
  10779. ---
  10780. CREATE VIEW srp_rna AS
  10781. SELECT
  10782. feature_id AS srp_rna_id,
  10783. feature.*
  10784. FROM
  10785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10786. WHERE cvterm.name = 'SRP_RNA';
  10787. --- ************************************************
  10788. --- *** relation: pseudoknot ***
  10789. --- *** relation type: VIEW ***
  10790. --- *** ***
  10791. --- *** A tertiary structure in RNA where nucleo ***
  10792. --- *** tides in a loop form base pairs with a r ***
  10793. --- *** egion of RNA downstream of the loop. ***
  10794. --- ************************************************
  10795. ---
  10796. CREATE VIEW pseudoknot AS
  10797. SELECT
  10798. feature_id AS pseudoknot_id,
  10799. feature.*
  10800. FROM
  10801. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10802. WHERE cvterm.name = 'recoding_pseudoknot' OR cvterm.name = 'H_pseudoknot' OR cvterm.name = 'pseudoknot';
  10803. --- ************************************************
  10804. --- *** relation: h_pseudoknot ***
  10805. --- *** relation type: VIEW ***
  10806. --- *** ***
  10807. --- *** A pseudoknot which contains two stems an ***
  10808. --- *** d at least two loops. ***
  10809. --- ************************************************
  10810. ---
  10811. CREATE VIEW h_pseudoknot AS
  10812. SELECT
  10813. feature_id AS h_pseudoknot_id,
  10814. feature.*
  10815. FROM
  10816. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10817. WHERE cvterm.name = 'H_pseudoknot';
  10818. --- ************************************************
  10819. --- *** relation: c_d_box_snorna ***
  10820. --- *** relation type: VIEW ***
  10821. --- *** ***
  10822. --- *** Most box C/D snoRNAs also contain long ( ***
  10823. --- *** >10 nt) sequences complementary to rRNA. ***
  10824. --- *** Boxes C and D, as well as boxes C' and ***
  10825. --- *** D', are usually located in close proximi ***
  10826. --- *** ty, and form a structure known as the bo ***
  10827. --- *** x C/D motif. This motif is important for ***
  10828. --- *** snoRNA stability, processing, nucleolar ***
  10829. --- *** targeting and function. A small number ***
  10830. --- *** of box C/D snoRNAs are involved in rRNA ***
  10831. --- *** processing; most, however, are known or ***
  10832. --- *** predicted to serve as guide RNAs in ribo ***
  10833. --- *** se methylation of rRNA. Targeting involv ***
  10834. --- *** es direct base pairing of the snoRNA at ***
  10835. --- *** the rRNA site to be modified and selecti ***
  10836. --- *** on of a rRNA nucleotide a fixed distance ***
  10837. --- *** from box D or D'. ***
  10838. --- ************************************************
  10839. ---
  10840. CREATE VIEW c_d_box_snorna AS
  10841. SELECT
  10842. feature_id AS c_d_box_snorna_id,
  10843. feature.*
  10844. FROM
  10845. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10846. WHERE cvterm.name = 'U14_snoRNA' OR cvterm.name = 'U3_snoRNA' OR cvterm.name = 'methylation_guide_snoRNA' OR cvterm.name = 'C_D_box_snoRNA';
  10847. --- ************************************************
  10848. --- *** relation: h_aca_box_snorna ***
  10849. --- *** relation type: VIEW ***
  10850. --- *** ***
  10851. --- *** Members of the box H/ACA family contain ***
  10852. --- *** an ACA triplet, exactly 3 nt upstream fr ***
  10853. --- *** om the 3' end and an H-box in a hinge re ***
  10854. --- *** gion that links two structurally similar ***
  10855. --- *** functional domains of the molecule. Bot ***
  10856. --- *** h boxes are important for snoRNA biosynt ***
  10857. --- *** hesis and function. A few box H/ACA snoR ***
  10858. --- *** NAs are involved in rRNA processing; mos ***
  10859. --- *** t others are known or predicted to parti ***
  10860. --- *** cipate in selection of uridine nucleosid ***
  10861. --- *** es in rRNA to be converted to pseudourid ***
  10862. --- *** ines. Site selection is mediated by dire ***
  10863. --- *** ct base pairing of the snoRNA with rRNA ***
  10864. --- *** through one or both targeting domains. ***
  10865. --- ************************************************
  10866. ---
  10867. CREATE VIEW h_aca_box_snorna AS
  10868. SELECT
  10869. feature_id AS h_aca_box_snorna_id,
  10870. feature.*
  10871. FROM
  10872. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10873. WHERE cvterm.name = 'pseudouridylation_guide_snoRNA' OR cvterm.name = 'H_ACA_box_snoRNA';
  10874. --- ************************************************
  10875. --- *** relation: c_d_box_snorna_primary_transcript ***
  10876. --- *** relation type: VIEW ***
  10877. --- *** ***
  10878. --- *** A primary transcript encoding a small nu ***
  10879. --- *** cleolar RNA of the box C/D family. ***
  10880. --- ************************************************
  10881. ---
  10882. CREATE VIEW c_d_box_snorna_primary_transcript AS
  10883. SELECT
  10884. feature_id AS c_d_box_snorna_primary_transcript_id,
  10885. feature.*
  10886. FROM
  10887. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10888. WHERE cvterm.name = 'C_D_box_snoRNA_primary_transcript';
  10889. --- ************************************************
  10890. --- *** relation: h_aca_box_snorna_primary_transcript ***
  10891. --- *** relation type: VIEW ***
  10892. --- *** ***
  10893. --- *** A primary transcript encoding a small nu ***
  10894. --- *** cleolar RNA of the box H/ACA family. ***
  10895. --- ************************************************
  10896. ---
  10897. CREATE VIEW h_aca_box_snorna_primary_transcript AS
  10898. SELECT
  10899. feature_id AS h_aca_box_snorna_primary_transcript_id,
  10900. feature.*
  10901. FROM
  10902. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10903. WHERE cvterm.name = 'H_ACA_box_snoRNA_primary_transcript';
  10904. --- ************************************************
  10905. --- *** relation: guide_rna ***
  10906. --- *** relation type: VIEW ***
  10907. --- *** ***
  10908. --- *** A short 3'-uridylated RNA that can form ***
  10909. --- *** a duplex (except for its post-transcript ***
  10910. --- *** ionally added oligo_U tail (SO:0000609)) ***
  10911. --- *** with a stretch of mature edited mRNA. ***
  10912. --- ************************************************
  10913. ---
  10914. CREATE VIEW guide_rna AS
  10915. SELECT
  10916. feature_id AS guide_rna_id,
  10917. feature.*
  10918. FROM
  10919. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10920. WHERE cvterm.name = 'guide_RNA';
  10921. --- ************************************************
  10922. --- *** relation: group_ii_intron ***
  10923. --- *** relation type: VIEW ***
  10924. --- *** ***
  10925. --- *** Group II introns are found in rRNA, tRNA ***
  10926. --- *** and mRNA of organelles in fungi, plants ***
  10927. --- *** and protists, and also in mRNA in bacte ***
  10928. --- *** ria. They are large self-splicing ribozy ***
  10929. --- *** mes and have 6 structural domains (usual ***
  10930. --- *** ly designated dI to dVI). A subset of gr ***
  10931. --- *** oup II introns also encode essential spl ***
  10932. --- *** icing proteins in intronic ORFs. The len ***
  10933. --- *** gth of these introns can therefore be up ***
  10934. --- *** to 3kb. Splicing occurs in almost ident ***
  10935. --- *** ical fashion to nuclear pre-mRNA splicin ***
  10936. --- *** g with two transesterification steps. Th ***
  10937. --- *** e 2' hydroxyl of a bulged adenosine in d ***
  10938. --- *** omain VI attacks the 5' splice site, fol ***
  10939. --- *** lowed by nucleophilic attack on the 3' s ***
  10940. --- *** plice site by the 3' OH of the upstream ***
  10941. --- *** exon. Protein machinery is required for ***
  10942. --- *** splicing in vivo, and long range intron- ***
  10943. --- *** intron and intron-exon interactions are ***
  10944. --- *** important for splice site positioning. G ***
  10945. --- *** roup II introns are further sub-classifi ***
  10946. --- *** ed into groups IIA and IIB which differ ***
  10947. --- *** in splice site consensus, distance of bu ***
  10948. --- *** lged A from 3' splice site, some tertiar ***
  10949. --- *** y interactions, and intronic ORF phyloge ***
  10950. --- *** ny. ***
  10951. --- ************************************************
  10952. ---
  10953. CREATE VIEW group_ii_intron AS
  10954. SELECT
  10955. feature_id AS group_ii_intron_id,
  10956. feature.*
  10957. FROM
  10958. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10959. WHERE cvterm.name = 'group_IIA_intron' OR cvterm.name = 'group_IIB_intron' OR cvterm.name = 'group_II_intron';
  10960. --- ************************************************
  10961. --- *** relation: editing_block ***
  10962. --- *** relation type: VIEW ***
  10963. --- *** ***
  10964. --- *** Edited mRNA sequence mediated by a singl ***
  10965. --- *** e guide RNA (SO:0000602). ***
  10966. --- ************************************************
  10967. ---
  10968. CREATE VIEW editing_block AS
  10969. SELECT
  10970. feature_id AS editing_block_id,
  10971. feature.*
  10972. FROM
  10973. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10974. WHERE cvterm.name = 'editing_block';
  10975. --- ************************************************
  10976. --- *** relation: intergenic_region ***
  10977. --- *** relation type: VIEW ***
  10978. --- *** ***
  10979. --- *** A region containing or overlapping no ge ***
  10980. --- *** nes that is bounded on either side by a ***
  10981. --- *** gene, or bounded by a gene and the end o ***
  10982. --- *** f the chromosome. ***
  10983. --- ************************************************
  10984. ---
  10985. CREATE VIEW intergenic_region AS
  10986. SELECT
  10987. feature_id AS intergenic_region_id,
  10988. feature.*
  10989. FROM
  10990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  10991. WHERE cvterm.name = 'intergenic_region';
  10992. --- ************************************************
  10993. --- *** relation: editing_domain ***
  10994. --- *** relation type: VIEW ***
  10995. --- *** ***
  10996. --- *** Edited mRNA sequence mediated by two or ***
  10997. --- *** more overlapping guide RNAs (SO:0000602) ***
  10998. --- *** . ***
  10999. --- ************************************************
  11000. ---
  11001. CREATE VIEW editing_domain AS
  11002. SELECT
  11003. feature_id AS editing_domain_id,
  11004. feature.*
  11005. FROM
  11006. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11007. WHERE cvterm.name = 'editing_domain';
  11008. --- ************************************************
  11009. --- *** relation: unedited_region ***
  11010. --- *** relation type: VIEW ***
  11011. --- *** ***
  11012. --- *** The region of an edited transcript that ***
  11013. --- *** will not be edited. ***
  11014. --- ************************************************
  11015. ---
  11016. CREATE VIEW unedited_region AS
  11017. SELECT
  11018. feature_id AS unedited_region_id,
  11019. feature.*
  11020. FROM
  11021. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11022. WHERE cvterm.name = 'unedited_region';
  11023. --- ************************************************
  11024. --- *** relation: h_aca_box_snorna_encoding ***
  11025. --- *** relation type: VIEW ***
  11026. --- *** ***
  11027. --- ************************************************
  11028. ---
  11029. CREATE VIEW h_aca_box_snorna_encoding AS
  11030. SELECT
  11031. feature_id AS h_aca_box_snorna_encoding_id,
  11032. feature.*
  11033. FROM
  11034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11035. WHERE cvterm.name = 'H_ACA_box_snoRNA_encoding';
  11036. --- ************************************************
  11037. --- *** relation: oligo_u_tail ***
  11038. --- *** relation type: VIEW ***
  11039. --- *** ***
  11040. --- *** The string of non-encoded U's at the 3' ***
  11041. --- *** end of a guide RNA (SO:0000602). ***
  11042. --- ************************************************
  11043. ---
  11044. CREATE VIEW oligo_u_tail AS
  11045. SELECT
  11046. feature_id AS oligo_u_tail_id,
  11047. feature.*
  11048. FROM
  11049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11050. WHERE cvterm.name = 'oligo_U_tail';
  11051. --- ************************************************
  11052. --- *** relation: polya_sequence ***
  11053. --- *** relation type: VIEW ***
  11054. --- *** ***
  11055. --- *** Sequence of about 100 nucleotides of A a ***
  11056. --- *** dded to the 3' end of most eukaryotic mR ***
  11057. --- *** NAs. ***
  11058. --- ************************************************
  11059. ---
  11060. CREATE VIEW polya_sequence AS
  11061. SELECT
  11062. feature_id AS polya_sequence_id,
  11063. feature.*
  11064. FROM
  11065. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11066. WHERE cvterm.name = 'polyA_sequence';
  11067. --- ************************************************
  11068. --- *** relation: branch_site ***
  11069. --- *** relation type: VIEW ***
  11070. --- *** ***
  11071. --- *** A pyrimidine rich sequence near the 3' e ***
  11072. --- *** nd of an intron to which the 5'end becom ***
  11073. --- *** es covalently bound during nuclear splic ***
  11074. --- *** ing. The resulting structure resembles a ***
  11075. --- *** lariat. ***
  11076. --- ************************************************
  11077. ---
  11078. CREATE VIEW branch_site AS
  11079. SELECT
  11080. feature_id AS branch_site_id,
  11081. feature.*
  11082. FROM
  11083. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11084. WHERE cvterm.name = 'branch_site';
  11085. --- ************************************************
  11086. --- *** relation: polypyrimidine_tract ***
  11087. --- *** relation type: VIEW ***
  11088. --- *** ***
  11089. --- *** The polypyrimidine tract is one of the c ***
  11090. --- *** is-acting sequence elements directing in ***
  11091. --- *** tron removal in pre-mRNA splicing. ***
  11092. --- ************************************************
  11093. ---
  11094. CREATE VIEW polypyrimidine_tract AS
  11095. SELECT
  11096. feature_id AS polypyrimidine_tract_id,
  11097. feature.*
  11098. FROM
  11099. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11100. WHERE cvterm.name = 'polypyrimidine_tract';
  11101. --- ************************************************
  11102. --- *** relation: bacterial_rnapol_promoter ***
  11103. --- *** relation type: VIEW ***
  11104. --- *** ***
  11105. --- *** A DNA sequence to which bacterial RNA po ***
  11106. --- *** lymerase binds, to begin transcription. ***
  11107. --- ************************************************
  11108. ---
  11109. CREATE VIEW bacterial_rnapol_promoter AS
  11110. SELECT
  11111. feature_id AS bacterial_rnapol_promoter_id,
  11112. feature.*
  11113. FROM
  11114. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11115. WHERE cvterm.name = 'bacterial_RNApol_promoter_sigma_70' OR cvterm.name = 'bacterial_RNApol_promoter_sigma54' OR cvterm.name = 'bacterial_RNApol_promoter';
  11116. --- ************************************************
  11117. --- *** relation: bacterial_terminator ***
  11118. --- *** relation type: VIEW ***
  11119. --- *** ***
  11120. --- *** A terminator signal for bacterial transc ***
  11121. --- *** ription. ***
  11122. --- ************************************************
  11123. ---
  11124. CREATE VIEW bacterial_terminator AS
  11125. SELECT
  11126. feature_id AS bacterial_terminator_id,
  11127. feature.*
  11128. FROM
  11129. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11130. WHERE cvterm.name = 'rho_dependent_bacterial_terminator' OR cvterm.name = 'rho_independent_bacterial_terminator' OR cvterm.name = 'bacterial_terminator';
  11131. --- ************************************************
  11132. --- *** relation: terminator_of_type_2_rnapol_iii_promoter ***
  11133. --- *** relation type: VIEW ***
  11134. --- *** ***
  11135. --- *** A terminator signal for RNA polymerase I ***
  11136. --- *** II transcription. ***
  11137. --- ************************************************
  11138. ---
  11139. CREATE VIEW terminator_of_type_2_rnapol_iii_promoter AS
  11140. SELECT
  11141. feature_id AS terminator_of_type_2_rnapol_iii_promoter_id,
  11142. feature.*
  11143. FROM
  11144. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11145. WHERE cvterm.name = 'terminator_of_type_2_RNApol_III_promoter';
  11146. --- ************************************************
  11147. --- *** relation: transcription_end_site ***
  11148. --- *** relation type: VIEW ***
  11149. --- *** ***
  11150. --- *** The base where transcription ends. ***
  11151. --- ************************************************
  11152. ---
  11153. CREATE VIEW transcription_end_site AS
  11154. SELECT
  11155. feature_id AS transcription_end_site_id,
  11156. feature.*
  11157. FROM
  11158. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11159. WHERE cvterm.name = 'transcription_end_site';
  11160. --- ************************************************
  11161. --- *** relation: rnapol_iii_promoter_type_1 ***
  11162. --- *** relation type: VIEW ***
  11163. --- *** ***
  11164. --- ************************************************
  11165. ---
  11166. CREATE VIEW rnapol_iii_promoter_type_1 AS
  11167. SELECT
  11168. feature_id AS rnapol_iii_promoter_type_1_id,
  11169. feature.*
  11170. FROM
  11171. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11172. WHERE cvterm.name = 'RNApol_III_promoter_type_1';
  11173. --- ************************************************
  11174. --- *** relation: rnapol_iii_promoter_type_2 ***
  11175. --- *** relation type: VIEW ***
  11176. --- *** ***
  11177. --- ************************************************
  11178. ---
  11179. CREATE VIEW rnapol_iii_promoter_type_2 AS
  11180. SELECT
  11181. feature_id AS rnapol_iii_promoter_type_2_id,
  11182. feature.*
  11183. FROM
  11184. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11185. WHERE cvterm.name = 'RNApol_III_promoter_type_2';
  11186. --- ************************************************
  11187. --- *** relation: a_box ***
  11188. --- *** relation type: VIEW ***
  11189. --- *** ***
  11190. --- *** A variably distant linear promoter regio ***
  11191. --- *** n recognized by TFIIIC, with consensus s ***
  11192. --- *** equence TGGCnnAGTGG. ***
  11193. --- ************************************************
  11194. ---
  11195. CREATE VIEW a_box AS
  11196. SELECT
  11197. feature_id AS a_box_id,
  11198. feature.*
  11199. FROM
  11200. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11201. WHERE cvterm.name = 'A_box_type_1' OR cvterm.name = 'A_box_type_2' OR cvterm.name = 'A_box';
  11202. --- ************************************************
  11203. --- *** relation: b_box ***
  11204. --- *** relation type: VIEW ***
  11205. --- *** ***
  11206. --- *** A variably distant linear promoter regio ***
  11207. --- *** n recognized by TFIIIC, with consensus s ***
  11208. --- *** equence AGGTTCCAnnCC. ***
  11209. --- ************************************************
  11210. ---
  11211. CREATE VIEW b_box AS
  11212. SELECT
  11213. feature_id AS b_box_id,
  11214. feature.*
  11215. FROM
  11216. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11217. WHERE cvterm.name = 'B_box';
  11218. --- ************************************************
  11219. --- *** relation: rnapol_iii_promoter_type_3 ***
  11220. --- *** relation type: VIEW ***
  11221. --- *** ***
  11222. --- ************************************************
  11223. ---
  11224. CREATE VIEW rnapol_iii_promoter_type_3 AS
  11225. SELECT
  11226. feature_id AS rnapol_iii_promoter_type_3_id,
  11227. feature.*
  11228. FROM
  11229. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11230. WHERE cvterm.name = 'RNApol_III_promoter_type_3';
  11231. --- ************************************************
  11232. --- *** relation: c_box ***
  11233. --- *** relation type: VIEW ***
  11234. --- *** ***
  11235. --- *** An RNA polymerase III type 1 promoter wi ***
  11236. --- *** th consensus sequence CAnnCCn. ***
  11237. --- ************************************************
  11238. ---
  11239. CREATE VIEW c_box AS
  11240. SELECT
  11241. feature_id AS c_box_id,
  11242. feature.*
  11243. FROM
  11244. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11245. WHERE cvterm.name = 'C_box';
  11246. --- ************************************************
  11247. --- *** relation: snrna_encoding ***
  11248. --- *** relation type: VIEW ***
  11249. --- *** ***
  11250. --- ************************************************
  11251. ---
  11252. CREATE VIEW snrna_encoding AS
  11253. SELECT
  11254. feature_id AS snrna_encoding_id,
  11255. feature.*
  11256. FROM
  11257. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11258. WHERE cvterm.name = 'snRNA_encoding';
  11259. --- ************************************************
  11260. --- *** relation: telomere ***
  11261. --- *** relation type: VIEW ***
  11262. --- *** ***
  11263. --- *** A specific structure at the end of a lin ***
  11264. --- *** ear chromosome, required for the integri ***
  11265. --- *** ty and maintenance of the end. ***
  11266. --- ************************************************
  11267. ---
  11268. CREATE VIEW telomere AS
  11269. SELECT
  11270. feature_id AS telomere_id,
  11271. feature.*
  11272. FROM
  11273. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11274. WHERE cvterm.name = 'telomere';
  11275. --- ************************************************
  11276. --- *** relation: silencer ***
  11277. --- *** relation type: VIEW ***
  11278. --- *** ***
  11279. --- *** A regulatory region which upon binding o ***
  11280. --- *** f transcription factors, suppress the tr ***
  11281. --- *** anscription of the gene or genes they co ***
  11282. --- *** ntrol. ***
  11283. --- ************************************************
  11284. ---
  11285. CREATE VIEW silencer AS
  11286. SELECT
  11287. feature_id AS silencer_id,
  11288. feature.*
  11289. FROM
  11290. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11291. WHERE cvterm.name = 'silencer';
  11292. --- ************************************************
  11293. --- *** relation: chromosomal_regulatory_element ***
  11294. --- *** relation type: VIEW ***
  11295. --- *** ***
  11296. --- ************************************************
  11297. ---
  11298. CREATE VIEW chromosomal_regulatory_element AS
  11299. SELECT
  11300. feature_id AS chromosomal_regulatory_element_id,
  11301. feature.*
  11302. FROM
  11303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11304. WHERE cvterm.name = 'matrix_attachment_site' OR cvterm.name = 'chromosomal_regulatory_element';
  11305. --- ************************************************
  11306. --- *** relation: insulator ***
  11307. --- *** relation type: VIEW ***
  11308. --- *** ***
  11309. --- *** A transcriptional cis regulatory region ***
  11310. --- *** that when located between a CM and a gen ***
  11311. --- *** e's promoter prevents the CRM from modul ***
  11312. --- *** ating that genes expression. ***
  11313. --- ************************************************
  11314. ---
  11315. CREATE VIEW insulator AS
  11316. SELECT
  11317. feature_id AS insulator_id,
  11318. feature.*
  11319. FROM
  11320. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11321. WHERE cvterm.name = 'insulator';
  11322. --- ************************************************
  11323. --- *** relation: chromosomal_structural_element ***
  11324. --- *** relation type: VIEW ***
  11325. --- *** ***
  11326. --- ************************************************
  11327. ---
  11328. CREATE VIEW chromosomal_structural_element AS
  11329. SELECT
  11330. feature_id AS chromosomal_structural_element_id,
  11331. feature.*
  11332. FROM
  11333. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11334. WHERE cvterm.name = 'centromere' OR cvterm.name = 'telomere' OR cvterm.name = 'point_centromere' OR cvterm.name = 'regional_centromere' OR cvterm.name = 'chromosomal_structural_element';
  11335. --- ************************************************
  11336. --- *** relation: five_prime_open_reading_frame ***
  11337. --- *** relation type: VIEW ***
  11338. --- *** ***
  11339. --- ************************************************
  11340. ---
  11341. CREATE VIEW five_prime_open_reading_frame AS
  11342. SELECT
  11343. feature_id AS five_prime_open_reading_frame_id,
  11344. feature.*
  11345. FROM
  11346. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11347. WHERE cvterm.name = 'five_prime_open_reading_frame';
  11348. --- ************************************************
  11349. --- *** relation: upstream_aug_codon ***
  11350. --- *** relation type: VIEW ***
  11351. --- *** ***
  11352. --- *** A start codon upstream of the ORF. ***
  11353. --- ************************************************
  11354. ---
  11355. CREATE VIEW upstream_aug_codon AS
  11356. SELECT
  11357. feature_id AS upstream_aug_codon_id,
  11358. feature.*
  11359. FROM
  11360. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11361. WHERE cvterm.name = 'upstream_AUG_codon';
  11362. --- ************************************************
  11363. --- *** relation: polycistronic_primary_transcript ***
  11364. --- *** relation type: VIEW ***
  11365. --- *** ***
  11366. --- *** A primary transcript encoding for more t ***
  11367. --- *** han one gene product. ***
  11368. --- ************************************************
  11369. ---
  11370. CREATE VIEW polycistronic_primary_transcript AS
  11371. SELECT
  11372. feature_id AS polycistronic_primary_transcript_id,
  11373. feature.*
  11374. FROM
  11375. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11376. WHERE cvterm.name = 'dicistronic_primary_transcript' OR cvterm.name = 'polycistronic_primary_transcript';
  11377. --- ************************************************
  11378. --- *** relation: monocistronic_primary_transcript ***
  11379. --- *** relation type: VIEW ***
  11380. --- *** ***
  11381. --- *** A primary transcript encoding for one ge ***
  11382. --- *** ne product. ***
  11383. --- ************************************************
  11384. ---
  11385. CREATE VIEW monocistronic_primary_transcript AS
  11386. SELECT
  11387. feature_id AS monocistronic_primary_transcript_id,
  11388. feature.*
  11389. FROM
  11390. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11391. WHERE cvterm.name = 'monocistronic_primary_transcript';
  11392. --- ************************************************
  11393. --- *** relation: monocistronic_mrna ***
  11394. --- *** relation type: VIEW ***
  11395. --- *** ***
  11396. --- *** An mRNA with either a single protein pro ***
  11397. --- *** duct, or for which the regions encoding ***
  11398. --- *** all its protein products overlap. ***
  11399. --- ************************************************
  11400. ---
  11401. CREATE VIEW monocistronic_mrna AS
  11402. SELECT
  11403. feature_id AS monocistronic_mrna_id,
  11404. feature.*
  11405. FROM
  11406. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11407. WHERE cvterm.name = 'monocistronic_mRNA';
  11408. --- ************************************************
  11409. --- *** relation: polycistronic_mrna ***
  11410. --- *** relation type: VIEW ***
  11411. --- *** ***
  11412. --- *** An mRNA that encodes multiple proteins f ***
  11413. --- *** rom at least two non-overlapping regions ***
  11414. --- *** . ***
  11415. --- ************************************************
  11416. ---
  11417. CREATE VIEW polycistronic_mrna AS
  11418. SELECT
  11419. feature_id AS polycistronic_mrna_id,
  11420. feature.*
  11421. FROM
  11422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11423. WHERE cvterm.name = 'dicistronic_mRNA' OR cvterm.name = 'polycistronic_mRNA';
  11424. --- ************************************************
  11425. --- *** relation: mini_exon_donor_rna ***
  11426. --- *** relation type: VIEW ***
  11427. --- *** ***
  11428. --- *** A primary transcript that donates the sp ***
  11429. --- *** liced leader to other mRNA. ***
  11430. --- ************************************************
  11431. ---
  11432. CREATE VIEW mini_exon_donor_rna AS
  11433. SELECT
  11434. feature_id AS mini_exon_donor_rna_id,
  11435. feature.*
  11436. FROM
  11437. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11438. WHERE cvterm.name = 'mini_exon_donor_RNA';
  11439. --- ************************************************
  11440. --- *** relation: spliced_leader_rna ***
  11441. --- *** relation type: VIEW ***
  11442. --- *** ***
  11443. --- ************************************************
  11444. ---
  11445. CREATE VIEW spliced_leader_rna AS
  11446. SELECT
  11447. feature_id AS spliced_leader_rna_id,
  11448. feature.*
  11449. FROM
  11450. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11451. WHERE cvterm.name = 'spliced_leader_RNA';
  11452. --- ************************************************
  11453. --- *** relation: engineered_plasmid ***
  11454. --- *** relation type: VIEW ***
  11455. --- *** ***
  11456. --- *** A plasmid that is engineered. ***
  11457. --- ************************************************
  11458. ---
  11459. CREATE VIEW engineered_plasmid AS
  11460. SELECT
  11461. feature_id AS engineered_plasmid_id,
  11462. feature.*
  11463. FROM
  11464. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11465. 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';
  11466. --- ************************************************
  11467. --- *** relation: transcribed_spacer_region ***
  11468. --- *** relation type: VIEW ***
  11469. --- *** ***
  11470. --- *** Part of an rRNA transcription unit that ***
  11471. --- *** is transcribed but discarded during matu ***
  11472. --- *** ration, not giving rise to any part of r ***
  11473. --- *** RNA. ***
  11474. --- ************************************************
  11475. ---
  11476. CREATE VIEW transcribed_spacer_region AS
  11477. SELECT
  11478. feature_id AS transcribed_spacer_region_id,
  11479. feature.*
  11480. FROM
  11481. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11482. WHERE cvterm.name = 'internal_transcribed_spacer_region' OR cvterm.name = 'external_transcribed_spacer_region' OR cvterm.name = 'transcribed_spacer_region';
  11483. --- ************************************************
  11484. --- *** relation: internal_transcribed_spacer_region ***
  11485. --- *** relation type: VIEW ***
  11486. --- *** ***
  11487. --- *** Non-coding regions of DNA sequence that ***
  11488. --- *** separate genes coding for the 28S, 5.8S, ***
  11489. --- *** and 18S ribosomal RNAs. ***
  11490. --- ************************************************
  11491. ---
  11492. CREATE VIEW internal_transcribed_spacer_region AS
  11493. SELECT
  11494. feature_id AS internal_transcribed_spacer_region_id,
  11495. feature.*
  11496. FROM
  11497. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11498. WHERE cvterm.name = 'internal_transcribed_spacer_region';
  11499. --- ************************************************
  11500. --- *** relation: external_transcribed_spacer_region ***
  11501. --- *** relation type: VIEW ***
  11502. --- *** ***
  11503. --- *** Non-coding regions of DNA that precede t ***
  11504. --- *** he sequence that codes for the ribosomal ***
  11505. --- *** RNA. ***
  11506. --- ************************************************
  11507. ---
  11508. CREATE VIEW external_transcribed_spacer_region AS
  11509. SELECT
  11510. feature_id AS external_transcribed_spacer_region_id,
  11511. feature.*
  11512. FROM
  11513. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11514. WHERE cvterm.name = 'external_transcribed_spacer_region';
  11515. --- ************************************************
  11516. --- *** relation: tetranuc_repeat_microsat ***
  11517. --- *** relation type: VIEW ***
  11518. --- *** ***
  11519. --- ************************************************
  11520. ---
  11521. CREATE VIEW tetranuc_repeat_microsat AS
  11522. SELECT
  11523. feature_id AS tetranuc_repeat_microsat_id,
  11524. feature.*
  11525. FROM
  11526. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11527. WHERE cvterm.name = 'tetranucleotide_repeat_microsatellite_feature';
  11528. --- ************************************************
  11529. --- *** relation: srp_rna_encoding ***
  11530. --- *** relation type: VIEW ***
  11531. --- *** ***
  11532. --- ************************************************
  11533. ---
  11534. CREATE VIEW srp_rna_encoding AS
  11535. SELECT
  11536. feature_id AS srp_rna_encoding_id,
  11537. feature.*
  11538. FROM
  11539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11540. WHERE cvterm.name = 'SRP_RNA_encoding';
  11541. --- ************************************************
  11542. --- *** relation: minisatellite ***
  11543. --- *** relation type: VIEW ***
  11544. --- *** ***
  11545. --- *** A repeat region containing tandemly repe ***
  11546. --- *** ated sequences having a unit length of 1 ***
  11547. --- *** 0 to 40 bp. ***
  11548. --- ************************************************
  11549. ---
  11550. CREATE VIEW minisatellite AS
  11551. SELECT
  11552. feature_id AS minisatellite_id,
  11553. feature.*
  11554. FROM
  11555. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11556. WHERE cvterm.name = 'minisatellite';
  11557. --- ************************************************
  11558. --- *** relation: antisense_rna ***
  11559. --- *** relation type: VIEW ***
  11560. --- *** ***
  11561. --- *** Antisense RNA is RNA that is transcribed ***
  11562. --- *** from the coding, rather than the templa ***
  11563. --- *** te, strand of DNA. It is therefore compl ***
  11564. --- *** ementary to mRNA. ***
  11565. --- ************************************************
  11566. ---
  11567. CREATE VIEW antisense_rna AS
  11568. SELECT
  11569. feature_id AS antisense_rna_id,
  11570. feature.*
  11571. FROM
  11572. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11573. WHERE cvterm.name = 'MicF_RNA' OR cvterm.name = 'antisense_RNA';
  11574. --- ************************************************
  11575. --- *** relation: antisense_primary_transcript ***
  11576. --- *** relation type: VIEW ***
  11577. --- *** ***
  11578. --- *** The reverse complement of the primary tr ***
  11579. --- *** anscript. ***
  11580. --- ************************************************
  11581. ---
  11582. CREATE VIEW antisense_primary_transcript AS
  11583. SELECT
  11584. feature_id AS antisense_primary_transcript_id,
  11585. feature.*
  11586. FROM
  11587. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11588. WHERE cvterm.name = 'antisense_primary_transcript';
  11589. --- ************************************************
  11590. --- *** relation: sirna ***
  11591. --- *** relation type: VIEW ***
  11592. --- *** ***
  11593. --- *** A small RNA molecule that is the product ***
  11594. --- *** of a longer exogenous or endogenous dsR ***
  11595. --- *** NA, which is either a bimolecular duplex ***
  11596. --- *** or very long hairpin, processed (via th ***
  11597. --- *** e Dicer pathway) such that numerous siRN ***
  11598. --- *** As accumulate from both strands of the d ***
  11599. --- *** sRNA. SRNAs trigger the cleavage of thei ***
  11600. --- *** r target molecules. ***
  11601. --- ************************************************
  11602. ---
  11603. CREATE VIEW sirna AS
  11604. SELECT
  11605. feature_id AS sirna_id,
  11606. feature.*
  11607. FROM
  11608. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11609. WHERE cvterm.name = 'siRNA';
  11610. --- ************************************************
  11611. --- *** relation: mirna_primary_transcript ***
  11612. --- *** relation type: VIEW ***
  11613. --- *** ***
  11614. --- *** A primary transcript encoding a micro RN ***
  11615. --- *** A. ***
  11616. --- ************************************************
  11617. ---
  11618. CREATE VIEW mirna_primary_transcript AS
  11619. SELECT
  11620. feature_id AS mirna_primary_transcript_id,
  11621. feature.*
  11622. FROM
  11623. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11624. WHERE cvterm.name = 'stRNA_primary_transcript' OR cvterm.name = 'miRNA_primary_transcript';
  11625. --- ************************************************
  11626. --- *** relation: strna_primary_transcript ***
  11627. --- *** relation type: VIEW ***
  11628. --- *** ***
  11629. --- *** A primary transcript encoding a small te ***
  11630. --- *** mporal mRNA (SO:0000649). ***
  11631. --- ************************************************
  11632. ---
  11633. CREATE VIEW strna_primary_transcript AS
  11634. SELECT
  11635. feature_id AS strna_primary_transcript_id,
  11636. feature.*
  11637. FROM
  11638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11639. WHERE cvterm.name = 'stRNA_primary_transcript';
  11640. --- ************************************************
  11641. --- *** relation: strna ***
  11642. --- *** relation type: VIEW ***
  11643. --- *** ***
  11644. --- *** Non-coding RNAs of about 21 nucleotides ***
  11645. --- *** in length that regulate temporal develop ***
  11646. --- *** ment; first discovered in C. elegans. ***
  11647. --- ************************************************
  11648. ---
  11649. CREATE VIEW strna AS
  11650. SELECT
  11651. feature_id AS strna_id,
  11652. feature.*
  11653. FROM
  11654. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11655. WHERE cvterm.name = 'stRNA';
  11656. --- ************************************************
  11657. --- *** relation: small_subunit_rrna ***
  11658. --- *** relation type: VIEW ***
  11659. --- *** ***
  11660. --- *** Ribosomal RNA transcript that structures ***
  11661. --- *** the small subunit of the ribosome. ***
  11662. --- ************************************************
  11663. ---
  11664. CREATE VIEW small_subunit_rrna AS
  11665. SELECT
  11666. feature_id AS small_subunit_rrna_id,
  11667. feature.*
  11668. FROM
  11669. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11670. WHERE cvterm.name = 'rRNA_18S' OR cvterm.name = 'rRNA_16S' OR cvterm.name = 'small_subunit_rRNA';
  11671. --- ************************************************
  11672. --- *** relation: large_subunit_rrna ***
  11673. --- *** relation type: VIEW ***
  11674. --- *** ***
  11675. --- *** Ribosomal RNA transcript that structures ***
  11676. --- *** the large subunit of the ribosome. ***
  11677. --- ************************************************
  11678. ---
  11679. CREATE VIEW large_subunit_rrna AS
  11680. SELECT
  11681. feature_id AS large_subunit_rrna_id,
  11682. feature.*
  11683. FROM
  11684. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11685. 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';
  11686. --- ************************************************
  11687. --- *** relation: rrna_5s ***
  11688. --- *** relation type: VIEW ***
  11689. --- *** ***
  11690. --- *** 5S ribosomal RNA (5S rRNA) is a componen ***
  11691. --- *** t of the large ribosomal subunit in both ***
  11692. --- *** prokaryotes and eukaryotes. In eukaryot ***
  11693. --- *** es, it is synthesised by RNA polymerase ***
  11694. --- *** III (the other eukaryotic rRNAs are clea ***
  11695. --- *** ved from a 45S precursor synthesised by ***
  11696. --- *** RNA polymerase I). In Xenopus oocytes, i ***
  11697. --- *** t has been shown that fingers 4-7 of the ***
  11698. --- *** nine-zinc finger transcription factor T ***
  11699. --- *** FIIIA can bind to the central region of ***
  11700. --- *** 5S RNA. Thus, in addition to positively ***
  11701. --- *** regulating 5S rRNA transcription, TFIIIA ***
  11702. --- *** also stabilizes 5S rRNA until it is req ***
  11703. --- *** uired for transcription. ***
  11704. --- ************************************************
  11705. ---
  11706. CREATE VIEW rrna_5s AS
  11707. SELECT
  11708. feature_id AS rrna_5s_id,
  11709. feature.*
  11710. FROM
  11711. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11712. WHERE cvterm.name = 'rRNA_5S';
  11713. --- ************************************************
  11714. --- *** relation: rrna_28s ***
  11715. --- *** relation type: VIEW ***
  11716. --- *** ***
  11717. --- *** A component of the large ribosomal subun ***
  11718. --- *** it. ***
  11719. --- ************************************************
  11720. ---
  11721. CREATE VIEW rrna_28s AS
  11722. SELECT
  11723. feature_id AS rrna_28s_id,
  11724. feature.*
  11725. FROM
  11726. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11727. WHERE cvterm.name = 'rRNA_28S';
  11728. --- ************************************************
  11729. --- *** relation: maxicircle_gene ***
  11730. --- *** relation type: VIEW ***
  11731. --- *** ***
  11732. --- *** A mitochondrial gene located in a maxici ***
  11733. --- *** rcle. ***
  11734. --- ************************************************
  11735. ---
  11736. CREATE VIEW maxicircle_gene AS
  11737. SELECT
  11738. feature_id AS maxicircle_gene_id,
  11739. feature.*
  11740. FROM
  11741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11742. WHERE cvterm.name = 'cryptogene' OR cvterm.name = 'maxicircle_gene';
  11743. --- ************************************************
  11744. --- *** relation: ncrna ***
  11745. --- *** relation type: VIEW ***
  11746. --- *** ***
  11747. --- *** An RNA transcript that does not encode f ***
  11748. --- *** or a protein rather the RNA molecule is ***
  11749. --- *** the gene product. ***
  11750. --- ************************************************
  11751. ---
  11752. CREATE VIEW ncrna AS
  11753. SELECT
  11754. feature_id AS ncrna_id,
  11755. feature.*
  11756. FROM
  11757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11758. 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';
  11759. --- ************************************************
  11760. --- *** relation: strna_encoding ***
  11761. --- *** relation type: VIEW ***
  11762. --- *** ***
  11763. --- ************************************************
  11764. ---
  11765. CREATE VIEW strna_encoding AS
  11766. SELECT
  11767. feature_id AS strna_encoding_id,
  11768. feature.*
  11769. FROM
  11770. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11771. WHERE cvterm.name = 'stRNA_encoding';
  11772. --- ************************************************
  11773. --- *** relation: repeat_region ***
  11774. --- *** relation type: VIEW ***
  11775. --- *** ***
  11776. --- *** A region of sequence containing one or m ***
  11777. --- *** ore repeat units. ***
  11778. --- ************************************************
  11779. ---
  11780. CREATE VIEW repeat_region AS
  11781. SELECT
  11782. feature_id AS repeat_region_id,
  11783. feature.*
  11784. FROM
  11785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11786. 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';
  11787. --- ************************************************
  11788. --- *** relation: dispersed_repeat ***
  11789. --- *** relation type: VIEW ***
  11790. --- *** ***
  11791. --- *** A repeat that is located at dispersed si ***
  11792. --- *** tes in the genome. ***
  11793. --- ************************************************
  11794. ---
  11795. CREATE VIEW dispersed_repeat AS
  11796. SELECT
  11797. feature_id AS dispersed_repeat_id,
  11798. feature.*
  11799. FROM
  11800. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11801. WHERE cvterm.name = 'dispersed_repeat';
  11802. --- ************************************************
  11803. --- *** relation: tmrna_encoding ***
  11804. --- *** relation type: VIEW ***
  11805. --- *** ***
  11806. --- ************************************************
  11807. ---
  11808. CREATE VIEW tmrna_encoding AS
  11809. SELECT
  11810. feature_id AS tmrna_encoding_id,
  11811. feature.*
  11812. FROM
  11813. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11814. WHERE cvterm.name = 'tmRNA_encoding';
  11815. --- ************************************************
  11816. --- *** relation: spliceosomal_intron ***
  11817. --- *** relation type: VIEW ***
  11818. --- *** ***
  11819. --- *** An intron which is spliced by the splice ***
  11820. --- *** osome. ***
  11821. --- ************************************************
  11822. ---
  11823. CREATE VIEW spliceosomal_intron AS
  11824. SELECT
  11825. feature_id AS spliceosomal_intron_id,
  11826. feature.*
  11827. FROM
  11828. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11829. WHERE cvterm.name = 'U2_intron' OR cvterm.name = 'U12_intron' OR cvterm.name = 'spliceosomal_intron';
  11830. --- ************************************************
  11831. --- *** relation: trna_encoding ***
  11832. --- *** relation type: VIEW ***
  11833. --- *** ***
  11834. --- ************************************************
  11835. ---
  11836. CREATE VIEW trna_encoding AS
  11837. SELECT
  11838. feature_id AS trna_encoding_id,
  11839. feature.*
  11840. FROM
  11841. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11842. WHERE cvterm.name = 'tRNA_encoding';
  11843. --- ************************************************
  11844. --- *** relation: introgressed_chromosome_region ***
  11845. --- *** relation type: VIEW ***
  11846. --- *** ***
  11847. --- ************************************************
  11848. ---
  11849. CREATE VIEW introgressed_chromosome_region AS
  11850. SELECT
  11851. feature_id AS introgressed_chromosome_region_id,
  11852. feature.*
  11853. FROM
  11854. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11855. WHERE cvterm.name = 'introgressed_chromosome_region';
  11856. --- ************************************************
  11857. --- *** relation: monocistronic_transcript ***
  11858. --- *** relation type: VIEW ***
  11859. --- *** ***
  11860. --- *** A transcript that is monocistronic. ***
  11861. --- ************************************************
  11862. ---
  11863. CREATE VIEW monocistronic_transcript AS
  11864. SELECT
  11865. feature_id AS monocistronic_transcript_id,
  11866. feature.*
  11867. FROM
  11868. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11869. WHERE cvterm.name = 'monocistronic_primary_transcript' OR cvterm.name = 'monocistronic_mRNA' OR cvterm.name = 'monocistronic_transcript';
  11870. --- ************************************************
  11871. --- *** relation: mobile_intron ***
  11872. --- *** relation type: VIEW ***
  11873. --- *** ***
  11874. --- *** An intron (mitochondrial, chloroplast, n ***
  11875. --- *** uclear or prokaryotic) that encodes a do ***
  11876. --- *** uble strand sequence specific endonuclea ***
  11877. --- *** se allowing for mobility. ***
  11878. --- ************************************************
  11879. ---
  11880. CREATE VIEW mobile_intron AS
  11881. SELECT
  11882. feature_id AS mobile_intron_id,
  11883. feature.*
  11884. FROM
  11885. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11886. WHERE cvterm.name = 'mobile_intron';
  11887. --- ************************************************
  11888. --- *** relation: insertion ***
  11889. --- *** relation type: VIEW ***
  11890. --- *** ***
  11891. --- *** The sequence of one or more nucleotides ***
  11892. --- *** added between two adjacent nucleotides i ***
  11893. --- *** n the sequence. ***
  11894. --- ************************************************
  11895. ---
  11896. CREATE VIEW insertion AS
  11897. SELECT
  11898. feature_id AS insertion_id,
  11899. feature.*
  11900. FROM
  11901. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11902. 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';
  11903. --- ************************************************
  11904. --- *** relation: est_match ***
  11905. --- *** relation type: VIEW ***
  11906. --- *** ***
  11907. --- *** A match against an EST sequence. ***
  11908. --- ************************************************
  11909. ---
  11910. CREATE VIEW est_match AS
  11911. SELECT
  11912. feature_id AS est_match_id,
  11913. feature.*
  11914. FROM
  11915. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11916. WHERE cvterm.name = 'EST_match';
  11917. --- ************************************************
  11918. --- *** relation: sequence_rearrangement_feature ***
  11919. --- *** relation type: VIEW ***
  11920. --- *** ***
  11921. --- ************************************************
  11922. ---
  11923. CREATE VIEW sequence_rearrangement_feature AS
  11924. SELECT
  11925. feature_id AS sequence_rearrangement_feature_id,
  11926. feature.*
  11927. FROM
  11928. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11929. 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';
  11930. --- ************************************************
  11931. --- *** relation: chromosome_breakage_sequence ***
  11932. --- *** relation type: VIEW ***
  11933. --- *** ***
  11934. --- *** A sequence within the micronuclear DNA o ***
  11935. --- *** f ciliates at which chromosome breakage ***
  11936. --- *** and telomere addition occurs during nucl ***
  11937. --- *** ear differentiation. ***
  11938. --- ************************************************
  11939. ---
  11940. CREATE VIEW chromosome_breakage_sequence AS
  11941. SELECT
  11942. feature_id AS chromosome_breakage_sequence_id,
  11943. feature.*
  11944. FROM
  11945. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11946. WHERE cvterm.name = 'chromosome_breakage_sequence';
  11947. --- ************************************************
  11948. --- *** relation: internal_eliminated_sequence ***
  11949. --- *** relation type: VIEW ***
  11950. --- *** ***
  11951. --- *** A sequence eliminated from the genome of ***
  11952. --- *** ciliates during nuclear differentiation ***
  11953. --- *** . ***
  11954. --- ************************************************
  11955. ---
  11956. CREATE VIEW internal_eliminated_sequence AS
  11957. SELECT
  11958. feature_id AS internal_eliminated_sequence_id,
  11959. feature.*
  11960. FROM
  11961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11962. WHERE cvterm.name = 'internal_eliminated_sequence';
  11963. --- ************************************************
  11964. --- *** relation: macronucleus_destined_segment ***
  11965. --- *** relation type: VIEW ***
  11966. --- *** ***
  11967. --- *** A sequence that is conserved, although r ***
  11968. --- *** earranged relative to the micronucleus, ***
  11969. --- *** in the macronucleus of a ciliate genome. ***
  11970. --- ************************************************
  11971. ---
  11972. CREATE VIEW macronucleus_destined_segment AS
  11973. SELECT
  11974. feature_id AS macronucleus_destined_segment_id,
  11975. feature.*
  11976. FROM
  11977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11978. WHERE cvterm.name = 'macronucleus_destined_segment';
  11979. --- ************************************************
  11980. --- *** relation: transcript ***
  11981. --- *** relation type: VIEW ***
  11982. --- *** ***
  11983. --- *** An RNA synthesized on a DNA or RNA templ ***
  11984. --- *** ate by an RNA polymerase. ***
  11985. --- ************************************************
  11986. ---
  11987. CREATE VIEW transcript AS
  11988. SELECT
  11989. feature_id AS transcript_id,
  11990. feature.*
  11991. FROM
  11992. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  11993. 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';
  11994. --- ************************************************
  11995. --- *** relation: canonical_three_prime_splice_site ***
  11996. --- *** relation type: VIEW ***
  11997. --- *** ***
  11998. --- *** The canonical 3' splice site has the seq ***
  11999. --- *** uence "AG". ***
  12000. --- ************************************************
  12001. ---
  12002. CREATE VIEW canonical_three_prime_splice_site AS
  12003. SELECT
  12004. feature_id AS canonical_three_prime_splice_site_id,
  12005. feature.*
  12006. FROM
  12007. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12008. WHERE cvterm.name = 'canonical_three_prime_splice_site';
  12009. --- ************************************************
  12010. --- *** relation: canonical_five_prime_splice_site ***
  12011. --- *** relation type: VIEW ***
  12012. --- *** ***
  12013. --- *** The canonical 5' splice site has the seq ***
  12014. --- *** uence "GT". ***
  12015. --- ************************************************
  12016. ---
  12017. CREATE VIEW canonical_five_prime_splice_site AS
  12018. SELECT
  12019. feature_id AS canonical_five_prime_splice_site_id,
  12020. feature.*
  12021. FROM
  12022. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12023. WHERE cvterm.name = 'canonical_five_prime_splice_site';
  12024. --- ************************************************
  12025. --- *** relation: non_canonical_three_prime_splice_site ***
  12026. --- *** relation type: VIEW ***
  12027. --- *** ***
  12028. --- *** A 3' splice site that does not have the ***
  12029. --- *** sequence "AG". ***
  12030. --- ************************************************
  12031. ---
  12032. CREATE VIEW non_canonical_three_prime_splice_site AS
  12033. SELECT
  12034. feature_id AS non_canonical_three_prime_splice_site_id,
  12035. feature.*
  12036. FROM
  12037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12038. WHERE cvterm.name = 'non_canonical_three_prime_splice_site';
  12039. --- ************************************************
  12040. --- *** relation: non_canonical_five_prime_splice_site ***
  12041. --- *** relation type: VIEW ***
  12042. --- *** ***
  12043. --- *** A 5' splice site which does not have the ***
  12044. --- *** sequence "GT". ***
  12045. --- ************************************************
  12046. ---
  12047. CREATE VIEW non_canonical_five_prime_splice_site AS
  12048. SELECT
  12049. feature_id AS non_canonical_five_prime_splice_site_id,
  12050. feature.*
  12051. FROM
  12052. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12053. WHERE cvterm.name = 'non_canonical_five_prime_splice_site';
  12054. --- ************************************************
  12055. --- *** relation: non_canonical_start_codon ***
  12056. --- *** relation type: VIEW ***
  12057. --- *** ***
  12058. --- *** A start codon that is not the usual AUG ***
  12059. --- *** sequence. ***
  12060. --- ************************************************
  12061. ---
  12062. CREATE VIEW non_canonical_start_codon AS
  12063. SELECT
  12064. feature_id AS non_canonical_start_codon_id,
  12065. feature.*
  12066. FROM
  12067. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12068. WHERE cvterm.name = 'four_bp_start_codon' OR cvterm.name = 'CTG_start_codon' OR cvterm.name = 'non_canonical_start_codon';
  12069. --- ************************************************
  12070. --- *** relation: aberrant_processed_transcript ***
  12071. --- *** relation type: VIEW ***
  12072. --- *** ***
  12073. --- *** A transcript that has been processed "in ***
  12074. --- *** correctly", for example by the failure o ***
  12075. --- *** f splicing of one or more exons. ***
  12076. --- ************************************************
  12077. ---
  12078. CREATE VIEW aberrant_processed_transcript AS
  12079. SELECT
  12080. feature_id AS aberrant_processed_transcript_id,
  12081. feature.*
  12082. FROM
  12083. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12084. WHERE cvterm.name = 'aberrant_processed_transcript';
  12085. --- ************************************************
  12086. --- *** relation: exonic_splice_enhancer ***
  12087. --- *** relation type: VIEW ***
  12088. --- *** ***
  12089. --- *** Exonic splicing enhancers (ESEs) facilit ***
  12090. --- *** ate exon definition by assisting in the ***
  12091. --- *** recruitment of splicing factors to the a ***
  12092. --- *** djacent intron. ***
  12093. --- ************************************************
  12094. ---
  12095. CREATE VIEW exonic_splice_enhancer AS
  12096. SELECT
  12097. feature_id AS exonic_splice_enhancer_id,
  12098. feature.*
  12099. FROM
  12100. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12101. WHERE cvterm.name = 'exonic_splice_enhancer';
  12102. --- ************************************************
  12103. --- *** relation: nuclease_sensitive_site ***
  12104. --- *** relation type: VIEW ***
  12105. --- *** ***
  12106. --- *** A region of nucleotide sequence targeted ***
  12107. --- *** by a nuclease enzyme. ***
  12108. --- ************************************************
  12109. ---
  12110. CREATE VIEW nuclease_sensitive_site AS
  12111. SELECT
  12112. feature_id AS nuclease_sensitive_site_id,
  12113. feature.*
  12114. FROM
  12115. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12116. 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';
  12117. --- ************************************************
  12118. --- *** relation: dnasei_hypersensitive_site ***
  12119. --- *** relation type: VIEW ***
  12120. --- *** ***
  12121. --- ************************************************
  12122. ---
  12123. CREATE VIEW dnasei_hypersensitive_site AS
  12124. SELECT
  12125. feature_id AS dnasei_hypersensitive_site_id,
  12126. feature.*
  12127. FROM
  12128. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12129. WHERE cvterm.name = 'DNAseI_hypersensitive_site';
  12130. --- ************************************************
  12131. --- *** relation: translocation_element ***
  12132. --- *** relation type: VIEW ***
  12133. --- *** ***
  12134. --- *** A chromosomal translocation whereby the ***
  12135. --- *** chromosomes carrying non-homologous cent ***
  12136. --- *** romeres may be recovered independently. ***
  12137. --- *** These chromosomes are described as trans ***
  12138. --- *** location elements. This occurs for some ***
  12139. --- *** translocations, particularly but not exc ***
  12140. --- *** lusively, reciprocal translocations. ***
  12141. --- ************************************************
  12142. ---
  12143. CREATE VIEW translocation_element AS
  12144. SELECT
  12145. feature_id AS translocation_element_id,
  12146. feature.*
  12147. FROM
  12148. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12149. WHERE cvterm.name = 'translocation_element';
  12150. --- ************************************************
  12151. --- *** relation: deletion_junction ***
  12152. --- *** relation type: VIEW ***
  12153. --- *** ***
  12154. --- *** The space between two bases in a sequenc ***
  12155. --- *** e which marks the position where a delet ***
  12156. --- *** ion has occurred. ***
  12157. --- ************************************************
  12158. ---
  12159. CREATE VIEW deletion_junction AS
  12160. SELECT
  12161. feature_id AS deletion_junction_id,
  12162. feature.*
  12163. FROM
  12164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12165. WHERE cvterm.name = 'deletion_junction';
  12166. --- ************************************************
  12167. --- *** relation: golden_path ***
  12168. --- *** relation type: VIEW ***
  12169. --- *** ***
  12170. --- *** A set of subregions selected from sequen ***
  12171. --- *** ce contigs which when concatenated form ***
  12172. --- *** a nonredundant linear sequence. ***
  12173. --- ************************************************
  12174. ---
  12175. CREATE VIEW golden_path AS
  12176. SELECT
  12177. feature_id AS golden_path_id,
  12178. feature.*
  12179. FROM
  12180. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12181. WHERE cvterm.name = 'golden_path';
  12182. --- ************************************************
  12183. --- *** relation: cdna_match ***
  12184. --- *** relation type: VIEW ***
  12185. --- *** ***
  12186. --- *** A match against cDNA sequence. ***
  12187. --- ************************************************
  12188. ---
  12189. CREATE VIEW cdna_match AS
  12190. SELECT
  12191. feature_id AS cdna_match_id,
  12192. feature.*
  12193. FROM
  12194. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12195. WHERE cvterm.name = 'cDNA_match';
  12196. --- ************************************************
  12197. --- *** relation: gene_with_polycistronic_transcript ***
  12198. --- *** relation type: VIEW ***
  12199. --- *** ***
  12200. --- *** A gene that encodes a polycistronic tran ***
  12201. --- *** script. ***
  12202. --- ************************************************
  12203. ---
  12204. CREATE VIEW gene_with_polycistronic_transcript AS
  12205. SELECT
  12206. feature_id AS gene_with_polycistronic_transcript_id,
  12207. feature.*
  12208. FROM
  12209. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12210. 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';
  12211. --- ************************************************
  12212. --- *** relation: cleaved_initiator_methionine ***
  12213. --- *** relation type: VIEW ***
  12214. --- *** ***
  12215. --- *** The initiator methionine that has been c ***
  12216. --- *** leaved from a mature polypeptide sequenc ***
  12217. --- *** e. ***
  12218. --- ************************************************
  12219. ---
  12220. CREATE VIEW cleaved_initiator_methionine AS
  12221. SELECT
  12222. feature_id AS cleaved_initiator_methionine_id,
  12223. feature.*
  12224. FROM
  12225. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12226. WHERE cvterm.name = 'cleaved_initiator_methionine';
  12227. --- ************************************************
  12228. --- *** relation: gene_with_dicistronic_transcript ***
  12229. --- *** relation type: VIEW ***
  12230. --- *** ***
  12231. --- *** A gene that encodes a dicistronic transc ***
  12232. --- *** ript. ***
  12233. --- ************************************************
  12234. ---
  12235. CREATE VIEW gene_with_dicistronic_transcript AS
  12236. SELECT
  12237. feature_id AS gene_with_dicistronic_transcript_id,
  12238. feature.*
  12239. FROM
  12240. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12241. WHERE cvterm.name = 'gene_with_dicistronic_primary_transcript' OR cvterm.name = 'gene_with_dicistronic_mRNA' OR cvterm.name = 'gene_with_dicistronic_transcript';
  12242. --- ************************************************
  12243. --- *** relation: gene_with_recoded_mrna ***
  12244. --- *** relation type: VIEW ***
  12245. --- *** ***
  12246. --- *** A gene that encodes an mRNA that is reco ***
  12247. --- *** ded. ***
  12248. --- ************************************************
  12249. ---
  12250. CREATE VIEW gene_with_recoded_mrna AS
  12251. SELECT
  12252. feature_id AS gene_with_recoded_mrna_id,
  12253. feature.*
  12254. FROM
  12255. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12256. 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';
  12257. --- ************************************************
  12258. --- *** relation: snp ***
  12259. --- *** relation type: VIEW ***
  12260. --- *** ***
  12261. --- *** SNPs are single base pair positions in g ***
  12262. --- *** enomic DNA at which different sequence a ***
  12263. --- *** lternatives exist in normal individuals ***
  12264. --- *** in some population(s), wherein the least ***
  12265. --- *** frequent variant has an abundance of 1% ***
  12266. --- *** or greater. ***
  12267. --- ************************************************
  12268. ---
  12269. CREATE VIEW snp AS
  12270. SELECT
  12271. feature_id AS snp_id,
  12272. feature.*
  12273. FROM
  12274. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12275. WHERE cvterm.name = 'SNP';
  12276. --- ************************************************
  12277. --- *** relation: reagent ***
  12278. --- *** relation type: VIEW ***
  12279. --- *** ***
  12280. --- *** A sequence used in experiment. ***
  12281. --- ************************************************
  12282. ---
  12283. CREATE VIEW reagent AS
  12284. SELECT
  12285. feature_id AS reagent_id,
  12286. feature.*
  12287. FROM
  12288. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12289. 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';
  12290. --- ************************************************
  12291. --- *** relation: oligo ***
  12292. --- *** relation type: VIEW ***
  12293. --- *** ***
  12294. --- *** A short oligonucleotide sequence, of len ***
  12295. --- *** gth on the order of 10's of bases; eithe ***
  12296. --- *** r single or double stranded. ***
  12297. --- ************************************************
  12298. ---
  12299. CREATE VIEW oligo AS
  12300. SELECT
  12301. feature_id AS oligo_id,
  12302. feature.*
  12303. FROM
  12304. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12305. 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';
  12306. --- ************************************************
  12307. --- *** relation: gene_with_stop_codon_read_through ***
  12308. --- *** relation type: VIEW ***
  12309. --- *** ***
  12310. --- *** A gene that encodes a transcript with st ***
  12311. --- *** op codon readthrough. ***
  12312. --- ************************************************
  12313. ---
  12314. CREATE VIEW gene_with_stop_codon_read_through AS
  12315. SELECT
  12316. feature_id AS gene_with_stop_codon_read_through_id,
  12317. feature.*
  12318. FROM
  12319. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12320. 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';
  12321. --- ************************************************
  12322. --- *** relation: gene_with_stop_codon_redefined_as_pyrrolysine ***
  12323. --- *** relation type: VIEW ***
  12324. --- *** ***
  12325. --- *** A gene encoding an mRNA that has the sto ***
  12326. --- *** p codon redefined as pyrrolysine. ***
  12327. --- ************************************************
  12328. ---
  12329. CREATE VIEW gene_with_stop_codon_redefined_as_pyrrolysine AS
  12330. SELECT
  12331. feature_id AS gene_with_stop_codon_redefined_as_pyrrolysine_id,
  12332. feature.*
  12333. FROM
  12334. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12335. WHERE cvterm.name = 'gene_with_stop_codon_redefined_as_pyrrolysine';
  12336. --- ************************************************
  12337. --- *** relation: junction ***
  12338. --- *** relation type: VIEW ***
  12339. --- *** ***
  12340. --- *** A sequence_feature with an extent of zer ***
  12341. --- *** o. ***
  12342. --- ************************************************
  12343. ---
  12344. CREATE VIEW junction AS
  12345. SELECT
  12346. feature_id AS junction_id,
  12347. feature.*
  12348. FROM
  12349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12350. 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';
  12351. --- ************************************************
  12352. --- *** relation: remark ***
  12353. --- *** relation type: VIEW ***
  12354. --- *** ***
  12355. --- *** A comment about the sequence. ***
  12356. --- ************************************************
  12357. ---
  12358. CREATE VIEW remark AS
  12359. SELECT
  12360. feature_id AS remark_id,
  12361. feature.*
  12362. FROM
  12363. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12364. 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';
  12365. --- ************************************************
  12366. --- *** relation: possible_base_call_error ***
  12367. --- *** relation type: VIEW ***
  12368. --- *** ***
  12369. --- *** A region of sequence where the validity ***
  12370. --- *** of the base calling is questionable. ***
  12371. --- ************************************************
  12372. ---
  12373. CREATE VIEW possible_base_call_error AS
  12374. SELECT
  12375. feature_id AS possible_base_call_error_id,
  12376. feature.*
  12377. FROM
  12378. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12379. WHERE cvterm.name = 'possible_base_call_error';
  12380. --- ************************************************
  12381. --- *** relation: possible_assembly_error ***
  12382. --- *** relation type: VIEW ***
  12383. --- *** ***
  12384. --- *** A region of sequence where there may hav ***
  12385. --- *** e been an error in the assembly. ***
  12386. --- ************************************************
  12387. ---
  12388. CREATE VIEW possible_assembly_error AS
  12389. SELECT
  12390. feature_id AS possible_assembly_error_id,
  12391. feature.*
  12392. FROM
  12393. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12394. WHERE cvterm.name = 'possible_assembly_error';
  12395. --- ************************************************
  12396. --- *** relation: experimental_result_region ***
  12397. --- *** relation type: VIEW ***
  12398. --- *** ***
  12399. --- *** A region of sequence implicated in an ex ***
  12400. --- *** perimental result. ***
  12401. --- ************************************************
  12402. ---
  12403. CREATE VIEW experimental_result_region AS
  12404. SELECT
  12405. feature_id AS experimental_result_region_id,
  12406. feature.*
  12407. FROM
  12408. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12409. WHERE cvterm.name = 'overlapping_feature_set' OR cvterm.name = 'no_output' OR cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'experimental_result_region';
  12410. --- ************************************************
  12411. --- *** relation: gene ***
  12412. --- *** relation type: VIEW ***
  12413. --- *** ***
  12414. --- *** A region (or regions) that includes all ***
  12415. --- *** of the sequence elements necessary to en ***
  12416. --- *** code a functional transcript. A gene may ***
  12417. --- *** include regulatory regions, transcribed ***
  12418. --- *** regions and/or other functional sequenc ***
  12419. --- *** e regions. ***
  12420. --- ************************************************
  12421. ---
  12422. CREATE VIEW gene AS
  12423. SELECT
  12424. feature_id AS gene_id,
  12425. feature.*
  12426. FROM
  12427. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12428. 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';
  12429. --- ************************************************
  12430. --- *** relation: tandem_repeat ***
  12431. --- *** relation type: VIEW ***
  12432. --- *** ***
  12433. --- *** Two or more adjcent copies of a region ( ***
  12434. --- *** of length greater than 1). ***
  12435. --- ************************************************
  12436. ---
  12437. CREATE VIEW tandem_repeat AS
  12438. SELECT
  12439. feature_id AS tandem_repeat_id,
  12440. feature.*
  12441. FROM
  12442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12443. 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';
  12444. --- ************************************************
  12445. --- *** relation: trans_splice_acceptor_site ***
  12446. --- *** relation type: VIEW ***
  12447. --- *** ***
  12448. --- *** The 3' splice site of the acceptor prima ***
  12449. --- *** ry transcript. ***
  12450. --- ************************************************
  12451. ---
  12452. CREATE VIEW trans_splice_acceptor_site AS
  12453. SELECT
  12454. feature_id AS trans_splice_acceptor_site_id,
  12455. feature.*
  12456. FROM
  12457. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12458. 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';
  12459. --- ************************************************
  12460. --- *** relation: trans_splice_donor_site ***
  12461. --- *** relation type: VIEW ***
  12462. --- *** ***
  12463. --- *** The 5' five prime splice site region of ***
  12464. --- *** the donor RNA. ***
  12465. --- ************************************************
  12466. ---
  12467. CREATE VIEW trans_splice_donor_site AS
  12468. SELECT
  12469. feature_id AS trans_splice_donor_site_id,
  12470. feature.*
  12471. FROM
  12472. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12473. WHERE cvterm.name = 'trans_splice_donor_site';
  12474. --- ************************************************
  12475. --- *** relation: sl1_acceptor_site ***
  12476. --- *** relation type: VIEW ***
  12477. --- *** ***
  12478. --- *** A trans_splicing_acceptor_site which app ***
  12479. --- *** ends the 22nt SL1 RNA leader sequence to ***
  12480. --- *** the 5' end of most mRNAs. ***
  12481. --- ************************************************
  12482. ---
  12483. CREATE VIEW sl1_acceptor_site AS
  12484. SELECT
  12485. feature_id AS sl1_acceptor_site_id,
  12486. feature.*
  12487. FROM
  12488. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12489. WHERE cvterm.name = 'SL1_acceptor_site';
  12490. --- ************************************************
  12491. --- *** relation: sl2_acceptor_site ***
  12492. --- *** relation type: VIEW ***
  12493. --- *** ***
  12494. --- *** A trans_splicing_acceptor_site which app ***
  12495. --- *** ends the 22nt SL2 RNA leader sequence to ***
  12496. --- *** the 5' end of mRNAs. SL2 acceptor sites ***
  12497. --- *** occur in genes in internal segments of ***
  12498. --- *** polycistronic transcripts. ***
  12499. --- ************************************************
  12500. ---
  12501. CREATE VIEW sl2_acceptor_site AS
  12502. SELECT
  12503. feature_id AS sl2_acceptor_site_id,
  12504. feature.*
  12505. FROM
  12506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12507. 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';
  12508. --- ************************************************
  12509. --- *** relation: gene_with_stop_codon_redefined_as_selenocysteine ***
  12510. --- *** relation type: VIEW ***
  12511. --- *** ***
  12512. --- *** A gene encoding an mRNA that has the sto ***
  12513. --- *** p codon redefined as selenocysteine. ***
  12514. --- ************************************************
  12515. ---
  12516. CREATE VIEW gene_with_stop_codon_redefined_as_selenocysteine AS
  12517. SELECT
  12518. feature_id AS gene_with_stop_codon_redefined_as_selenocysteine_id,
  12519. feature.*
  12520. FROM
  12521. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12522. WHERE cvterm.name = 'gene_with_stop_codon_redefined_as_selenocysteine';
  12523. --- ************************************************
  12524. --- *** relation: gene_with_mrna_recoded_by_translational_bypass ***
  12525. --- *** relation type: VIEW ***
  12526. --- *** ***
  12527. --- *** A gene with mRNA recoded by translationa ***
  12528. --- *** l bypass. ***
  12529. --- ************************************************
  12530. ---
  12531. CREATE VIEW gene_with_mrna_recoded_by_translational_bypass AS
  12532. SELECT
  12533. feature_id AS gene_with_mrna_recoded_by_translational_bypass_id,
  12534. feature.*
  12535. FROM
  12536. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12537. WHERE cvterm.name = 'gene_with_mRNA_recoded_by_translational_bypass';
  12538. --- ************************************************
  12539. --- *** relation: gene_with_transcript_with_translational_frameshift ***
  12540. --- *** relation type: VIEW ***
  12541. --- *** ***
  12542. --- *** A gene encoding a transcript that has a ***
  12543. --- *** translational frameshift. ***
  12544. --- ************************************************
  12545. ---
  12546. CREATE VIEW gene_with_transcript_with_translational_frameshift AS
  12547. SELECT
  12548. feature_id AS gene_with_transcript_with_translational_frameshift_id,
  12549. feature.*
  12550. FROM
  12551. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12552. WHERE cvterm.name = 'gene_with_transcript_with_translational_frameshift';
  12553. --- ************************************************
  12554. --- *** relation: dna_motif ***
  12555. --- *** relation type: VIEW ***
  12556. --- *** ***
  12557. --- *** A motif that is active in the DNA form o ***
  12558. --- *** f the sequence. ***
  12559. --- ************************************************
  12560. ---
  12561. CREATE VIEW dna_motif AS
  12562. SELECT
  12563. feature_id AS dna_motif_id,
  12564. feature.*
  12565. FROM
  12566. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12567. 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';
  12568. --- ************************************************
  12569. --- *** relation: nucleotide_motif ***
  12570. --- *** relation type: VIEW ***
  12571. --- *** ***
  12572. --- *** A region of nucleotide sequence correspo ***
  12573. --- *** nding to a known motif. ***
  12574. --- ************************************************
  12575. ---
  12576. CREATE VIEW nucleotide_motif AS
  12577. SELECT
  12578. feature_id AS nucleotide_motif_id,
  12579. feature.*
  12580. FROM
  12581. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12582. 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';
  12583. --- ************************************************
  12584. --- *** relation: rna_motif ***
  12585. --- *** relation type: VIEW ***
  12586. --- *** ***
  12587. --- *** A motif that is active in RNA sequence. ***
  12588. --- ************************************************
  12589. ---
  12590. CREATE VIEW rna_motif AS
  12591. SELECT
  12592. feature_id AS rna_motif_id,
  12593. feature.*
  12594. FROM
  12595. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12596. 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';
  12597. --- ************************************************
  12598. --- *** relation: dicistronic_mrna ***
  12599. --- *** relation type: VIEW ***
  12600. --- *** ***
  12601. --- *** An mRNA that has the quality dicistronic ***
  12602. --- *** . ***
  12603. --- ************************************************
  12604. ---
  12605. CREATE VIEW dicistronic_mrna AS
  12606. SELECT
  12607. feature_id AS dicistronic_mrna_id,
  12608. feature.*
  12609. FROM
  12610. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12611. WHERE cvterm.name = 'dicistronic_mRNA';
  12612. --- ************************************************
  12613. --- *** relation: reading_frame ***
  12614. --- *** relation type: VIEW ***
  12615. --- *** ***
  12616. --- *** A nucleic acid sequence that when read a ***
  12617. --- *** s sequential triplets, has the potential ***
  12618. --- *** of encoding a sequential string of amin ***
  12619. --- *** o acids. It need not contain the start o ***
  12620. --- *** r stop codon. ***
  12621. --- ************************************************
  12622. ---
  12623. CREATE VIEW reading_frame AS
  12624. SELECT
  12625. feature_id AS reading_frame_id,
  12626. feature.*
  12627. FROM
  12628. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12629. 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';
  12630. --- ************************************************
  12631. --- *** relation: blocked_reading_frame ***
  12632. --- *** relation type: VIEW ***
  12633. --- *** ***
  12634. --- *** A reading_frame that is interrupted by o ***
  12635. --- *** ne or more stop codons; usually identifi ***
  12636. --- *** ed through intergenomic sequence compari ***
  12637. --- *** sons. ***
  12638. --- ************************************************
  12639. ---
  12640. CREATE VIEW blocked_reading_frame AS
  12641. SELECT
  12642. feature_id AS blocked_reading_frame_id,
  12643. feature.*
  12644. FROM
  12645. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12646. WHERE cvterm.name = 'blocked_reading_frame';
  12647. --- ************************************************
  12648. --- *** relation: ultracontig ***
  12649. --- *** relation type: VIEW ***
  12650. --- *** ***
  12651. --- *** An ordered and oriented set of scaffolds ***
  12652. --- *** based on somewhat weaker sets of infere ***
  12653. --- *** ntial evidence such as one set of mate p ***
  12654. --- *** air reads together with supporting evide ***
  12655. --- *** nce from ESTs or location of markers fro ***
  12656. --- *** m SNP or microsatellite maps, or cytogen ***
  12657. --- *** etic localization of contained markers. ***
  12658. --- ************************************************
  12659. ---
  12660. CREATE VIEW ultracontig AS
  12661. SELECT
  12662. feature_id AS ultracontig_id,
  12663. feature.*
  12664. FROM
  12665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12666. WHERE cvterm.name = 'ultracontig';
  12667. --- ************************************************
  12668. --- *** relation: foreign_transposable_element ***
  12669. --- *** relation type: VIEW ***
  12670. --- *** ***
  12671. --- *** A transposable element that is foreign. ***
  12672. --- ************************************************
  12673. ---
  12674. CREATE VIEW foreign_transposable_element AS
  12675. SELECT
  12676. feature_id AS foreign_transposable_element_id,
  12677. feature.*
  12678. FROM
  12679. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12680. WHERE cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'foreign_transposable_element';
  12681. --- ************************************************
  12682. --- *** relation: gene_with_dicistronic_primary_transcript ***
  12683. --- *** relation type: VIEW ***
  12684. --- *** ***
  12685. --- *** A gene that encodes a dicistronic primar ***
  12686. --- *** y transcript. ***
  12687. --- ************************************************
  12688. ---
  12689. CREATE VIEW gene_with_dicistronic_primary_transcript AS
  12690. SELECT
  12691. feature_id AS gene_with_dicistronic_primary_transcript_id,
  12692. feature.*
  12693. FROM
  12694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12695. WHERE cvterm.name = 'gene_with_dicistronic_primary_transcript';
  12696. --- ************************************************
  12697. --- *** relation: gene_with_dicistronic_mrna ***
  12698. --- *** relation type: VIEW ***
  12699. --- *** ***
  12700. --- *** A gene that encodes a polycistronic mRNA ***
  12701. --- *** . ***
  12702. --- ************************************************
  12703. ---
  12704. CREATE VIEW gene_with_dicistronic_mrna AS
  12705. SELECT
  12706. feature_id AS gene_with_dicistronic_mrna_id,
  12707. feature.*
  12708. FROM
  12709. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12710. WHERE cvterm.name = 'gene_with_dicistronic_mRNA';
  12711. --- ************************************************
  12712. --- *** relation: idna ***
  12713. --- *** relation type: VIEW ***
  12714. --- *** ***
  12715. --- *** Genomic sequence removed from the genome ***
  12716. --- *** , as a normal event, by a process of rec ***
  12717. --- *** ombination. ***
  12718. --- ************************************************
  12719. ---
  12720. CREATE VIEW idna AS
  12721. SELECT
  12722. feature_id AS idna_id,
  12723. feature.*
  12724. FROM
  12725. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12726. WHERE cvterm.name = 'iDNA';
  12727. --- ************************************************
  12728. --- *** relation: orit ***
  12729. --- *** relation type: VIEW ***
  12730. --- *** ***
  12731. --- *** A region of a DNA molecule where transfe ***
  12732. --- *** r is initiated during the process of con ***
  12733. --- *** jugation or mobilization. ***
  12734. --- ************************************************
  12735. ---
  12736. CREATE VIEW orit AS
  12737. SELECT
  12738. feature_id AS orit_id,
  12739. feature.*
  12740. FROM
  12741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12742. WHERE cvterm.name = 'oriT';
  12743. --- ************************************************
  12744. --- *** relation: transit_peptide ***
  12745. --- *** relation type: VIEW ***
  12746. --- *** ***
  12747. --- *** The transit_peptide is a short region at ***
  12748. --- *** the N-terminus of the peptide that dire ***
  12749. --- *** cts the protein to an organelle (chlorop ***
  12750. --- *** last, mitochondrion, microbody or cyanel ***
  12751. --- *** le). ***
  12752. --- ************************************************
  12753. ---
  12754. CREATE VIEW transit_peptide AS
  12755. SELECT
  12756. feature_id AS transit_peptide_id,
  12757. feature.*
  12758. FROM
  12759. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12760. WHERE cvterm.name = 'transit_peptide';
  12761. --- ************************************************
  12762. --- *** relation: repeat_unit ***
  12763. --- *** relation type: VIEW ***
  12764. --- *** ***
  12765. --- *** The simplest repeated component of a rep ***
  12766. --- *** eat region. A single repeat. ***
  12767. --- ************************************************
  12768. ---
  12769. CREATE VIEW repeat_unit AS
  12770. SELECT
  12771. feature_id AS repeat_unit_id,
  12772. feature.*
  12773. FROM
  12774. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12775. WHERE cvterm.name = 'repeat_unit';
  12776. --- ************************************************
  12777. --- *** relation: crm ***
  12778. --- *** relation type: VIEW ***
  12779. --- *** ***
  12780. --- *** A regulatory_region where more than 1 TF ***
  12781. --- *** _binding_site together are regulatorily ***
  12782. --- *** active. ***
  12783. --- ************************************************
  12784. ---
  12785. CREATE VIEW crm AS
  12786. SELECT
  12787. feature_id AS crm_id,
  12788. feature.*
  12789. FROM
  12790. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12791. 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';
  12792. --- ************************************************
  12793. --- *** relation: intein ***
  12794. --- *** relation type: VIEW ***
  12795. --- *** ***
  12796. --- *** A region of a peptide that is able to ex ***
  12797. --- *** cise itself and rejoin the remaining por ***
  12798. --- *** tions with a peptide bond. ***
  12799. --- ************************************************
  12800. ---
  12801. CREATE VIEW intein AS
  12802. SELECT
  12803. feature_id AS intein_id,
  12804. feature.*
  12805. FROM
  12806. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12807. WHERE cvterm.name = 'intein';
  12808. --- ************************************************
  12809. --- *** relation: intein_containing ***
  12810. --- *** relation type: VIEW ***
  12811. --- *** ***
  12812. --- *** An attribute of protein-coding genes whe ***
  12813. --- *** re the initial protein product contains ***
  12814. --- *** an intein. ***
  12815. --- ************************************************
  12816. ---
  12817. CREATE VIEW intein_containing AS
  12818. SELECT
  12819. feature_id AS intein_containing_id,
  12820. feature.*
  12821. FROM
  12822. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12823. WHERE cvterm.name = 'intein_containing';
  12824. --- ************************************************
  12825. --- *** relation: gap ***
  12826. --- *** relation type: VIEW ***
  12827. --- *** ***
  12828. --- *** A gap in the sequence of known length. T ***
  12829. --- *** he unknown bases are filled in with N's. ***
  12830. --- ************************************************
  12831. ---
  12832. CREATE VIEW gap AS
  12833. SELECT
  12834. feature_id AS gap_id,
  12835. feature.*
  12836. FROM
  12837. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12838. WHERE cvterm.name = 'gap';
  12839. --- ************************************************
  12840. --- *** relation: fragmentary ***
  12841. --- *** relation type: VIEW ***
  12842. --- *** ***
  12843. --- *** An attribute to describe a feature that ***
  12844. --- *** is incomplete. ***
  12845. --- ************************************************
  12846. ---
  12847. CREATE VIEW fragmentary AS
  12848. SELECT
  12849. feature_id AS fragmentary_id,
  12850. feature.*
  12851. FROM
  12852. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12853. WHERE cvterm.name = 'fragmentary';
  12854. --- ************************************************
  12855. --- *** relation: predicted ***
  12856. --- *** relation type: VIEW ***
  12857. --- *** ***
  12858. --- *** An attribute describing an unverified re ***
  12859. --- *** gion. ***
  12860. --- ************************************************
  12861. ---
  12862. CREATE VIEW predicted AS
  12863. SELECT
  12864. feature_id AS predicted_id,
  12865. feature.*
  12866. FROM
  12867. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12868. 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';
  12869. --- ************************************************
  12870. --- *** relation: feature_attribute ***
  12871. --- *** relation type: VIEW ***
  12872. --- *** ***
  12873. --- *** An attribute describing a located_sequen ***
  12874. --- *** ce_feature. ***
  12875. --- ************************************************
  12876. ---
  12877. CREATE VIEW feature_attribute AS
  12878. SELECT
  12879. feature_id AS feature_attribute_id,
  12880. feature.*
  12881. FROM
  12882. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12883. 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';
  12884. --- ************************************************
  12885. --- *** relation: exemplar_mrna ***
  12886. --- *** relation type: VIEW ***
  12887. --- *** ***
  12888. --- *** An exemplar is a representative cDNA seq ***
  12889. --- *** uence for each gene. The exemplar approa ***
  12890. --- *** ch is a method that usually involves som ***
  12891. --- *** e initial clustering into gene groups an ***
  12892. --- *** d the subsequent selection of a represen ***
  12893. --- *** tative from each gene group. ***
  12894. --- ************************************************
  12895. ---
  12896. CREATE VIEW exemplar_mrna AS
  12897. SELECT
  12898. feature_id AS exemplar_mrna_id,
  12899. feature.*
  12900. FROM
  12901. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12902. WHERE cvterm.name = 'exemplar_mRNA';
  12903. --- ************************************************
  12904. --- *** relation: sequence_location ***
  12905. --- *** relation type: VIEW ***
  12906. --- *** ***
  12907. --- ************************************************
  12908. ---
  12909. CREATE VIEW sequence_location AS
  12910. SELECT
  12911. feature_id AS sequence_location_id,
  12912. feature.*
  12913. FROM
  12914. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12915. 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';
  12916. --- ************************************************
  12917. --- *** relation: organelle_sequence ***
  12918. --- *** relation type: VIEW ***
  12919. --- *** ***
  12920. --- ************************************************
  12921. ---
  12922. CREATE VIEW organelle_sequence AS
  12923. SELECT
  12924. feature_id AS organelle_sequence_id,
  12925. feature.*
  12926. FROM
  12927. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12928. 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';
  12929. --- ************************************************
  12930. --- *** relation: mitochondrial_sequence ***
  12931. --- *** relation type: VIEW ***
  12932. --- *** ***
  12933. --- ************************************************
  12934. ---
  12935. CREATE VIEW mitochondrial_sequence AS
  12936. SELECT
  12937. feature_id AS mitochondrial_sequence_id,
  12938. feature.*
  12939. FROM
  12940. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12941. WHERE cvterm.name = 'mitochondrial_DNA' OR cvterm.name = 'mitochondrial_sequence';
  12942. --- ************************************************
  12943. --- *** relation: nuclear_sequence ***
  12944. --- *** relation type: VIEW ***
  12945. --- *** ***
  12946. --- ************************************************
  12947. ---
  12948. CREATE VIEW nuclear_sequence AS
  12949. SELECT
  12950. feature_id AS nuclear_sequence_id,
  12951. feature.*
  12952. FROM
  12953. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12954. WHERE cvterm.name = 'nuclear_sequence';
  12955. --- ************************************************
  12956. --- *** relation: nucleomorphic_sequence ***
  12957. --- *** relation type: VIEW ***
  12958. --- *** ***
  12959. --- ************************************************
  12960. ---
  12961. CREATE VIEW nucleomorphic_sequence AS
  12962. SELECT
  12963. feature_id AS nucleomorphic_sequence_id,
  12964. feature.*
  12965. FROM
  12966. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12967. WHERE cvterm.name = 'nucleomorphic_sequence';
  12968. --- ************************************************
  12969. --- *** relation: plastid_sequence ***
  12970. --- *** relation type: VIEW ***
  12971. --- *** ***
  12972. --- ************************************************
  12973. ---
  12974. CREATE VIEW plastid_sequence AS
  12975. SELECT
  12976. feature_id AS plastid_sequence_id,
  12977. feature.*
  12978. FROM
  12979. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12980. 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';
  12981. --- ************************************************
  12982. --- *** relation: kinetoplast ***
  12983. --- *** relation type: VIEW ***
  12984. --- *** ***
  12985. --- *** A kinetoplast is an interlocked network ***
  12986. --- *** of thousands of minicircles and tens of ***
  12987. --- *** maxi circles, located near the base of t ***
  12988. --- *** he flagellum of some protozoan species. ***
  12989. --- ************************************************
  12990. ---
  12991. CREATE VIEW kinetoplast AS
  12992. SELECT
  12993. feature_id AS kinetoplast_id,
  12994. feature.*
  12995. FROM
  12996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  12997. WHERE cvterm.name = 'kinetoplast';
  12998. --- ************************************************
  12999. --- *** relation: maxicircle ***
  13000. --- *** relation type: VIEW ***
  13001. --- *** ***
  13002. --- *** A maxicircle is a replicon, part of a ki ***
  13003. --- *** netoplast, that contains open reading fr ***
  13004. --- *** ames and replicates via a rolling circle ***
  13005. --- *** method. ***
  13006. --- ************************************************
  13007. ---
  13008. CREATE VIEW maxicircle AS
  13009. SELECT
  13010. feature_id AS maxicircle_id,
  13011. feature.*
  13012. FROM
  13013. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13014. WHERE cvterm.name = 'maxicircle';
  13015. --- ************************************************
  13016. --- *** relation: apicoplast_sequence ***
  13017. --- *** relation type: VIEW ***
  13018. --- *** ***
  13019. --- ************************************************
  13020. ---
  13021. CREATE VIEW apicoplast_sequence AS
  13022. SELECT
  13023. feature_id AS apicoplast_sequence_id,
  13024. feature.*
  13025. FROM
  13026. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13027. WHERE cvterm.name = 'apicoplast_sequence';
  13028. --- ************************************************
  13029. --- *** relation: chromoplast_sequence ***
  13030. --- *** relation type: VIEW ***
  13031. --- *** ***
  13032. --- ************************************************
  13033. ---
  13034. CREATE VIEW chromoplast_sequence AS
  13035. SELECT
  13036. feature_id AS chromoplast_sequence_id,
  13037. feature.*
  13038. FROM
  13039. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13040. WHERE cvterm.name = 'chromoplast_sequence';
  13041. --- ************************************************
  13042. --- *** relation: chloroplast_sequence ***
  13043. --- *** relation type: VIEW ***
  13044. --- *** ***
  13045. --- ************************************************
  13046. ---
  13047. CREATE VIEW chloroplast_sequence AS
  13048. SELECT
  13049. feature_id AS chloroplast_sequence_id,
  13050. feature.*
  13051. FROM
  13052. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13053. WHERE cvterm.name = 'chloroplast_DNA' OR cvterm.name = 'chloroplast_sequence';
  13054. --- ************************************************
  13055. --- *** relation: cyanelle_sequence ***
  13056. --- *** relation type: VIEW ***
  13057. --- *** ***
  13058. --- ************************************************
  13059. ---
  13060. CREATE VIEW cyanelle_sequence AS
  13061. SELECT
  13062. feature_id AS cyanelle_sequence_id,
  13063. feature.*
  13064. FROM
  13065. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13066. WHERE cvterm.name = 'cyanelle_sequence';
  13067. --- ************************************************
  13068. --- *** relation: leucoplast_sequence ***
  13069. --- *** relation type: VIEW ***
  13070. --- *** ***
  13071. --- ************************************************
  13072. ---
  13073. CREATE VIEW leucoplast_sequence AS
  13074. SELECT
  13075. feature_id AS leucoplast_sequence_id,
  13076. feature.*
  13077. FROM
  13078. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13079. WHERE cvterm.name = 'leucoplast_sequence';
  13080. --- ************************************************
  13081. --- *** relation: proplastid_sequence ***
  13082. --- *** relation type: VIEW ***
  13083. --- *** ***
  13084. --- ************************************************
  13085. ---
  13086. CREATE VIEW proplastid_sequence AS
  13087. SELECT
  13088. feature_id AS proplastid_sequence_id,
  13089. feature.*
  13090. FROM
  13091. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13092. WHERE cvterm.name = 'proplastid_sequence';
  13093. --- ************************************************
  13094. --- *** relation: plasmid_location ***
  13095. --- *** relation type: VIEW ***
  13096. --- *** ***
  13097. --- ************************************************
  13098. ---
  13099. CREATE VIEW plasmid_location AS
  13100. SELECT
  13101. feature_id AS plasmid_location_id,
  13102. feature.*
  13103. FROM
  13104. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13105. WHERE cvterm.name = 'plasmid_location';
  13106. --- ************************************************
  13107. --- *** relation: amplification_origin ***
  13108. --- *** relation type: VIEW ***
  13109. --- *** ***
  13110. --- *** An origin_of_replication that is used fo ***
  13111. --- *** r the amplification of a chromosomal nuc ***
  13112. --- *** leic acid sequence. ***
  13113. --- ************************************************
  13114. ---
  13115. CREATE VIEW amplification_origin AS
  13116. SELECT
  13117. feature_id AS amplification_origin_id,
  13118. feature.*
  13119. FROM
  13120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13121. WHERE cvterm.name = 'amplification_origin';
  13122. --- ************************************************
  13123. --- *** relation: proviral_location ***
  13124. --- *** relation type: VIEW ***
  13125. --- *** ***
  13126. --- ************************************************
  13127. ---
  13128. CREATE VIEW proviral_location AS
  13129. SELECT
  13130. feature_id AS proviral_location_id,
  13131. feature.*
  13132. FROM
  13133. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13134. WHERE cvterm.name = 'endogenous_retroviral_sequence' OR cvterm.name = 'proviral_location';
  13135. --- ************************************************
  13136. --- *** relation: gene_group_regulatory_region ***
  13137. --- *** relation type: VIEW ***
  13138. --- *** ***
  13139. --- ************************************************
  13140. ---
  13141. CREATE VIEW gene_group_regulatory_region AS
  13142. SELECT
  13143. feature_id AS gene_group_regulatory_region_id,
  13144. feature.*
  13145. FROM
  13146. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13147. 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';
  13148. --- ************************************************
  13149. --- *** relation: clone_insert ***
  13150. --- *** relation type: VIEW ***
  13151. --- *** ***
  13152. --- *** The region of sequence that has been ins ***
  13153. --- *** erted and is being propagated by the clo ***
  13154. --- *** ne. ***
  13155. --- ************************************************
  13156. ---
  13157. CREATE VIEW clone_insert AS
  13158. SELECT
  13159. feature_id AS clone_insert_id,
  13160. feature.*
  13161. FROM
  13162. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13163. 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';
  13164. --- ************************************************
  13165. --- *** relation: lambda_vector ***
  13166. --- *** relation type: VIEW ***
  13167. --- *** ***
  13168. --- *** The lambda bacteriophage is the vector f ***
  13169. --- *** or the linear lambda clone. The genes in ***
  13170. --- *** volved in the lysogenic pathway are remo ***
  13171. --- *** ved from the from the viral DNA. Up to 2 ***
  13172. --- *** 5 kb of foreign DNA can then be inserted ***
  13173. --- *** into the lambda genome. ***
  13174. --- ************************************************
  13175. ---
  13176. CREATE VIEW lambda_vector AS
  13177. SELECT
  13178. feature_id AS lambda_vector_id,
  13179. feature.*
  13180. FROM
  13181. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13182. WHERE cvterm.name = 'lambda_vector';
  13183. --- ************************************************
  13184. --- *** relation: plasmid_vector ***
  13185. --- *** relation type: VIEW ***
  13186. --- *** ***
  13187. --- ************************************************
  13188. ---
  13189. CREATE VIEW plasmid_vector AS
  13190. SELECT
  13191. feature_id AS plasmid_vector_id,
  13192. feature.*
  13193. FROM
  13194. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13195. WHERE cvterm.name = 'plasmid_vector';
  13196. --- ************************************************
  13197. --- *** relation: cdna ***
  13198. --- *** relation type: VIEW ***
  13199. --- *** ***
  13200. --- *** DNA synthesized by reverse transcriptase ***
  13201. --- *** using RNA as a template. ***
  13202. --- ************************************************
  13203. ---
  13204. CREATE VIEW cdna AS
  13205. SELECT
  13206. feature_id AS cdna_id,
  13207. feature.*
  13208. FROM
  13209. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13210. WHERE cvterm.name = 'single_stranded_cDNA' OR cvterm.name = 'double_stranded_cDNA' OR cvterm.name = 'cDNA';
  13211. --- ************************************************
  13212. --- *** relation: single_stranded_cdna ***
  13213. --- *** relation type: VIEW ***
  13214. --- *** ***
  13215. --- ************************************************
  13216. ---
  13217. CREATE VIEW single_stranded_cdna AS
  13218. SELECT
  13219. feature_id AS single_stranded_cdna_id,
  13220. feature.*
  13221. FROM
  13222. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13223. WHERE cvterm.name = 'single_stranded_cDNA';
  13224. --- ************************************************
  13225. --- *** relation: double_stranded_cdna ***
  13226. --- *** relation type: VIEW ***
  13227. --- *** ***
  13228. --- ************************************************
  13229. ---
  13230. CREATE VIEW double_stranded_cdna AS
  13231. SELECT
  13232. feature_id AS double_stranded_cdna_id,
  13233. feature.*
  13234. FROM
  13235. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13236. WHERE cvterm.name = 'double_stranded_cDNA';
  13237. --- ************************************************
  13238. --- *** relation: pyrrolysyl_trna ***
  13239. --- *** relation type: VIEW ***
  13240. --- *** ***
  13241. --- *** A tRNA sequence that has a pyrrolysine a ***
  13242. --- *** nticodon, and a 3' pyrrolysine binding r ***
  13243. --- *** egion. ***
  13244. --- ************************************************
  13245. ---
  13246. CREATE VIEW pyrrolysyl_trna AS
  13247. SELECT
  13248. feature_id AS pyrrolysyl_trna_id,
  13249. feature.*
  13250. FROM
  13251. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13252. WHERE cvterm.name = 'pyrrolysyl_tRNA';
  13253. --- ************************************************
  13254. --- *** relation: episome ***
  13255. --- *** relation type: VIEW ***
  13256. --- *** ***
  13257. --- *** A plasmid that may integrate with a chro ***
  13258. --- *** mosome. ***
  13259. --- ************************************************
  13260. ---
  13261. CREATE VIEW episome AS
  13262. SELECT
  13263. feature_id AS episome_id,
  13264. feature.*
  13265. FROM
  13266. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13267. WHERE cvterm.name = 'engineered_episome' OR cvterm.name = 'episome';
  13268. --- ************************************************
  13269. --- *** relation: tmrna_coding_piece ***
  13270. --- *** relation type: VIEW ***
  13271. --- *** ***
  13272. --- *** The region of a two-piece tmRNA that bea ***
  13273. --- *** rs the reading frame encoding the proteo ***
  13274. --- *** lysis tag. The tmRNA gene undergoes circ ***
  13275. --- *** ular permutation in some groups of bacte ***
  13276. --- *** ria. Processing of the transcripts from ***
  13277. --- *** such a gene leaves the mature tmRNA in t ***
  13278. --- *** wo pieces, base-paired together. ***
  13279. --- ************************************************
  13280. ---
  13281. CREATE VIEW tmrna_coding_piece AS
  13282. SELECT
  13283. feature_id AS tmrna_coding_piece_id,
  13284. feature.*
  13285. FROM
  13286. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13287. WHERE cvterm.name = 'tmRNA_coding_piece';
  13288. --- ************************************************
  13289. --- *** relation: tmrna_acceptor_piece ***
  13290. --- *** relation type: VIEW ***
  13291. --- *** ***
  13292. --- *** The acceptor region of a two-piece tmRNA ***
  13293. --- *** that when mature is charged at its 3' e ***
  13294. --- *** nd with alanine. The tmRNA gene undergoe ***
  13295. --- *** s circular permutation in some groups of ***
  13296. --- *** bacteria; processing of the transcripts ***
  13297. --- *** from such a gene leaves the mature tmRN ***
  13298. --- *** A in two pieces, base-paired together. ***
  13299. --- ************************************************
  13300. ---
  13301. CREATE VIEW tmrna_acceptor_piece AS
  13302. SELECT
  13303. feature_id AS tmrna_acceptor_piece_id,
  13304. feature.*
  13305. FROM
  13306. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13307. WHERE cvterm.name = 'tmRNA_acceptor_piece';
  13308. --- ************************************************
  13309. --- *** relation: qtl ***
  13310. --- *** relation type: VIEW ***
  13311. --- *** ***
  13312. --- *** A quantitative trait locus (QTL) is a po ***
  13313. --- *** lymorphic locus which contains alleles t ***
  13314. --- *** hat differentially affect the expression ***
  13315. --- *** of a continuously distributed phenotypi ***
  13316. --- *** c trait. Usually it is a marker describe ***
  13317. --- *** d by statistical association to quantita ***
  13318. --- *** tive variation in the particular phenoty ***
  13319. --- *** pic trait that is thought to be controll ***
  13320. --- *** ed by the cumulative action of alleles a ***
  13321. --- *** t multiple loci. ***
  13322. --- ************************************************
  13323. ---
  13324. CREATE VIEW qtl AS
  13325. SELECT
  13326. feature_id AS qtl_id,
  13327. feature.*
  13328. FROM
  13329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13330. WHERE cvterm.name = 'QTL';
  13331. --- ************************************************
  13332. --- *** relation: genomic_island ***
  13333. --- *** relation type: VIEW ***
  13334. --- *** ***
  13335. --- *** A genomic island is an integrated mobile ***
  13336. --- *** genetic element, characterized by size ***
  13337. --- *** (over 10 Kb). It that has features that ***
  13338. --- *** suggest a foreign origin. These can incl ***
  13339. --- *** ude nucleotide distribution (oligonucleo ***
  13340. --- *** tides signature, CG content etc.) that d ***
  13341. --- *** iffers from the bulk of the chromosome a ***
  13342. --- *** nd/or genes suggesting DNA mobility. ***
  13343. --- ************************************************
  13344. ---
  13345. CREATE VIEW genomic_island AS
  13346. SELECT
  13347. feature_id AS genomic_island_id,
  13348. feature.*
  13349. FROM
  13350. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13351. 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';
  13352. --- ************************************************
  13353. --- *** relation: pathogenic_island ***
  13354. --- *** relation type: VIEW ***
  13355. --- *** ***
  13356. --- *** Mobile genetic elements that contribute ***
  13357. --- *** to rapid changes in virulence potential. ***
  13358. --- *** They are present on the genomes of path ***
  13359. --- *** ogenic strains but absent from the genom ***
  13360. --- *** es of non pathogenic members of the same ***
  13361. --- *** or related species. ***
  13362. --- ************************************************
  13363. ---
  13364. CREATE VIEW pathogenic_island AS
  13365. SELECT
  13366. feature_id AS pathogenic_island_id,
  13367. feature.*
  13368. FROM
  13369. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13370. WHERE cvterm.name = 'pathogenic_island';
  13371. --- ************************************************
  13372. --- *** relation: metabolic_island ***
  13373. --- *** relation type: VIEW ***
  13374. --- *** ***
  13375. --- *** A transmissible element containing genes ***
  13376. --- *** involved in metabolism, analogous to th ***
  13377. --- *** e pathogenicity islands of gram negative ***
  13378. --- *** bacteria. ***
  13379. --- ************************************************
  13380. ---
  13381. CREATE VIEW metabolic_island AS
  13382. SELECT
  13383. feature_id AS metabolic_island_id,
  13384. feature.*
  13385. FROM
  13386. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13387. WHERE cvterm.name = 'metabolic_island';
  13388. --- ************************************************
  13389. --- *** relation: adaptive_island ***
  13390. --- *** relation type: VIEW ***
  13391. --- *** ***
  13392. --- *** An adaptive island is a genomic island t ***
  13393. --- *** hat provides an adaptive advantage to th ***
  13394. --- *** e host. ***
  13395. --- ************************************************
  13396. ---
  13397. CREATE VIEW adaptive_island AS
  13398. SELECT
  13399. feature_id AS adaptive_island_id,
  13400. feature.*
  13401. FROM
  13402. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13403. WHERE cvterm.name = 'adaptive_island';
  13404. --- ************************************************
  13405. --- *** relation: symbiosis_island ***
  13406. --- *** relation type: VIEW ***
  13407. --- *** ***
  13408. --- *** A transmissible element containing genes ***
  13409. --- *** involved in symbiosis, analogous to the ***
  13410. --- *** pathogenicity islands of gram negative ***
  13411. --- *** bacteria. ***
  13412. --- ************************************************
  13413. ---
  13414. CREATE VIEW symbiosis_island AS
  13415. SELECT
  13416. feature_id AS symbiosis_island_id,
  13417. feature.*
  13418. FROM
  13419. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13420. WHERE cvterm.name = 'symbiosis_island';
  13421. --- ************************************************
  13422. --- *** relation: pseudogenic_rrna ***
  13423. --- *** relation type: VIEW ***
  13424. --- *** ***
  13425. --- *** A non functional descendent of an rRNA. ***
  13426. --- ************************************************
  13427. ---
  13428. CREATE VIEW pseudogenic_rrna AS
  13429. SELECT
  13430. feature_id AS pseudogenic_rrna_id,
  13431. feature.*
  13432. FROM
  13433. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13434. WHERE cvterm.name = 'pseudogenic_rRNA';
  13435. --- ************************************************
  13436. --- *** relation: pseudogenic_trna ***
  13437. --- *** relation type: VIEW ***
  13438. --- *** ***
  13439. --- *** A non functional descendent of a tRNA. ***
  13440. --- ************************************************
  13441. ---
  13442. CREATE VIEW pseudogenic_trna AS
  13443. SELECT
  13444. feature_id AS pseudogenic_trna_id,
  13445. feature.*
  13446. FROM
  13447. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13448. WHERE cvterm.name = 'pseudogenic_tRNA';
  13449. --- ************************************************
  13450. --- *** relation: engineered_episome ***
  13451. --- *** relation type: VIEW ***
  13452. --- *** ***
  13453. --- *** An episome that is engineered. ***
  13454. --- ************************************************
  13455. ---
  13456. CREATE VIEW engineered_episome AS
  13457. SELECT
  13458. feature_id AS engineered_episome_id,
  13459. feature.*
  13460. FROM
  13461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13462. WHERE cvterm.name = 'engineered_episome';
  13463. --- ************************************************
  13464. --- *** relation: transgenic ***
  13465. --- *** relation type: VIEW ***
  13466. --- *** ***
  13467. --- *** Attribute describing sequence that has b ***
  13468. --- *** een integrated with foreign sequence. ***
  13469. --- ************************************************
  13470. ---
  13471. CREATE VIEW transgenic AS
  13472. SELECT
  13473. feature_id AS transgenic_id,
  13474. feature.*
  13475. FROM
  13476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13477. WHERE cvterm.name = 'transgenic';
  13478. --- ************************************************
  13479. --- *** relation: so_natural ***
  13480. --- *** relation type: VIEW ***
  13481. --- *** ***
  13482. --- *** An attribute describing a feature that o ***
  13483. --- *** ccurs in nature. ***
  13484. --- ************************************************
  13485. ---
  13486. CREATE VIEW so_natural AS
  13487. SELECT
  13488. feature_id AS so_natural_id,
  13489. feature.*
  13490. FROM
  13491. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13492. WHERE cvterm.name = 'natural';
  13493. --- ************************************************
  13494. --- *** relation: engineered ***
  13495. --- *** relation type: VIEW ***
  13496. --- *** ***
  13497. --- *** An attribute to describe a region that w ***
  13498. --- *** as modified in vitro. ***
  13499. --- ************************************************
  13500. ---
  13501. CREATE VIEW engineered AS
  13502. SELECT
  13503. feature_id AS engineered_id,
  13504. feature.*
  13505. FROM
  13506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13507. WHERE cvterm.name = 'engineered';
  13508. --- ************************************************
  13509. --- *** relation: so_foreign ***
  13510. --- *** relation type: VIEW ***
  13511. --- *** ***
  13512. --- *** An attribute to describe a region from a ***
  13513. --- *** nother species. ***
  13514. --- ************************************************
  13515. ---
  13516. CREATE VIEW so_foreign AS
  13517. SELECT
  13518. feature_id AS so_foreign_id,
  13519. feature.*
  13520. FROM
  13521. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13522. WHERE cvterm.name = 'foreign';
  13523. --- ************************************************
  13524. --- *** relation: cloned_region ***
  13525. --- *** relation type: VIEW ***
  13526. --- *** ***
  13527. --- ************************************************
  13528. ---
  13529. CREATE VIEW cloned_region AS
  13530. SELECT
  13531. feature_id AS cloned_region_id,
  13532. feature.*
  13533. FROM
  13534. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13535. WHERE cvterm.name = 'cloned_region';
  13536. --- ************************************************
  13537. --- *** relation: validated ***
  13538. --- *** relation type: VIEW ***
  13539. --- *** ***
  13540. --- *** An attribute to describe a feature that ***
  13541. --- *** has been proven. ***
  13542. --- ************************************************
  13543. ---
  13544. CREATE VIEW validated AS
  13545. SELECT
  13546. feature_id AS validated_id,
  13547. feature.*
  13548. FROM
  13549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13550. WHERE cvterm.name = 'experimentally_determined' OR cvterm.name = 'validated';
  13551. --- ************************************************
  13552. --- *** relation: invalidated ***
  13553. --- *** relation type: VIEW ***
  13554. --- *** ***
  13555. --- *** An attribute describing a feature that i ***
  13556. --- *** s invalidated. ***
  13557. --- ************************************************
  13558. ---
  13559. CREATE VIEW invalidated AS
  13560. SELECT
  13561. feature_id AS invalidated_id,
  13562. feature.*
  13563. FROM
  13564. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13565. 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';
  13566. --- ************************************************
  13567. --- *** relation: engineered_rescue_region ***
  13568. --- *** relation type: VIEW ***
  13569. --- *** ***
  13570. --- *** A rescue region that is engineered. ***
  13571. --- ************************************************
  13572. ---
  13573. CREATE VIEW engineered_rescue_region AS
  13574. SELECT
  13575. feature_id AS engineered_rescue_region_id,
  13576. feature.*
  13577. FROM
  13578. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13579. WHERE cvterm.name = 'engineered_rescue_region';
  13580. --- ************************************************
  13581. --- *** relation: rescue_mini_gene ***
  13582. --- *** relation type: VIEW ***
  13583. --- *** ***
  13584. --- *** A mini_gene that rescues. ***
  13585. --- ************************************************
  13586. ---
  13587. CREATE VIEW rescue_mini_gene AS
  13588. SELECT
  13589. feature_id AS rescue_mini_gene_id,
  13590. feature.*
  13591. FROM
  13592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13593. WHERE cvterm.name = 'rescue_mini_gene';
  13594. --- ************************************************
  13595. --- *** relation: transgenic_transposable_element ***
  13596. --- *** relation type: VIEW ***
  13597. --- *** ***
  13598. --- *** TE that has been modified in vitro, incl ***
  13599. --- *** uding insertion of DNA derived from a so ***
  13600. --- *** urce other than the originating TE. ***
  13601. --- ************************************************
  13602. ---
  13603. CREATE VIEW transgenic_transposable_element AS
  13604. SELECT
  13605. feature_id AS transgenic_transposable_element_id,
  13606. feature.*
  13607. FROM
  13608. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13609. WHERE cvterm.name = 'transgenic_transposable_element';
  13610. --- ************************************************
  13611. --- *** relation: natural_transposable_element ***
  13612. --- *** relation type: VIEW ***
  13613. --- *** ***
  13614. --- *** TE that exists (or existed) in nature. ***
  13615. --- ************************************************
  13616. ---
  13617. CREATE VIEW natural_transposable_element AS
  13618. SELECT
  13619. feature_id AS natural_transposable_element_id,
  13620. feature.*
  13621. FROM
  13622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13623. WHERE cvterm.name = 'natural_transposable_element';
  13624. --- ************************************************
  13625. --- *** relation: engineered_transposable_element ***
  13626. --- *** relation type: VIEW ***
  13627. --- *** ***
  13628. --- *** TE that has been modified by manipulatio ***
  13629. --- *** ns in vitro. ***
  13630. --- ************************************************
  13631. ---
  13632. CREATE VIEW engineered_transposable_element AS
  13633. SELECT
  13634. feature_id AS engineered_transposable_element_id,
  13635. feature.*
  13636. FROM
  13637. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13638. WHERE cvterm.name = 'engineered_foreign_transposable_element' OR cvterm.name = 'engineered_transposable_element';
  13639. --- ************************************************
  13640. --- *** relation: engineered_foreign_transposable_element ***
  13641. --- *** relation type: VIEW ***
  13642. --- *** ***
  13643. --- *** A transposable_element that is engineere ***
  13644. --- *** d and foreign. ***
  13645. --- ************************************************
  13646. ---
  13647. CREATE VIEW engineered_foreign_transposable_element AS
  13648. SELECT
  13649. feature_id AS engineered_foreign_transposable_element_id,
  13650. feature.*
  13651. FROM
  13652. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13653. WHERE cvterm.name = 'engineered_foreign_transposable_element';
  13654. --- ************************************************
  13655. --- *** relation: assortment_derived_duplication ***
  13656. --- *** relation type: VIEW ***
  13657. --- *** ***
  13658. --- *** A multi-chromosome duplication aberratio ***
  13659. --- *** n generated by reassortment of other abe ***
  13660. --- *** rration components. ***
  13661. --- ************************************************
  13662. ---
  13663. CREATE VIEW assortment_derived_duplication AS
  13664. SELECT
  13665. feature_id AS assortment_derived_duplication_id,
  13666. feature.*
  13667. FROM
  13668. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13669. WHERE cvterm.name = 'assortment_derived_duplication';
  13670. --- ************************************************
  13671. --- *** relation: assortment_derived_deficiency_plus_duplication ***
  13672. --- *** relation type: VIEW ***
  13673. --- *** ***
  13674. --- *** A multi-chromosome aberration generated ***
  13675. --- *** by reassortment of other aberration comp ***
  13676. --- *** onents; presumed to have a deficiency an ***
  13677. --- *** d a duplication. ***
  13678. --- ************************************************
  13679. ---
  13680. CREATE VIEW assortment_derived_deficiency_plus_duplication AS
  13681. SELECT
  13682. feature_id AS assortment_derived_deficiency_plus_duplication_id,
  13683. feature.*
  13684. FROM
  13685. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13686. WHERE cvterm.name = 'assortment_derived_deficiency_plus_duplication';
  13687. --- ************************************************
  13688. --- *** relation: assortment_derived_deficiency ***
  13689. --- *** relation type: VIEW ***
  13690. --- *** ***
  13691. --- *** A multi-chromosome deficiency aberration ***
  13692. --- *** generated by reassortment of other aber ***
  13693. --- *** ration components. ***
  13694. --- ************************************************
  13695. ---
  13696. CREATE VIEW assortment_derived_deficiency AS
  13697. SELECT
  13698. feature_id AS assortment_derived_deficiency_id,
  13699. feature.*
  13700. FROM
  13701. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13702. WHERE cvterm.name = 'assortment_derived_deficiency';
  13703. --- ************************************************
  13704. --- *** relation: assortment_derived_aneuploid ***
  13705. --- *** relation type: VIEW ***
  13706. --- *** ***
  13707. --- *** A multi-chromosome aberration generated ***
  13708. --- *** by reassortment of other aberration comp ***
  13709. --- *** onents; presumed to have a deficiency or ***
  13710. --- *** a duplication. ***
  13711. --- ************************************************
  13712. ---
  13713. CREATE VIEW assortment_derived_aneuploid AS
  13714. SELECT
  13715. feature_id AS assortment_derived_aneuploid_id,
  13716. feature.*
  13717. FROM
  13718. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13719. WHERE cvterm.name = 'assortment_derived_aneuploid';
  13720. --- ************************************************
  13721. --- *** relation: engineered_region ***
  13722. --- *** relation type: VIEW ***
  13723. --- *** ***
  13724. --- *** A region that is engineered. ***
  13725. --- ************************************************
  13726. ---
  13727. CREATE VIEW engineered_region AS
  13728. SELECT
  13729. feature_id AS engineered_region_id,
  13730. feature.*
  13731. FROM
  13732. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13733. 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';
  13734. --- ************************************************
  13735. --- *** relation: engineered_foreign_region ***
  13736. --- *** relation type: VIEW ***
  13737. --- *** ***
  13738. --- *** A region that is engineered and foreign. ***
  13739. --- ************************************************
  13740. ---
  13741. CREATE VIEW engineered_foreign_region AS
  13742. SELECT
  13743. feature_id AS engineered_foreign_region_id,
  13744. feature.*
  13745. FROM
  13746. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13747. 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';
  13748. --- ************************************************
  13749. --- *** relation: fusion ***
  13750. --- *** relation type: VIEW ***
  13751. --- *** ***
  13752. --- ************************************************
  13753. ---
  13754. CREATE VIEW fusion AS
  13755. SELECT
  13756. feature_id AS fusion_id,
  13757. feature.*
  13758. FROM
  13759. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13760. WHERE cvterm.name = 'fusion';
  13761. --- ************************************************
  13762. --- *** relation: engineered_tag ***
  13763. --- *** relation type: VIEW ***
  13764. --- *** ***
  13765. --- *** A tag that is engineered. ***
  13766. --- ************************************************
  13767. ---
  13768. CREATE VIEW engineered_tag AS
  13769. SELECT
  13770. feature_id AS engineered_tag_id,
  13771. feature.*
  13772. FROM
  13773. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13774. WHERE cvterm.name = 'engineered_tag';
  13775. --- ************************************************
  13776. --- *** relation: validated_cdna_clone ***
  13777. --- *** relation type: VIEW ***
  13778. --- *** ***
  13779. --- *** A cDNA clone that has been validated. ***
  13780. --- ************************************************
  13781. ---
  13782. CREATE VIEW validated_cdna_clone AS
  13783. SELECT
  13784. feature_id AS validated_cdna_clone_id,
  13785. feature.*
  13786. FROM
  13787. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13788. WHERE cvterm.name = 'validated_cDNA_clone';
  13789. --- ************************************************
  13790. --- *** relation: invalidated_cdna_clone ***
  13791. --- *** relation type: VIEW ***
  13792. --- *** ***
  13793. --- *** A cDNA clone that is invalid. ***
  13794. --- ************************************************
  13795. ---
  13796. CREATE VIEW invalidated_cdna_clone AS
  13797. SELECT
  13798. feature_id AS invalidated_cdna_clone_id,
  13799. feature.*
  13800. FROM
  13801. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13802. 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';
  13803. --- ************************************************
  13804. --- *** relation: chimeric_cdna_clone ***
  13805. --- *** relation type: VIEW ***
  13806. --- *** ***
  13807. --- *** A cDNA clone invalidated because it is c ***
  13808. --- *** himeric. ***
  13809. --- ************************************************
  13810. ---
  13811. CREATE VIEW chimeric_cdna_clone AS
  13812. SELECT
  13813. feature_id AS chimeric_cdna_clone_id,
  13814. feature.*
  13815. FROM
  13816. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13817. WHERE cvterm.name = 'chimeric_cDNA_clone';
  13818. --- ************************************************
  13819. --- *** relation: genomically_contaminated_cdna_clone ***
  13820. --- *** relation type: VIEW ***
  13821. --- *** ***
  13822. --- *** A cDNA clone invalidated by genomic cont ***
  13823. --- *** amination. ***
  13824. --- ************************************************
  13825. ---
  13826. CREATE VIEW genomically_contaminated_cdna_clone AS
  13827. SELECT
  13828. feature_id AS genomically_contaminated_cdna_clone_id,
  13829. feature.*
  13830. FROM
  13831. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13832. WHERE cvterm.name = 'genomically_contaminated_cDNA_clone';
  13833. --- ************************************************
  13834. --- *** relation: polya_primed_cdna_clone ***
  13835. --- *** relation type: VIEW ***
  13836. --- *** ***
  13837. --- *** A cDNA clone invalidated by polyA primin ***
  13838. --- *** g. ***
  13839. --- ************************************************
  13840. ---
  13841. CREATE VIEW polya_primed_cdna_clone AS
  13842. SELECT
  13843. feature_id AS polya_primed_cdna_clone_id,
  13844. feature.*
  13845. FROM
  13846. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13847. WHERE cvterm.name = 'polyA_primed_cDNA_clone';
  13848. --- ************************************************
  13849. --- *** relation: partially_processed_cdna_clone ***
  13850. --- *** relation type: VIEW ***
  13851. --- *** ***
  13852. --- *** A cDNA invalidated clone by partial proc ***
  13853. --- *** essing. ***
  13854. --- ************************************************
  13855. ---
  13856. CREATE VIEW partially_processed_cdna_clone AS
  13857. SELECT
  13858. feature_id AS partially_processed_cdna_clone_id,
  13859. feature.*
  13860. FROM
  13861. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13862. WHERE cvterm.name = 'partially_processed_cDNA_clone';
  13863. --- ************************************************
  13864. --- *** relation: rescue ***
  13865. --- *** relation type: VIEW ***
  13866. --- *** ***
  13867. --- *** An attribute describing a region's abili ***
  13868. --- *** ty, when introduced to a mutant organism ***
  13869. --- *** , to re-establish (rescue) a phenotype. ***
  13870. --- ************************************************
  13871. ---
  13872. CREATE VIEW rescue AS
  13873. SELECT
  13874. feature_id AS rescue_id,
  13875. feature.*
  13876. FROM
  13877. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13878. WHERE cvterm.name = 'rescue';
  13879. --- ************************************************
  13880. --- *** relation: mini_gene ***
  13881. --- *** relation type: VIEW ***
  13882. --- *** ***
  13883. --- *** By definition, minigenes are short open- ***
  13884. --- *** reading frames (ORF), usually encoding a ***
  13885. --- *** pproximately 9 to 20 amino acids, which ***
  13886. --- *** are expressed in vivo (as distinct from ***
  13887. --- *** being synthesized as peptide or protein ***
  13888. --- *** ex vivo and subsequently injected). The ***
  13889. --- *** in vivo synthesis confers a distinct adv ***
  13890. --- *** antage: the expressed sequences can ente ***
  13891. --- *** r both antigen presentation pathways, MH ***
  13892. --- *** C I (inducing CD8+ T- cells, which are u ***
  13893. --- *** sually cytotoxic T-lymphocytes (CTL)) an ***
  13894. --- *** d MHC II (inducing CD4+ T-cells, usually ***
  13895. --- *** 'T-helpers' (Th)); and can encounter B- ***
  13896. --- *** cells, inducing antibody responses. Thre ***
  13897. --- *** e main vector approaches have been used ***
  13898. --- *** to deliver minigenes: viral vectors, bac ***
  13899. --- *** terial vectors and plasmid DNA. ***
  13900. --- ************************************************
  13901. ---
  13902. CREATE VIEW mini_gene AS
  13903. SELECT
  13904. feature_id AS mini_gene_id,
  13905. feature.*
  13906. FROM
  13907. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13908. WHERE cvterm.name = 'rescue_mini_gene' OR cvterm.name = 'mini_gene';
  13909. --- ************************************************
  13910. --- *** relation: rescue_gene ***
  13911. --- *** relation type: VIEW ***
  13912. --- *** ***
  13913. --- *** A gene that rescues. ***
  13914. --- ************************************************
  13915. ---
  13916. CREATE VIEW rescue_gene AS
  13917. SELECT
  13918. feature_id AS rescue_gene_id,
  13919. feature.*
  13920. FROM
  13921. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13922. WHERE cvterm.name = 'wild_type_rescue_gene' OR cvterm.name = 'rescue_gene';
  13923. --- ************************************************
  13924. --- *** relation: wild_type ***
  13925. --- *** relation type: VIEW ***
  13926. --- *** ***
  13927. --- *** An attribute describing sequence with th ***
  13928. --- *** e genotype found in nature and/or standa ***
  13929. --- *** rd laboratory stock. ***
  13930. --- ************************************************
  13931. ---
  13932. CREATE VIEW wild_type AS
  13933. SELECT
  13934. feature_id AS wild_type_id,
  13935. feature.*
  13936. FROM
  13937. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13938. WHERE cvterm.name = 'wild_type';
  13939. --- ************************************************
  13940. --- *** relation: wild_type_rescue_gene ***
  13941. --- *** relation type: VIEW ***
  13942. --- *** ***
  13943. --- *** A gene that rescues. ***
  13944. --- ************************************************
  13945. ---
  13946. CREATE VIEW wild_type_rescue_gene AS
  13947. SELECT
  13948. feature_id AS wild_type_rescue_gene_id,
  13949. feature.*
  13950. FROM
  13951. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13952. WHERE cvterm.name = 'wild_type_rescue_gene';
  13953. --- ************************************************
  13954. --- *** relation: mitochondrial_chromosome ***
  13955. --- *** relation type: VIEW ***
  13956. --- *** ***
  13957. --- *** A chromosome originating in a mitochondr ***
  13958. --- *** ia. ***
  13959. --- ************************************************
  13960. ---
  13961. CREATE VIEW mitochondrial_chromosome AS
  13962. SELECT
  13963. feature_id AS mitochondrial_chromosome_id,
  13964. feature.*
  13965. FROM
  13966. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13967. WHERE cvterm.name = 'mitochondrial_chromosome';
  13968. --- ************************************************
  13969. --- *** relation: chloroplast_chromosome ***
  13970. --- *** relation type: VIEW ***
  13971. --- *** ***
  13972. --- *** A chromosome originating in a chloroplas ***
  13973. --- *** t. ***
  13974. --- ************************************************
  13975. ---
  13976. CREATE VIEW chloroplast_chromosome AS
  13977. SELECT
  13978. feature_id AS chloroplast_chromosome_id,
  13979. feature.*
  13980. FROM
  13981. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13982. WHERE cvterm.name = 'chloroplast_chromosome';
  13983. --- ************************************************
  13984. --- *** relation: chromoplast_chromosome ***
  13985. --- *** relation type: VIEW ***
  13986. --- *** ***
  13987. --- *** A chromosome originating in a chromoplas ***
  13988. --- *** t. ***
  13989. --- ************************************************
  13990. ---
  13991. CREATE VIEW chromoplast_chromosome AS
  13992. SELECT
  13993. feature_id AS chromoplast_chromosome_id,
  13994. feature.*
  13995. FROM
  13996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  13997. WHERE cvterm.name = 'chromoplast_chromosome';
  13998. --- ************************************************
  13999. --- *** relation: cyanelle_chromosome ***
  14000. --- *** relation type: VIEW ***
  14001. --- *** ***
  14002. --- *** A chromosome originating in a cyanelle. ***
  14003. --- ************************************************
  14004. ---
  14005. CREATE VIEW cyanelle_chromosome AS
  14006. SELECT
  14007. feature_id AS cyanelle_chromosome_id,
  14008. feature.*
  14009. FROM
  14010. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14011. WHERE cvterm.name = 'cyanelle_chromosome';
  14012. --- ************************************************
  14013. --- *** relation: leucoplast_chromosome ***
  14014. --- *** relation type: VIEW ***
  14015. --- *** ***
  14016. --- *** A chromosome with origin in a leucoplast ***
  14017. --- *** . ***
  14018. --- ************************************************
  14019. ---
  14020. CREATE VIEW leucoplast_chromosome AS
  14021. SELECT
  14022. feature_id AS leucoplast_chromosome_id,
  14023. feature.*
  14024. FROM
  14025. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14026. WHERE cvterm.name = 'leucoplast_chromosome';
  14027. --- ************************************************
  14028. --- *** relation: macronuclear_chromosome ***
  14029. --- *** relation type: VIEW ***
  14030. --- *** ***
  14031. --- *** A chromosome originating in a macronucle ***
  14032. --- *** us. ***
  14033. --- ************************************************
  14034. ---
  14035. CREATE VIEW macronuclear_chromosome AS
  14036. SELECT
  14037. feature_id AS macronuclear_chromosome_id,
  14038. feature.*
  14039. FROM
  14040. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14041. WHERE cvterm.name = 'macronuclear_chromosome';
  14042. --- ************************************************
  14043. --- *** relation: micronuclear_chromosome ***
  14044. --- *** relation type: VIEW ***
  14045. --- *** ***
  14046. --- *** A chromosome originating in a micronucle ***
  14047. --- *** us. ***
  14048. --- ************************************************
  14049. ---
  14050. CREATE VIEW micronuclear_chromosome AS
  14051. SELECT
  14052. feature_id AS micronuclear_chromosome_id,
  14053. feature.*
  14054. FROM
  14055. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14056. WHERE cvterm.name = 'micronuclear_chromosome';
  14057. --- ************************************************
  14058. --- *** relation: nuclear_chromosome ***
  14059. --- *** relation type: VIEW ***
  14060. --- *** ***
  14061. --- *** A chromosome originating in a nucleus. ***
  14062. --- ************************************************
  14063. ---
  14064. CREATE VIEW nuclear_chromosome AS
  14065. SELECT
  14066. feature_id AS nuclear_chromosome_id,
  14067. feature.*
  14068. FROM
  14069. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14070. WHERE cvterm.name = 'nuclear_chromosome';
  14071. --- ************************************************
  14072. --- *** relation: nucleomorphic_chromosome ***
  14073. --- *** relation type: VIEW ***
  14074. --- *** ***
  14075. --- *** A chromosome originating in a nucleomorp ***
  14076. --- *** h. ***
  14077. --- ************************************************
  14078. ---
  14079. CREATE VIEW nucleomorphic_chromosome AS
  14080. SELECT
  14081. feature_id AS nucleomorphic_chromosome_id,
  14082. feature.*
  14083. FROM
  14084. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14085. WHERE cvterm.name = 'nucleomorphic_chromosome';
  14086. --- ************************************************
  14087. --- *** relation: chromosome_part ***
  14088. --- *** relation type: VIEW ***
  14089. --- *** ***
  14090. --- *** A region of a chromosome. ***
  14091. --- ************************************************
  14092. ---
  14093. CREATE VIEW chromosome_part AS
  14094. SELECT
  14095. feature_id AS chromosome_part_id,
  14096. feature.*
  14097. FROM
  14098. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14099. 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';
  14100. --- ************************************************
  14101. --- *** relation: gene_member_region ***
  14102. --- *** relation type: VIEW ***
  14103. --- *** ***
  14104. --- *** A region of a gene. ***
  14105. --- ************************************************
  14106. ---
  14107. CREATE VIEW gene_member_region AS
  14108. SELECT
  14109. feature_id AS gene_member_region_id,
  14110. feature.*
  14111. FROM
  14112. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14113. 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';
  14114. --- ************************************************
  14115. --- *** relation: transcript_region ***
  14116. --- *** relation type: VIEW ***
  14117. --- *** ***
  14118. --- *** A region of a transcript. ***
  14119. --- ************************************************
  14120. ---
  14121. CREATE VIEW transcript_region AS
  14122. SELECT
  14123. feature_id AS transcript_region_id,
  14124. feature.*
  14125. FROM
  14126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14127. 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';
  14128. --- ************************************************
  14129. --- *** relation: mature_transcript_region ***
  14130. --- *** relation type: VIEW ***
  14131. --- *** ***
  14132. --- *** A region of a mature transcript. ***
  14133. --- ************************************************
  14134. ---
  14135. CREATE VIEW mature_transcript_region AS
  14136. SELECT
  14137. feature_id AS mature_transcript_region_id,
  14138. feature.*
  14139. FROM
  14140. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14141. 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';
  14142. --- ************************************************
  14143. --- *** relation: primary_transcript_region ***
  14144. --- *** relation type: VIEW ***
  14145. --- *** ***
  14146. --- *** A part of a primary transcript. ***
  14147. --- ************************************************
  14148. ---
  14149. CREATE VIEW primary_transcript_region AS
  14150. SELECT
  14151. feature_id AS primary_transcript_region_id,
  14152. feature.*
  14153. FROM
  14154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14155. 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';
  14156. --- ************************************************
  14157. --- *** relation: mrna_region ***
  14158. --- *** relation type: VIEW ***
  14159. --- *** ***
  14160. --- *** A region of an mRNA. ***
  14161. --- ************************************************
  14162. ---
  14163. CREATE VIEW mrna_region AS
  14164. SELECT
  14165. feature_id AS mrna_region_id,
  14166. feature.*
  14167. FROM
  14168. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14169. 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';
  14170. --- ************************************************
  14171. --- *** relation: utr_region ***
  14172. --- *** relation type: VIEW ***
  14173. --- *** ***
  14174. --- *** A region of UTR. ***
  14175. --- ************************************************
  14176. ---
  14177. CREATE VIEW utr_region AS
  14178. SELECT
  14179. feature_id AS utr_region_id,
  14180. feature.*
  14181. FROM
  14182. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14183. 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';
  14184. --- ************************************************
  14185. --- *** relation: rrna_primary_transcript_region ***
  14186. --- *** relation type: VIEW ***
  14187. --- *** ***
  14188. --- *** A region of an rRNA primary transcript. ***
  14189. --- ************************************************
  14190. ---
  14191. CREATE VIEW rrna_primary_transcript_region AS
  14192. SELECT
  14193. feature_id AS rrna_primary_transcript_region_id,
  14194. feature.*
  14195. FROM
  14196. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14197. 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';
  14198. --- ************************************************
  14199. --- *** relation: polypeptide_region ***
  14200. --- *** relation type: VIEW ***
  14201. --- *** ***
  14202. --- *** Biological sequence region that can be a ***
  14203. --- *** ssigned to a specific subsequence of a p ***
  14204. --- *** olypeptide. ***
  14205. --- ************************************************
  14206. ---
  14207. CREATE VIEW polypeptide_region AS
  14208. SELECT
  14209. feature_id AS polypeptide_region_id,
  14210. feature.*
  14211. FROM
  14212. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14213. 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';
  14214. --- ************************************************
  14215. --- *** relation: repeat_component ***
  14216. --- *** relation type: VIEW ***
  14217. --- *** ***
  14218. --- *** A region of a repeated sequence. ***
  14219. --- ************************************************
  14220. ---
  14221. CREATE VIEW repeat_component AS
  14222. SELECT
  14223. feature_id AS repeat_component_id,
  14224. feature.*
  14225. FROM
  14226. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14227. 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';
  14228. --- ************************************************
  14229. --- *** relation: spliceosomal_intron_region ***
  14230. --- *** relation type: VIEW ***
  14231. --- *** ***
  14232. --- *** A region within an intron. ***
  14233. --- ************************************************
  14234. ---
  14235. CREATE VIEW spliceosomal_intron_region AS
  14236. SELECT
  14237. feature_id AS spliceosomal_intron_region_id,
  14238. feature.*
  14239. FROM
  14240. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14241. WHERE cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'branch_site' OR cvterm.name = 'polypyrimidine_tract' OR cvterm.name = 'spliceosomal_intron_region';
  14242. --- ************************************************
  14243. --- *** relation: gene_component_region ***
  14244. --- *** relation type: VIEW ***
  14245. --- *** ***
  14246. --- ************************************************
  14247. ---
  14248. CREATE VIEW gene_component_region AS
  14249. SELECT
  14250. feature_id AS gene_component_region_id,
  14251. feature.*
  14252. FROM
  14253. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14254. 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';
  14255. --- ************************************************
  14256. --- *** relation: tmrna_region ***
  14257. --- *** relation type: VIEW ***
  14258. --- *** ***
  14259. --- *** A region of a tmRNA. ***
  14260. --- ************************************************
  14261. ---
  14262. CREATE VIEW tmrna_region AS
  14263. SELECT
  14264. feature_id AS tmrna_region_id,
  14265. feature.*
  14266. FROM
  14267. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14268. WHERE cvterm.name = 'tmRNA_coding_piece' OR cvterm.name = 'tmRNA_acceptor_piece' OR cvterm.name = 'tmRNA_region';
  14269. --- ************************************************
  14270. --- *** relation: ltr_component ***
  14271. --- *** relation type: VIEW ***
  14272. --- *** ***
  14273. --- ************************************************
  14274. ---
  14275. CREATE VIEW ltr_component AS
  14276. SELECT
  14277. feature_id AS ltr_component_id,
  14278. feature.*
  14279. FROM
  14280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14281. 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';
  14282. --- ************************************************
  14283. --- *** relation: three_prime_ltr_component ***
  14284. --- *** relation type: VIEW ***
  14285. --- *** ***
  14286. --- ************************************************
  14287. ---
  14288. CREATE VIEW three_prime_ltr_component AS
  14289. SELECT
  14290. feature_id AS three_prime_ltr_component_id,
  14291. feature.*
  14292. FROM
  14293. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14294. 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';
  14295. --- ************************************************
  14296. --- *** relation: five_prime_ltr_component ***
  14297. --- *** relation type: VIEW ***
  14298. --- *** ***
  14299. --- ************************************************
  14300. ---
  14301. CREATE VIEW five_prime_ltr_component AS
  14302. SELECT
  14303. feature_id AS five_prime_ltr_component_id,
  14304. feature.*
  14305. FROM
  14306. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14307. 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';
  14308. --- ************************************************
  14309. --- *** relation: cds_region ***
  14310. --- *** relation type: VIEW ***
  14311. --- *** ***
  14312. --- *** A region of a CDS. ***
  14313. --- ************************************************
  14314. ---
  14315. CREATE VIEW cds_region AS
  14316. SELECT
  14317. feature_id AS cds_region_id,
  14318. feature.*
  14319. FROM
  14320. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14321. 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';
  14322. --- ************************************************
  14323. --- *** relation: exon_region ***
  14324. --- *** relation type: VIEW ***
  14325. --- *** ***
  14326. --- *** A region of an exon. ***
  14327. --- ************************************************
  14328. ---
  14329. CREATE VIEW exon_region AS
  14330. SELECT
  14331. feature_id AS exon_region_id,
  14332. feature.*
  14333. FROM
  14334. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14335. 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';
  14336. --- ************************************************
  14337. --- *** relation: homologous_region ***
  14338. --- *** relation type: VIEW ***
  14339. --- *** ***
  14340. --- *** A region that is homologous to another r ***
  14341. --- *** egion. ***
  14342. --- ************************************************
  14343. ---
  14344. CREATE VIEW homologous_region AS
  14345. SELECT
  14346. feature_id AS homologous_region_id,
  14347. feature.*
  14348. FROM
  14349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14350. WHERE cvterm.name = 'paralogous_region' OR cvterm.name = 'orthologous_region' OR cvterm.name = 'homologous_region';
  14351. --- ************************************************
  14352. --- *** relation: paralogous_region ***
  14353. --- *** relation type: VIEW ***
  14354. --- *** ***
  14355. --- *** A homologous_region that is paralogous t ***
  14356. --- *** o another region. ***
  14357. --- ************************************************
  14358. ---
  14359. CREATE VIEW paralogous_region AS
  14360. SELECT
  14361. feature_id AS paralogous_region_id,
  14362. feature.*
  14363. FROM
  14364. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14365. WHERE cvterm.name = 'paralogous_region';
  14366. --- ************************************************
  14367. --- *** relation: orthologous_region ***
  14368. --- *** relation type: VIEW ***
  14369. --- *** ***
  14370. --- *** A homologous_region that is orthologous ***
  14371. --- *** to another region. ***
  14372. --- ************************************************
  14373. ---
  14374. CREATE VIEW orthologous_region AS
  14375. SELECT
  14376. feature_id AS orthologous_region_id,
  14377. feature.*
  14378. FROM
  14379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14380. WHERE cvterm.name = 'orthologous_region';
  14381. --- ************************************************
  14382. --- *** relation: conserved ***
  14383. --- *** relation type: VIEW ***
  14384. --- *** ***
  14385. --- ************************************************
  14386. ---
  14387. CREATE VIEW conserved AS
  14388. SELECT
  14389. feature_id AS conserved_id,
  14390. feature.*
  14391. FROM
  14392. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14393. WHERE cvterm.name = 'homologous' OR cvterm.name = 'syntenic' OR cvterm.name = 'orthologous' OR cvterm.name = 'paralogous' OR cvterm.name = 'conserved';
  14394. --- ************************************************
  14395. --- *** relation: homologous ***
  14396. --- *** relation type: VIEW ***
  14397. --- *** ***
  14398. --- *** Similarity due to common ancestry. ***
  14399. --- ************************************************
  14400. ---
  14401. CREATE VIEW homologous AS
  14402. SELECT
  14403. feature_id AS homologous_id,
  14404. feature.*
  14405. FROM
  14406. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14407. WHERE cvterm.name = 'orthologous' OR cvterm.name = 'paralogous' OR cvterm.name = 'homologous';
  14408. --- ************************************************
  14409. --- *** relation: orthologous ***
  14410. --- *** relation type: VIEW ***
  14411. --- *** ***
  14412. --- *** An attribute describing a kind of homolo ***
  14413. --- *** gy where divergence occured after a spec ***
  14414. --- *** iation event. ***
  14415. --- ************************************************
  14416. ---
  14417. CREATE VIEW orthologous AS
  14418. SELECT
  14419. feature_id AS orthologous_id,
  14420. feature.*
  14421. FROM
  14422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14423. WHERE cvterm.name = 'orthologous';
  14424. --- ************************************************
  14425. --- *** relation: paralogous ***
  14426. --- *** relation type: VIEW ***
  14427. --- *** ***
  14428. --- *** An attribute describing a kind of homolo ***
  14429. --- *** gy where divergence occurred after a dup ***
  14430. --- *** lication event. ***
  14431. --- ************************************************
  14432. ---
  14433. CREATE VIEW paralogous AS
  14434. SELECT
  14435. feature_id AS paralogous_id,
  14436. feature.*
  14437. FROM
  14438. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14439. WHERE cvterm.name = 'paralogous';
  14440. --- ************************************************
  14441. --- *** relation: syntenic ***
  14442. --- *** relation type: VIEW ***
  14443. --- *** ***
  14444. --- *** Attribute describing sequence regions oc ***
  14445. --- *** curring in same order on chromosome of d ***
  14446. --- *** ifferent species. ***
  14447. --- ************************************************
  14448. ---
  14449. CREATE VIEW syntenic AS
  14450. SELECT
  14451. feature_id AS syntenic_id,
  14452. feature.*
  14453. FROM
  14454. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14455. WHERE cvterm.name = 'syntenic';
  14456. --- ************************************************
  14457. --- *** relation: capped_primary_transcript ***
  14458. --- *** relation type: VIEW ***
  14459. --- *** ***
  14460. --- *** A primary transcript that is capped. ***
  14461. --- ************************************************
  14462. ---
  14463. CREATE VIEW capped_primary_transcript AS
  14464. SELECT
  14465. feature_id AS capped_primary_transcript_id,
  14466. feature.*
  14467. FROM
  14468. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14469. WHERE cvterm.name = 'capped_primary_transcript';
  14470. --- ************************************************
  14471. --- *** relation: capped_mrna ***
  14472. --- *** relation type: VIEW ***
  14473. --- *** ***
  14474. --- *** An mRNA that is capped. ***
  14475. --- ************************************************
  14476. ---
  14477. CREATE VIEW capped_mrna AS
  14478. SELECT
  14479. feature_id AS capped_mrna_id,
  14480. feature.*
  14481. FROM
  14482. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14483. WHERE cvterm.name = 'capped_mRNA';
  14484. --- ************************************************
  14485. --- *** relation: mrna_attribute ***
  14486. --- *** relation type: VIEW ***
  14487. --- *** ***
  14488. --- *** An attribute describing an mRNA feature. ***
  14489. --- ************************************************
  14490. ---
  14491. CREATE VIEW mrna_attribute AS
  14492. SELECT
  14493. feature_id AS mrna_attribute_id,
  14494. feature.*
  14495. FROM
  14496. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14497. 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';
  14498. --- ************************************************
  14499. --- *** relation: exemplar ***
  14500. --- *** relation type: VIEW ***
  14501. --- *** ***
  14502. --- *** An attribute describing a sequence is re ***
  14503. --- *** presentative of a class of similar seque ***
  14504. --- *** nces. ***
  14505. --- ************************************************
  14506. ---
  14507. CREATE VIEW exemplar AS
  14508. SELECT
  14509. feature_id AS exemplar_id,
  14510. feature.*
  14511. FROM
  14512. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14513. WHERE cvterm.name = 'exemplar';
  14514. --- ************************************************
  14515. --- *** relation: frameshift ***
  14516. --- *** relation type: VIEW ***
  14517. --- *** ***
  14518. --- *** An attribute describing a sequence that ***
  14519. --- *** contains a mutation involving the deleti ***
  14520. --- *** on or insertion of one or more bases, wh ***
  14521. --- *** ere this number is not divisible by 3. ***
  14522. --- ************************************************
  14523. ---
  14524. CREATE VIEW frameshift AS
  14525. SELECT
  14526. feature_id AS frameshift_id,
  14527. feature.*
  14528. FROM
  14529. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14530. 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';
  14531. --- ************************************************
  14532. --- *** relation: minus_1_frameshift ***
  14533. --- *** relation type: VIEW ***
  14534. --- *** ***
  14535. --- *** A frameshift caused by deleting one base ***
  14536. --- *** . ***
  14537. --- ************************************************
  14538. ---
  14539. CREATE VIEW minus_1_frameshift AS
  14540. SELECT
  14541. feature_id AS minus_1_frameshift_id,
  14542. feature.*
  14543. FROM
  14544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14545. WHERE cvterm.name = 'minus_1_frameshift';
  14546. --- ************************************************
  14547. --- *** relation: minus_2_frameshift ***
  14548. --- *** relation type: VIEW ***
  14549. --- *** ***
  14550. --- *** A frameshift caused by deleting two base ***
  14551. --- *** s. ***
  14552. --- ************************************************
  14553. ---
  14554. CREATE VIEW minus_2_frameshift AS
  14555. SELECT
  14556. feature_id AS minus_2_frameshift_id,
  14557. feature.*
  14558. FROM
  14559. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14560. WHERE cvterm.name = 'minus_2_frameshift';
  14561. --- ************************************************
  14562. --- *** relation: plus_1_frameshift ***
  14563. --- *** relation type: VIEW ***
  14564. --- *** ***
  14565. --- *** A frameshift caused by inserting one bas ***
  14566. --- *** e. ***
  14567. --- ************************************************
  14568. ---
  14569. CREATE VIEW plus_1_frameshift AS
  14570. SELECT
  14571. feature_id AS plus_1_frameshift_id,
  14572. feature.*
  14573. FROM
  14574. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14575. WHERE cvterm.name = 'plus_1_frameshift';
  14576. --- ************************************************
  14577. --- *** relation: plus_2_framshift ***
  14578. --- *** relation type: VIEW ***
  14579. --- *** ***
  14580. --- *** A frameshift caused by inserting two bas ***
  14581. --- *** es. ***
  14582. --- ************************************************
  14583. ---
  14584. CREATE VIEW plus_2_framshift AS
  14585. SELECT
  14586. feature_id AS plus_2_framshift_id,
  14587. feature.*
  14588. FROM
  14589. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14590. WHERE cvterm.name = 'plus_2_framshift';
  14591. --- ************************************************
  14592. --- *** relation: trans_spliced ***
  14593. --- *** relation type: VIEW ***
  14594. --- *** ***
  14595. --- *** An attribute describing transcript seque ***
  14596. --- *** nce that is created by splicing exons fr ***
  14597. --- *** om diferent genes. ***
  14598. --- ************************************************
  14599. ---
  14600. CREATE VIEW trans_spliced AS
  14601. SELECT
  14602. feature_id AS trans_spliced_id,
  14603. feature.*
  14604. FROM
  14605. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14606. WHERE cvterm.name = 'trans_spliced';
  14607. --- ************************************************
  14608. --- *** relation: polyadenylated_mrna ***
  14609. --- *** relation type: VIEW ***
  14610. --- *** ***
  14611. --- *** An mRNA that is polyadenylated. ***
  14612. --- ************************************************
  14613. ---
  14614. CREATE VIEW polyadenylated_mrna AS
  14615. SELECT
  14616. feature_id AS polyadenylated_mrna_id,
  14617. feature.*
  14618. FROM
  14619. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14620. WHERE cvterm.name = 'polyadenylated_mRNA';
  14621. --- ************************************************
  14622. --- *** relation: trans_spliced_mrna ***
  14623. --- *** relation type: VIEW ***
  14624. --- *** ***
  14625. --- *** An mRNA that is trans-spliced. ***
  14626. --- ************************************************
  14627. ---
  14628. CREATE VIEW trans_spliced_mrna AS
  14629. SELECT
  14630. feature_id AS trans_spliced_mrna_id,
  14631. feature.*
  14632. FROM
  14633. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14634. WHERE cvterm.name = 'trans_spliced_mRNA';
  14635. --- ************************************************
  14636. --- *** relation: edited_transcript ***
  14637. --- *** relation type: VIEW ***
  14638. --- *** ***
  14639. --- *** A transcript that is edited. ***
  14640. --- ************************************************
  14641. ---
  14642. CREATE VIEW edited_transcript AS
  14643. SELECT
  14644. feature_id AS edited_transcript_id,
  14645. feature.*
  14646. FROM
  14647. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14648. WHERE cvterm.name = 'edited_transcript_by_A_to_I_substitution' OR cvterm.name = 'edited_mRNA' OR cvterm.name = 'edited_transcript';
  14649. --- ************************************************
  14650. --- *** relation: edited_transcript_by_a_to_i_substitution ***
  14651. --- *** relation type: VIEW ***
  14652. --- *** ***
  14653. --- *** A transcript that has been edited by A t ***
  14654. --- *** o I substitution. ***
  14655. --- ************************************************
  14656. ---
  14657. CREATE VIEW edited_transcript_by_a_to_i_substitution AS
  14658. SELECT
  14659. feature_id AS edited_transcript_by_a_to_i_substitution_id,
  14660. feature.*
  14661. FROM
  14662. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14663. WHERE cvterm.name = 'edited_transcript_by_A_to_I_substitution';
  14664. --- ************************************************
  14665. --- *** relation: bound_by_protein ***
  14666. --- *** relation type: VIEW ***
  14667. --- *** ***
  14668. --- *** An attribute describing a sequence that ***
  14669. --- *** is bound by a protein. ***
  14670. --- ************************************************
  14671. ---
  14672. CREATE VIEW bound_by_protein AS
  14673. SELECT
  14674. feature_id AS bound_by_protein_id,
  14675. feature.*
  14676. FROM
  14677. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14678. WHERE cvterm.name = 'bound_by_protein';
  14679. --- ************************************************
  14680. --- *** relation: bound_by_nucleic_acid ***
  14681. --- *** relation type: VIEW ***
  14682. --- *** ***
  14683. --- *** An attribute describing a sequence that ***
  14684. --- *** is bound by a nucleic acid. ***
  14685. --- ************************************************
  14686. ---
  14687. CREATE VIEW bound_by_nucleic_acid AS
  14688. SELECT
  14689. feature_id AS bound_by_nucleic_acid_id,
  14690. feature.*
  14691. FROM
  14692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14693. WHERE cvterm.name = 'bound_by_nucleic_acid';
  14694. --- ************************************************
  14695. --- *** relation: alternatively_spliced ***
  14696. --- *** relation type: VIEW ***
  14697. --- *** ***
  14698. --- *** An attribute describing a situation wher ***
  14699. --- *** e a gene may encode for more than 1 tran ***
  14700. --- *** script. ***
  14701. --- ************************************************
  14702. ---
  14703. CREATE VIEW alternatively_spliced AS
  14704. SELECT
  14705. feature_id AS alternatively_spliced_id,
  14706. feature.*
  14707. FROM
  14708. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14709. WHERE cvterm.name = 'alternatively_spliced';
  14710. --- ************************************************
  14711. --- *** relation: monocistronic ***
  14712. --- *** relation type: VIEW ***
  14713. --- *** ***
  14714. --- *** An attribute describing a sequence that ***
  14715. --- *** contains the code for one gene product. ***
  14716. --- ************************************************
  14717. ---
  14718. CREATE VIEW monocistronic AS
  14719. SELECT
  14720. feature_id AS monocistronic_id,
  14721. feature.*
  14722. FROM
  14723. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14724. WHERE cvterm.name = 'monocistronic';
  14725. --- ************************************************
  14726. --- *** relation: dicistronic ***
  14727. --- *** relation type: VIEW ***
  14728. --- *** ***
  14729. --- *** An attribute describing a sequence that ***
  14730. --- *** contains the code for two gene products. ***
  14731. --- ************************************************
  14732. ---
  14733. CREATE VIEW dicistronic AS
  14734. SELECT
  14735. feature_id AS dicistronic_id,
  14736. feature.*
  14737. FROM
  14738. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14739. WHERE cvterm.name = 'dicistronic';
  14740. --- ************************************************
  14741. --- *** relation: polycistronic ***
  14742. --- *** relation type: VIEW ***
  14743. --- *** ***
  14744. --- *** An attribute describing a sequence that ***
  14745. --- *** contains the code for more than one gene ***
  14746. --- *** product. ***
  14747. --- ************************************************
  14748. ---
  14749. CREATE VIEW polycistronic AS
  14750. SELECT
  14751. feature_id AS polycistronic_id,
  14752. feature.*
  14753. FROM
  14754. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14755. WHERE cvterm.name = 'dicistronic' OR cvterm.name = 'polycistronic';
  14756. --- ************************************************
  14757. --- *** relation: recoded ***
  14758. --- *** relation type: VIEW ***
  14759. --- *** ***
  14760. --- *** An attribute describing an mRNA sequence ***
  14761. --- *** that has been reprogrammed at translati ***
  14762. --- *** on, causing localized alterations. ***
  14763. --- ************************************************
  14764. ---
  14765. CREATE VIEW recoded AS
  14766. SELECT
  14767. feature_id AS recoded_id,
  14768. feature.*
  14769. FROM
  14770. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14771. 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';
  14772. --- ************************************************
  14773. --- *** relation: codon_redefined ***
  14774. --- *** relation type: VIEW ***
  14775. --- *** ***
  14776. --- *** An attribute describing the alteration o ***
  14777. --- *** f codon meaning. ***
  14778. --- ************************************************
  14779. ---
  14780. CREATE VIEW codon_redefined AS
  14781. SELECT
  14782. feature_id AS codon_redefined_id,
  14783. feature.*
  14784. FROM
  14785. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14786. WHERE cvterm.name = 'codon_redefined';
  14787. --- ************************************************
  14788. --- *** relation: stop_codon_read_through ***
  14789. --- *** relation type: VIEW ***
  14790. --- *** ***
  14791. --- *** A stop codon redefined to be a new amino ***
  14792. --- *** acid. ***
  14793. --- ************************************************
  14794. ---
  14795. CREATE VIEW stop_codon_read_through AS
  14796. SELECT
  14797. feature_id AS stop_codon_read_through_id,
  14798. feature.*
  14799. FROM
  14800. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14801. WHERE cvterm.name = 'stop_codon_redefined_as_pyrrolysine' OR cvterm.name = 'stop_codon_redefined_as_selenocysteine' OR cvterm.name = 'stop_codon_read_through';
  14802. --- ************************************************
  14803. --- *** relation: stop_codon_redefined_as_pyrrolysine ***
  14804. --- *** relation type: VIEW ***
  14805. --- *** ***
  14806. --- *** A stop codon redefined to be the new ami ***
  14807. --- *** no acid, pyrrolysine. ***
  14808. --- ************************************************
  14809. ---
  14810. CREATE VIEW stop_codon_redefined_as_pyrrolysine AS
  14811. SELECT
  14812. feature_id AS stop_codon_redefined_as_pyrrolysine_id,
  14813. feature.*
  14814. FROM
  14815. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14816. WHERE cvterm.name = 'stop_codon_redefined_as_pyrrolysine';
  14817. --- ************************************************
  14818. --- *** relation: stop_codon_redefined_as_selenocysteine ***
  14819. --- *** relation type: VIEW ***
  14820. --- *** ***
  14821. --- *** A stop codon redefined to be the new ami ***
  14822. --- *** no acid, selenocysteine. ***
  14823. --- ************************************************
  14824. ---
  14825. CREATE VIEW stop_codon_redefined_as_selenocysteine AS
  14826. SELECT
  14827. feature_id AS stop_codon_redefined_as_selenocysteine_id,
  14828. feature.*
  14829. FROM
  14830. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14831. WHERE cvterm.name = 'stop_codon_redefined_as_selenocysteine';
  14832. --- ************************************************
  14833. --- *** relation: recoded_by_translational_bypass ***
  14834. --- *** relation type: VIEW ***
  14835. --- *** ***
  14836. --- *** Recoded mRNA where a block of nucleotide ***
  14837. --- *** s is not translated. ***
  14838. --- ************************************************
  14839. ---
  14840. CREATE VIEW recoded_by_translational_bypass AS
  14841. SELECT
  14842. feature_id AS recoded_by_translational_bypass_id,
  14843. feature.*
  14844. FROM
  14845. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14846. WHERE cvterm.name = 'recoded_by_translational_bypass';
  14847. --- ************************************************
  14848. --- *** relation: translationally_frameshifted ***
  14849. --- *** relation type: VIEW ***
  14850. --- *** ***
  14851. --- *** Recoding by frameshifting a particular s ***
  14852. --- *** ite. ***
  14853. --- ************************************************
  14854. ---
  14855. CREATE VIEW translationally_frameshifted AS
  14856. SELECT
  14857. feature_id AS translationally_frameshifted_id,
  14858. feature.*
  14859. FROM
  14860. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14861. WHERE cvterm.name = 'minus_1_translationally_frameshifted' OR cvterm.name = 'plus_1_translationally_frameshifted' OR cvterm.name = 'translationally_frameshifted';
  14862. --- ************************************************
  14863. --- *** relation: maternally_imprinted_gene ***
  14864. --- *** relation type: VIEW ***
  14865. --- *** ***
  14866. --- *** A gene that is maternally_imprinted. ***
  14867. --- ************************************************
  14868. ---
  14869. CREATE VIEW maternally_imprinted_gene AS
  14870. SELECT
  14871. feature_id AS maternally_imprinted_gene_id,
  14872. feature.*
  14873. FROM
  14874. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14875. WHERE cvterm.name = 'maternally_imprinted_gene';
  14876. --- ************************************************
  14877. --- *** relation: paternally_imprinted_gene ***
  14878. --- *** relation type: VIEW ***
  14879. --- *** ***
  14880. --- *** A gene that is paternally imprinted. ***
  14881. --- ************************************************
  14882. ---
  14883. CREATE VIEW paternally_imprinted_gene AS
  14884. SELECT
  14885. feature_id AS paternally_imprinted_gene_id,
  14886. feature.*
  14887. FROM
  14888. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14889. WHERE cvterm.name = 'paternally_imprinted_gene';
  14890. --- ************************************************
  14891. --- *** relation: post_translationally_regulated_gene ***
  14892. --- *** relation type: VIEW ***
  14893. --- *** ***
  14894. --- *** A gene that is post translationally regu ***
  14895. --- *** lated. ***
  14896. --- ************************************************
  14897. ---
  14898. CREATE VIEW post_translationally_regulated_gene AS
  14899. SELECT
  14900. feature_id AS post_translationally_regulated_gene_id,
  14901. feature.*
  14902. FROM
  14903. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14904. WHERE cvterm.name = 'post_translationally_regulated_gene';
  14905. --- ************************************************
  14906. --- *** relation: negatively_autoregulated_gene ***
  14907. --- *** relation type: VIEW ***
  14908. --- *** ***
  14909. --- *** A gene that is negatively autoreguated. ***
  14910. --- ************************************************
  14911. ---
  14912. CREATE VIEW negatively_autoregulated_gene AS
  14913. SELECT
  14914. feature_id AS negatively_autoregulated_gene_id,
  14915. feature.*
  14916. FROM
  14917. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14918. WHERE cvterm.name = 'negatively_autoregulated_gene';
  14919. --- ************************************************
  14920. --- *** relation: positively_autoregulated_gene ***
  14921. --- *** relation type: VIEW ***
  14922. --- *** ***
  14923. --- *** A gene that is positively autoregulated. ***
  14924. --- ************************************************
  14925. ---
  14926. CREATE VIEW positively_autoregulated_gene AS
  14927. SELECT
  14928. feature_id AS positively_autoregulated_gene_id,
  14929. feature.*
  14930. FROM
  14931. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14932. WHERE cvterm.name = 'positively_autoregulated_gene';
  14933. --- ************************************************
  14934. --- *** relation: silenced ***
  14935. --- *** relation type: VIEW ***
  14936. --- *** ***
  14937. --- *** An attribute describing an epigenetic pr ***
  14938. --- *** ocess where a gene is inactivated at tra ***
  14939. --- *** nscriptional or translational level. ***
  14940. --- ************************************************
  14941. ---
  14942. CREATE VIEW silenced AS
  14943. SELECT
  14944. feature_id AS silenced_id,
  14945. feature.*
  14946. FROM
  14947. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14948. 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';
  14949. --- ************************************************
  14950. --- *** relation: silenced_by_dna_modification ***
  14951. --- *** relation type: VIEW ***
  14952. --- *** ***
  14953. --- *** An attribute describing an epigenetic pr ***
  14954. --- *** ocess where a gene is inactivated by DNA ***
  14955. --- *** modifications, resulting in repression ***
  14956. --- *** of transcription. ***
  14957. --- ************************************************
  14958. ---
  14959. CREATE VIEW silenced_by_dna_modification AS
  14960. SELECT
  14961. feature_id AS silenced_by_dna_modification_id,
  14962. feature.*
  14963. FROM
  14964. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14965. WHERE cvterm.name = 'silenced_by_DNA_methylation' OR cvterm.name = 'silenced_by_DNA_modification';
  14966. --- ************************************************
  14967. --- *** relation: silenced_by_dna_methylation ***
  14968. --- *** relation type: VIEW ***
  14969. --- *** ***
  14970. --- *** An attribute describing an epigenetic pr ***
  14971. --- *** ocess where a gene is inactivated by DNA ***
  14972. --- *** methylation, resulting in repression of ***
  14973. --- *** transcription. ***
  14974. --- ************************************************
  14975. ---
  14976. CREATE VIEW silenced_by_dna_methylation AS
  14977. SELECT
  14978. feature_id AS silenced_by_dna_methylation_id,
  14979. feature.*
  14980. FROM
  14981. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14982. WHERE cvterm.name = 'silenced_by_DNA_methylation';
  14983. --- ************************************************
  14984. --- *** relation: translationally_regulated_gene ***
  14985. --- *** relation type: VIEW ***
  14986. --- *** ***
  14987. --- *** A gene that is translationally regulated ***
  14988. --- *** . ***
  14989. --- ************************************************
  14990. ---
  14991. CREATE VIEW translationally_regulated_gene AS
  14992. SELECT
  14993. feature_id AS translationally_regulated_gene_id,
  14994. feature.*
  14995. FROM
  14996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  14997. WHERE cvterm.name = 'translationally_regulated_gene';
  14998. --- ************************************************
  14999. --- *** relation: allelically_excluded_gene ***
  15000. --- *** relation type: VIEW ***
  15001. --- *** ***
  15002. --- *** A gene that is allelically_excluded. ***
  15003. --- ************************************************
  15004. ---
  15005. CREATE VIEW allelically_excluded_gene AS
  15006. SELECT
  15007. feature_id AS allelically_excluded_gene_id,
  15008. feature.*
  15009. FROM
  15010. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15011. WHERE cvterm.name = 'allelically_excluded_gene';
  15012. --- ************************************************
  15013. --- *** relation: epigenetically_modified_gene ***
  15014. --- *** relation type: VIEW ***
  15015. --- *** ***
  15016. --- *** A gene that is epigenetically modified. ***
  15017. --- ************************************************
  15018. ---
  15019. CREATE VIEW epigenetically_modified_gene AS
  15020. SELECT
  15021. feature_id AS epigenetically_modified_gene_id,
  15022. feature.*
  15023. FROM
  15024. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15025. 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';
  15026. --- ************************************************
  15027. --- *** relation: transgene ***
  15028. --- *** relation type: VIEW ***
  15029. --- *** ***
  15030. --- *** A transgene is a gene that has been tran ***
  15031. --- *** sferred naturally or by any of a number ***
  15032. --- *** of genetic engineering techniques from o ***
  15033. --- *** ne organism to another. ***
  15034. --- ************************************************
  15035. ---
  15036. CREATE VIEW transgene AS
  15037. SELECT
  15038. feature_id AS transgene_id,
  15039. feature.*
  15040. FROM
  15041. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15042. WHERE cvterm.name = 'floxed_gene' OR cvterm.name = 'transgene';
  15043. --- ************************************************
  15044. --- *** relation: endogenous_retroviral_sequence ***
  15045. --- *** relation type: VIEW ***
  15046. --- *** ***
  15047. --- ************************************************
  15048. ---
  15049. CREATE VIEW endogenous_retroviral_sequence AS
  15050. SELECT
  15051. feature_id AS endogenous_retroviral_sequence_id,
  15052. feature.*
  15053. FROM
  15054. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15055. WHERE cvterm.name = 'endogenous_retroviral_sequence';
  15056. --- ************************************************
  15057. --- *** relation: rearranged_at_dna_level ***
  15058. --- *** relation type: VIEW ***
  15059. --- *** ***
  15060. --- *** An attribute to describe the sequence of ***
  15061. --- *** a feature, where the DNA is rearranged. ***
  15062. --- ************************************************
  15063. ---
  15064. CREATE VIEW rearranged_at_dna_level AS
  15065. SELECT
  15066. feature_id AS rearranged_at_dna_level_id,
  15067. feature.*
  15068. FROM
  15069. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15070. WHERE cvterm.name = 'rearranged_at_DNA_level';
  15071. --- ************************************************
  15072. --- *** relation: status ***
  15073. --- *** relation type: VIEW ***
  15074. --- *** ***
  15075. --- *** An attribute describing the status of a ***
  15076. --- *** feature, based on the available evidence ***
  15077. --- *** . ***
  15078. --- ************************************************
  15079. ---
  15080. CREATE VIEW status AS
  15081. SELECT
  15082. feature_id AS status_id,
  15083. feature.*
  15084. FROM
  15085. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15086. 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';
  15087. --- ************************************************
  15088. --- *** relation: independently_known ***
  15089. --- *** relation type: VIEW ***
  15090. --- *** ***
  15091. --- *** Attribute to describe a feature that is ***
  15092. --- *** independently known - not predicted. ***
  15093. --- ************************************************
  15094. ---
  15095. CREATE VIEW independently_known AS
  15096. SELECT
  15097. feature_id AS independently_known_id,
  15098. feature.*
  15099. FROM
  15100. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15101. WHERE cvterm.name = 'independently_known';
  15102. --- ************************************************
  15103. --- *** relation: supported_by_sequence_similarity ***
  15104. --- *** relation type: VIEW ***
  15105. --- *** ***
  15106. --- *** An attribute to describe a feature that ***
  15107. --- *** has been predicted using sequence simila ***
  15108. --- *** rity techniques. ***
  15109. --- ************************************************
  15110. ---
  15111. CREATE VIEW supported_by_sequence_similarity AS
  15112. SELECT
  15113. feature_id AS supported_by_sequence_similarity_id,
  15114. feature.*
  15115. FROM
  15116. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15117. WHERE cvterm.name = 'supported_by_domain_match' OR cvterm.name = 'supported_by_EST_or_cDNA' OR cvterm.name = 'supported_by_sequence_similarity';
  15118. --- ************************************************
  15119. --- *** relation: supported_by_domain_match ***
  15120. --- *** relation type: VIEW ***
  15121. --- *** ***
  15122. --- *** An attribute to describe a feature that ***
  15123. --- *** has been predicted using sequence simila ***
  15124. --- *** rity of a known domain. ***
  15125. --- ************************************************
  15126. ---
  15127. CREATE VIEW supported_by_domain_match AS
  15128. SELECT
  15129. feature_id AS supported_by_domain_match_id,
  15130. feature.*
  15131. FROM
  15132. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15133. WHERE cvterm.name = 'supported_by_domain_match';
  15134. --- ************************************************
  15135. --- *** relation: supported_by_est_or_cdna ***
  15136. --- *** relation type: VIEW ***
  15137. --- *** ***
  15138. --- *** An attribute to describe a feature that ***
  15139. --- *** has been predicted using sequence simila ***
  15140. --- *** rity to EST or cDNA data. ***
  15141. --- ************************************************
  15142. ---
  15143. CREATE VIEW supported_by_est_or_cdna AS
  15144. SELECT
  15145. feature_id AS supported_by_est_or_cdna_id,
  15146. feature.*
  15147. FROM
  15148. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15149. WHERE cvterm.name = 'supported_by_EST_or_cDNA';
  15150. --- ************************************************
  15151. --- *** relation: orphan ***
  15152. --- *** relation type: VIEW ***
  15153. --- *** ***
  15154. --- ************************************************
  15155. ---
  15156. CREATE VIEW orphan AS
  15157. SELECT
  15158. feature_id AS orphan_id,
  15159. feature.*
  15160. FROM
  15161. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15162. WHERE cvterm.name = 'orphan';
  15163. --- ************************************************
  15164. --- *** relation: predicted_by_ab_initio_computation ***
  15165. --- *** relation type: VIEW ***
  15166. --- *** ***
  15167. --- *** An attribute describing a feature that i ***
  15168. --- *** s predicted by a computer program that d ***
  15169. --- *** id not rely on sequence similarity. ***
  15170. --- ************************************************
  15171. ---
  15172. CREATE VIEW predicted_by_ab_initio_computation AS
  15173. SELECT
  15174. feature_id AS predicted_by_ab_initio_computation_id,
  15175. feature.*
  15176. FROM
  15177. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15178. WHERE cvterm.name = 'predicted_by_ab_initio_computation';
  15179. --- ************************************************
  15180. --- *** relation: asx_turn ***
  15181. --- *** relation type: VIEW ***
  15182. --- *** ***
  15183. --- *** A motif of three consecutive residues an ***
  15184. --- *** d one H-bond in which: residue(i) is Asp ***
  15185. --- *** artate or Asparagine (Asx), the side-cha ***
  15186. --- *** in O of residue(i) is H-bonded to the ma ***
  15187. --- *** in-chain NH of residue(i+2). ***
  15188. --- ************************************************
  15189. ---
  15190. CREATE VIEW asx_turn AS
  15191. SELECT
  15192. feature_id AS asx_turn_id,
  15193. feature.*
  15194. FROM
  15195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15196. 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';
  15197. --- ************************************************
  15198. --- *** relation: cloned_cdna_insert ***
  15199. --- *** relation type: VIEW ***
  15200. --- *** ***
  15201. --- *** A clone insert made from cDNA. ***
  15202. --- ************************************************
  15203. ---
  15204. CREATE VIEW cloned_cdna_insert AS
  15205. SELECT
  15206. feature_id AS cloned_cdna_insert_id,
  15207. feature.*
  15208. FROM
  15209. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15210. WHERE cvterm.name = 'cloned_cDNA_insert';
  15211. --- ************************************************
  15212. --- *** relation: cloned_genomic_insert ***
  15213. --- *** relation type: VIEW ***
  15214. --- *** ***
  15215. --- *** A clone insert made from genomic DNA. ***
  15216. --- ************************************************
  15217. ---
  15218. CREATE VIEW cloned_genomic_insert AS
  15219. SELECT
  15220. feature_id AS cloned_genomic_insert_id,
  15221. feature.*
  15222. FROM
  15223. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15224. WHERE cvterm.name = 'BAC_cloned_genomic_insert' OR cvterm.name = 'cloned_genomic_insert';
  15225. --- ************************************************
  15226. --- *** relation: engineered_insert ***
  15227. --- *** relation type: VIEW ***
  15228. --- *** ***
  15229. --- *** A clone insert that is engineered. ***
  15230. --- ************************************************
  15231. ---
  15232. CREATE VIEW engineered_insert AS
  15233. SELECT
  15234. feature_id AS engineered_insert_id,
  15235. feature.*
  15236. FROM
  15237. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15238. WHERE cvterm.name = 'engineered_insert';
  15239. --- ************************************************
  15240. --- *** relation: edited_mrna ***
  15241. --- *** relation type: VIEW ***
  15242. --- *** ***
  15243. --- *** An mRNA that is edited. ***
  15244. --- ************************************************
  15245. ---
  15246. CREATE VIEW edited_mrna AS
  15247. SELECT
  15248. feature_id AS edited_mrna_id,
  15249. feature.*
  15250. FROM
  15251. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15252. WHERE cvterm.name = 'edited_mRNA';
  15253. --- ************************************************
  15254. --- *** relation: guide_rna_region ***
  15255. --- *** relation type: VIEW ***
  15256. --- *** ***
  15257. --- *** A region of guide RNA. ***
  15258. --- ************************************************
  15259. ---
  15260. CREATE VIEW guide_rna_region AS
  15261. SELECT
  15262. feature_id AS guide_rna_region_id,
  15263. feature.*
  15264. FROM
  15265. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15266. WHERE cvterm.name = 'anchor_region' OR cvterm.name = 'template_region' OR cvterm.name = 'guide_RNA_region';
  15267. --- ************************************************
  15268. --- *** relation: anchor_region ***
  15269. --- *** relation type: VIEW ***
  15270. --- *** ***
  15271. --- *** A region of a guide_RNA that base-pairs ***
  15272. --- *** to a target mRNA. ***
  15273. --- ************************************************
  15274. ---
  15275. CREATE VIEW anchor_region AS
  15276. SELECT
  15277. feature_id AS anchor_region_id,
  15278. feature.*
  15279. FROM
  15280. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15281. WHERE cvterm.name = 'anchor_region';
  15282. --- ************************************************
  15283. --- *** relation: pre_edited_mrna ***
  15284. --- *** relation type: VIEW ***
  15285. --- *** ***
  15286. --- ************************************************
  15287. ---
  15288. CREATE VIEW pre_edited_mrna AS
  15289. SELECT
  15290. feature_id AS pre_edited_mrna_id,
  15291. feature.*
  15292. FROM
  15293. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15294. WHERE cvterm.name = 'pre_edited_mRNA';
  15295. --- ************************************************
  15296. --- *** relation: intermediate ***
  15297. --- *** relation type: VIEW ***
  15298. --- *** ***
  15299. --- *** An attribute to describe a feature betwe ***
  15300. --- *** en stages of processing. ***
  15301. --- ************************************************
  15302. ---
  15303. CREATE VIEW intermediate AS
  15304. SELECT
  15305. feature_id AS intermediate_id,
  15306. feature.*
  15307. FROM
  15308. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15309. WHERE cvterm.name = 'intermediate';
  15310. --- ************************************************
  15311. --- *** relation: mirna_target_site ***
  15312. --- *** relation type: VIEW ***
  15313. --- *** ***
  15314. --- *** A miRNA target site is a binding site wh ***
  15315. --- *** ere the molecule is a micro RNA. ***
  15316. --- ************************************************
  15317. ---
  15318. CREATE VIEW mirna_target_site AS
  15319. SELECT
  15320. feature_id AS mirna_target_site_id,
  15321. feature.*
  15322. FROM
  15323. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15324. WHERE cvterm.name = 'miRNA_target_site';
  15325. --- ************************************************
  15326. --- *** relation: edited_cds ***
  15327. --- *** relation type: VIEW ***
  15328. --- *** ***
  15329. --- *** A CDS that is edited. ***
  15330. --- ************************************************
  15331. ---
  15332. CREATE VIEW edited_cds AS
  15333. SELECT
  15334. feature_id AS edited_cds_id,
  15335. feature.*
  15336. FROM
  15337. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15338. WHERE cvterm.name = 'edited_CDS';
  15339. --- ************************************************
  15340. --- *** relation: vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment ***
  15341. --- *** relation type: VIEW ***
  15342. --- *** ***
  15343. --- ************************************************
  15344. ---
  15345. CREATE VIEW vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment AS
  15346. SELECT
  15347. feature_id AS vertebrate_immunoglobulin_t_cell_receptor_rearranged_segment_id,
  15348. feature.*
  15349. FROM
  15350. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15351. 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';
  15352. --- ************************************************
  15353. --- *** relation: vertebrate_ig_t_cell_receptor_rearranged_gene_cluster ***
  15354. --- *** relation type: VIEW ***
  15355. --- *** ***
  15356. --- ************************************************
  15357. ---
  15358. CREATE VIEW vertebrate_ig_t_cell_receptor_rearranged_gene_cluster AS
  15359. SELECT
  15360. feature_id AS vertebrate_ig_t_cell_receptor_rearranged_gene_cluster_id,
  15361. feature.*
  15362. FROM
  15363. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15364. 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';
  15365. --- ************************************************
  15366. --- *** relation: vertebrate_immune_system_gene_recombination_signal_feature ***
  15367. --- *** relation type: VIEW ***
  15368. --- *** ***
  15369. --- ************************************************
  15370. ---
  15371. CREATE VIEW vertebrate_immune_system_gene_recombination_signal_feature AS
  15372. SELECT
  15373. feature_id AS vertebrate_immune_system_gene_recombination_signal_feature_id,
  15374. feature.*
  15375. FROM
  15376. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15377. 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';
  15378. --- ************************************************
  15379. --- *** relation: recombinationally_rearranged ***
  15380. --- *** relation type: VIEW ***
  15381. --- *** ***
  15382. --- ************************************************
  15383. ---
  15384. CREATE VIEW recombinationally_rearranged AS
  15385. SELECT
  15386. feature_id AS recombinationally_rearranged_id,
  15387. feature.*
  15388. FROM
  15389. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15390. WHERE cvterm.name = 'recombinationally_rearranged';
  15391. --- ************************************************
  15392. --- *** relation: recombinationally_rearranged_vertebrate_immune_system_gene ***
  15393. --- *** relation type: VIEW ***
  15394. --- *** ***
  15395. --- *** A recombinationally rearranged gene of t ***
  15396. --- *** he vertebrate immune system. ***
  15397. --- ************************************************
  15398. ---
  15399. CREATE VIEW recombinationally_rearranged_vertebrate_immune_system_gene AS
  15400. SELECT
  15401. feature_id AS recombinationally_rearranged_vertebrate_immune_system_gene_id,
  15402. feature.*
  15403. FROM
  15404. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15405. WHERE cvterm.name = 'recombinationally_rearranged_vertebrate_immune_system_gene';
  15406. --- ************************************************
  15407. --- *** relation: attp_site ***
  15408. --- *** relation type: VIEW ***
  15409. --- *** ***
  15410. --- *** An integration/excision site of a phage ***
  15411. --- *** chromosome at which a recombinase acts t ***
  15412. --- *** o insert the phage DNA at a cognate inte ***
  15413. --- *** gration/excision site on a bacterial chr ***
  15414. --- *** omosome. ***
  15415. --- ************************************************
  15416. ---
  15417. CREATE VIEW attp_site AS
  15418. SELECT
  15419. feature_id AS attp_site_id,
  15420. feature.*
  15421. FROM
  15422. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15423. WHERE cvterm.name = 'attP_site';
  15424. --- ************************************************
  15425. --- *** relation: attb_site ***
  15426. --- *** relation type: VIEW ***
  15427. --- *** ***
  15428. --- *** An integration/excision site of a bacter ***
  15429. --- *** ial chromosome at which a recombinase ac ***
  15430. --- *** ts to insert foreign DNA containing a co ***
  15431. --- *** gnate integration/excision site. ***
  15432. --- ************************************************
  15433. ---
  15434. CREATE VIEW attb_site AS
  15435. SELECT
  15436. feature_id AS attb_site_id,
  15437. feature.*
  15438. FROM
  15439. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15440. WHERE cvterm.name = 'attB_site';
  15441. --- ************************************************
  15442. --- *** relation: attl_site ***
  15443. --- *** relation type: VIEW ***
  15444. --- *** ***
  15445. --- *** A region that results from recombination ***
  15446. --- *** between attP_site and attB_site, compos ***
  15447. --- *** ed of the 5' portion of attB_site and th ***
  15448. --- *** e 3' portion of attP_site. ***
  15449. --- ************************************************
  15450. ---
  15451. CREATE VIEW attl_site AS
  15452. SELECT
  15453. feature_id AS attl_site_id,
  15454. feature.*
  15455. FROM
  15456. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15457. WHERE cvterm.name = 'attL_site';
  15458. --- ************************************************
  15459. --- *** relation: attr_site ***
  15460. --- *** relation type: VIEW ***
  15461. --- *** ***
  15462. --- *** A region that results from recombination ***
  15463. --- *** between attP_site and attB_site, compos ***
  15464. --- *** ed of the 5' portion of attP_site and th ***
  15465. --- *** e 3' portion of attB_site. ***
  15466. --- ************************************************
  15467. ---
  15468. CREATE VIEW attr_site AS
  15469. SELECT
  15470. feature_id AS attr_site_id,
  15471. feature.*
  15472. FROM
  15473. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15474. WHERE cvterm.name = 'attR_site';
  15475. --- ************************************************
  15476. --- *** relation: integration_excision_site ***
  15477. --- *** relation type: VIEW ***
  15478. --- *** ***
  15479. --- *** A region specifically recognised by a re ***
  15480. --- *** combinase, which inserts or removes anot ***
  15481. --- *** her region marked by a distinct cognate ***
  15482. --- *** integration/excision site. ***
  15483. --- ************************************************
  15484. ---
  15485. CREATE VIEW integration_excision_site AS
  15486. SELECT
  15487. feature_id AS integration_excision_site_id,
  15488. feature.*
  15489. FROM
  15490. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15491. 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';
  15492. --- ************************************************
  15493. --- *** relation: resolution_site ***
  15494. --- *** relation type: VIEW ***
  15495. --- *** ***
  15496. --- *** A region specifically recognised by a re ***
  15497. --- *** combinase, which separates a physically ***
  15498. --- *** contiguous circle of DNA into two physic ***
  15499. --- *** ally separate circles. ***
  15500. --- ************************************************
  15501. ---
  15502. CREATE VIEW resolution_site AS
  15503. SELECT
  15504. feature_id AS resolution_site_id,
  15505. feature.*
  15506. FROM
  15507. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15508. WHERE cvterm.name = 'loxP_site' OR cvterm.name = 'dif_site' OR cvterm.name = 'resolution_site';
  15509. --- ************************************************
  15510. --- *** relation: inversion_site ***
  15511. --- *** relation type: VIEW ***
  15512. --- *** ***
  15513. --- *** A region specifically recognised by a re ***
  15514. --- *** combinase, which inverts the region flan ***
  15515. --- *** ked by a pair of sites. ***
  15516. --- ************************************************
  15517. ---
  15518. CREATE VIEW inversion_site AS
  15519. SELECT
  15520. feature_id AS inversion_site_id,
  15521. feature.*
  15522. FROM
  15523. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15524. WHERE cvterm.name = 'FRT_site' OR cvterm.name = 'inversion_site';
  15525. --- ************************************************
  15526. --- *** relation: dif_site ***
  15527. --- *** relation type: VIEW ***
  15528. --- *** ***
  15529. --- *** A site at which replicated bacterial cir ***
  15530. --- *** cular chromosomes are decatenated by sit ***
  15531. --- *** e specific resolvase. ***
  15532. --- ************************************************
  15533. ---
  15534. CREATE VIEW dif_site AS
  15535. SELECT
  15536. feature_id AS dif_site_id,
  15537. feature.*
  15538. FROM
  15539. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15540. WHERE cvterm.name = 'dif_site';
  15541. --- ************************************************
  15542. --- *** relation: attc_site ***
  15543. --- *** relation type: VIEW ***
  15544. --- *** ***
  15545. --- *** An attC site is a sequence required for ***
  15546. --- *** the integration of a DNA of an integron. ***
  15547. --- ************************************************
  15548. ---
  15549. CREATE VIEW attc_site AS
  15550. SELECT
  15551. feature_id AS attc_site_id,
  15552. feature.*
  15553. FROM
  15554. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15555. WHERE cvterm.name = 'attC_site';
  15556. --- ************************************************
  15557. --- *** relation: eukaryotic_terminator ***
  15558. --- *** relation type: VIEW ***
  15559. --- *** ***
  15560. --- ************************************************
  15561. ---
  15562. CREATE VIEW eukaryotic_terminator AS
  15563. SELECT
  15564. feature_id AS eukaryotic_terminator_id,
  15565. feature.*
  15566. FROM
  15567. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15568. WHERE cvterm.name = 'terminator_of_type_2_RNApol_III_promoter' OR cvterm.name = 'eukaryotic_terminator';
  15569. --- ************************************************
  15570. --- *** relation: oriv ***
  15571. --- *** relation type: VIEW ***
  15572. --- *** ***
  15573. --- *** An origin of vegetative replication in p ***
  15574. --- *** lasmids and phages. ***
  15575. --- ************************************************
  15576. ---
  15577. CREATE VIEW oriv AS
  15578. SELECT
  15579. feature_id AS oriv_id,
  15580. feature.*
  15581. FROM
  15582. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15583. WHERE cvterm.name = 'oriV';
  15584. --- ************************************************
  15585. --- *** relation: oric ***
  15586. --- *** relation type: VIEW ***
  15587. --- *** ***
  15588. --- *** An origin of bacterial chromosome replic ***
  15589. --- *** ation. ***
  15590. --- ************************************************
  15591. ---
  15592. CREATE VIEW oric AS
  15593. SELECT
  15594. feature_id AS oric_id,
  15595. feature.*
  15596. FROM
  15597. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15598. WHERE cvterm.name = 'oriC';
  15599. --- ************************************************
  15600. --- *** relation: dna_chromosome ***
  15601. --- *** relation type: VIEW ***
  15602. --- *** ***
  15603. --- *** Structural unit composed of a self-repli ***
  15604. --- *** cating, DNA molecule. ***
  15605. --- ************************************************
  15606. ---
  15607. CREATE VIEW dna_chromosome AS
  15608. SELECT
  15609. feature_id AS dna_chromosome_id,
  15610. feature.*
  15611. FROM
  15612. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15613. 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';
  15614. --- ************************************************
  15615. --- *** relation: double_stranded_dna_chromosome ***
  15616. --- *** relation type: VIEW ***
  15617. --- *** ***
  15618. --- *** Structural unit composed of a self-repli ***
  15619. --- *** cating, double-stranded DNA molecule. ***
  15620. --- ************************************************
  15621. ---
  15622. CREATE VIEW double_stranded_dna_chromosome AS
  15623. SELECT
  15624. feature_id AS double_stranded_dna_chromosome_id,
  15625. feature.*
  15626. FROM
  15627. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15628. WHERE cvterm.name = 'linear_double_stranded_DNA_chromosome' OR cvterm.name = 'circular_double_stranded_DNA_chromosome' OR cvterm.name = 'double_stranded_DNA_chromosome';
  15629. --- ************************************************
  15630. --- *** relation: single_stranded_dna_chromosome ***
  15631. --- *** relation type: VIEW ***
  15632. --- *** ***
  15633. --- *** Structural unit composed of a self-repli ***
  15634. --- *** cating, single-stranded DNA molecule. ***
  15635. --- ************************************************
  15636. ---
  15637. CREATE VIEW single_stranded_dna_chromosome AS
  15638. SELECT
  15639. feature_id AS single_stranded_dna_chromosome_id,
  15640. feature.*
  15641. FROM
  15642. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15643. WHERE cvterm.name = 'linear_single_stranded_DNA_chromosome' OR cvterm.name = 'circular_single_stranded_DNA_chromosome' OR cvterm.name = 'single_stranded_DNA_chromosome';
  15644. --- ************************************************
  15645. --- *** relation: linear_double_stranded_dna_chromosome ***
  15646. --- *** relation type: VIEW ***
  15647. --- *** ***
  15648. --- *** Structural unit composed of a self-repli ***
  15649. --- *** cating, double-stranded, linear DNA mole ***
  15650. --- *** cule. ***
  15651. --- ************************************************
  15652. ---
  15653. CREATE VIEW linear_double_stranded_dna_chromosome AS
  15654. SELECT
  15655. feature_id AS linear_double_stranded_dna_chromosome_id,
  15656. feature.*
  15657. FROM
  15658. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15659. WHERE cvterm.name = 'linear_double_stranded_DNA_chromosome';
  15660. --- ************************************************
  15661. --- *** relation: circular_double_stranded_dna_chromosome ***
  15662. --- *** relation type: VIEW ***
  15663. --- *** ***
  15664. --- *** Structural unit composed of a self-repli ***
  15665. --- *** cating, double-stranded, circular DNA mo ***
  15666. --- *** lecule. ***
  15667. --- ************************************************
  15668. ---
  15669. CREATE VIEW circular_double_stranded_dna_chromosome AS
  15670. SELECT
  15671. feature_id AS circular_double_stranded_dna_chromosome_id,
  15672. feature.*
  15673. FROM
  15674. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15675. WHERE cvterm.name = 'circular_double_stranded_DNA_chromosome';
  15676. --- ************************************************
  15677. --- *** relation: linear_single_stranded_dna_chromosome ***
  15678. --- *** relation type: VIEW ***
  15679. --- *** ***
  15680. --- *** Structural unit composed of a self-repli ***
  15681. --- *** cating, single-stranded, linear DNA mole ***
  15682. --- *** cule. ***
  15683. --- ************************************************
  15684. ---
  15685. CREATE VIEW linear_single_stranded_dna_chromosome AS
  15686. SELECT
  15687. feature_id AS linear_single_stranded_dna_chromosome_id,
  15688. feature.*
  15689. FROM
  15690. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15691. WHERE cvterm.name = 'linear_single_stranded_DNA_chromosome';
  15692. --- ************************************************
  15693. --- *** relation: circular_single_stranded_dna_chromosome ***
  15694. --- *** relation type: VIEW ***
  15695. --- *** ***
  15696. --- *** Structural unit composed of a self-repli ***
  15697. --- *** cating, single-stranded, circular DNA mo ***
  15698. --- *** lecule. ***
  15699. --- ************************************************
  15700. ---
  15701. CREATE VIEW circular_single_stranded_dna_chromosome AS
  15702. SELECT
  15703. feature_id AS circular_single_stranded_dna_chromosome_id,
  15704. feature.*
  15705. FROM
  15706. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15707. WHERE cvterm.name = 'circular_single_stranded_DNA_chromosome';
  15708. --- ************************************************
  15709. --- *** relation: rna_chromosome ***
  15710. --- *** relation type: VIEW ***
  15711. --- *** ***
  15712. --- *** Structural unit composed of a self-repli ***
  15713. --- *** cating, RNA molecule. ***
  15714. --- ************************************************
  15715. ---
  15716. CREATE VIEW rna_chromosome AS
  15717. SELECT
  15718. feature_id AS rna_chromosome_id,
  15719. feature.*
  15720. FROM
  15721. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15722. 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';
  15723. --- ************************************************
  15724. --- *** relation: single_stranded_rna_chromosome ***
  15725. --- *** relation type: VIEW ***
  15726. --- *** ***
  15727. --- *** Structural unit composed of a self-repli ***
  15728. --- *** cating, single-stranded RNA molecule. ***
  15729. --- ************************************************
  15730. ---
  15731. CREATE VIEW single_stranded_rna_chromosome AS
  15732. SELECT
  15733. feature_id AS single_stranded_rna_chromosome_id,
  15734. feature.*
  15735. FROM
  15736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15737. WHERE cvterm.name = 'linear_single_stranded_RNA_chromosome' OR cvterm.name = 'circular_single_stranded_RNA_chromosome' OR cvterm.name = 'single_stranded_RNA_chromosome';
  15738. --- ************************************************
  15739. --- *** relation: linear_single_stranded_rna_chromosome ***
  15740. --- *** relation type: VIEW ***
  15741. --- *** ***
  15742. --- *** Structural unit composed of a self-repli ***
  15743. --- *** cating, single-stranded, linear RNA mole ***
  15744. --- *** cule. ***
  15745. --- ************************************************
  15746. ---
  15747. CREATE VIEW linear_single_stranded_rna_chromosome AS
  15748. SELECT
  15749. feature_id AS linear_single_stranded_rna_chromosome_id,
  15750. feature.*
  15751. FROM
  15752. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15753. WHERE cvterm.name = 'linear_single_stranded_RNA_chromosome';
  15754. --- ************************************************
  15755. --- *** relation: linear_double_stranded_rna_chromosome ***
  15756. --- *** relation type: VIEW ***
  15757. --- *** ***
  15758. --- *** Structural unit composed of a self-repli ***
  15759. --- *** cating, double-stranded, linear RNA mole ***
  15760. --- *** cule. ***
  15761. --- ************************************************
  15762. ---
  15763. CREATE VIEW linear_double_stranded_rna_chromosome AS
  15764. SELECT
  15765. feature_id AS linear_double_stranded_rna_chromosome_id,
  15766. feature.*
  15767. FROM
  15768. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15769. WHERE cvterm.name = 'linear_double_stranded_RNA_chromosome';
  15770. --- ************************************************
  15771. --- *** relation: double_stranded_rna_chromosome ***
  15772. --- *** relation type: VIEW ***
  15773. --- *** ***
  15774. --- *** Structural unit composed of a self-repli ***
  15775. --- *** cating, double-stranded RNA molecule. ***
  15776. --- ************************************************
  15777. ---
  15778. CREATE VIEW double_stranded_rna_chromosome AS
  15779. SELECT
  15780. feature_id AS double_stranded_rna_chromosome_id,
  15781. feature.*
  15782. FROM
  15783. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15784. WHERE cvterm.name = 'linear_double_stranded_RNA_chromosome' OR cvterm.name = 'circular_double_stranded_RNA_chromosome' OR cvterm.name = 'double_stranded_RNA_chromosome';
  15785. --- ************************************************
  15786. --- *** relation: circular_single_stranded_rna_chromosome ***
  15787. --- *** relation type: VIEW ***
  15788. --- *** ***
  15789. --- *** Structural unit composed of a self-repli ***
  15790. --- *** cating, single-stranded, circular DNA mo ***
  15791. --- *** lecule. ***
  15792. --- ************************************************
  15793. ---
  15794. CREATE VIEW circular_single_stranded_rna_chromosome AS
  15795. SELECT
  15796. feature_id AS circular_single_stranded_rna_chromosome_id,
  15797. feature.*
  15798. FROM
  15799. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15800. WHERE cvterm.name = 'circular_single_stranded_RNA_chromosome';
  15801. --- ************************************************
  15802. --- *** relation: circular_double_stranded_rna_chromosome ***
  15803. --- *** relation type: VIEW ***
  15804. --- *** ***
  15805. --- *** Structural unit composed of a self-repli ***
  15806. --- *** cating, double-stranded, circular RNA mo ***
  15807. --- *** lecule. ***
  15808. --- ************************************************
  15809. ---
  15810. CREATE VIEW circular_double_stranded_rna_chromosome AS
  15811. SELECT
  15812. feature_id AS circular_double_stranded_rna_chromosome_id,
  15813. feature.*
  15814. FROM
  15815. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15816. WHERE cvterm.name = 'circular_double_stranded_RNA_chromosome';
  15817. --- ************************************************
  15818. --- *** relation: insertion_sequence ***
  15819. --- *** relation type: VIEW ***
  15820. --- *** ***
  15821. --- *** A terminal_inverted_repeat_element that ***
  15822. --- *** is bacterial and only encodes the functi ***
  15823. --- *** ons required for its transposition betwe ***
  15824. --- *** en these inverted repeats. ***
  15825. --- ************************************************
  15826. ---
  15827. CREATE VIEW insertion_sequence AS
  15828. SELECT
  15829. feature_id AS insertion_sequence_id,
  15830. feature.*
  15831. FROM
  15832. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15833. WHERE cvterm.name = 'insertion_sequence';
  15834. --- ************************************************
  15835. --- *** relation: minicircle_gene ***
  15836. --- *** relation type: VIEW ***
  15837. --- *** ***
  15838. --- ************************************************
  15839. ---
  15840. CREATE VIEW minicircle_gene AS
  15841. SELECT
  15842. feature_id AS minicircle_gene_id,
  15843. feature.*
  15844. FROM
  15845. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15846. WHERE cvterm.name = 'minicircle_gene';
  15847. --- ************************************************
  15848. --- *** relation: cryptic ***
  15849. --- *** relation type: VIEW ***
  15850. --- *** ***
  15851. --- *** A feature_attribute describing a feature ***
  15852. --- *** that is not manifest under normal condi ***
  15853. --- *** tions. ***
  15854. --- ************************************************
  15855. ---
  15856. CREATE VIEW cryptic AS
  15857. SELECT
  15858. feature_id AS cryptic_id,
  15859. feature.*
  15860. FROM
  15861. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15862. WHERE cvterm.name = 'cryptic';
  15863. --- ************************************************
  15864. --- *** relation: anchor_binding_site ***
  15865. --- *** relation type: VIEW ***
  15866. --- *** ***
  15867. --- ************************************************
  15868. ---
  15869. CREATE VIEW anchor_binding_site AS
  15870. SELECT
  15871. feature_id AS anchor_binding_site_id,
  15872. feature.*
  15873. FROM
  15874. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15875. WHERE cvterm.name = 'anchor_binding_site';
  15876. --- ************************************************
  15877. --- *** relation: template_region ***
  15878. --- *** relation type: VIEW ***
  15879. --- *** ***
  15880. --- *** A region of a guide_RNA that specifies t ***
  15881. --- *** he insertions and deletions of bases in ***
  15882. --- *** the editing of a target mRNA. ***
  15883. --- ************************************************
  15884. ---
  15885. CREATE VIEW template_region AS
  15886. SELECT
  15887. feature_id AS template_region_id,
  15888. feature.*
  15889. FROM
  15890. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15891. WHERE cvterm.name = 'template_region';
  15892. --- ************************************************
  15893. --- *** relation: grna_encoding ***
  15894. --- *** relation type: VIEW ***
  15895. --- *** ***
  15896. --- *** A non-protein_coding gene that encodes a ***
  15897. --- *** guide_RNA. ***
  15898. --- ************************************************
  15899. ---
  15900. CREATE VIEW grna_encoding AS
  15901. SELECT
  15902. feature_id AS grna_encoding_id,
  15903. feature.*
  15904. FROM
  15905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15906. WHERE cvterm.name = 'gRNA_encoding';
  15907. --- ************************************************
  15908. --- *** relation: minicircle ***
  15909. --- *** relation type: VIEW ***
  15910. --- *** ***
  15911. --- *** A minicircle is a replicon, part of a ki ***
  15912. --- *** netoplast, that encodes for guide RNAs. ***
  15913. --- ************************************************
  15914. ---
  15915. CREATE VIEW minicircle AS
  15916. SELECT
  15917. feature_id AS minicircle_id,
  15918. feature.*
  15919. FROM
  15920. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15921. WHERE cvterm.name = 'minicircle';
  15922. --- ************************************************
  15923. --- *** relation: rho_dependent_bacterial_terminator ***
  15924. --- *** relation type: VIEW ***
  15925. --- *** ***
  15926. --- ************************************************
  15927. ---
  15928. CREATE VIEW rho_dependent_bacterial_terminator AS
  15929. SELECT
  15930. feature_id AS rho_dependent_bacterial_terminator_id,
  15931. feature.*
  15932. FROM
  15933. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15934. WHERE cvterm.name = 'rho_dependent_bacterial_terminator';
  15935. --- ************************************************
  15936. --- *** relation: rho_independent_bacterial_terminator ***
  15937. --- *** relation type: VIEW ***
  15938. --- *** ***
  15939. --- ************************************************
  15940. ---
  15941. CREATE VIEW rho_independent_bacterial_terminator AS
  15942. SELECT
  15943. feature_id AS rho_independent_bacterial_terminator_id,
  15944. feature.*
  15945. FROM
  15946. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15947. WHERE cvterm.name = 'rho_independent_bacterial_terminator';
  15948. --- ************************************************
  15949. --- *** relation: strand_attribute ***
  15950. --- *** relation type: VIEW ***
  15951. --- *** ***
  15952. --- ************************************************
  15953. ---
  15954. CREATE VIEW strand_attribute AS
  15955. SELECT
  15956. feature_id AS strand_attribute_id,
  15957. feature.*
  15958. FROM
  15959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15960. WHERE cvterm.name = 'single' OR cvterm.name = 'double' OR cvterm.name = 'strand_attribute';
  15961. --- ************************************************
  15962. --- *** relation: single ***
  15963. --- *** relation type: VIEW ***
  15964. --- *** ***
  15965. --- ************************************************
  15966. ---
  15967. CREATE VIEW single AS
  15968. SELECT
  15969. feature_id AS single_id,
  15970. feature.*
  15971. FROM
  15972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15973. WHERE cvterm.name = 'single';
  15974. --- ************************************************
  15975. --- *** relation: double ***
  15976. --- *** relation type: VIEW ***
  15977. --- *** ***
  15978. --- ************************************************
  15979. ---
  15980. CREATE VIEW double AS
  15981. SELECT
  15982. feature_id AS double_id,
  15983. feature.*
  15984. FROM
  15985. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15986. WHERE cvterm.name = 'double';
  15987. --- ************************************************
  15988. --- *** relation: topology_attribute ***
  15989. --- *** relation type: VIEW ***
  15990. --- *** ***
  15991. --- ************************************************
  15992. ---
  15993. CREATE VIEW topology_attribute AS
  15994. SELECT
  15995. feature_id AS topology_attribute_id,
  15996. feature.*
  15997. FROM
  15998. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  15999. WHERE cvterm.name = 'linear' OR cvterm.name = 'circular' OR cvterm.name = 'topology_attribute';
  16000. --- ************************************************
  16001. --- *** relation: linear ***
  16002. --- *** relation type: VIEW ***
  16003. --- *** ***
  16004. --- *** A quality of a nucleotide polymer that h ***
  16005. --- *** as a 3'-terminal residue and a 5'-termin ***
  16006. --- *** al residue. ***
  16007. --- ************************************************
  16008. ---
  16009. CREATE VIEW linear AS
  16010. SELECT
  16011. feature_id AS linear_id,
  16012. feature.*
  16013. FROM
  16014. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16015. WHERE cvterm.name = 'linear';
  16016. --- ************************************************
  16017. --- *** relation: circular ***
  16018. --- *** relation type: VIEW ***
  16019. --- *** ***
  16020. --- *** A quality of a nucleotide polymer that h ***
  16021. --- *** as no terminal nucleotide residues. ***
  16022. --- ************************************************
  16023. ---
  16024. CREATE VIEW circular AS
  16025. SELECT
  16026. feature_id AS circular_id,
  16027. feature.*
  16028. FROM
  16029. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16030. WHERE cvterm.name = 'circular';
  16031. --- ************************************************
  16032. --- *** relation: class_ii_rna ***
  16033. --- *** relation type: VIEW ***
  16034. --- *** ***
  16035. --- *** Small non-coding RNA (59-60 nt long) con ***
  16036. --- *** taining 5' and 3' ends that are predicte ***
  16037. --- *** d to come together to form a stem struct ***
  16038. --- *** ure. Identified in the social amoeba Dic ***
  16039. --- *** tyostelium discoideum and localized in t ***
  16040. --- *** he cytoplasm. ***
  16041. --- ************************************************
  16042. ---
  16043. CREATE VIEW class_ii_rna AS
  16044. SELECT
  16045. feature_id AS class_ii_rna_id,
  16046. feature.*
  16047. FROM
  16048. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16049. WHERE cvterm.name = 'class_II_RNA';
  16050. --- ************************************************
  16051. --- *** relation: class_i_rna ***
  16052. --- *** relation type: VIEW ***
  16053. --- *** ***
  16054. --- *** Small non-coding RNA (55-65 nt long) con ***
  16055. --- *** taining highly conserved 5' and 3' ends ***
  16056. --- *** (16 and 8 nt, respectively) that are pre ***
  16057. --- *** dicted to come together to form a stem s ***
  16058. --- *** tructure. Identified in the social amoeb ***
  16059. --- *** a Dictyostelium discoideum and localized ***
  16060. --- *** in the cytoplasm. ***
  16061. --- ************************************************
  16062. ---
  16063. CREATE VIEW class_i_rna AS
  16064. SELECT
  16065. feature_id AS class_i_rna_id,
  16066. feature.*
  16067. FROM
  16068. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16069. WHERE cvterm.name = 'class_I_RNA';
  16070. --- ************************************************
  16071. --- *** relation: genomic_dna ***
  16072. --- *** relation type: VIEW ***
  16073. --- *** ***
  16074. --- ************************************************
  16075. ---
  16076. CREATE VIEW genomic_dna AS
  16077. SELECT
  16078. feature_id AS genomic_dna_id,
  16079. feature.*
  16080. FROM
  16081. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16082. WHERE cvterm.name = 'genomic_DNA';
  16083. --- ************************************************
  16084. --- *** relation: bac_cloned_genomic_insert ***
  16085. --- *** relation type: VIEW ***
  16086. --- *** ***
  16087. --- ************************************************
  16088. ---
  16089. CREATE VIEW bac_cloned_genomic_insert AS
  16090. SELECT
  16091. feature_id AS bac_cloned_genomic_insert_id,
  16092. feature.*
  16093. FROM
  16094. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16095. WHERE cvterm.name = 'BAC_cloned_genomic_insert';
  16096. --- ************************************************
  16097. --- *** relation: consensus ***
  16098. --- *** relation type: VIEW ***
  16099. --- *** ***
  16100. --- ************************************************
  16101. ---
  16102. CREATE VIEW consensus AS
  16103. SELECT
  16104. feature_id AS consensus_id,
  16105. feature.*
  16106. FROM
  16107. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16108. WHERE cvterm.name = 'consensus';
  16109. --- ************************************************
  16110. --- *** relation: consensus_region ***
  16111. --- *** relation type: VIEW ***
  16112. --- *** ***
  16113. --- ************************************************
  16114. ---
  16115. CREATE VIEW consensus_region AS
  16116. SELECT
  16117. feature_id AS consensus_region_id,
  16118. feature.*
  16119. FROM
  16120. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16121. WHERE cvterm.name = 'consensus_mRNA' OR cvterm.name = 'consensus_region';
  16122. --- ************************************************
  16123. --- *** relation: consensus_mrna ***
  16124. --- *** relation type: VIEW ***
  16125. --- *** ***
  16126. --- ************************************************
  16127. ---
  16128. CREATE VIEW consensus_mrna AS
  16129. SELECT
  16130. feature_id AS consensus_mrna_id,
  16131. feature.*
  16132. FROM
  16133. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16134. WHERE cvterm.name = 'consensus_mRNA';
  16135. --- ************************************************
  16136. --- *** relation: predicted_gene ***
  16137. --- *** relation type: VIEW ***
  16138. --- *** ***
  16139. --- ************************************************
  16140. ---
  16141. CREATE VIEW predicted_gene AS
  16142. SELECT
  16143. feature_id AS predicted_gene_id,
  16144. feature.*
  16145. FROM
  16146. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16147. WHERE cvterm.name = 'predicted_gene';
  16148. --- ************************************************
  16149. --- *** relation: gene_fragment ***
  16150. --- *** relation type: VIEW ***
  16151. --- *** ***
  16152. --- ************************************************
  16153. ---
  16154. CREATE VIEW gene_fragment AS
  16155. SELECT
  16156. feature_id AS gene_fragment_id,
  16157. feature.*
  16158. FROM
  16159. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16160. WHERE cvterm.name = 'gene_fragment';
  16161. --- ************************************************
  16162. --- *** relation: recursive_splice_site ***
  16163. --- *** relation type: VIEW ***
  16164. --- *** ***
  16165. --- *** A recursive splice site is a splice site ***
  16166. --- *** which subdivides a large intron. Recurs ***
  16167. --- *** ive splicing is a mechanism that splices ***
  16168. --- *** large introns by sub dividing the intro ***
  16169. --- *** n at non exonic elements and alternate e ***
  16170. --- *** xons. ***
  16171. --- ************************************************
  16172. ---
  16173. CREATE VIEW recursive_splice_site AS
  16174. SELECT
  16175. feature_id AS recursive_splice_site_id,
  16176. feature.*
  16177. FROM
  16178. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16179. WHERE cvterm.name = 'recursive_splice_site';
  16180. --- ************************************************
  16181. --- *** relation: bac_end ***
  16182. --- *** relation type: VIEW ***
  16183. --- *** ***
  16184. --- *** A region of sequence from the end of a B ***
  16185. --- *** AC clone that may provide a highly speci ***
  16186. --- *** fic marker. ***
  16187. --- ************************************************
  16188. ---
  16189. CREATE VIEW bac_end AS
  16190. SELECT
  16191. feature_id AS bac_end_id,
  16192. feature.*
  16193. FROM
  16194. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16195. WHERE cvterm.name = 'BAC_end';
  16196. --- ************************************************
  16197. --- *** relation: rrna_16s ***
  16198. --- *** relation type: VIEW ***
  16199. --- *** ***
  16200. --- *** A large polynucleotide in Bacteria and A ***
  16201. --- *** rchaea, which functions as the small sub ***
  16202. --- *** unit of the ribosome. ***
  16203. --- ************************************************
  16204. ---
  16205. CREATE VIEW rrna_16s AS
  16206. SELECT
  16207. feature_id AS rrna_16s_id,
  16208. feature.*
  16209. FROM
  16210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16211. WHERE cvterm.name = 'rRNA_16S';
  16212. --- ************************************************
  16213. --- *** relation: rrna_23s ***
  16214. --- *** relation type: VIEW ***
  16215. --- *** ***
  16216. --- *** A large polynucleotide in Bacteria and A ***
  16217. --- *** rchaea, which functions as the large sub ***
  16218. --- *** unit of the ribosome. ***
  16219. --- ************************************************
  16220. ---
  16221. CREATE VIEW rrna_23s AS
  16222. SELECT
  16223. feature_id AS rrna_23s_id,
  16224. feature.*
  16225. FROM
  16226. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16227. WHERE cvterm.name = 'rRNA_23S';
  16228. --- ************************************************
  16229. --- *** relation: rrna_25s ***
  16230. --- *** relation type: VIEW ***
  16231. --- *** ***
  16232. --- *** A large polynucleotide which functions a ***
  16233. --- *** s part of the large subunit of the ribos ***
  16234. --- *** ome in some eukaryotes. ***
  16235. --- ************************************************
  16236. ---
  16237. CREATE VIEW rrna_25s AS
  16238. SELECT
  16239. feature_id AS rrna_25s_id,
  16240. feature.*
  16241. FROM
  16242. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16243. WHERE cvterm.name = 'rRNA_25S';
  16244. --- ************************************************
  16245. --- *** relation: solo_ltr ***
  16246. --- *** relation type: VIEW ***
  16247. --- *** ***
  16248. --- *** A recombination product between the 2 LT ***
  16249. --- *** R of the same element. ***
  16250. --- ************************************************
  16251. ---
  16252. CREATE VIEW solo_ltr AS
  16253. SELECT
  16254. feature_id AS solo_ltr_id,
  16255. feature.*
  16256. FROM
  16257. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16258. WHERE cvterm.name = 'solo_LTR';
  16259. --- ************************************************
  16260. --- *** relation: low_complexity ***
  16261. --- *** relation type: VIEW ***
  16262. --- *** ***
  16263. --- ************************************************
  16264. ---
  16265. CREATE VIEW low_complexity AS
  16266. SELECT
  16267. feature_id AS low_complexity_id,
  16268. feature.*
  16269. FROM
  16270. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16271. WHERE cvterm.name = 'low_complexity';
  16272. --- ************************************************
  16273. --- *** relation: low_complexity_region ***
  16274. --- *** relation type: VIEW ***
  16275. --- *** ***
  16276. --- ************************************************
  16277. ---
  16278. CREATE VIEW low_complexity_region AS
  16279. SELECT
  16280. feature_id AS low_complexity_region_id,
  16281. feature.*
  16282. FROM
  16283. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16284. WHERE cvterm.name = 'low_complexity_region';
  16285. --- ************************************************
  16286. --- *** relation: prophage ***
  16287. --- *** relation type: VIEW ***
  16288. --- *** ***
  16289. --- *** A phage genome after it has established ***
  16290. --- *** in the host genome in a latent/immune st ***
  16291. --- *** ate either as a plasmid or as an integra ***
  16292. --- *** ted "island". ***
  16293. --- ************************************************
  16294. ---
  16295. CREATE VIEW prophage AS
  16296. SELECT
  16297. feature_id AS prophage_id,
  16298. feature.*
  16299. FROM
  16300. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16301. WHERE cvterm.name = 'prophage';
  16302. --- ************************************************
  16303. --- *** relation: cryptic_prophage ***
  16304. --- *** relation type: VIEW ***
  16305. --- *** ***
  16306. --- *** A remnant of an integrated prophage in t ***
  16307. --- *** he host genome or an "island" in the hos ***
  16308. --- *** t genome that includes phage like-genes. ***
  16309. --- ************************************************
  16310. ---
  16311. CREATE VIEW cryptic_prophage AS
  16312. SELECT
  16313. feature_id AS cryptic_prophage_id,
  16314. feature.*
  16315. FROM
  16316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16317. WHERE cvterm.name = 'cryptic_prophage';
  16318. --- ************************************************
  16319. --- *** relation: tetraloop ***
  16320. --- *** relation type: VIEW ***
  16321. --- *** ***
  16322. --- *** A base-paired stem with loop of 4 non-hy ***
  16323. --- *** drogen bonded nucleotides. ***
  16324. --- ************************************************
  16325. ---
  16326. CREATE VIEW tetraloop AS
  16327. SELECT
  16328. feature_id AS tetraloop_id,
  16329. feature.*
  16330. FROM
  16331. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16332. WHERE cvterm.name = 'tetraloop';
  16333. --- ************************************************
  16334. --- *** relation: dna_constraint_sequence ***
  16335. --- *** relation type: VIEW ***
  16336. --- *** ***
  16337. --- *** A double-stranded DNA used to control ma ***
  16338. --- *** cromolecular structure and function. ***
  16339. --- ************************************************
  16340. ---
  16341. CREATE VIEW dna_constraint_sequence AS
  16342. SELECT
  16343. feature_id AS dna_constraint_sequence_id,
  16344. feature.*
  16345. FROM
  16346. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16347. WHERE cvterm.name = 'DNA_constraint_sequence';
  16348. --- ************************************************
  16349. --- *** relation: i_motif ***
  16350. --- *** relation type: VIEW ***
  16351. --- *** ***
  16352. --- *** A cytosine rich domain whereby strands a ***
  16353. --- *** ssociate both inter- and intramolecularl ***
  16354. --- *** y at moderately acidic pH. ***
  16355. --- ************************************************
  16356. ---
  16357. CREATE VIEW i_motif AS
  16358. SELECT
  16359. feature_id AS i_motif_id,
  16360. feature.*
  16361. FROM
  16362. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16363. WHERE cvterm.name = 'i_motif';
  16364. --- ************************************************
  16365. --- *** relation: pna_oligo ***
  16366. --- *** relation type: VIEW ***
  16367. --- *** ***
  16368. --- *** Peptide nucleic acid, is a chemical not ***
  16369. --- *** known to occur naturally but is artifici ***
  16370. --- *** ally synthesized and used in some biolog ***
  16371. --- *** ical research and medical treatments. Th ***
  16372. --- *** e PNA backbone is composed of repeating ***
  16373. --- *** N-(2-aminoethyl)-glycine units linked by ***
  16374. --- *** peptide bonds. The purine and pyrimidin ***
  16375. --- *** e bases are linked to the backbone by me ***
  16376. --- *** thylene carbonyl bonds. ***
  16377. --- ************************************************
  16378. ---
  16379. CREATE VIEW pna_oligo AS
  16380. SELECT
  16381. feature_id AS pna_oligo_id,
  16382. feature.*
  16383. FROM
  16384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16385. WHERE cvterm.name = 'PNA_oligo';
  16386. --- ************************************************
  16387. --- *** relation: dnazyme ***
  16388. --- *** relation type: VIEW ***
  16389. --- *** ***
  16390. --- *** A DNA sequence with catalytic activity. ***
  16391. --- ************************************************
  16392. ---
  16393. CREATE VIEW dnazyme AS
  16394. SELECT
  16395. feature_id AS dnazyme_id,
  16396. feature.*
  16397. FROM
  16398. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16399. WHERE cvterm.name = 'DNAzyme';
  16400. --- ************************************************
  16401. --- *** relation: mnp ***
  16402. --- *** relation type: VIEW ***
  16403. --- *** ***
  16404. --- *** A multiple nucleotide polymorphism with ***
  16405. --- *** alleles of common length > 1, for exampl ***
  16406. --- *** e AAA/TTT. ***
  16407. --- ************************************************
  16408. ---
  16409. CREATE VIEW mnp AS
  16410. SELECT
  16411. feature_id AS mnp_id,
  16412. feature.*
  16413. FROM
  16414. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16415. WHERE cvterm.name = 'MNP';
  16416. --- ************************************************
  16417. --- *** relation: intron_domain ***
  16418. --- *** relation type: VIEW ***
  16419. --- *** ***
  16420. --- ************************************************
  16421. ---
  16422. CREATE VIEW intron_domain AS
  16423. SELECT
  16424. feature_id AS intron_domain_id,
  16425. feature.*
  16426. FROM
  16427. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16428. WHERE cvterm.name = 'internal_guide_sequence' OR cvterm.name = 'mirtron' OR cvterm.name = 'intron_domain';
  16429. --- ************************************************
  16430. --- *** relation: wobble_base_pair ***
  16431. --- *** relation type: VIEW ***
  16432. --- *** ***
  16433. --- *** A type of non-canonical base pairing, mo ***
  16434. --- *** st commonly between G and U, which is im ***
  16435. --- *** portant for the secondary structure of R ***
  16436. --- *** NAs. It has similar thermodynamic stabil ***
  16437. --- *** ity to the Watson-Crick pairing. Wobble ***
  16438. --- *** base pairs only have two hydrogen bonds. ***
  16439. --- *** Other wobble base pair possibilities ar ***
  16440. --- *** e I-A, I-U and I-C. ***
  16441. --- ************************************************
  16442. ---
  16443. CREATE VIEW wobble_base_pair AS
  16444. SELECT
  16445. feature_id AS wobble_base_pair_id,
  16446. feature.*
  16447. FROM
  16448. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16449. WHERE cvterm.name = 'wobble_base_pair';
  16450. --- ************************************************
  16451. --- *** relation: internal_guide_sequence ***
  16452. --- *** relation type: VIEW ***
  16453. --- *** ***
  16454. --- *** A purine-rich sequence in the group I in ***
  16455. --- *** trons which determines the locations of ***
  16456. --- *** the splice sites in group I intron splic ***
  16457. --- *** ing and has catalytic activity. ***
  16458. --- ************************************************
  16459. ---
  16460. CREATE VIEW internal_guide_sequence AS
  16461. SELECT
  16462. feature_id AS internal_guide_sequence_id,
  16463. feature.*
  16464. FROM
  16465. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16466. WHERE cvterm.name = 'internal_guide_sequence';
  16467. --- ************************************************
  16468. --- *** relation: silent_mutation ***
  16469. --- *** relation type: VIEW ***
  16470. --- *** ***
  16471. --- *** A sequence variant that does not affect ***
  16472. --- *** protein function. Silent mutations may o ***
  16473. --- *** ccur in genic ( CDS, UTR, intron etc) an ***
  16474. --- *** d intergenic regions. Silent mutations m ***
  16475. --- *** ay have affects on processes such as spl ***
  16476. --- *** icing and regulation. ***
  16477. --- ************************************************
  16478. ---
  16479. CREATE VIEW silent_mutation AS
  16480. SELECT
  16481. feature_id AS silent_mutation_id,
  16482. feature.*
  16483. FROM
  16484. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16485. WHERE cvterm.name = 'silent_mutation';
  16486. --- ************************************************
  16487. --- *** relation: epitope ***
  16488. --- *** relation type: VIEW ***
  16489. --- *** ***
  16490. --- *** A binding site that, in the molecule, in ***
  16491. --- *** teracts selectively and non-covalently w ***
  16492. --- *** ith antibodies, B cells or T cells. ***
  16493. --- ************************************************
  16494. ---
  16495. CREATE VIEW epitope AS
  16496. SELECT
  16497. feature_id AS epitope_id,
  16498. feature.*
  16499. FROM
  16500. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16501. WHERE cvterm.name = 'epitope';
  16502. --- ************************************************
  16503. --- *** relation: copy_number_variation ***
  16504. --- *** relation type: VIEW ***
  16505. --- *** ***
  16506. --- *** A variation that increases or decreases ***
  16507. --- *** the copy number of a given region. ***
  16508. --- ************************************************
  16509. ---
  16510. CREATE VIEW copy_number_variation AS
  16511. SELECT
  16512. feature_id AS copy_number_variation_id,
  16513. feature.*
  16514. FROM
  16515. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16516. WHERE cvterm.name = 'copy_number_gain' OR cvterm.name = 'copy_number_loss' OR cvterm.name = 'copy_number_variation';
  16517. --- ************************************************
  16518. --- *** relation: chromosome_breakpoint ***
  16519. --- *** relation type: VIEW ***
  16520. --- *** ***
  16521. --- ************************************************
  16522. ---
  16523. CREATE VIEW chromosome_breakpoint AS
  16524. SELECT
  16525. feature_id AS chromosome_breakpoint_id,
  16526. feature.*
  16527. FROM
  16528. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16529. 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';
  16530. --- ************************************************
  16531. --- *** relation: inversion_breakpoint ***
  16532. --- *** relation type: VIEW ***
  16533. --- *** ***
  16534. --- *** The point within a chromosome where an i ***
  16535. --- *** nversion begins or ends. ***
  16536. --- ************************************************
  16537. ---
  16538. CREATE VIEW inversion_breakpoint AS
  16539. SELECT
  16540. feature_id AS inversion_breakpoint_id,
  16541. feature.*
  16542. FROM
  16543. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16544. WHERE cvterm.name = 'inversion_breakpoint';
  16545. --- ************************************************
  16546. --- *** relation: allele ***
  16547. --- *** relation type: VIEW ***
  16548. --- *** ***
  16549. --- *** An allele is one of a set of coexisting ***
  16550. --- *** sequence variants of a gene. ***
  16551. --- ************************************************
  16552. ---
  16553. CREATE VIEW allele AS
  16554. SELECT
  16555. feature_id AS allele_id,
  16556. feature.*
  16557. FROM
  16558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16559. WHERE cvterm.name = 'polymorphic_sequence_variant' OR cvterm.name = 'allele';
  16560. --- ************************************************
  16561. --- *** relation: haplotype ***
  16562. --- *** relation type: VIEW ***
  16563. --- *** ***
  16564. --- *** A haplotype is one of a set of coexistin ***
  16565. --- *** g sequence variants of a haplotype block ***
  16566. --- *** . ***
  16567. --- ************************************************
  16568. ---
  16569. CREATE VIEW haplotype AS
  16570. SELECT
  16571. feature_id AS haplotype_id,
  16572. feature.*
  16573. FROM
  16574. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16575. WHERE cvterm.name = 'haplotype';
  16576. --- ************************************************
  16577. --- *** relation: polymorphic_sequence_variant ***
  16578. --- *** relation type: VIEW ***
  16579. --- *** ***
  16580. --- *** A sequence variant that is segregating i ***
  16581. --- *** n one or more natural populations of a s ***
  16582. --- *** pecies. ***
  16583. --- ************************************************
  16584. ---
  16585. CREATE VIEW polymorphic_sequence_variant AS
  16586. SELECT
  16587. feature_id AS polymorphic_sequence_variant_id,
  16588. feature.*
  16589. FROM
  16590. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16591. WHERE cvterm.name = 'polymorphic_sequence_variant';
  16592. --- ************************************************
  16593. --- *** relation: genome ***
  16594. --- *** relation type: VIEW ***
  16595. --- *** ***
  16596. --- *** A genome is the sum of genetic material ***
  16597. --- *** within a cell or virion. ***
  16598. --- ************************************************
  16599. ---
  16600. CREATE VIEW genome AS
  16601. SELECT
  16602. feature_id AS genome_id,
  16603. feature.*
  16604. FROM
  16605. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16606. WHERE cvterm.name = 'kinetoplast' OR cvterm.name = 'reference_genome' OR cvterm.name = 'variant_genome' OR cvterm.name = 'chromosomally_aberrant_genome' OR cvterm.name = 'genome';
  16607. --- ************************************************
  16608. --- *** relation: so_genotype ***
  16609. --- *** relation type: VIEW ***
  16610. --- *** ***
  16611. --- *** A genotype is a variant genome, complete ***
  16612. --- *** or incomplete. ***
  16613. --- ************************************************
  16614. ---
  16615. CREATE VIEW so_genotype AS
  16616. SELECT
  16617. feature_id AS so_genotype_id,
  16618. feature.*
  16619. FROM
  16620. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16621. WHERE cvterm.name = 'genotype';
  16622. --- ************************************************
  16623. --- *** relation: diplotype ***
  16624. --- *** relation type: VIEW ***
  16625. --- *** ***
  16626. --- *** A diplotype is a pair of haplotypes from ***
  16627. --- *** a given individual. It is a genotype wh ***
  16628. --- *** ere the phase is known. ***
  16629. --- ************************************************
  16630. ---
  16631. CREATE VIEW diplotype AS
  16632. SELECT
  16633. feature_id AS diplotype_id,
  16634. feature.*
  16635. FROM
  16636. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16637. WHERE cvterm.name = 'diplotype';
  16638. --- ************************************************
  16639. --- *** relation: direction_attribute ***
  16640. --- *** relation type: VIEW ***
  16641. --- *** ***
  16642. --- ************************************************
  16643. ---
  16644. CREATE VIEW direction_attribute AS
  16645. SELECT
  16646. feature_id AS direction_attribute_id,
  16647. feature.*
  16648. FROM
  16649. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16650. WHERE cvterm.name = 'forward' OR cvterm.name = 'reverse' OR cvterm.name = 'direction_attribute';
  16651. --- ************************************************
  16652. --- *** relation: forward ***
  16653. --- *** relation type: VIEW ***
  16654. --- *** ***
  16655. --- *** Forward is an attribute of the feature, ***
  16656. --- *** where the feature is in the 5' to 3' dir ***
  16657. --- *** ection. ***
  16658. --- ************************************************
  16659. ---
  16660. CREATE VIEW forward AS
  16661. SELECT
  16662. feature_id AS forward_id,
  16663. feature.*
  16664. FROM
  16665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16666. WHERE cvterm.name = 'forward';
  16667. --- ************************************************
  16668. --- *** relation: reverse ***
  16669. --- *** relation type: VIEW ***
  16670. --- *** ***
  16671. --- *** Reverse is an attribute of the feature, ***
  16672. --- *** where the feature is in the 3' to 5' dir ***
  16673. --- *** ection. Again could be applied to primer ***
  16674. --- *** . ***
  16675. --- ************************************************
  16676. ---
  16677. CREATE VIEW reverse AS
  16678. SELECT
  16679. feature_id AS reverse_id,
  16680. feature.*
  16681. FROM
  16682. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16683. WHERE cvterm.name = 'reverse';
  16684. --- ************************************************
  16685. --- *** relation: mitochondrial_dna ***
  16686. --- *** relation type: VIEW ***
  16687. --- *** ***
  16688. --- ************************************************
  16689. ---
  16690. CREATE VIEW mitochondrial_dna AS
  16691. SELECT
  16692. feature_id AS mitochondrial_dna_id,
  16693. feature.*
  16694. FROM
  16695. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16696. WHERE cvterm.name = 'mitochondrial_DNA';
  16697. --- ************************************************
  16698. --- *** relation: chloroplast_dna ***
  16699. --- *** relation type: VIEW ***
  16700. --- *** ***
  16701. --- ************************************************
  16702. ---
  16703. CREATE VIEW chloroplast_dna AS
  16704. SELECT
  16705. feature_id AS chloroplast_dna_id,
  16706. feature.*
  16707. FROM
  16708. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16709. WHERE cvterm.name = 'chloroplast_DNA';
  16710. --- ************************************************
  16711. --- *** relation: mirtron ***
  16712. --- *** relation type: VIEW ***
  16713. --- *** ***
  16714. --- *** A de-branched intron which mimics the st ***
  16715. --- *** ructure of pre-miRNA and enters the miRN ***
  16716. --- *** A processing pathway without Drosha medi ***
  16717. --- *** ated cleavage. ***
  16718. --- ************************************************
  16719. ---
  16720. CREATE VIEW mirtron AS
  16721. SELECT
  16722. feature_id AS mirtron_id,
  16723. feature.*
  16724. FROM
  16725. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16726. WHERE cvterm.name = 'mirtron';
  16727. --- ************************************************
  16728. --- *** relation: pirna ***
  16729. --- *** relation type: VIEW ***
  16730. --- *** ***
  16731. --- *** A small non coding RNA, part of a silenc ***
  16732. --- *** ing system that prevents the spreading o ***
  16733. --- *** f selfish genetic elements. ***
  16734. --- ************************************************
  16735. ---
  16736. CREATE VIEW pirna AS
  16737. SELECT
  16738. feature_id AS pirna_id,
  16739. feature.*
  16740. FROM
  16741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16742. WHERE cvterm.name = 'piRNA';
  16743. --- ************************************************
  16744. --- *** relation: arginyl_trna ***
  16745. --- *** relation type: VIEW ***
  16746. --- *** ***
  16747. --- *** A tRNA sequence that has an arginine ant ***
  16748. --- *** icodon, and a 3' arginine binding region ***
  16749. --- *** . ***
  16750. --- ************************************************
  16751. ---
  16752. CREATE VIEW arginyl_trna AS
  16753. SELECT
  16754. feature_id AS arginyl_trna_id,
  16755. feature.*
  16756. FROM
  16757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16758. WHERE cvterm.name = 'arginyl_tRNA';
  16759. --- ************************************************
  16760. --- *** relation: mobile_genetic_element ***
  16761. --- *** relation type: VIEW ***
  16762. --- *** ***
  16763. --- *** A nucleotide region with either intra-ge ***
  16764. --- *** nome or intracellular moblity, of varyin ***
  16765. --- *** g length, which often carry the informat ***
  16766. --- *** ion necessary for transfer and recombina ***
  16767. --- *** tion with the host genome. ***
  16768. --- ************************************************
  16769. ---
  16770. CREATE VIEW mobile_genetic_element AS
  16771. SELECT
  16772. feature_id AS mobile_genetic_element_id,
  16773. feature.*
  16774. FROM
  16775. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16776. 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';
  16777. --- ************************************************
  16778. --- *** relation: extrachromosomal_mobile_genetic_element ***
  16779. --- *** relation type: VIEW ***
  16780. --- *** ***
  16781. --- *** An MGE that is not integrated into the h ***
  16782. --- *** ost chromosome. ***
  16783. --- ************************************************
  16784. ---
  16785. CREATE VIEW extrachromosomal_mobile_genetic_element AS
  16786. SELECT
  16787. feature_id AS extrachromosomal_mobile_genetic_element_id,
  16788. feature.*
  16789. FROM
  16790. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16791. 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';
  16792. --- ************************************************
  16793. --- *** relation: integrated_mobile_genetic_element ***
  16794. --- *** relation type: VIEW ***
  16795. --- *** ***
  16796. --- *** An MGE that is integrated into the host ***
  16797. --- *** chromosome. ***
  16798. --- ************************************************
  16799. ---
  16800. CREATE VIEW integrated_mobile_genetic_element AS
  16801. SELECT
  16802. feature_id AS integrated_mobile_genetic_element_id,
  16803. feature.*
  16804. FROM
  16805. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16806. 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';
  16807. --- ************************************************
  16808. --- *** relation: integrated_plasmid ***
  16809. --- *** relation type: VIEW ***
  16810. --- *** ***
  16811. --- *** A plasmid sequence that is integrated wi ***
  16812. --- *** thin the host chromosome. ***
  16813. --- ************************************************
  16814. ---
  16815. CREATE VIEW integrated_plasmid AS
  16816. SELECT
  16817. feature_id AS integrated_plasmid_id,
  16818. feature.*
  16819. FROM
  16820. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16821. WHERE cvterm.name = 'integrated_plasmid';
  16822. --- ************************************************
  16823. --- *** relation: viral_sequence ***
  16824. --- *** relation type: VIEW ***
  16825. --- *** ***
  16826. --- *** The region of nucleotide sequence of a v ***
  16827. --- *** irus, a submicroscopic particle that rep ***
  16828. --- *** licates by infecting a host cell. ***
  16829. --- ************************************************
  16830. ---
  16831. CREATE VIEW viral_sequence AS
  16832. SELECT
  16833. feature_id AS viral_sequence_id,
  16834. feature.*
  16835. FROM
  16836. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16837. 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';
  16838. --- ************************************************
  16839. --- *** relation: phage_sequence ***
  16840. --- *** relation type: VIEW ***
  16841. --- *** ***
  16842. --- *** The nucleotide sequence of a virus that ***
  16843. --- *** infects bacteria. ***
  16844. --- ************************************************
  16845. ---
  16846. CREATE VIEW phage_sequence AS
  16847. SELECT
  16848. feature_id AS phage_sequence_id,
  16849. feature.*
  16850. FROM
  16851. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16852. WHERE cvterm.name = 'phage_sequence';
  16853. --- ************************************************
  16854. --- *** relation: attctn_site ***
  16855. --- *** relation type: VIEW ***
  16856. --- *** ***
  16857. --- *** An attachment site located on a conjugat ***
  16858. --- *** ive transposon and used for site-specifi ***
  16859. --- *** c integration of a conjugative transposo ***
  16860. --- *** n. ***
  16861. --- ************************************************
  16862. ---
  16863. CREATE VIEW attctn_site AS
  16864. SELECT
  16865. feature_id AS attctn_site_id,
  16866. feature.*
  16867. FROM
  16868. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16869. WHERE cvterm.name = 'attCtn_site';
  16870. --- ************************************************
  16871. --- *** relation: nuclear_mt_pseudogene ***
  16872. --- *** relation type: VIEW ***
  16873. --- *** ***
  16874. --- *** A nuclear pseudogene of either coding or ***
  16875. --- *** non-coding mitochondria derived sequenc ***
  16876. --- *** e. ***
  16877. --- ************************************************
  16878. ---
  16879. CREATE VIEW nuclear_mt_pseudogene AS
  16880. SELECT
  16881. feature_id AS nuclear_mt_pseudogene_id,
  16882. feature.*
  16883. FROM
  16884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16885. WHERE cvterm.name = 'nuclear_mt_pseudogene';
  16886. --- ************************************************
  16887. --- *** relation: cointegrated_plasmid ***
  16888. --- *** relation type: VIEW ***
  16889. --- *** ***
  16890. --- *** A MGE region consisting of two fused pla ***
  16891. --- *** smids resulting from a replicative trans ***
  16892. --- *** position event. ***
  16893. --- ************************************************
  16894. ---
  16895. CREATE VIEW cointegrated_plasmid AS
  16896. SELECT
  16897. feature_id AS cointegrated_plasmid_id,
  16898. feature.*
  16899. FROM
  16900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16901. WHERE cvterm.name = 'cointegrated_plasmid';
  16902. --- ************************************************
  16903. --- *** relation: irlinv_site ***
  16904. --- *** relation type: VIEW ***
  16905. --- *** ***
  16906. --- *** Component of the inversion site located ***
  16907. --- *** at the left of a region susceptible to s ***
  16908. --- *** ite-specific inversion. ***
  16909. --- ************************************************
  16910. ---
  16911. CREATE VIEW irlinv_site AS
  16912. SELECT
  16913. feature_id AS irlinv_site_id,
  16914. feature.*
  16915. FROM
  16916. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16917. WHERE cvterm.name = 'IRLinv_site';
  16918. --- ************************************************
  16919. --- *** relation: irrinv_site ***
  16920. --- *** relation type: VIEW ***
  16921. --- *** ***
  16922. --- *** Component of the inversion site located ***
  16923. --- *** at the right of a region susceptible to ***
  16924. --- *** site-specific inversion. ***
  16925. --- ************************************************
  16926. ---
  16927. CREATE VIEW irrinv_site AS
  16928. SELECT
  16929. feature_id AS irrinv_site_id,
  16930. feature.*
  16931. FROM
  16932. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16933. WHERE cvterm.name = 'IRRinv_site';
  16934. --- ************************************************
  16935. --- *** relation: inversion_site_part ***
  16936. --- *** relation type: VIEW ***
  16937. --- *** ***
  16938. --- *** A region located within an inversion sit ***
  16939. --- *** e. ***
  16940. --- ************************************************
  16941. ---
  16942. CREATE VIEW inversion_site_part AS
  16943. SELECT
  16944. feature_id AS inversion_site_part_id,
  16945. feature.*
  16946. FROM
  16947. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16948. WHERE cvterm.name = 'IRLinv_site' OR cvterm.name = 'IRRinv_site' OR cvterm.name = 'inversion_site_part';
  16949. --- ************************************************
  16950. --- *** relation: defective_conjugative_transposon ***
  16951. --- *** relation type: VIEW ***
  16952. --- *** ***
  16953. --- *** An island that contains genes for integr ***
  16954. --- *** ation/excision and the gene and site for ***
  16955. --- *** the initiation of intercellular transfe ***
  16956. --- *** r by conjugation. It can be complemented ***
  16957. --- *** for transfer by a conjugative transposo ***
  16958. --- *** n. ***
  16959. --- ************************************************
  16960. ---
  16961. CREATE VIEW defective_conjugative_transposon AS
  16962. SELECT
  16963. feature_id AS defective_conjugative_transposon_id,
  16964. feature.*
  16965. FROM
  16966. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16967. WHERE cvterm.name = 'defective_conjugative_transposon';
  16968. --- ************************************************
  16969. --- *** relation: repeat_fragment ***
  16970. --- *** relation type: VIEW ***
  16971. --- *** ***
  16972. --- *** A portion of a repeat, interrupted by th ***
  16973. --- *** e insertion of another element. ***
  16974. --- ************************************************
  16975. ---
  16976. CREATE VIEW repeat_fragment AS
  16977. SELECT
  16978. feature_id AS repeat_fragment_id,
  16979. feature.*
  16980. FROM
  16981. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16982. WHERE cvterm.name = 'repeat_fragment';
  16983. --- ************************************************
  16984. --- *** relation: transposon_fragment ***
  16985. --- *** relation type: VIEW ***
  16986. --- *** ***
  16987. --- *** A portion of a transposon, interrupted b ***
  16988. --- *** y the insertion of another element. ***
  16989. --- ************************************************
  16990. ---
  16991. CREATE VIEW transposon_fragment AS
  16992. SELECT
  16993. feature_id AS transposon_fragment_id,
  16994. feature.*
  16995. FROM
  16996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  16997. WHERE cvterm.name = 'transposon_fragment';
  16998. --- ************************************************
  16999. --- *** relation: transcriptional_cis_regulatory_region ***
  17000. --- *** relation type: VIEW ***
  17001. --- *** ***
  17002. --- *** A regulatory_region that modulates the t ***
  17003. --- *** ranscription of a gene or genes. ***
  17004. --- ************************************************
  17005. ---
  17006. CREATE VIEW transcriptional_cis_regulatory_region AS
  17007. SELECT
  17008. feature_id AS transcriptional_cis_regulatory_region_id,
  17009. feature.*
  17010. FROM
  17011. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17012. 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';
  17013. --- ************************************************
  17014. --- *** relation: splicing_regulatory_region ***
  17015. --- *** relation type: VIEW ***
  17016. --- *** ***
  17017. --- *** A regulatory_region that modulates splic ***
  17018. --- *** ing. ***
  17019. --- ************************************************
  17020. ---
  17021. CREATE VIEW splicing_regulatory_region AS
  17022. SELECT
  17023. feature_id AS splicing_regulatory_region_id,
  17024. feature.*
  17025. FROM
  17026. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17027. WHERE cvterm.name = 'splice_enhancer' OR cvterm.name = 'intronic_splice_enhancer' OR cvterm.name = 'exonic_splice_enhancer' OR cvterm.name = 'splicing_regulatory_region';
  17028. --- ************************************************
  17029. --- *** relation: promoter_targeting_sequence ***
  17030. --- *** relation type: VIEW ***
  17031. --- *** ***
  17032. --- *** A transcriptional_cis_regulatory_region ***
  17033. --- *** that restricts the activity of a CRM to ***
  17034. --- *** a single promoter and which functions on ***
  17035. --- *** ly when both itself and an insulator are ***
  17036. --- *** located between the CRM and the promote ***
  17037. --- *** r. ***
  17038. --- ************************************************
  17039. ---
  17040. CREATE VIEW promoter_targeting_sequence AS
  17041. SELECT
  17042. feature_id AS promoter_targeting_sequence_id,
  17043. feature.*
  17044. FROM
  17045. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17046. WHERE cvterm.name = 'promoter_targeting_sequence';
  17047. --- ************************************************
  17048. --- *** relation: sequence_alteration ***
  17049. --- *** relation type: VIEW ***
  17050. --- *** ***
  17051. --- *** A sequence_alteration is a sequence_feat ***
  17052. --- *** ure whose extent is the deviation from a ***
  17053. --- *** nother sequence. ***
  17054. --- ************************************************
  17055. ---
  17056. CREATE VIEW sequence_alteration AS
  17057. SELECT
  17058. feature_id AS sequence_alteration_id,
  17059. feature.*
  17060. FROM
  17061. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17062. 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';
  17063. --- ************************************************
  17064. --- *** relation: sequence_variant ***
  17065. --- *** relation type: VIEW ***
  17066. --- *** ***
  17067. --- *** A sequence_variant is a non exact copy o ***
  17068. --- *** f a sequence_feature or genome exhibitin ***
  17069. --- *** g one or more sequence_alteration. ***
  17070. --- ************************************************
  17071. ---
  17072. CREATE VIEW sequence_variant AS
  17073. SELECT
  17074. feature_id AS sequence_variant_id,
  17075. feature.*
  17076. FROM
  17077. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17078. 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';
  17079. --- ************************************************
  17080. --- *** relation: propeptide_cleavage_site ***
  17081. --- *** relation type: VIEW ***
  17082. --- *** ***
  17083. --- *** The propeptide_cleavage_site is the argi ***
  17084. --- *** nine/lysine boundary on a propeptide whe ***
  17085. --- *** re cleavage occurs. ***
  17086. --- ************************************************
  17087. ---
  17088. CREATE VIEW propeptide_cleavage_site AS
  17089. SELECT
  17090. feature_id AS propeptide_cleavage_site_id,
  17091. feature.*
  17092. FROM
  17093. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17094. WHERE cvterm.name = 'propeptide_cleavage_site';
  17095. --- ************************************************
  17096. --- *** relation: propeptide ***
  17097. --- *** relation type: VIEW ***
  17098. --- *** ***
  17099. --- *** Part of a peptide chain which is cleaved ***
  17100. --- *** off during the formation of the mature ***
  17101. --- *** protein. ***
  17102. --- ************************************************
  17103. ---
  17104. CREATE VIEW propeptide AS
  17105. SELECT
  17106. feature_id AS propeptide_id,
  17107. feature.*
  17108. FROM
  17109. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17110. WHERE cvterm.name = 'propeptide';
  17111. --- ************************************************
  17112. --- *** relation: immature_peptide_region ***
  17113. --- *** relation type: VIEW ***
  17114. --- *** ***
  17115. --- *** An immature_peptide_region is the extent ***
  17116. --- *** of the peptide after it has been transl ***
  17117. --- *** ated and before any processing occurs. ***
  17118. --- ************************************************
  17119. ---
  17120. CREATE VIEW immature_peptide_region AS
  17121. SELECT
  17122. feature_id AS immature_peptide_region_id,
  17123. feature.*
  17124. FROM
  17125. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17126. WHERE cvterm.name = 'immature_peptide_region';
  17127. --- ************************************************
  17128. --- *** relation: active_peptide ***
  17129. --- *** relation type: VIEW ***
  17130. --- *** ***
  17131. --- *** Active peptides are proteins which are b ***
  17132. --- *** iologically active, released from a prec ***
  17133. --- *** ursor molecule. ***
  17134. --- ************************************************
  17135. ---
  17136. CREATE VIEW active_peptide AS
  17137. SELECT
  17138. feature_id AS active_peptide_id,
  17139. feature.*
  17140. FROM
  17141. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17142. WHERE cvterm.name = 'active_peptide';
  17143. --- ************************************************
  17144. --- *** relation: compositionally_biased_region_of_peptide ***
  17145. --- *** relation type: VIEW ***
  17146. --- *** ***
  17147. --- *** Polypeptide region that is rich in a par ***
  17148. --- *** ticular amino acid or homopolymeric and ***
  17149. --- *** greater than three residues in length. ***
  17150. --- ************************************************
  17151. ---
  17152. CREATE VIEW compositionally_biased_region_of_peptide AS
  17153. SELECT
  17154. feature_id AS compositionally_biased_region_of_peptide_id,
  17155. feature.*
  17156. FROM
  17157. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17158. WHERE cvterm.name = 'compositionally_biased_region_of_peptide';
  17159. --- ************************************************
  17160. --- *** relation: polypeptide_motif ***
  17161. --- *** relation type: VIEW ***
  17162. --- *** ***
  17163. --- *** A sequence motif is a short (up to 20 am ***
  17164. --- *** ino acids) region of biological interest ***
  17165. --- *** . Such motifs, although they are too sho ***
  17166. --- *** rt to constitute functional domains, sha ***
  17167. --- *** re sequence similarities and are conserv ***
  17168. --- *** ed in different proteins. They display a ***
  17169. --- *** common function (protein-binding, subce ***
  17170. --- *** llular location etc.). ***
  17171. --- ************************************************
  17172. ---
  17173. CREATE VIEW polypeptide_motif AS
  17174. SELECT
  17175. feature_id AS polypeptide_motif_id,
  17176. feature.*
  17177. FROM
  17178. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17179. 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';
  17180. --- ************************************************
  17181. --- *** relation: polypeptide_repeat ***
  17182. --- *** relation type: VIEW ***
  17183. --- *** ***
  17184. --- *** A polypeptide_repeat is a single copy of ***
  17185. --- *** an internal sequence repetition. ***
  17186. --- ************************************************
  17187. ---
  17188. CREATE VIEW polypeptide_repeat AS
  17189. SELECT
  17190. feature_id AS polypeptide_repeat_id,
  17191. feature.*
  17192. FROM
  17193. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17194. WHERE cvterm.name = 'polypeptide_repeat';
  17195. --- ************************************************
  17196. --- *** relation: polypeptide_structural_region ***
  17197. --- *** relation type: VIEW ***
  17198. --- *** ***
  17199. --- *** Region of polypeptide with a given struc ***
  17200. --- *** tural property. ***
  17201. --- ************************************************
  17202. ---
  17203. CREATE VIEW polypeptide_structural_region AS
  17204. SELECT
  17205. feature_id AS polypeptide_structural_region_id,
  17206. feature.*
  17207. FROM
  17208. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17209. 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';
  17210. --- ************************************************
  17211. --- *** relation: membrane_structure ***
  17212. --- *** relation type: VIEW ***
  17213. --- *** ***
  17214. --- *** Arrangement of the polypeptide with resp ***
  17215. --- *** ect to the lipid bilayer. ***
  17216. --- ************************************************
  17217. ---
  17218. CREATE VIEW membrane_structure AS
  17219. SELECT
  17220. feature_id AS membrane_structure_id,
  17221. feature.*
  17222. FROM
  17223. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17224. WHERE cvterm.name = 'membrane_structure';
  17225. --- ************************************************
  17226. --- *** relation: extramembrane_polypeptide_region ***
  17227. --- *** relation type: VIEW ***
  17228. --- *** ***
  17229. --- *** Polypeptide region that is localized out ***
  17230. --- *** side of a lipid bilayer. ***
  17231. --- ************************************************
  17232. ---
  17233. CREATE VIEW extramembrane_polypeptide_region AS
  17234. SELECT
  17235. feature_id AS extramembrane_polypeptide_region_id,
  17236. feature.*
  17237. FROM
  17238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17239. WHERE cvterm.name = 'cytoplasmic_polypeptide_region' OR cvterm.name = 'non_cytoplasmic_polypeptide_region' OR cvterm.name = 'extramembrane_polypeptide_region';
  17240. --- ************************************************
  17241. --- *** relation: cytoplasmic_polypeptide_region ***
  17242. --- *** relation type: VIEW ***
  17243. --- *** ***
  17244. --- *** Polypeptide region that is localized ins ***
  17245. --- *** ide the cytoplasm. ***
  17246. --- ************************************************
  17247. ---
  17248. CREATE VIEW cytoplasmic_polypeptide_region AS
  17249. SELECT
  17250. feature_id AS cytoplasmic_polypeptide_region_id,
  17251. feature.*
  17252. FROM
  17253. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17254. WHERE cvterm.name = 'cytoplasmic_polypeptide_region';
  17255. --- ************************************************
  17256. --- *** relation: non_cytoplasmic_polypeptide_region ***
  17257. --- *** relation type: VIEW ***
  17258. --- *** ***
  17259. --- *** Polypeptide region that is localized out ***
  17260. --- *** side of a lipid bilayer and outside of t ***
  17261. --- *** he cytoplasm. ***
  17262. --- ************************************************
  17263. ---
  17264. CREATE VIEW non_cytoplasmic_polypeptide_region AS
  17265. SELECT
  17266. feature_id AS non_cytoplasmic_polypeptide_region_id,
  17267. feature.*
  17268. FROM
  17269. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17270. WHERE cvterm.name = 'non_cytoplasmic_polypeptide_region';
  17271. --- ************************************************
  17272. --- *** relation: intramembrane_polypeptide_region ***
  17273. --- *** relation type: VIEW ***
  17274. --- *** ***
  17275. --- *** Polypeptide region present in the lipid ***
  17276. --- *** bilayer. ***
  17277. --- ************************************************
  17278. ---
  17279. CREATE VIEW intramembrane_polypeptide_region AS
  17280. SELECT
  17281. feature_id AS intramembrane_polypeptide_region_id,
  17282. feature.*
  17283. FROM
  17284. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17285. WHERE cvterm.name = 'membrane_peptide_loop' OR cvterm.name = 'transmembrane_polypeptide_region' OR cvterm.name = 'intramembrane_polypeptide_region';
  17286. --- ************************************************
  17287. --- *** relation: membrane_peptide_loop ***
  17288. --- *** relation type: VIEW ***
  17289. --- *** ***
  17290. --- *** Polypeptide region localized within the ***
  17291. --- *** lipid bilayer where both ends traverse t ***
  17292. --- *** he same membrane. ***
  17293. --- ************************************************
  17294. ---
  17295. CREATE VIEW membrane_peptide_loop AS
  17296. SELECT
  17297. feature_id AS membrane_peptide_loop_id,
  17298. feature.*
  17299. FROM
  17300. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17301. WHERE cvterm.name = 'membrane_peptide_loop';
  17302. --- ************************************************
  17303. --- *** relation: transmembrane_polypeptide_region ***
  17304. --- *** relation type: VIEW ***
  17305. --- *** ***
  17306. --- *** Polypeptide region traversing the lipid ***
  17307. --- *** bilayer. ***
  17308. --- ************************************************
  17309. ---
  17310. CREATE VIEW transmembrane_polypeptide_region AS
  17311. SELECT
  17312. feature_id AS transmembrane_polypeptide_region_id,
  17313. feature.*
  17314. FROM
  17315. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17316. WHERE cvterm.name = 'transmembrane_polypeptide_region';
  17317. --- ************************************************
  17318. --- *** relation: polypeptide_secondary_structure ***
  17319. --- *** relation type: VIEW ***
  17320. --- *** ***
  17321. --- *** A region of peptide with secondary struc ***
  17322. --- *** ture has hydrogen bonding along the pept ***
  17323. --- *** ide chain that causes a defined conforma ***
  17324. --- *** tion of the chain. ***
  17325. --- ************************************************
  17326. ---
  17327. CREATE VIEW polypeptide_secondary_structure AS
  17328. SELECT
  17329. feature_id AS polypeptide_secondary_structure_id,
  17330. feature.*
  17331. FROM
  17332. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17333. 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';
  17334. --- ************************************************
  17335. --- *** relation: polypeptide_structural_motif ***
  17336. --- *** relation type: VIEW ***
  17337. --- *** ***
  17338. --- *** Motif is a three-dimensional structural ***
  17339. --- *** element within the chain, which appears ***
  17340. --- *** also in a variety of other molecules. Un ***
  17341. --- *** like a domain, a motif does not need to ***
  17342. --- *** form a stable globular unit. ***
  17343. --- ************************************************
  17344. ---
  17345. CREATE VIEW polypeptide_structural_motif AS
  17346. SELECT
  17347. feature_id AS polypeptide_structural_motif_id,
  17348. feature.*
  17349. FROM
  17350. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17351. WHERE cvterm.name = 'coiled_coil' OR cvterm.name = 'helix_turn_helix' OR cvterm.name = 'polypeptide_structural_motif';
  17352. --- ************************************************
  17353. --- *** relation: coiled_coil ***
  17354. --- *** relation type: VIEW ***
  17355. --- *** ***
  17356. --- *** A coiled coil is a structural motif in p ***
  17357. --- *** roteins, in which alpha-helices are coil ***
  17358. --- *** ed together like the strands of a rope. ***
  17359. --- ************************************************
  17360. ---
  17361. CREATE VIEW coiled_coil AS
  17362. SELECT
  17363. feature_id AS coiled_coil_id,
  17364. feature.*
  17365. FROM
  17366. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17367. WHERE cvterm.name = 'coiled_coil';
  17368. --- ************************************************
  17369. --- *** relation: helix_turn_helix ***
  17370. --- *** relation type: VIEW ***
  17371. --- *** ***
  17372. --- *** A motif comprising two helices separated ***
  17373. --- *** by a turn. ***
  17374. --- ************************************************
  17375. ---
  17376. CREATE VIEW helix_turn_helix AS
  17377. SELECT
  17378. feature_id AS helix_turn_helix_id,
  17379. feature.*
  17380. FROM
  17381. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17382. WHERE cvterm.name = 'helix_turn_helix';
  17383. --- ************************************************
  17384. --- *** relation: polypeptide_sequencing_information ***
  17385. --- *** relation type: VIEW ***
  17386. --- *** ***
  17387. --- *** Incompatibility in the sequence due to s ***
  17388. --- *** ome experimental problem. ***
  17389. --- ************************************************
  17390. ---
  17391. CREATE VIEW polypeptide_sequencing_information AS
  17392. SELECT
  17393. feature_id AS polypeptide_sequencing_information_id,
  17394. feature.*
  17395. FROM
  17396. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17397. 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';
  17398. --- ************************************************
  17399. --- *** relation: non_adjacent_residues ***
  17400. --- *** relation type: VIEW ***
  17401. --- *** ***
  17402. --- *** Indicates that two consecutive residues ***
  17403. --- *** in a fragment sequence are not consecuti ***
  17404. --- *** ve in the full-length protein and that t ***
  17405. --- *** here are a number of unsequenced residue ***
  17406. --- *** s between them. ***
  17407. --- ************************************************
  17408. ---
  17409. CREATE VIEW non_adjacent_residues AS
  17410. SELECT
  17411. feature_id AS non_adjacent_residues_id,
  17412. feature.*
  17413. FROM
  17414. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17415. WHERE cvterm.name = 'non_adjacent_residues';
  17416. --- ************************************************
  17417. --- *** relation: non_terminal_residue ***
  17418. --- *** relation type: VIEW ***
  17419. --- *** ***
  17420. --- *** The residue at an extremity of the seque ***
  17421. --- *** nce is not the terminal residue. ***
  17422. --- ************************************************
  17423. ---
  17424. CREATE VIEW non_terminal_residue AS
  17425. SELECT
  17426. feature_id AS non_terminal_residue_id,
  17427. feature.*
  17428. FROM
  17429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17430. WHERE cvterm.name = 'non_terminal_residue';
  17431. --- ************************************************
  17432. --- *** relation: sequence_conflict ***
  17433. --- *** relation type: VIEW ***
  17434. --- *** ***
  17435. --- *** Different sources report differing seque ***
  17436. --- *** nces. ***
  17437. --- ************************************************
  17438. ---
  17439. CREATE VIEW sequence_conflict AS
  17440. SELECT
  17441. feature_id AS sequence_conflict_id,
  17442. feature.*
  17443. FROM
  17444. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17445. WHERE cvterm.name = 'contig_collection' OR cvterm.name = 'sequence_conflict';
  17446. --- ************************************************
  17447. --- *** relation: sequence_uncertainty ***
  17448. --- *** relation type: VIEW ***
  17449. --- *** ***
  17450. --- *** Describes the positions in a sequence wh ***
  17451. --- *** ere the authors are unsure about the seq ***
  17452. --- *** uence assignment. ***
  17453. --- ************************************************
  17454. ---
  17455. CREATE VIEW sequence_uncertainty AS
  17456. SELECT
  17457. feature_id AS sequence_uncertainty_id,
  17458. feature.*
  17459. FROM
  17460. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17461. WHERE cvterm.name = 'sequence_uncertainty';
  17462. --- ************************************************
  17463. --- *** relation: post_translationally_modified_region ***
  17464. --- *** relation type: VIEW ***
  17465. --- *** ***
  17466. --- *** A region where a transformation occurs i ***
  17467. --- *** n a protein after it has been synthesize ***
  17468. --- *** d. This which may regulate, stabilize, c ***
  17469. --- *** rosslink or introduce new chemical funct ***
  17470. --- *** ionalities in the protein. ***
  17471. --- ************************************************
  17472. ---
  17473. CREATE VIEW post_translationally_modified_region AS
  17474. SELECT
  17475. feature_id AS post_translationally_modified_region_id,
  17476. feature.*
  17477. FROM
  17478. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17479. 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';
  17480. --- ************************************************
  17481. --- *** relation: polypeptide_metal_contact ***
  17482. --- *** relation type: VIEW ***
  17483. --- *** ***
  17484. --- *** A binding site that, in the polypeptide ***
  17485. --- *** molecule, interacts selectively and non- ***
  17486. --- *** covalently with metal ions. ***
  17487. --- ************************************************
  17488. ---
  17489. CREATE VIEW polypeptide_metal_contact AS
  17490. SELECT
  17491. feature_id AS polypeptide_metal_contact_id,
  17492. feature.*
  17493. FROM
  17494. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17495. 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';
  17496. --- ************************************************
  17497. --- *** relation: protein_protein_contact ***
  17498. --- *** relation type: VIEW ***
  17499. --- *** ***
  17500. --- *** A binding site that, in the protein mole ***
  17501. --- *** cule, interacts selectively and non-cova ***
  17502. --- *** lently with polypeptide residues. ***
  17503. --- ************************************************
  17504. ---
  17505. CREATE VIEW protein_protein_contact AS
  17506. SELECT
  17507. feature_id AS protein_protein_contact_id,
  17508. feature.*
  17509. FROM
  17510. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17511. WHERE cvterm.name = 'protein_protein_contact';
  17512. --- ************************************************
  17513. --- *** relation: polypeptide_calcium_ion_contact_site ***
  17514. --- *** relation type: VIEW ***
  17515. --- *** ***
  17516. --- *** A binding site that, in the polypeptide ***
  17517. --- *** molecule, interacts selectively and non- ***
  17518. --- *** covalently with calcium ions. ***
  17519. --- ************************************************
  17520. ---
  17521. CREATE VIEW polypeptide_calcium_ion_contact_site AS
  17522. SELECT
  17523. feature_id AS polypeptide_calcium_ion_contact_site_id,
  17524. feature.*
  17525. FROM
  17526. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17527. WHERE cvterm.name = 'polypeptide_calcium_ion_contact_site';
  17528. --- ************************************************
  17529. --- *** relation: polypeptide_cobalt_ion_contact_site ***
  17530. --- *** relation type: VIEW ***
  17531. --- *** ***
  17532. --- *** A binding site that, in the polypeptide ***
  17533. --- *** molecule, interacts selectively and non- ***
  17534. --- *** covalently with cobalt ions. ***
  17535. --- ************************************************
  17536. ---
  17537. CREATE VIEW polypeptide_cobalt_ion_contact_site AS
  17538. SELECT
  17539. feature_id AS polypeptide_cobalt_ion_contact_site_id,
  17540. feature.*
  17541. FROM
  17542. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17543. WHERE cvterm.name = 'polypeptide_cobalt_ion_contact_site';
  17544. --- ************************************************
  17545. --- *** relation: polypeptide_copper_ion_contact_site ***
  17546. --- *** relation type: VIEW ***
  17547. --- *** ***
  17548. --- *** A binding site that, in the polypeptide ***
  17549. --- *** molecule, interacts selectively and non- ***
  17550. --- *** covalently with copper ions. ***
  17551. --- ************************************************
  17552. ---
  17553. CREATE VIEW polypeptide_copper_ion_contact_site AS
  17554. SELECT
  17555. feature_id AS polypeptide_copper_ion_contact_site_id,
  17556. feature.*
  17557. FROM
  17558. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17559. WHERE cvterm.name = 'polypeptide_copper_ion_contact_site';
  17560. --- ************************************************
  17561. --- *** relation: polypeptide_iron_ion_contact_site ***
  17562. --- *** relation type: VIEW ***
  17563. --- *** ***
  17564. --- *** A binding site that, in the polypeptide ***
  17565. --- *** molecule, interacts selectively and non- ***
  17566. --- *** covalently with iron ions. ***
  17567. --- ************************************************
  17568. ---
  17569. CREATE VIEW polypeptide_iron_ion_contact_site AS
  17570. SELECT
  17571. feature_id AS polypeptide_iron_ion_contact_site_id,
  17572. feature.*
  17573. FROM
  17574. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17575. WHERE cvterm.name = 'polypeptide_iron_ion_contact_site';
  17576. --- ************************************************
  17577. --- *** relation: polypeptide_magnesium_ion_contact_site ***
  17578. --- *** relation type: VIEW ***
  17579. --- *** ***
  17580. --- *** A binding site that, in the polypeptide ***
  17581. --- *** molecule, interacts selectively and non- ***
  17582. --- *** covalently with magnesium ions. ***
  17583. --- ************************************************
  17584. ---
  17585. CREATE VIEW polypeptide_magnesium_ion_contact_site AS
  17586. SELECT
  17587. feature_id AS polypeptide_magnesium_ion_contact_site_id,
  17588. feature.*
  17589. FROM
  17590. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17591. WHERE cvterm.name = 'polypeptide_magnesium_ion_contact_site';
  17592. --- ************************************************
  17593. --- *** relation: polypeptide_manganese_ion_contact_site ***
  17594. --- *** relation type: VIEW ***
  17595. --- *** ***
  17596. --- *** A binding site that, in the polypeptide ***
  17597. --- *** molecule, interacts selectively and non- ***
  17598. --- *** covalently with manganese ions. ***
  17599. --- ************************************************
  17600. ---
  17601. CREATE VIEW polypeptide_manganese_ion_contact_site AS
  17602. SELECT
  17603. feature_id AS polypeptide_manganese_ion_contact_site_id,
  17604. feature.*
  17605. FROM
  17606. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17607. WHERE cvterm.name = 'polypeptide_manganese_ion_contact_site';
  17608. --- ************************************************
  17609. --- *** relation: polypeptide_molybdenum_ion_contact_site ***
  17610. --- *** relation type: VIEW ***
  17611. --- *** ***
  17612. --- *** A binding site that, in the polypeptide ***
  17613. --- *** molecule, interacts selectively and non- ***
  17614. --- *** covalently with molybdenum ions. ***
  17615. --- ************************************************
  17616. ---
  17617. CREATE VIEW polypeptide_molybdenum_ion_contact_site AS
  17618. SELECT
  17619. feature_id AS polypeptide_molybdenum_ion_contact_site_id,
  17620. feature.*
  17621. FROM
  17622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17623. WHERE cvterm.name = 'polypeptide_molybdenum_ion_contact_site';
  17624. --- ************************************************
  17625. --- *** relation: polypeptide_nickel_ion_contact_site ***
  17626. --- *** relation type: VIEW ***
  17627. --- *** ***
  17628. --- *** A binding site that, in the polypeptide ***
  17629. --- *** molecule, interacts selectively and non- ***
  17630. --- *** covalently with nickel ions. ***
  17631. --- ************************************************
  17632. ---
  17633. CREATE VIEW polypeptide_nickel_ion_contact_site AS
  17634. SELECT
  17635. feature_id AS polypeptide_nickel_ion_contact_site_id,
  17636. feature.*
  17637. FROM
  17638. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17639. WHERE cvterm.name = 'polypeptide_nickel_ion_contact_site';
  17640. --- ************************************************
  17641. --- *** relation: polypeptide_tungsten_ion_contact_site ***
  17642. --- *** relation type: VIEW ***
  17643. --- *** ***
  17644. --- *** A binding site that, in the polypeptide ***
  17645. --- *** molecule, interacts selectively and non- ***
  17646. --- *** covalently with tungsten ions. ***
  17647. --- ************************************************
  17648. ---
  17649. CREATE VIEW polypeptide_tungsten_ion_contact_site AS
  17650. SELECT
  17651. feature_id AS polypeptide_tungsten_ion_contact_site_id,
  17652. feature.*
  17653. FROM
  17654. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17655. WHERE cvterm.name = 'polypeptide_tungsten_ion_contact_site';
  17656. --- ************************************************
  17657. --- *** relation: polypeptide_zinc_ion_contact_site ***
  17658. --- *** relation type: VIEW ***
  17659. --- *** ***
  17660. --- *** A binding site that, in the polypeptide ***
  17661. --- *** molecule, interacts selectively and non- ***
  17662. --- *** covalently with zinc ions. ***
  17663. --- ************************************************
  17664. ---
  17665. CREATE VIEW polypeptide_zinc_ion_contact_site AS
  17666. SELECT
  17667. feature_id AS polypeptide_zinc_ion_contact_site_id,
  17668. feature.*
  17669. FROM
  17670. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17671. WHERE cvterm.name = 'polypeptide_zinc_ion_contact_site';
  17672. --- ************************************************
  17673. --- *** relation: catalytic_residue ***
  17674. --- *** relation type: VIEW ***
  17675. --- *** ***
  17676. --- *** Amino acid involved in the activity of a ***
  17677. --- *** n enzyme. ***
  17678. --- ************************************************
  17679. ---
  17680. CREATE VIEW catalytic_residue AS
  17681. SELECT
  17682. feature_id AS catalytic_residue_id,
  17683. feature.*
  17684. FROM
  17685. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17686. WHERE cvterm.name = 'catalytic_residue';
  17687. --- ************************************************
  17688. --- *** relation: polypeptide_ligand_contact ***
  17689. --- *** relation type: VIEW ***
  17690. --- *** ***
  17691. --- *** Residues which interact with a ligand. ***
  17692. --- ************************************************
  17693. ---
  17694. CREATE VIEW polypeptide_ligand_contact AS
  17695. SELECT
  17696. feature_id AS polypeptide_ligand_contact_id,
  17697. feature.*
  17698. FROM
  17699. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17700. WHERE cvterm.name = 'polypeptide_ligand_contact';
  17701. --- ************************************************
  17702. --- *** relation: asx_motif ***
  17703. --- *** relation type: VIEW ***
  17704. --- *** ***
  17705. --- *** A motif of five consecutive residues and ***
  17706. --- *** two H-bonds in which: Residue(i) is Asp ***
  17707. --- *** artate or Asparagine (Asx), side-chain O ***
  17708. --- *** of residue(i) is H-bonded to the main-c ***
  17709. --- *** hain NH of residue(i+2) or (i+3), main-c ***
  17710. --- *** hain CO of residue(i) is H-bonded to the ***
  17711. --- *** main-chain NH of residue(i+3) or (i+4). ***
  17712. --- ************************************************
  17713. ---
  17714. CREATE VIEW asx_motif AS
  17715. SELECT
  17716. feature_id AS asx_motif_id,
  17717. feature.*
  17718. FROM
  17719. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17720. WHERE cvterm.name = 'asx_motif';
  17721. --- ************************************************
  17722. --- *** relation: beta_bulge ***
  17723. --- *** relation type: VIEW ***
  17724. --- *** ***
  17725. --- *** A motif of three residues within a beta- ***
  17726. --- *** sheet in which the main chains of two co ***
  17727. --- *** nsecutive residues are H-bonded to that ***
  17728. --- *** of the third, and in which the dihedral ***
  17729. --- *** angles are as follows: Residue(i): -140 ***
  17730. --- *** degrees < phi(l) -20 degrees , -90 degre ***
  17731. --- *** es < psi(l) < 40 degrees. Residue (i+1): ***
  17732. --- *** -180 degrees < phi < -25 degrees or +12 ***
  17733. --- *** 0 degrees < phi < +180 degrees, +40 degr ***
  17734. --- *** ees < psi < +180 degrees or -180 degrees ***
  17735. --- *** < psi < -120 degrees. ***
  17736. --- ************************************************
  17737. ---
  17738. CREATE VIEW beta_bulge AS
  17739. SELECT
  17740. feature_id AS beta_bulge_id,
  17741. feature.*
  17742. FROM
  17743. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17744. WHERE cvterm.name = 'beta_bulge';
  17745. --- ************************************************
  17746. --- *** relation: beta_bulge_loop ***
  17747. --- *** relation type: VIEW ***
  17748. --- *** ***
  17749. --- *** A motif of three residues within a beta- ***
  17750. --- *** sheet consisting of two H-bonds. Beta bu ***
  17751. --- *** lge loops often occur at the loop ends o ***
  17752. --- *** f beta-hairpins. ***
  17753. --- ************************************************
  17754. ---
  17755. CREATE VIEW beta_bulge_loop AS
  17756. SELECT
  17757. feature_id AS beta_bulge_loop_id,
  17758. feature.*
  17759. FROM
  17760. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17761. WHERE cvterm.name = 'beta_bulge_loop_five' OR cvterm.name = 'beta_bulge_loop_six' OR cvterm.name = 'beta_bulge_loop';
  17762. --- ************************************************
  17763. --- *** relation: beta_bulge_loop_five ***
  17764. --- *** relation type: VIEW ***
  17765. --- *** ***
  17766. --- *** A motif of three residues within a beta- ***
  17767. --- *** sheet consisting of two H-bonds in which ***
  17768. --- *** : the main-chain NH of residue(i) is H-b ***
  17769. --- *** onded to the main-chain CO of residue(i+ ***
  17770. --- *** 4), the main-chain CO of residue i is H- ***
  17771. --- *** bonded to the main-chain NH of residue(i ***
  17772. --- *** +3), these loops have an RL nest at resi ***
  17773. --- *** dues i+2 and i+3. ***
  17774. --- ************************************************
  17775. ---
  17776. CREATE VIEW beta_bulge_loop_five AS
  17777. SELECT
  17778. feature_id AS beta_bulge_loop_five_id,
  17779. feature.*
  17780. FROM
  17781. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17782. WHERE cvterm.name = 'beta_bulge_loop_five';
  17783. --- ************************************************
  17784. --- *** relation: beta_bulge_loop_six ***
  17785. --- *** relation type: VIEW ***
  17786. --- *** ***
  17787. --- *** A motif of three residues within a beta- ***
  17788. --- *** sheet consisting of two H-bonds in which ***
  17789. --- *** : the main-chain NH of residue(i) is H-b ***
  17790. --- *** onded to the main-chain CO of residue(i+ ***
  17791. --- *** 5), the main-chain CO of residue i is H- ***
  17792. --- *** bonded to the main-chain NH of residue(i ***
  17793. --- *** +4), these loops have an RL nest at resi ***
  17794. --- *** dues i+3 and i+4. ***
  17795. --- ************************************************
  17796. ---
  17797. CREATE VIEW beta_bulge_loop_six AS
  17798. SELECT
  17799. feature_id AS beta_bulge_loop_six_id,
  17800. feature.*
  17801. FROM
  17802. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17803. WHERE cvterm.name = 'beta_bulge_loop_six';
  17804. --- ************************************************
  17805. --- *** relation: beta_strand ***
  17806. --- *** relation type: VIEW ***
  17807. --- *** ***
  17808. --- *** A beta strand describes a single length ***
  17809. --- *** of polypeptide chain that forms part of ***
  17810. --- *** a beta sheet. A single continuous stretc ***
  17811. --- *** h of amino acids adopting an extended co ***
  17812. --- *** nformation of hydrogen bonds between the ***
  17813. --- *** N-O and the C=O of another part of the ***
  17814. --- *** peptide. This forms a secondary protein ***
  17815. --- *** structure in which two or more extended ***
  17816. --- *** polypeptide regions are hydrogen-bonded ***
  17817. --- *** to one another in a planar array. ***
  17818. --- ************************************************
  17819. ---
  17820. CREATE VIEW beta_strand AS
  17821. SELECT
  17822. feature_id AS beta_strand_id,
  17823. feature.*
  17824. FROM
  17825. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17826. WHERE cvterm.name = 'antiparallel_beta_strand' OR cvterm.name = 'parallel_beta_strand' OR cvterm.name = 'beta_strand';
  17827. --- ************************************************
  17828. --- *** relation: antiparallel_beta_strand ***
  17829. --- *** relation type: VIEW ***
  17830. --- *** ***
  17831. --- *** A peptide region which hydrogen bonded t ***
  17832. --- *** o another region of peptide running in t ***
  17833. --- *** he oposite direction (one running N-term ***
  17834. --- *** inal to C-terminal and one running C-ter ***
  17835. --- *** minal to N-terminal). Hydrogen bonding o ***
  17836. --- *** ccurs between every other C=O from one s ***
  17837. --- *** trand to every other N-H on the adjacent ***
  17838. --- *** strand. In this case, if two atoms C-al ***
  17839. --- *** pha (i) and C-alpha (j) are adjacent in ***
  17840. --- *** two hydrogen-bonded beta strands, then t ***
  17841. --- *** hey form two mutual backbone hydrogen bo ***
  17842. --- *** nds to each other's flanking peptide gro ***
  17843. --- *** ups; this is known as a close pair of hy ***
  17844. --- *** drogen bonds. The peptide backbone dihed ***
  17845. --- *** ral angles (phi, psi) are about (-140 de ***
  17846. --- *** grees, 135 degrees) in antiparallel shee ***
  17847. --- *** ts. ***
  17848. --- ************************************************
  17849. ---
  17850. CREATE VIEW antiparallel_beta_strand AS
  17851. SELECT
  17852. feature_id AS antiparallel_beta_strand_id,
  17853. feature.*
  17854. FROM
  17855. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17856. WHERE cvterm.name = 'antiparallel_beta_strand';
  17857. --- ************************************************
  17858. --- *** relation: parallel_beta_strand ***
  17859. --- *** relation type: VIEW ***
  17860. --- *** ***
  17861. --- *** A peptide region which hydrogen bonded t ***
  17862. --- *** o another region of peptide running in t ***
  17863. --- *** he oposite direction (both running N-ter ***
  17864. --- *** minal to C-terminal). This orientation i ***
  17865. --- *** s slightly less stable because it introd ***
  17866. --- *** uces nonplanarity in the inter-strand hy ***
  17867. --- *** drogen bonding pattern. Hydrogen bonding ***
  17868. --- *** occurs between every other C=O from one ***
  17869. --- *** strand to every other N-H on the adjace ***
  17870. --- *** nt strand. In this case, if two atoms C- ***
  17871. --- *** alpha (i)and C-alpha (j) are adjacent in ***
  17872. --- *** two hydrogen-bonded beta strands, then ***
  17873. --- *** they do not hydrogen bond to each other; ***
  17874. --- *** rather, one residue forms hydrogen bond ***
  17875. --- *** s to the residues that flank the other ( ***
  17876. --- *** but not vice versa). For example, residu ***
  17877. --- *** e i may form hydrogen bonds to residues ***
  17878. --- *** j - 1 and j + 1; this is known as a wide ***
  17879. --- *** pair of hydrogen bonds. By contrast, re ***
  17880. --- *** sidue j may hydrogen-bond to different r ***
  17881. --- *** esidues altogether, or to none at all. T ***
  17882. --- *** he dihedral angles (phi, psi) are about ***
  17883. --- *** (-120 degrees, 115 degrees) in parallel ***
  17884. --- *** sheets. ***
  17885. --- ************************************************
  17886. ---
  17887. CREATE VIEW parallel_beta_strand AS
  17888. SELECT
  17889. feature_id AS parallel_beta_strand_id,
  17890. feature.*
  17891. FROM
  17892. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17893. WHERE cvterm.name = 'parallel_beta_strand';
  17894. --- ************************************************
  17895. --- *** relation: peptide_helix ***
  17896. --- *** relation type: VIEW ***
  17897. --- *** ***
  17898. --- *** A helix is a secondary_structure conform ***
  17899. --- *** ation where the peptide backbone forms a ***
  17900. --- *** coil. ***
  17901. --- ************************************************
  17902. ---
  17903. CREATE VIEW peptide_helix AS
  17904. SELECT
  17905. feature_id AS peptide_helix_id,
  17906. feature.*
  17907. FROM
  17908. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17909. 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';
  17910. --- ************************************************
  17911. --- *** relation: left_handed_peptide_helix ***
  17912. --- *** relation type: VIEW ***
  17913. --- *** ***
  17914. --- *** A left handed helix is a region of pepti ***
  17915. --- *** de where the coiled conformation turns i ***
  17916. --- *** n an anticlockwise, left handed screw. ***
  17917. --- ************************************************
  17918. ---
  17919. CREATE VIEW left_handed_peptide_helix AS
  17920. SELECT
  17921. feature_id AS left_handed_peptide_helix_id,
  17922. feature.*
  17923. FROM
  17924. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17925. WHERE cvterm.name = 'left_handed_peptide_helix';
  17926. --- ************************************************
  17927. --- *** relation: right_handed_peptide_helix ***
  17928. --- *** relation type: VIEW ***
  17929. --- *** ***
  17930. --- *** A right handed helix is a region of pept ***
  17931. --- *** ide where the coiled conformation turns ***
  17932. --- *** in a clockwise, right handed screw. ***
  17933. --- ************************************************
  17934. ---
  17935. CREATE VIEW right_handed_peptide_helix AS
  17936. SELECT
  17937. feature_id AS right_handed_peptide_helix_id,
  17938. feature.*
  17939. FROM
  17940. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17941. WHERE cvterm.name = 'alpha_helix' OR cvterm.name = 'pi_helix' OR cvterm.name = 'three_ten_helix' OR cvterm.name = 'right_handed_peptide_helix';
  17942. --- ************************************************
  17943. --- *** relation: alpha_helix ***
  17944. --- *** relation type: VIEW ***
  17945. --- *** ***
  17946. --- *** The helix has 3.6 residues per turn whic ***
  17947. --- *** h corersponds to a translation of 1.5 an ***
  17948. --- *** gstroms (= 0.15 nm) along the helical ax ***
  17949. --- *** is. Every backbone N-H group donates a h ***
  17950. --- *** ydrogen bond to the backbone C=O group o ***
  17951. --- *** f the amino acid four residues earlier. ***
  17952. --- ************************************************
  17953. ---
  17954. CREATE VIEW alpha_helix AS
  17955. SELECT
  17956. feature_id AS alpha_helix_id,
  17957. feature.*
  17958. FROM
  17959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17960. WHERE cvterm.name = 'alpha_helix';
  17961. --- ************************************************
  17962. --- *** relation: pi_helix ***
  17963. --- *** relation type: VIEW ***
  17964. --- *** ***
  17965. --- *** The pi helix has 4.1 residues per turn a ***
  17966. --- *** nd a translation of 1.15 (=0.115 nm) al ***
  17967. --- *** ong the helical axis. The N-H group of a ***
  17968. --- *** n amino acid forms a hydrogen bond with ***
  17969. --- *** the C=O group of the amino acid five res ***
  17970. --- *** idues earlier. ***
  17971. --- ************************************************
  17972. ---
  17973. CREATE VIEW pi_helix AS
  17974. SELECT
  17975. feature_id AS pi_helix_id,
  17976. feature.*
  17977. FROM
  17978. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17979. WHERE cvterm.name = 'pi_helix';
  17980. --- ************************************************
  17981. --- *** relation: three_ten_helix ***
  17982. --- *** relation type: VIEW ***
  17983. --- *** ***
  17984. --- *** The 3-10 helix has 3 residues per turn w ***
  17985. --- *** ith a translation of 2.0 angstroms (=0.2 ***
  17986. --- *** nm) along the helical axis. The N-H gro ***
  17987. --- *** up of an amino acid forms a hydrogen bon ***
  17988. --- *** d with the C=O group of the amino acid t ***
  17989. --- *** hree residues earlier. ***
  17990. --- ************************************************
  17991. ---
  17992. CREATE VIEW three_ten_helix AS
  17993. SELECT
  17994. feature_id AS three_ten_helix_id,
  17995. feature.*
  17996. FROM
  17997. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  17998. WHERE cvterm.name = 'three_ten_helix';
  17999. --- ************************************************
  18000. --- *** relation: polypeptide_nest_motif ***
  18001. --- *** relation type: VIEW ***
  18002. --- *** ***
  18003. --- *** A motif of two consecutive residues with ***
  18004. --- *** dihedral angles. Nest should not have P ***
  18005. --- *** roline as any residue. Nests frequently ***
  18006. --- *** occur as parts of other motifs such as S ***
  18007. --- *** chellman loops. ***
  18008. --- ************************************************
  18009. ---
  18010. CREATE VIEW polypeptide_nest_motif AS
  18011. SELECT
  18012. feature_id AS polypeptide_nest_motif_id,
  18013. feature.*
  18014. FROM
  18015. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18016. WHERE cvterm.name = 'polypeptide_nest_left_right_motif' OR cvterm.name = 'polypeptide_nest_right_left_motif' OR cvterm.name = 'polypeptide_nest_motif';
  18017. --- ************************************************
  18018. --- *** relation: polypeptide_nest_left_right_motif ***
  18019. --- *** relation type: VIEW ***
  18020. --- *** ***
  18021. --- *** A motif of two consecutive residues with ***
  18022. --- *** dihedral angles: Residue(i): +20 degree ***
  18023. --- *** s < phi < +140 degrees, -40 degrees < ps ***
  18024. --- *** i < +90 degrees. Residue(i+1): -140 degr ***
  18025. --- *** ees < phi < -20 degrees, -90 degrees < p ***
  18026. --- *** si < +40 degrees. ***
  18027. --- ************************************************
  18028. ---
  18029. CREATE VIEW polypeptide_nest_left_right_motif AS
  18030. SELECT
  18031. feature_id AS polypeptide_nest_left_right_motif_id,
  18032. feature.*
  18033. FROM
  18034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18035. WHERE cvterm.name = 'polypeptide_nest_left_right_motif';
  18036. --- ************************************************
  18037. --- *** relation: polypeptide_nest_right_left_motif ***
  18038. --- *** relation type: VIEW ***
  18039. --- *** ***
  18040. --- *** A motif of two consecutive residues with ***
  18041. --- *** dihedral angles: Residue(i): -140 degre ***
  18042. --- *** es < phi < -20 degrees, -90 degrees < ps ***
  18043. --- *** i < +40 degrees. Residue(i+1): +20 degre ***
  18044. --- *** es < phi < +140 degrees, -40 degrees < p ***
  18045. --- *** si < +90 degrees. ***
  18046. --- ************************************************
  18047. ---
  18048. CREATE VIEW polypeptide_nest_right_left_motif AS
  18049. SELECT
  18050. feature_id AS polypeptide_nest_right_left_motif_id,
  18051. feature.*
  18052. FROM
  18053. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18054. WHERE cvterm.name = 'polypeptide_nest_right_left_motif';
  18055. --- ************************************************
  18056. --- *** relation: schellmann_loop ***
  18057. --- *** relation type: VIEW ***
  18058. --- *** ***
  18059. --- *** A motif of six or seven consecutive resi ***
  18060. --- *** dues that contains two H-bonds. ***
  18061. --- ************************************************
  18062. ---
  18063. CREATE VIEW schellmann_loop AS
  18064. SELECT
  18065. feature_id AS schellmann_loop_id,
  18066. feature.*
  18067. FROM
  18068. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18069. WHERE cvterm.name = 'schellmann_loop_seven' OR cvterm.name = 'schellmann_loop_six' OR cvterm.name = 'schellmann_loop';
  18070. --- ************************************************
  18071. --- *** relation: schellmann_loop_seven ***
  18072. --- *** relation type: VIEW ***
  18073. --- *** ***
  18074. --- *** Wild type: A motif of seven consecutive ***
  18075. --- *** residues that contains two H-bonds in wh ***
  18076. --- *** ich: the main-chain CO of residue(i) is ***
  18077. --- *** H-bonded to the main-chain NH of residue ***
  18078. --- *** (i+6), the main-chain CO of residue(i+1) ***
  18079. --- *** is H-bonded to the main-chain NH of res ***
  18080. --- *** idue(i+5). ***
  18081. --- ************************************************
  18082. ---
  18083. CREATE VIEW schellmann_loop_seven AS
  18084. SELECT
  18085. feature_id AS schellmann_loop_seven_id,
  18086. feature.*
  18087. FROM
  18088. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18089. WHERE cvterm.name = 'schellmann_loop_seven';
  18090. --- ************************************************
  18091. --- *** relation: schellmann_loop_six ***
  18092. --- *** relation type: VIEW ***
  18093. --- *** ***
  18094. --- *** Common Type: A motif of six consecutive ***
  18095. --- *** residues that contains two H-bonds in wh ***
  18096. --- *** ich: the main-chain CO of residue(i) is ***
  18097. --- *** H-bonded to the main-chain NH of residue ***
  18098. --- *** (i+5) the main-chain CO of residue(i+1) ***
  18099. --- *** is H-bonded to the main-chain NH of resi ***
  18100. --- *** due(i+4). ***
  18101. --- ************************************************
  18102. ---
  18103. CREATE VIEW schellmann_loop_six AS
  18104. SELECT
  18105. feature_id AS schellmann_loop_six_id,
  18106. feature.*
  18107. FROM
  18108. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18109. WHERE cvterm.name = 'schellmann_loop_six';
  18110. --- ************************************************
  18111. --- *** relation: serine_threonine_motif ***
  18112. --- *** relation type: VIEW ***
  18113. --- *** ***
  18114. --- *** A motif of five consecutive residues and ***
  18115. --- *** two hydrogen bonds in which: residue(i) ***
  18116. --- *** is Serine (S) or Threonine (T), the sid ***
  18117. --- *** e-chain O of residue(i) is H-bonded to t ***
  18118. --- *** he main-chain NH of residue(i+2) or (i+3 ***
  18119. --- *** ) , the main-chain CO group of residue(i ***
  18120. --- *** ) is H-bonded to the main-chain NH of re ***
  18121. --- *** sidue(i+3) or (i+4). ***
  18122. --- ************************************************
  18123. ---
  18124. CREATE VIEW serine_threonine_motif AS
  18125. SELECT
  18126. feature_id AS serine_threonine_motif_id,
  18127. feature.*
  18128. FROM
  18129. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18130. WHERE cvterm.name = 'serine_threonine_motif';
  18131. --- ************************************************
  18132. --- *** relation: serine_threonine_staple_motif ***
  18133. --- *** relation type: VIEW ***
  18134. --- *** ***
  18135. --- *** A motif of four or five consecutive resi ***
  18136. --- *** dues and one H-bond in which: residue(i) ***
  18137. --- *** is Serine (S) or Threonine (T), the sid ***
  18138. --- *** e-chain OH of residue(i) is H-bonded to ***
  18139. --- *** the main-chain CO of residue(i3) or (i4) ***
  18140. --- *** , Phi angles of residues(i1), (i2) and ( ***
  18141. --- *** i3) are negative. ***
  18142. --- ************************************************
  18143. ---
  18144. CREATE VIEW serine_threonine_staple_motif AS
  18145. SELECT
  18146. feature_id AS serine_threonine_staple_motif_id,
  18147. feature.*
  18148. FROM
  18149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18150. WHERE cvterm.name = 'serine_threonine_staple_motif';
  18151. --- ************************************************
  18152. --- *** relation: polypeptide_turn_motif ***
  18153. --- *** relation type: VIEW ***
  18154. --- *** ***
  18155. --- *** A reversal in the direction of the backb ***
  18156. --- *** one of a protein that is stabilized by h ***
  18157. --- *** ydrogen bond between backbone NH and CO ***
  18158. --- *** groups, involving no more than 4 amino a ***
  18159. --- *** cid residues. ***
  18160. --- ************************************************
  18161. ---
  18162. CREATE VIEW polypeptide_turn_motif AS
  18163. SELECT
  18164. feature_id AS polypeptide_turn_motif_id,
  18165. feature.*
  18166. FROM
  18167. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18168. 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';
  18169. --- ************************************************
  18170. --- *** relation: asx_turn_left_handed_type_one ***
  18171. --- *** relation type: VIEW ***
  18172. --- *** ***
  18173. --- *** Left handed type I (dihedral angles):- R ***
  18174. --- *** esidue(i): -140 degrees < chi (1) -120 d ***
  18175. --- *** egrees < -20 degrees, -90 degrees < psi ***
  18176. --- *** +120 degrees < +40 degrees. Residue(i+1) ***
  18177. --- *** : -140 degrees < phi < -20 degrees, -90 ***
  18178. --- *** degrees < psi < +40 degrees. ***
  18179. --- ************************************************
  18180. ---
  18181. CREATE VIEW asx_turn_left_handed_type_one AS
  18182. SELECT
  18183. feature_id AS asx_turn_left_handed_type_one_id,
  18184. feature.*
  18185. FROM
  18186. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18187. WHERE cvterm.name = 'asx_turn_left_handed_type_one';
  18188. --- ************************************************
  18189. --- *** relation: asx_turn_left_handed_type_two ***
  18190. --- *** relation type: VIEW ***
  18191. --- *** ***
  18192. --- *** Left handed type II (dihedral angles):- ***
  18193. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18194. --- *** degrees < -20 degrees, +80 degrees < psi ***
  18195. --- *** +120 degrees < +180 degrees. Residue(i+ ***
  18196. --- *** 1): +20 degrees < phi < +140 degrees, -4 ***
  18197. --- *** 0 degrees < psi < +90 degrees. ***
  18198. --- ************************************************
  18199. ---
  18200. CREATE VIEW asx_turn_left_handed_type_two AS
  18201. SELECT
  18202. feature_id AS asx_turn_left_handed_type_two_id,
  18203. feature.*
  18204. FROM
  18205. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18206. WHERE cvterm.name = 'asx_turn_left_handed_type_two';
  18207. --- ************************************************
  18208. --- *** relation: asx_turn_right_handed_type_two ***
  18209. --- *** relation type: VIEW ***
  18210. --- *** ***
  18211. --- *** Right handed type II (dihedral angles):- ***
  18212. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18213. --- *** degrees < -20 degrees, +80 degrees < ps ***
  18214. --- *** i +120 degrees < +180 degrees. Residue(i ***
  18215. --- *** +1): +20 degrees < phi < +140 degrees, - ***
  18216. --- *** 40 degrees < psi < +90 degrees. ***
  18217. --- ************************************************
  18218. ---
  18219. CREATE VIEW asx_turn_right_handed_type_two AS
  18220. SELECT
  18221. feature_id AS asx_turn_right_handed_type_two_id,
  18222. feature.*
  18223. FROM
  18224. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18225. WHERE cvterm.name = 'asx_turn_right_handed_type_two';
  18226. --- ************************************************
  18227. --- *** relation: asx_turn_right_handed_type_one ***
  18228. --- *** relation type: VIEW ***
  18229. --- *** ***
  18230. --- *** Right handed type I (dihedral angles):- ***
  18231. --- *** Residue(i): -140 degrees < chi (1) -120 ***
  18232. --- *** degrees < -20 degrees, -90 degrees < psi ***
  18233. --- *** +120 degrees < +40 degrees. Residue(i+1 ***
  18234. --- *** ): -140 degrees < phi < -20 degrees, -90 ***
  18235. --- *** degrees < psi < +40 degrees. ***
  18236. --- ************************************************
  18237. ---
  18238. CREATE VIEW asx_turn_right_handed_type_one AS
  18239. SELECT
  18240. feature_id AS asx_turn_right_handed_type_one_id,
  18241. feature.*
  18242. FROM
  18243. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18244. WHERE cvterm.name = 'asx_turn_right_handed_type_one';
  18245. --- ************************************************
  18246. --- *** relation: beta_turn ***
  18247. --- *** relation type: VIEW ***
  18248. --- *** ***
  18249. --- *** A motif of four consecutive residues tha ***
  18250. --- *** t may contain one H-bond, which, if pres ***
  18251. --- *** ent, is between the main-chain CO of the ***
  18252. --- *** first residue and the main-chain NH of ***
  18253. --- *** the fourth. It is characterized by the d ***
  18254. --- *** ihedral angles of the second and third r ***
  18255. --- *** esidues, which are the basis for sub-cat ***
  18256. --- *** egorization. ***
  18257. --- ************************************************
  18258. ---
  18259. CREATE VIEW beta_turn AS
  18260. SELECT
  18261. feature_id AS beta_turn_id,
  18262. feature.*
  18263. FROM
  18264. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18265. 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';
  18266. --- ************************************************
  18267. --- *** relation: beta_turn_left_handed_type_one ***
  18268. --- *** relation type: VIEW ***
  18269. --- *** ***
  18270. --- *** Left handed type I:A motif of four conse ***
  18271. --- *** cutive residues that may contain one H-b ***
  18272. --- *** ond, which, if present, is between the m ***
  18273. --- *** ain-chain CO of the first residue and th ***
  18274. --- *** e main-chain NH of the fourth. It is cha ***
  18275. --- *** racterized by the dihedral angles:- Resi ***
  18276. --- *** due(i+1): -140 degrees > phi > -20 degre ***
  18277. --- *** es, -90 degrees > psi > +40 degrees. Res ***
  18278. --- *** idue(i+2): -140 degrees > phi > -20 degr ***
  18279. --- *** ees, -90 degrees > psi > +40 degrees. ***
  18280. --- ************************************************
  18281. ---
  18282. CREATE VIEW beta_turn_left_handed_type_one AS
  18283. SELECT
  18284. feature_id AS beta_turn_left_handed_type_one_id,
  18285. feature.*
  18286. FROM
  18287. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18288. WHERE cvterm.name = 'beta_turn_left_handed_type_one';
  18289. --- ************************************************
  18290. --- *** relation: beta_turn_left_handed_type_two ***
  18291. --- *** relation type: VIEW ***
  18292. --- *** ***
  18293. --- *** Left handed type II: A motif of four con ***
  18294. --- *** secutive residues that may contain one H ***
  18295. --- *** -bond, which, if present, is between the ***
  18296. --- *** main-chain CO of the first residue and ***
  18297. --- *** the main-chain NH of the fourth. It is c ***
  18298. --- *** haracterized by the dihedral angles: Res ***
  18299. --- *** idue(i+1): -140 degrees > phi > -20 degr ***
  18300. --- *** ees, +80 degrees > psi > +180 degrees. R ***
  18301. --- *** esidue(i+2): +20 degrees > phi > +140 de ***
  18302. --- *** grees, -40 degrees > psi > +90 degrees. ***
  18303. --- ************************************************
  18304. ---
  18305. CREATE VIEW beta_turn_left_handed_type_two AS
  18306. SELECT
  18307. feature_id AS beta_turn_left_handed_type_two_id,
  18308. feature.*
  18309. FROM
  18310. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18311. WHERE cvterm.name = 'beta_turn_left_handed_type_two';
  18312. --- ************************************************
  18313. --- *** relation: beta_turn_right_handed_type_one ***
  18314. --- *** relation type: VIEW ***
  18315. --- *** ***
  18316. --- *** Right handed type I:A motif of four cons ***
  18317. --- *** ecutive residues that may contain one H- ***
  18318. --- *** bond, which, if present, is between the ***
  18319. --- *** main-chain CO of the first residue and t ***
  18320. --- *** he main-chain NH of the fourth. It is ch ***
  18321. --- *** aracterized by the dihedral angles: Resi ***
  18322. --- *** due(i+1): -140 degrees < phi < -20 degre ***
  18323. --- *** es, -90 degrees < psi < +40 degrees. Res ***
  18324. --- *** idue(i+2): -140 degrees < phi < -20 degr ***
  18325. --- *** ees, -90 degrees < psi < +40 degrees. ***
  18326. --- ************************************************
  18327. ---
  18328. CREATE VIEW beta_turn_right_handed_type_one AS
  18329. SELECT
  18330. feature_id AS beta_turn_right_handed_type_one_id,
  18331. feature.*
  18332. FROM
  18333. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18334. WHERE cvterm.name = 'beta_turn_right_handed_type_one';
  18335. --- ************************************************
  18336. --- *** relation: beta_turn_right_handed_type_two ***
  18337. --- *** relation type: VIEW ***
  18338. --- *** ***
  18339. --- *** Right handed type II:A motif of four con ***
  18340. --- *** secutive residues that may contain one H ***
  18341. --- *** -bond, which, if present, is between the ***
  18342. --- *** main-chain CO of the first residue and ***
  18343. --- *** the main-chain NH of the fourth. It is c ***
  18344. --- *** haracterized by the dihedral angles: Res ***
  18345. --- *** idue(i+1): -140 degrees < phi < -20 degr ***
  18346. --- *** ees, +80 degrees < psi < +180 degrees. R ***
  18347. --- *** esidue(i+2): +20 degrees < phi < +140 de ***
  18348. --- *** grees, -40 degrees < psi < +90 degrees. ***
  18349. --- ************************************************
  18350. ---
  18351. CREATE VIEW beta_turn_right_handed_type_two AS
  18352. SELECT
  18353. feature_id AS beta_turn_right_handed_type_two_id,
  18354. feature.*
  18355. FROM
  18356. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18357. WHERE cvterm.name = 'beta_turn_right_handed_type_two';
  18358. --- ************************************************
  18359. --- *** relation: gamma_turn ***
  18360. --- *** relation type: VIEW ***
  18361. --- *** ***
  18362. --- *** Gamma turns, defined for 3 residues i,( ***
  18363. --- *** i+1),( i+2) if a hydrogen bond exists be ***
  18364. --- *** tween residues i and i+2 and the phi and ***
  18365. --- *** psi angles of residue i+1 fall within 4 ***
  18366. --- *** 0 degrees. ***
  18367. --- ************************************************
  18368. ---
  18369. CREATE VIEW gamma_turn AS
  18370. SELECT
  18371. feature_id AS gamma_turn_id,
  18372. feature.*
  18373. FROM
  18374. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18375. WHERE cvterm.name = 'gamma_turn_classic' OR cvterm.name = 'gamma_turn_inverse' OR cvterm.name = 'gamma_turn';
  18376. --- ************************************************
  18377. --- *** relation: gamma_turn_classic ***
  18378. --- *** relation type: VIEW ***
  18379. --- *** ***
  18380. --- *** Gamma turns, defined for 3 residues i, i ***
  18381. --- *** +1, i+2 if a hydrogen bond exists betwee ***
  18382. --- *** n residues i and i+2 and the phi and psi ***
  18383. --- *** angles of residue i+1 fall within 40 de ***
  18384. --- *** grees: phi(i+1)=75.0 - psi(i+1)=-64.0. ***
  18385. --- ************************************************
  18386. ---
  18387. CREATE VIEW gamma_turn_classic AS
  18388. SELECT
  18389. feature_id AS gamma_turn_classic_id,
  18390. feature.*
  18391. FROM
  18392. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18393. WHERE cvterm.name = 'gamma_turn_classic';
  18394. --- ************************************************
  18395. --- *** relation: gamma_turn_inverse ***
  18396. --- *** relation type: VIEW ***
  18397. --- *** ***
  18398. --- *** Gamma turns, defined for 3 residues i, i ***
  18399. --- *** +1, i+2 if a hydrogen bond exists betwee ***
  18400. --- *** n residues i and i+2 and the phi and psi ***
  18401. --- *** angles of residue i+1 fall within 40 de ***
  18402. --- *** grees: phi(i+1)=-79.0 - psi(i+1)=69.0. ***
  18403. --- ************************************************
  18404. ---
  18405. CREATE VIEW gamma_turn_inverse AS
  18406. SELECT
  18407. feature_id AS gamma_turn_inverse_id,
  18408. feature.*
  18409. FROM
  18410. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18411. WHERE cvterm.name = 'gamma_turn_inverse';
  18412. --- ************************************************
  18413. --- *** relation: serine_threonine_turn ***
  18414. --- *** relation type: VIEW ***
  18415. --- *** ***
  18416. --- *** A motif of three consecutive residues an ***
  18417. --- *** d one H-bond in which: residue(i) is Ser ***
  18418. --- *** ine (S) or Threonine (T), the side-chain ***
  18419. --- *** O of residue(i) is H-bonded to the main ***
  18420. --- *** -chain NH of residue(i+2). ***
  18421. --- ************************************************
  18422. ---
  18423. CREATE VIEW serine_threonine_turn AS
  18424. SELECT
  18425. feature_id AS serine_threonine_turn_id,
  18426. feature.*
  18427. FROM
  18428. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18429. 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';
  18430. --- ************************************************
  18431. --- *** relation: st_turn_left_handed_type_one ***
  18432. --- *** relation type: VIEW ***
  18433. --- *** ***
  18434. --- *** The peptide twists in an anticlockwise, ***
  18435. --- *** left handed manner. The dihedral angles ***
  18436. --- *** for this turn are: Residue(i): -140 degr ***
  18437. --- *** ees < chi(1) -120 degrees < -20 degrees, ***
  18438. --- *** -90 degrees psi +120 degrees < +40 degr ***
  18439. --- *** ees, residue(i+1): -140 degrees < phi < ***
  18440. --- *** -20 degrees, -90 < psi < +40 degrees. ***
  18441. --- ************************************************
  18442. ---
  18443. CREATE VIEW st_turn_left_handed_type_one AS
  18444. SELECT
  18445. feature_id AS st_turn_left_handed_type_one_id,
  18446. feature.*
  18447. FROM
  18448. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18449. WHERE cvterm.name = 'st_turn_left_handed_type_one';
  18450. --- ************************************************
  18451. --- *** relation: st_turn_left_handed_type_two ***
  18452. --- *** relation type: VIEW ***
  18453. --- *** ***
  18454. --- *** The peptide twists in an anticlockwise, ***
  18455. --- *** left handed manner. The dihedral angles ***
  18456. --- *** for this turn are: Residue(i): -140 degr ***
  18457. --- *** ees < chi(1) -120 degrees < -20 degrees, ***
  18458. --- *** +80 degrees psi +120 degrees < +180 deg ***
  18459. --- *** rees, residue(i+1): +20 degrees < phi < ***
  18460. --- *** +140 degrees, -40 < psi < +90 degrees. ***
  18461. --- ************************************************
  18462. ---
  18463. CREATE VIEW st_turn_left_handed_type_two AS
  18464. SELECT
  18465. feature_id AS st_turn_left_handed_type_two_id,
  18466. feature.*
  18467. FROM
  18468. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18469. WHERE cvterm.name = 'st_turn_left_handed_type_two';
  18470. --- ************************************************
  18471. --- *** relation: st_turn_right_handed_type_one ***
  18472. --- *** relation type: VIEW ***
  18473. --- *** ***
  18474. --- *** The peptide twists in an clockwise, righ ***
  18475. --- *** t handed manner. The dihedral angles for ***
  18476. --- *** this turn are: Residue(i): -140 degrees ***
  18477. --- *** < chi(1) -120 degrees < -20 degrees, -9 ***
  18478. --- *** 0 degrees psi +120 degrees < +40 degrees ***
  18479. --- *** , residue(i+1): -140 degrees < phi < -20 ***
  18480. --- *** degrees, -90 < psi < +40 degrees. ***
  18481. --- ************************************************
  18482. ---
  18483. CREATE VIEW st_turn_right_handed_type_one AS
  18484. SELECT
  18485. feature_id AS st_turn_right_handed_type_one_id,
  18486. feature.*
  18487. FROM
  18488. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18489. WHERE cvterm.name = 'st_turn_right_handed_type_one';
  18490. --- ************************************************
  18491. --- *** relation: st_turn_right_handed_type_two ***
  18492. --- *** relation type: VIEW ***
  18493. --- *** ***
  18494. --- *** The peptide twists in an clockwise, righ ***
  18495. --- *** t handed manner. The dihedral angles for ***
  18496. --- *** this turn are: Residue(i): -140 degrees ***
  18497. --- *** < chi(1) -120 degrees < -20 degrees, +8 ***
  18498. --- *** 0 degrees psi +120 degrees < +180 degree ***
  18499. --- *** s, residue(i+1): +20 degrees < phi < +14 ***
  18500. --- *** 0 degrees, -40 < psi < +90 degrees. ***
  18501. --- ************************************************
  18502. ---
  18503. CREATE VIEW st_turn_right_handed_type_two AS
  18504. SELECT
  18505. feature_id AS st_turn_right_handed_type_two_id,
  18506. feature.*
  18507. FROM
  18508. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18509. WHERE cvterm.name = 'st_turn_right_handed_type_two';
  18510. --- ************************************************
  18511. --- *** relation: polypeptide_variation_site ***
  18512. --- *** relation type: VIEW ***
  18513. --- *** ***
  18514. --- *** A site of sequence variation (alteration ***
  18515. --- *** ). Alternative sequence due to naturally ***
  18516. --- *** occuring events such as polymorphisms a ***
  18517. --- *** nd altermatve splicing or experimental m ***
  18518. --- *** ethods such as site directed mutagenesis ***
  18519. --- *** . ***
  18520. --- ************************************************
  18521. ---
  18522. CREATE VIEW polypeptide_variation_site AS
  18523. SELECT
  18524. feature_id AS polypeptide_variation_site_id,
  18525. feature.*
  18526. FROM
  18527. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18528. WHERE cvterm.name = 'natural_variant_site' OR cvterm.name = 'mutated_variant_site' OR cvterm.name = 'alternate_sequence_site' OR cvterm.name = 'polypeptide_variation_site';
  18529. --- ************************************************
  18530. --- *** relation: natural_variant_site ***
  18531. --- *** relation type: VIEW ***
  18532. --- *** ***
  18533. --- *** Describes the natural sequence variants ***
  18534. --- *** due to polymorphisms, disease-associated ***
  18535. --- *** mutations, RNA editing and variations b ***
  18536. --- *** etween strains, isolates or cultivars. ***
  18537. --- ************************************************
  18538. ---
  18539. CREATE VIEW natural_variant_site AS
  18540. SELECT
  18541. feature_id AS natural_variant_site_id,
  18542. feature.*
  18543. FROM
  18544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18545. WHERE cvterm.name = 'natural_variant_site';
  18546. --- ************************************************
  18547. --- *** relation: mutated_variant_site ***
  18548. --- *** relation type: VIEW ***
  18549. --- *** ***
  18550. --- *** Site which has been experimentally alter ***
  18551. --- *** ed. ***
  18552. --- ************************************************
  18553. ---
  18554. CREATE VIEW mutated_variant_site AS
  18555. SELECT
  18556. feature_id AS mutated_variant_site_id,
  18557. feature.*
  18558. FROM
  18559. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18560. WHERE cvterm.name = 'mutated_variant_site';
  18561. --- ************************************************
  18562. --- *** relation: alternate_sequence_site ***
  18563. --- *** relation type: VIEW ***
  18564. --- *** ***
  18565. --- *** Description of sequence variants produce ***
  18566. --- *** d by alternative splicing, alternative p ***
  18567. --- *** romoter usage, alternative initiation an ***
  18568. --- *** d ribosomal frameshifting. ***
  18569. --- ************************************************
  18570. ---
  18571. CREATE VIEW alternate_sequence_site AS
  18572. SELECT
  18573. feature_id AS alternate_sequence_site_id,
  18574. feature.*
  18575. FROM
  18576. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18577. WHERE cvterm.name = 'alternate_sequence_site';
  18578. --- ************************************************
  18579. --- *** relation: beta_turn_type_six ***
  18580. --- *** relation type: VIEW ***
  18581. --- *** ***
  18582. --- *** A motif of four consecutive peptide resi ***
  18583. --- *** des of type VIa or type VIb and where th ***
  18584. --- *** e i+2 residue is cis-proline. ***
  18585. --- ************************************************
  18586. ---
  18587. CREATE VIEW beta_turn_type_six AS
  18588. SELECT
  18589. feature_id AS beta_turn_type_six_id,
  18590. feature.*
  18591. FROM
  18592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18593. 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';
  18594. --- ************************************************
  18595. --- *** relation: beta_turn_type_six_a ***
  18596. --- *** relation type: VIEW ***
  18597. --- *** ***
  18598. --- *** A motif of four consecutive peptide resi ***
  18599. --- *** dues, of which the i+2 residue is prolin ***
  18600. --- *** e, and that may contain one H-bond, whic ***
  18601. --- *** h, if present, is between the main-chain ***
  18602. --- *** CO of the first residue and the main-ch ***
  18603. --- *** ain NH of the fourth and is characterize ***
  18604. --- *** d by the dihedral angles: Residue(i+1): ***
  18605. --- *** phi ~ -60 degrees, psi ~ 120 degrees. Re ***
  18606. --- *** sidue(i+2): phi ~ -90 degrees, psi ~ 0 d ***
  18607. --- *** egrees. ***
  18608. --- ************************************************
  18609. ---
  18610. CREATE VIEW beta_turn_type_six_a AS
  18611. SELECT
  18612. feature_id AS beta_turn_type_six_a_id,
  18613. feature.*
  18614. FROM
  18615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18616. 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';
  18617. --- ************************************************
  18618. --- *** relation: beta_turn_type_six_a_one ***
  18619. --- *** relation type: VIEW ***
  18620. --- *** ***
  18621. --- ************************************************
  18622. ---
  18623. CREATE VIEW beta_turn_type_six_a_one AS
  18624. SELECT
  18625. feature_id AS beta_turn_type_six_a_one_id,
  18626. feature.*
  18627. FROM
  18628. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18629. WHERE cvterm.name = 'beta_turn_type_six_a_one';
  18630. --- ************************************************
  18631. --- *** relation: beta_turn_type_six_a_two ***
  18632. --- *** relation type: VIEW ***
  18633. --- *** ***
  18634. --- ************************************************
  18635. ---
  18636. CREATE VIEW beta_turn_type_six_a_two AS
  18637. SELECT
  18638. feature_id AS beta_turn_type_six_a_two_id,
  18639. feature.*
  18640. FROM
  18641. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18642. WHERE cvterm.name = 'beta_turn_type_six_a_two';
  18643. --- ************************************************
  18644. --- *** relation: beta_turn_type_six_b ***
  18645. --- *** relation type: VIEW ***
  18646. --- *** ***
  18647. --- *** A motif of four consecutive peptide resi ***
  18648. --- *** dues, of which the i+2 residue is prolin ***
  18649. --- *** e, and that may contain one H-bond, whic ***
  18650. --- *** h, if present, is between the main-chain ***
  18651. --- *** CO of the first residue and the main-ch ***
  18652. --- *** ain NH of the fourth and is characterize ***
  18653. --- *** d by the dihedral angles: Residue(i+1): ***
  18654. --- *** phi ~ -120 degrees, psi ~ 120 degrees. R ***
  18655. --- *** esidue(i+2): phi ~ -60 degrees, psi ~ 0 ***
  18656. --- *** degrees. ***
  18657. --- ************************************************
  18658. ---
  18659. CREATE VIEW beta_turn_type_six_b AS
  18660. SELECT
  18661. feature_id AS beta_turn_type_six_b_id,
  18662. feature.*
  18663. FROM
  18664. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18665. WHERE cvterm.name = 'beta_turn_type_six_b';
  18666. --- ************************************************
  18667. --- *** relation: beta_turn_type_eight ***
  18668. --- *** relation type: VIEW ***
  18669. --- *** ***
  18670. --- *** A motif of four consecutive peptide resi ***
  18671. --- *** dues that may contain one H-bond, which, ***
  18672. --- *** if present, is between the main-chain C ***
  18673. --- *** O of the first residue and the main-chai ***
  18674. --- *** n NH of the fourth and is characterized ***
  18675. --- *** by the dihedral angles: Residue(i+1): ph ***
  18676. --- *** i ~ -60 degrees, psi ~ -30 degrees. Resi ***
  18677. --- *** due(i+2): phi ~ -120 degrees, psi ~ 120 ***
  18678. --- *** degrees. ***
  18679. --- ************************************************
  18680. ---
  18681. CREATE VIEW beta_turn_type_eight AS
  18682. SELECT
  18683. feature_id AS beta_turn_type_eight_id,
  18684. feature.*
  18685. FROM
  18686. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18687. WHERE cvterm.name = 'beta_turn_type_eight';
  18688. --- ************************************************
  18689. --- *** relation: dre_motif ***
  18690. --- *** relation type: VIEW ***
  18691. --- *** ***
  18692. --- *** A sequence element characteristic of som ***
  18693. --- *** e RNA polymerase II promoters, usually l ***
  18694. --- *** ocated between -10 and -60 relative to t ***
  18695. --- *** he TSS. Consensus sequence is WATCGATW. ***
  18696. --- ************************************************
  18697. ---
  18698. CREATE VIEW dre_motif AS
  18699. SELECT
  18700. feature_id AS dre_motif_id,
  18701. feature.*
  18702. FROM
  18703. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18704. WHERE cvterm.name = 'DRE_motif';
  18705. --- ************************************************
  18706. --- *** relation: dmv4_motif ***
  18707. --- *** relation type: VIEW ***
  18708. --- *** ***
  18709. --- *** A sequence element characteristic of som ***
  18710. --- *** e RNA polymerase II promoters, located i ***
  18711. --- *** mmediately upstream of some TATA box ele ***
  18712. --- *** ments with respect to the TSS (+1). Cons ***
  18713. --- *** ensus sequence is YGGTCACACTR. Marked sp ***
  18714. --- *** atial preference within core promoter; t ***
  18715. --- *** end to occur near the TSS, although not ***
  18716. --- *** as tightly as INR (SO:0000014). ***
  18717. --- ************************************************
  18718. ---
  18719. CREATE VIEW dmv4_motif AS
  18720. SELECT
  18721. feature_id AS dmv4_motif_id,
  18722. feature.*
  18723. FROM
  18724. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18725. WHERE cvterm.name = 'DMv4_motif';
  18726. --- ************************************************
  18727. --- *** relation: e_box_motif ***
  18728. --- *** relation type: VIEW ***
  18729. --- *** ***
  18730. --- *** A sequence element characteristic of som ***
  18731. --- *** e RNA polymerase II promoters, usually l ***
  18732. --- *** ocated between -60 and +1 relative to th ***
  18733. --- *** e TSS. Consensus sequence is AWCAGCTGWT. ***
  18734. --- *** Tends to co-occur with DMv2 (SO:0001161 ***
  18735. --- *** ). Tends to not occur with DPE motif (SO ***
  18736. --- *** :0000015). ***
  18737. --- ************************************************
  18738. ---
  18739. CREATE VIEW e_box_motif AS
  18740. SELECT
  18741. feature_id AS e_box_motif_id,
  18742. feature.*
  18743. FROM
  18744. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18745. WHERE cvterm.name = 'E_box_motif';
  18746. --- ************************************************
  18747. --- *** relation: dmv5_motif ***
  18748. --- *** relation type: VIEW ***
  18749. --- *** ***
  18750. --- *** A sequence element characteristic of som ***
  18751. --- *** e RNA polymerase II promoters, usually l ***
  18752. --- *** ocated between -50 and -10 relative to t ***
  18753. --- *** he TSS. Consensus sequence is KTYRGTATWT ***
  18754. --- *** TT. Tends to co-occur with DMv4 (SO:0001 ***
  18755. --- *** 157) . Tends to not occur with DPE motif ***
  18756. --- *** (SO:0000015) or MTE (SO:0001162). ***
  18757. --- ************************************************
  18758. ---
  18759. CREATE VIEW dmv5_motif AS
  18760. SELECT
  18761. feature_id AS dmv5_motif_id,
  18762. feature.*
  18763. FROM
  18764. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18765. WHERE cvterm.name = 'DMv5_motif';
  18766. --- ************************************************
  18767. --- *** relation: dmv3_motif ***
  18768. --- *** relation type: VIEW ***
  18769. --- *** ***
  18770. --- *** A sequence element characteristic of som ***
  18771. --- *** e RNA polymerase II promoters, usually l ***
  18772. --- *** ocated between -30 and +15 relative to t ***
  18773. --- *** he TSS. Consensus sequence is KNNCAKCNCT ***
  18774. --- *** RNY. Tends to co-occur with DMv2 (SO:000 ***
  18775. --- *** 1161). Tends to not occur with DPE motif ***
  18776. --- *** (SO:0000015) or MTE (0001162). ***
  18777. --- ************************************************
  18778. ---
  18779. CREATE VIEW dmv3_motif AS
  18780. SELECT
  18781. feature_id AS dmv3_motif_id,
  18782. feature.*
  18783. FROM
  18784. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18785. WHERE cvterm.name = 'DMv3_motif';
  18786. --- ************************************************
  18787. --- *** relation: dmv2_motif ***
  18788. --- *** relation type: VIEW ***
  18789. --- *** ***
  18790. --- *** A sequence element characteristic of som ***
  18791. --- *** e RNA polymerase II promoters, usually l ***
  18792. --- *** ocated between -60 and -45 relative to t ***
  18793. --- *** he TSS. Consensus sequence is MKSYGGCARC ***
  18794. --- *** GSYSS. Tends to co-occur with DMv3 (SO:0 ***
  18795. --- *** 001160). Tends to not occur with DPE mot ***
  18796. --- *** if (SO:0000015) or MTE (SO:0001162). ***
  18797. --- ************************************************
  18798. ---
  18799. CREATE VIEW dmv2_motif AS
  18800. SELECT
  18801. feature_id AS dmv2_motif_id,
  18802. feature.*
  18803. FROM
  18804. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18805. WHERE cvterm.name = 'DMv2_motif';
  18806. --- ************************************************
  18807. --- *** relation: mte ***
  18808. --- *** relation type: VIEW ***
  18809. --- *** ***
  18810. --- *** A sequence element characteristic of som ***
  18811. --- *** e RNA polymerase II promoters, usually l ***
  18812. --- *** ocated between +20 and +30 relative to t ***
  18813. --- *** he TSS. Consensus sequence is CSARCSSAAC ***
  18814. --- *** GS. Tends to co-occur with INR motif (SO ***
  18815. --- *** :0000014). Tends to not occur with DPE m ***
  18816. --- *** otif (SO:0000015) or DMv5 (SO:0001159). ***
  18817. --- ************************************************
  18818. ---
  18819. CREATE VIEW mte AS
  18820. SELECT
  18821. feature_id AS mte_id,
  18822. feature.*
  18823. FROM
  18824. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18825. WHERE cvterm.name = 'MTE';
  18826. --- ************************************************
  18827. --- *** relation: inr1_motif ***
  18828. --- *** relation type: VIEW ***
  18829. --- *** ***
  18830. --- *** A promoter motif with consensus sequence ***
  18831. --- *** TCATTCG. ***
  18832. --- ************************************************
  18833. ---
  18834. CREATE VIEW inr1_motif AS
  18835. SELECT
  18836. feature_id AS inr1_motif_id,
  18837. feature.*
  18838. FROM
  18839. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18840. WHERE cvterm.name = 'INR1_motif';
  18841. --- ************************************************
  18842. --- *** relation: dpe1_motif ***
  18843. --- *** relation type: VIEW ***
  18844. --- *** ***
  18845. --- *** A promoter motif with consensus sequence ***
  18846. --- *** CGGACGT. ***
  18847. --- ************************************************
  18848. ---
  18849. CREATE VIEW dpe1_motif AS
  18850. SELECT
  18851. feature_id AS dpe1_motif_id,
  18852. feature.*
  18853. FROM
  18854. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18855. WHERE cvterm.name = 'DPE1_motif';
  18856. --- ************************************************
  18857. --- *** relation: dmv1_motif ***
  18858. --- *** relation type: VIEW ***
  18859. --- *** ***
  18860. --- *** A promoter motif with consensus sequence ***
  18861. --- *** CARCCCT. ***
  18862. --- ************************************************
  18863. ---
  18864. CREATE VIEW dmv1_motif AS
  18865. SELECT
  18866. feature_id AS dmv1_motif_id,
  18867. feature.*
  18868. FROM
  18869. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18870. WHERE cvterm.name = 'DMv1_motif';
  18871. --- ************************************************
  18872. --- *** relation: gaga_motif ***
  18873. --- *** relation type: VIEW ***
  18874. --- *** ***
  18875. --- *** A non directional promoter motif with co ***
  18876. --- *** nsensus sequence GAGAGCG. ***
  18877. --- ************************************************
  18878. ---
  18879. CREATE VIEW gaga_motif AS
  18880. SELECT
  18881. feature_id AS gaga_motif_id,
  18882. feature.*
  18883. FROM
  18884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18885. WHERE cvterm.name = 'GAGA_motif';
  18886. --- ************************************************
  18887. --- *** relation: ndm2_motif ***
  18888. --- *** relation type: VIEW ***
  18889. --- *** ***
  18890. --- *** A non directional promoter motif with co ***
  18891. --- *** nsensus CGMYGYCR. ***
  18892. --- ************************************************
  18893. ---
  18894. CREATE VIEW ndm2_motif AS
  18895. SELECT
  18896. feature_id AS ndm2_motif_id,
  18897. feature.*
  18898. FROM
  18899. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18900. WHERE cvterm.name = 'NDM2_motif';
  18901. --- ************************************************
  18902. --- *** relation: ndm3_motif ***
  18903. --- *** relation type: VIEW ***
  18904. --- *** ***
  18905. --- *** A non directional promoter motif with co ***
  18906. --- *** nsensus sequence GAAAGCT. ***
  18907. --- ************************************************
  18908. ---
  18909. CREATE VIEW ndm3_motif AS
  18910. SELECT
  18911. feature_id AS ndm3_motif_id,
  18912. feature.*
  18913. FROM
  18914. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18915. WHERE cvterm.name = 'NDM3_motif';
  18916. --- ************************************************
  18917. --- *** relation: ds_rna_viral_sequence ***
  18918. --- *** relation type: VIEW ***
  18919. --- *** ***
  18920. --- *** A ds_RNA_viral_sequence is a viral_seque ***
  18921. --- *** nce that is the sequence of a virus that ***
  18922. --- *** exists as double stranded RNA. ***
  18923. --- ************************************************
  18924. ---
  18925. CREATE VIEW ds_rna_viral_sequence AS
  18926. SELECT
  18927. feature_id AS ds_rna_viral_sequence_id,
  18928. feature.*
  18929. FROM
  18930. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18931. WHERE cvterm.name = 'ds_RNA_viral_sequence';
  18932. --- ************************************************
  18933. --- *** relation: polinton ***
  18934. --- *** relation type: VIEW ***
  18935. --- *** ***
  18936. --- *** A kind of DNA transposon that populates ***
  18937. --- *** the genomes of protists, fungi, and anim ***
  18938. --- *** als, characterized by a unique set of pr ***
  18939. --- *** oteins necessary for their transposition ***
  18940. --- *** , including a protein-primed DNA polymer ***
  18941. --- *** ase B, retroviral integrase, cysteine pr ***
  18942. --- *** otease, and ATPase. Polintons are charac ***
  18943. --- *** terized by 6-bp target site duplications ***
  18944. --- *** , terminal-inverted repeats that are sev ***
  18945. --- *** eral hundred nucleotides long, and 5'-AG ***
  18946. --- *** and TC-3' termini. Polintons exist as a ***
  18947. --- *** utonomous and nonautonomous elements. ***
  18948. --- ************************************************
  18949. ---
  18950. CREATE VIEW polinton AS
  18951. SELECT
  18952. feature_id AS polinton_id,
  18953. feature.*
  18954. FROM
  18955. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18956. WHERE cvterm.name = 'polinton';
  18957. --- ************************************************
  18958. --- *** relation: rrna_21s ***
  18959. --- *** relation type: VIEW ***
  18960. --- *** ***
  18961. --- *** A component of the large ribosomal subun ***
  18962. --- *** it in mitochondrial rRNA. ***
  18963. --- ************************************************
  18964. ---
  18965. CREATE VIEW rrna_21s AS
  18966. SELECT
  18967. feature_id AS rrna_21s_id,
  18968. feature.*
  18969. FROM
  18970. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18971. WHERE cvterm.name = 'rRNA_21S';
  18972. --- ************************************************
  18973. --- *** relation: trna_region ***
  18974. --- *** relation type: VIEW ***
  18975. --- *** ***
  18976. --- *** A region of a tRNA. ***
  18977. --- ************************************************
  18978. ---
  18979. CREATE VIEW trna_region AS
  18980. SELECT
  18981. feature_id AS trna_region_id,
  18982. feature.*
  18983. FROM
  18984. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  18985. 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';
  18986. --- ************************************************
  18987. --- *** relation: anticodon_loop ***
  18988. --- *** relation type: VIEW ***
  18989. --- *** ***
  18990. --- *** A sequence of seven nucleotide bases in ***
  18991. --- *** tRNA which contains the anticodon. It ha ***
  18992. --- *** s the sequence 5'-pyrimidine-purine-anti ***
  18993. --- *** codon-modified purine-any base-3. ***
  18994. --- ************************************************
  18995. ---
  18996. CREATE VIEW anticodon_loop AS
  18997. SELECT
  18998. feature_id AS anticodon_loop_id,
  18999. feature.*
  19000. FROM
  19001. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19002. WHERE cvterm.name = 'anticodon_loop';
  19003. --- ************************************************
  19004. --- *** relation: anticodon ***
  19005. --- *** relation type: VIEW ***
  19006. --- *** ***
  19007. --- *** A sequence of three nucleotide bases in ***
  19008. --- *** tRNA which recognizes a codon in mRNA. ***
  19009. --- ************************************************
  19010. ---
  19011. CREATE VIEW anticodon AS
  19012. SELECT
  19013. feature_id AS anticodon_id,
  19014. feature.*
  19015. FROM
  19016. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19017. WHERE cvterm.name = 'anticodon';
  19018. --- ************************************************
  19019. --- *** relation: cca_tail ***
  19020. --- *** relation type: VIEW ***
  19021. --- *** ***
  19022. --- *** Base sequence at the 3' end of a tRNA. T ***
  19023. --- *** he 3'-hydroxyl group on the terminal ade ***
  19024. --- *** nosine is the attachment point for the a ***
  19025. --- *** mino acid. ***
  19026. --- ************************************************
  19027. ---
  19028. CREATE VIEW cca_tail AS
  19029. SELECT
  19030. feature_id AS cca_tail_id,
  19031. feature.*
  19032. FROM
  19033. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19034. WHERE cvterm.name = 'CCA_tail';
  19035. --- ************************************************
  19036. --- *** relation: dhu_loop ***
  19037. --- *** relation type: VIEW ***
  19038. --- *** ***
  19039. --- *** Non-base-paired sequence of nucleotide b ***
  19040. --- *** ases in tRNA. It contains several dihydr ***
  19041. --- *** ouracil residues. ***
  19042. --- ************************************************
  19043. ---
  19044. CREATE VIEW dhu_loop AS
  19045. SELECT
  19046. feature_id AS dhu_loop_id,
  19047. feature.*
  19048. FROM
  19049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19050. WHERE cvterm.name = 'DHU_loop';
  19051. --- ************************************************
  19052. --- *** relation: t_loop ***
  19053. --- *** relation type: VIEW ***
  19054. --- *** ***
  19055. --- *** Non-base-paired sequence of three nucleo ***
  19056. --- *** tide bases in tRNA. It has sequence T-Ps ***
  19057. --- *** i-C. ***
  19058. --- ************************************************
  19059. ---
  19060. CREATE VIEW t_loop AS
  19061. SELECT
  19062. feature_id AS t_loop_id,
  19063. feature.*
  19064. FROM
  19065. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19066. WHERE cvterm.name = 'T_loop';
  19067. --- ************************************************
  19068. --- *** relation: pyrrolysine_trna_primary_transcript ***
  19069. --- *** relation type: VIEW ***
  19070. --- *** ***
  19071. --- *** A primary transcript encoding pyrrolysyl ***
  19072. --- *** tRNA (SO:0000766). ***
  19073. --- ************************************************
  19074. ---
  19075. CREATE VIEW pyrrolysine_trna_primary_transcript AS
  19076. SELECT
  19077. feature_id AS pyrrolysine_trna_primary_transcript_id,
  19078. feature.*
  19079. FROM
  19080. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19081. WHERE cvterm.name = 'pyrrolysine_tRNA_primary_transcript';
  19082. --- ************************************************
  19083. --- *** relation: u3_snorna ***
  19084. --- *** relation type: VIEW ***
  19085. --- *** ***
  19086. --- *** U3 snoRNA is a member of the box C/D cla ***
  19087. --- *** ss of small nucleolar RNAs. The U3 snoRN ***
  19088. --- *** A secondary structure is characterised b ***
  19089. --- *** y a small 5' domain (with boxes A and A' ***
  19090. --- *** ), and a larger 3' domain (with boxes B, ***
  19091. --- *** C, C', and D), the two domains being li ***
  19092. --- *** nked by a single-stranded hinge. Boxes B ***
  19093. --- *** and C form the B/C motif, which appears ***
  19094. --- *** to be exclusive to U3 snoRNAs, and boxe ***
  19095. --- *** s C' and D form the C'/D motif. The latt ***
  19096. --- *** er is functionally similar to the C/D mo ***
  19097. --- *** tifs found in other snoRNAs. The 5' doma ***
  19098. --- *** in and the hinge region act as a pre-rRN ***
  19099. --- *** A-binding domain. The 3' domain has cons ***
  19100. --- *** erved protein-binding sites. Both the bo ***
  19101. --- *** x B/C and box C'/D motifs are sufficient ***
  19102. --- *** for nuclear retention of U3 snoRNA. The ***
  19103. --- *** box C'/D motif is also necessary for nu ***
  19104. --- *** cleolar localization, stability and hype ***
  19105. --- *** rmethylation of U3 snoRNA. Both box B/C ***
  19106. --- *** and C'/D motifs are involved in specific ***
  19107. --- *** protein interactions and are necessary ***
  19108. --- *** for the rRNA processing functions of U3 ***
  19109. --- *** snoRNA. ***
  19110. --- ************************************************
  19111. ---
  19112. CREATE VIEW u3_snorna AS
  19113. SELECT
  19114. feature_id AS u3_snorna_id,
  19115. feature.*
  19116. FROM
  19117. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19118. WHERE cvterm.name = 'U3_snoRNA';
  19119. --- ************************************************
  19120. --- *** relation: au_rich_element ***
  19121. --- *** relation type: VIEW ***
  19122. --- *** ***
  19123. --- *** A cis-acting element found in the 3' UTR ***
  19124. --- *** of some mRNA which is rich in AUUUA pen ***
  19125. --- *** tamers. Messenger RNAs bearing multiple ***
  19126. --- *** AU-rich elements are often unstable. ***
  19127. --- ************************************************
  19128. ---
  19129. CREATE VIEW au_rich_element AS
  19130. SELECT
  19131. feature_id AS au_rich_element_id,
  19132. feature.*
  19133. FROM
  19134. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19135. WHERE cvterm.name = 'AU_rich_element';
  19136. --- ************************************************
  19137. --- *** relation: bruno_response_element ***
  19138. --- *** relation type: VIEW ***
  19139. --- *** ***
  19140. --- *** A cis-acting element found in the 3' UTR ***
  19141. --- *** of some mRNA which is bound by the Dros ***
  19142. --- *** ophila Bruno protein and its homologs. ***
  19143. --- ************************************************
  19144. ---
  19145. CREATE VIEW bruno_response_element AS
  19146. SELECT
  19147. feature_id AS bruno_response_element_id,
  19148. feature.*
  19149. FROM
  19150. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19151. WHERE cvterm.name = 'Bruno_response_element';
  19152. --- ************************************************
  19153. --- *** relation: iron_responsive_element ***
  19154. --- *** relation type: VIEW ***
  19155. --- *** ***
  19156. --- *** A regulatory sequence found in the 5' an ***
  19157. --- *** d 3' UTRs of many mRNAs which encode iro ***
  19158. --- *** n-binding proteins. It has a hairpin str ***
  19159. --- *** ucture and is recognized by trans-acting ***
  19160. --- *** proteins known as iron-regulatory prote ***
  19161. --- *** ins. ***
  19162. --- ************************************************
  19163. ---
  19164. CREATE VIEW iron_responsive_element AS
  19165. SELECT
  19166. feature_id AS iron_responsive_element_id,
  19167. feature.*
  19168. FROM
  19169. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19170. WHERE cvterm.name = 'iron_responsive_element';
  19171. --- ************************************************
  19172. --- *** relation: morpholino_backbone ***
  19173. --- *** relation type: VIEW ***
  19174. --- *** ***
  19175. --- *** An attribute describing a sequence compo ***
  19176. --- *** sed of nucleobases bound to a morpholino ***
  19177. --- *** backbone. A morpholino backbone consist ***
  19178. --- *** s of morpholine (CHEBI:34856) rings conn ***
  19179. --- *** ected by phosphorodiamidate linkages. ***
  19180. --- ************************************************
  19181. ---
  19182. CREATE VIEW morpholino_backbone AS
  19183. SELECT
  19184. feature_id AS morpholino_backbone_id,
  19185. feature.*
  19186. FROM
  19187. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19188. WHERE cvterm.name = 'morpholino_backbone';
  19189. --- ************************************************
  19190. --- *** relation: pna ***
  19191. --- *** relation type: VIEW ***
  19192. --- *** ***
  19193. --- *** An attribute describing a sequence compo ***
  19194. --- *** sed of peptide nucleic acid (CHEBI:48021 ***
  19195. --- *** ), a chemical consisting of nucleobases ***
  19196. --- *** bound to a backbone composed of repeatin ***
  19197. --- *** g N-(2-aminoethyl)-glycine units linked ***
  19198. --- *** by peptide bonds. The purine and pyrimid ***
  19199. --- *** ine bases are linked to the backbone by ***
  19200. --- *** methylene carbonyl bonds. ***
  19201. --- ************************************************
  19202. ---
  19203. CREATE VIEW pna AS
  19204. SELECT
  19205. feature_id AS pna_id,
  19206. feature.*
  19207. FROM
  19208. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19209. WHERE cvterm.name = 'PNA';
  19210. --- ************************************************
  19211. --- *** relation: enzymatic ***
  19212. --- *** relation type: VIEW ***
  19213. --- *** ***
  19214. --- *** An attribute describing the sequence of ***
  19215. --- *** a transcript that has catalytic activity ***
  19216. --- *** with or without an associated ribonucle ***
  19217. --- *** oprotein. ***
  19218. --- ************************************************
  19219. ---
  19220. CREATE VIEW enzymatic AS
  19221. SELECT
  19222. feature_id AS enzymatic_id,
  19223. feature.*
  19224. FROM
  19225. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19226. WHERE cvterm.name = 'ribozymic' OR cvterm.name = 'enzymatic';
  19227. --- ************************************************
  19228. --- *** relation: ribozymic ***
  19229. --- *** relation type: VIEW ***
  19230. --- *** ***
  19231. --- *** An attribute describing the sequence of ***
  19232. --- *** a transcript that has catalytic activity ***
  19233. --- *** even without an associated ribonucleopr ***
  19234. --- *** otein. ***
  19235. --- ************************************************
  19236. ---
  19237. CREATE VIEW ribozymic AS
  19238. SELECT
  19239. feature_id AS ribozymic_id,
  19240. feature.*
  19241. FROM
  19242. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19243. WHERE cvterm.name = 'ribozymic';
  19244. --- ************************************************
  19245. --- *** relation: pseudouridylation_guide_snorna ***
  19246. --- *** relation type: VIEW ***
  19247. --- *** ***
  19248. --- *** A snoRNA that specifies the site of pseu ***
  19249. --- *** douridylation in an RNA molecule by base ***
  19250. --- *** pairing with a short sequence around th ***
  19251. --- *** e target residue. ***
  19252. --- ************************************************
  19253. ---
  19254. CREATE VIEW pseudouridylation_guide_snorna AS
  19255. SELECT
  19256. feature_id AS pseudouridylation_guide_snorna_id,
  19257. feature.*
  19258. FROM
  19259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19260. WHERE cvterm.name = 'pseudouridylation_guide_snoRNA';
  19261. --- ************************************************
  19262. --- *** relation: lna ***
  19263. --- *** relation type: VIEW ***
  19264. --- *** ***
  19265. --- *** An attribute describing a sequence consi ***
  19266. --- *** sting of nucleobases attached to a repea ***
  19267. --- *** ting unit made of 'locked' deoxyribose r ***
  19268. --- *** ings connected to a phosphate backbone. ***
  19269. --- *** The deoxyribose unit's conformation is ' ***
  19270. --- *** locked' by a 2'-C,4'-C-oxymethylene link ***
  19271. --- *** . ***
  19272. --- ************************************************
  19273. ---
  19274. CREATE VIEW lna AS
  19275. SELECT
  19276. feature_id AS lna_id,
  19277. feature.*
  19278. FROM
  19279. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19280. WHERE cvterm.name = 'LNA';
  19281. --- ************************************************
  19282. --- *** relation: lna_oligo ***
  19283. --- *** relation type: VIEW ***
  19284. --- *** ***
  19285. --- *** An oligo composed of LNA residues. ***
  19286. --- ************************************************
  19287. ---
  19288. CREATE VIEW lna_oligo AS
  19289. SELECT
  19290. feature_id AS lna_oligo_id,
  19291. feature.*
  19292. FROM
  19293. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19294. WHERE cvterm.name = 'LNA_oligo';
  19295. --- ************************************************
  19296. --- *** relation: tna ***
  19297. --- *** relation type: VIEW ***
  19298. --- *** ***
  19299. --- *** An attribute describing a sequence consi ***
  19300. --- *** sting of nucleobases attached to a repea ***
  19301. --- *** ting unit made of threose rings connecte ***
  19302. --- *** d to a phosphate backbone. ***
  19303. --- ************************************************
  19304. ---
  19305. CREATE VIEW tna AS
  19306. SELECT
  19307. feature_id AS tna_id,
  19308. feature.*
  19309. FROM
  19310. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19311. WHERE cvterm.name = 'TNA';
  19312. --- ************************************************
  19313. --- *** relation: tna_oligo ***
  19314. --- *** relation type: VIEW ***
  19315. --- *** ***
  19316. --- *** An oligo composed of TNA residues. ***
  19317. --- ************************************************
  19318. ---
  19319. CREATE VIEW tna_oligo AS
  19320. SELECT
  19321. feature_id AS tna_oligo_id,
  19322. feature.*
  19323. FROM
  19324. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19325. WHERE cvterm.name = 'TNA_oligo';
  19326. --- ************************************************
  19327. --- *** relation: gna ***
  19328. --- *** relation type: VIEW ***
  19329. --- *** ***
  19330. --- *** An attribute describing a sequence consi ***
  19331. --- *** sting of nucleobases attached to a repea ***
  19332. --- *** ting unit made of an acyclic three-carbo ***
  19333. --- *** n propylene glycol connected to a phosph ***
  19334. --- *** ate backbone. It has two enantiomeric fo ***
  19335. --- *** rms, (R)-GNA and (S)-GNA. ***
  19336. --- ************************************************
  19337. ---
  19338. CREATE VIEW gna AS
  19339. SELECT
  19340. feature_id AS gna_id,
  19341. feature.*
  19342. FROM
  19343. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19344. WHERE cvterm.name = 'R_GNA' OR cvterm.name = 'S_GNA' OR cvterm.name = 'GNA';
  19345. --- ************************************************
  19346. --- *** relation: gna_oligo ***
  19347. --- *** relation type: VIEW ***
  19348. --- *** ***
  19349. --- *** An oligo composed of GNA residues. ***
  19350. --- ************************************************
  19351. ---
  19352. CREATE VIEW gna_oligo AS
  19353. SELECT
  19354. feature_id AS gna_oligo_id,
  19355. feature.*
  19356. FROM
  19357. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19358. WHERE cvterm.name = 'R_GNA_oligo' OR cvterm.name = 'S_GNA_oligo' OR cvterm.name = 'GNA_oligo';
  19359. --- ************************************************
  19360. --- *** relation: r_gna ***
  19361. --- *** relation type: VIEW ***
  19362. --- *** ***
  19363. --- *** An attribute describing a GNA sequence i ***
  19364. --- *** n the (R)-GNA enantiomer. ***
  19365. --- ************************************************
  19366. ---
  19367. CREATE VIEW r_gna AS
  19368. SELECT
  19369. feature_id AS r_gna_id,
  19370. feature.*
  19371. FROM
  19372. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19373. WHERE cvterm.name = 'R_GNA';
  19374. --- ************************************************
  19375. --- *** relation: r_gna_oligo ***
  19376. --- *** relation type: VIEW ***
  19377. --- *** ***
  19378. --- *** An oligo composed of (R)-GNA residues. ***
  19379. --- ************************************************
  19380. ---
  19381. CREATE VIEW r_gna_oligo AS
  19382. SELECT
  19383. feature_id AS r_gna_oligo_id,
  19384. feature.*
  19385. FROM
  19386. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19387. WHERE cvterm.name = 'R_GNA_oligo';
  19388. --- ************************************************
  19389. --- *** relation: s_gna ***
  19390. --- *** relation type: VIEW ***
  19391. --- *** ***
  19392. --- *** An attribute describing a GNA sequence i ***
  19393. --- *** n the (S)-GNA enantiomer. ***
  19394. --- ************************************************
  19395. ---
  19396. CREATE VIEW s_gna AS
  19397. SELECT
  19398. feature_id AS s_gna_id,
  19399. feature.*
  19400. FROM
  19401. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19402. WHERE cvterm.name = 'S_GNA';
  19403. --- ************************************************
  19404. --- *** relation: s_gna_oligo ***
  19405. --- *** relation type: VIEW ***
  19406. --- *** ***
  19407. --- *** An oligo composed of (S)-GNA residues. ***
  19408. --- ************************************************
  19409. ---
  19410. CREATE VIEW s_gna_oligo AS
  19411. SELECT
  19412. feature_id AS s_gna_oligo_id,
  19413. feature.*
  19414. FROM
  19415. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19416. WHERE cvterm.name = 'S_GNA_oligo';
  19417. --- ************************************************
  19418. --- *** relation: ds_dna_viral_sequence ***
  19419. --- *** relation type: VIEW ***
  19420. --- *** ***
  19421. --- *** A ds_DNA_viral_sequence is a viral_seque ***
  19422. --- *** nce that is the sequence of a virus that ***
  19423. --- *** exists as double stranded DNA. ***
  19424. --- ************************************************
  19425. ---
  19426. CREATE VIEW ds_dna_viral_sequence AS
  19427. SELECT
  19428. feature_id AS ds_dna_viral_sequence_id,
  19429. feature.*
  19430. FROM
  19431. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19432. WHERE cvterm.name = 'ds_DNA_viral_sequence';
  19433. --- ************************************************
  19434. --- *** relation: ss_rna_viral_sequence ***
  19435. --- *** relation type: VIEW ***
  19436. --- *** ***
  19437. --- *** A ss_RNA_viral_sequence is a viral_seque ***
  19438. --- *** nce that is the sequence of a virus that ***
  19439. --- *** exists as single stranded RNA. ***
  19440. --- ************************************************
  19441. ---
  19442. CREATE VIEW ss_rna_viral_sequence AS
  19443. SELECT
  19444. feature_id AS ss_rna_viral_sequence_id,
  19445. feature.*
  19446. FROM
  19447. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19448. 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';
  19449. --- ************************************************
  19450. --- *** relation: negative_sense_ssrna_viral_sequence ***
  19451. --- *** relation type: VIEW ***
  19452. --- *** ***
  19453. --- *** A negative_sense_RNA_viral_sequence is a ***
  19454. --- *** ss_RNA_viral_sequence that is the seque ***
  19455. --- *** nce of a single stranded RNA virus that ***
  19456. --- *** is complementary to mRNA and must be con ***
  19457. --- *** verted to positive sense RNA by RNA poly ***
  19458. --- *** merase before translation. ***
  19459. --- ************************************************
  19460. ---
  19461. CREATE VIEW negative_sense_ssrna_viral_sequence AS
  19462. SELECT
  19463. feature_id AS negative_sense_ssrna_viral_sequence_id,
  19464. feature.*
  19465. FROM
  19466. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19467. WHERE cvterm.name = 'negative_sense_ssRNA_viral_sequence';
  19468. --- ************************************************
  19469. --- *** relation: positive_sense_ssrna_viral_sequence ***
  19470. --- *** relation type: VIEW ***
  19471. --- *** ***
  19472. --- *** A positive_sense_RNA_viral_sequence is a ***
  19473. --- *** ss_RNA_viral_sequence that is the seque ***
  19474. --- *** nce of a single stranded RNA virus that ***
  19475. --- *** can be immediately translated by the hos ***
  19476. --- *** t. ***
  19477. --- ************************************************
  19478. ---
  19479. CREATE VIEW positive_sense_ssrna_viral_sequence AS
  19480. SELECT
  19481. feature_id AS positive_sense_ssrna_viral_sequence_id,
  19482. feature.*
  19483. FROM
  19484. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19485. WHERE cvterm.name = 'positive_sense_ssRNA_viral_sequence';
  19486. --- ************************************************
  19487. --- *** relation: ambisense_ssrna_viral_sequence ***
  19488. --- *** relation type: VIEW ***
  19489. --- *** ***
  19490. --- *** A ambisense_RNA_virus is a ss_RNA_viral_ ***
  19491. --- *** sequence that is the sequence of a singl ***
  19492. --- *** e stranded RNA virus with both messenger ***
  19493. --- *** and anti messenger polarity. ***
  19494. --- ************************************************
  19495. ---
  19496. CREATE VIEW ambisense_ssrna_viral_sequence AS
  19497. SELECT
  19498. feature_id AS ambisense_ssrna_viral_sequence_id,
  19499. feature.*
  19500. FROM
  19501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19502. WHERE cvterm.name = 'ambisense_ssRNA_viral_sequence';
  19503. --- ************************************************
  19504. --- *** relation: rna_polymerase_promoter ***
  19505. --- *** relation type: VIEW ***
  19506. --- *** ***
  19507. --- *** A region (DNA) to which RNA polymerase b ***
  19508. --- *** inds, to begin transcription. ***
  19509. --- ************************************************
  19510. ---
  19511. CREATE VIEW rna_polymerase_promoter AS
  19512. SELECT
  19513. feature_id AS rna_polymerase_promoter_id,
  19514. feature.*
  19515. FROM
  19516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19517. 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';
  19518. --- ************************************************
  19519. --- *** relation: phage_rna_polymerase_promoter ***
  19520. --- *** relation type: VIEW ***
  19521. --- *** ***
  19522. --- *** A region (DNA) to which Bacteriophage RN ***
  19523. --- *** A polymerase binds, to begin transcripti ***
  19524. --- *** on. ***
  19525. --- ************************************************
  19526. ---
  19527. CREATE VIEW phage_rna_polymerase_promoter AS
  19528. SELECT
  19529. feature_id AS phage_rna_polymerase_promoter_id,
  19530. feature.*
  19531. FROM
  19532. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19533. 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';
  19534. --- ************************************************
  19535. --- *** relation: sp6_rna_polymerase_promoter ***
  19536. --- *** relation type: VIEW ***
  19537. --- *** ***
  19538. --- *** A region (DNA) to which the SP6 RNA poly ***
  19539. --- *** merase binds, to begin transcription. ***
  19540. --- ************************************************
  19541. ---
  19542. CREATE VIEW sp6_rna_polymerase_promoter AS
  19543. SELECT
  19544. feature_id AS sp6_rna_polymerase_promoter_id,
  19545. feature.*
  19546. FROM
  19547. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19548. WHERE cvterm.name = 'SP6_RNA_Polymerase_Promoter';
  19549. --- ************************************************
  19550. --- *** relation: t3_rna_polymerase_promoter ***
  19551. --- *** relation type: VIEW ***
  19552. --- *** ***
  19553. --- *** A DNA sequence to which the T3 RNA polym ***
  19554. --- *** erase binds, to begin transcription. ***
  19555. --- ************************************************
  19556. ---
  19557. CREATE VIEW t3_rna_polymerase_promoter AS
  19558. SELECT
  19559. feature_id AS t3_rna_polymerase_promoter_id,
  19560. feature.*
  19561. FROM
  19562. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19563. WHERE cvterm.name = 'T3_RNA_Polymerase_Promoter';
  19564. --- ************************************************
  19565. --- *** relation: t7_rna_polymerase_promoter ***
  19566. --- *** relation type: VIEW ***
  19567. --- *** ***
  19568. --- *** A region (DNA) to which the T7 RNA polym ***
  19569. --- *** erase binds, to begin transcription. ***
  19570. --- ************************************************
  19571. ---
  19572. CREATE VIEW t7_rna_polymerase_promoter AS
  19573. SELECT
  19574. feature_id AS t7_rna_polymerase_promoter_id,
  19575. feature.*
  19576. FROM
  19577. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19578. WHERE cvterm.name = 'T7_RNA_Polymerase_Promoter';
  19579. --- ************************************************
  19580. --- *** relation: five_prime_est ***
  19581. --- *** relation type: VIEW ***
  19582. --- *** ***
  19583. --- *** An EST read from the 5' end of a transcr ***
  19584. --- *** ipt that usually codes for a protein. Th ***
  19585. --- *** ese regions tend to be conserved across ***
  19586. --- *** species and do not change much within a ***
  19587. --- *** gene family. ***
  19588. --- ************************************************
  19589. ---
  19590. CREATE VIEW five_prime_est AS
  19591. SELECT
  19592. feature_id AS five_prime_est_id,
  19593. feature.*
  19594. FROM
  19595. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19596. WHERE cvterm.name = 'five_prime_EST';
  19597. --- ************************************************
  19598. --- *** relation: three_prime_est ***
  19599. --- *** relation type: VIEW ***
  19600. --- *** ***
  19601. --- *** An EST read from the 3' end of a transcr ***
  19602. --- *** ipt. They are more likely to fall within ***
  19603. --- *** non-coding, or untranslated regions(UTR ***
  19604. --- *** s). ***
  19605. --- ************************************************
  19606. ---
  19607. CREATE VIEW three_prime_est AS
  19608. SELECT
  19609. feature_id AS three_prime_est_id,
  19610. feature.*
  19611. FROM
  19612. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19613. WHERE cvterm.name = 'three_prime_EST';
  19614. --- ************************************************
  19615. --- *** relation: translational_frameshift ***
  19616. --- *** relation type: VIEW ***
  19617. --- *** ***
  19618. --- *** The region of mRNA (not divisible by 3 b ***
  19619. --- *** ases) that is skipped during the process ***
  19620. --- *** of translational frameshifting (GO:0006 ***
  19621. --- *** 452), causing the reading frame to be di ***
  19622. --- *** fferent. ***
  19623. --- ************************************************
  19624. ---
  19625. CREATE VIEW translational_frameshift AS
  19626. SELECT
  19627. feature_id AS translational_frameshift_id,
  19628. feature.*
  19629. FROM
  19630. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19631. WHERE cvterm.name = 'plus_1_translational_frameshift' OR cvterm.name = 'plus_2_translational_frameshift' OR cvterm.name = 'translational_frameshift';
  19632. --- ************************************************
  19633. --- *** relation: plus_1_translational_frameshift ***
  19634. --- *** relation type: VIEW ***
  19635. --- *** ***
  19636. --- *** The region of mRNA 1 base long that is s ***
  19637. --- *** kipped during the process of translation ***
  19638. --- *** al frameshifting (GO:0006452), causing t ***
  19639. --- *** he reading frame to be different. ***
  19640. --- ************************************************
  19641. ---
  19642. CREATE VIEW plus_1_translational_frameshift AS
  19643. SELECT
  19644. feature_id AS plus_1_translational_frameshift_id,
  19645. feature.*
  19646. FROM
  19647. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19648. WHERE cvterm.name = 'plus_1_translational_frameshift';
  19649. --- ************************************************
  19650. --- *** relation: plus_2_translational_frameshift ***
  19651. --- *** relation type: VIEW ***
  19652. --- *** ***
  19653. --- *** The region of mRNA 2 bases long that is ***
  19654. --- *** skipped during the process of translatio ***
  19655. --- *** nal frameshifting (GO:0006452), causing ***
  19656. --- *** the reading frame to be different. ***
  19657. --- ************************************************
  19658. ---
  19659. CREATE VIEW plus_2_translational_frameshift AS
  19660. SELECT
  19661. feature_id AS plus_2_translational_frameshift_id,
  19662. feature.*
  19663. FROM
  19664. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19665. WHERE cvterm.name = 'plus_2_translational_frameshift';
  19666. --- ************************************************
  19667. --- *** relation: group_iii_intron ***
  19668. --- *** relation type: VIEW ***
  19669. --- *** ***
  19670. --- *** Group III introns are introns found in t ***
  19671. --- *** he mRNA of the plastids of euglenoid pro ***
  19672. --- *** tists. They are spliced by a two step tr ***
  19673. --- *** ansesterification with bulged adenosine ***
  19674. --- *** as initiating nucleophile. ***
  19675. --- ************************************************
  19676. ---
  19677. CREATE VIEW group_iii_intron AS
  19678. SELECT
  19679. feature_id AS group_iii_intron_id,
  19680. feature.*
  19681. FROM
  19682. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19683. WHERE cvterm.name = 'group_III_intron';
  19684. --- ************************************************
  19685. --- *** relation: noncoding_region_of_exon ***
  19686. --- *** relation type: VIEW ***
  19687. --- *** ***
  19688. --- *** The maximal intersection of exon and UTR ***
  19689. --- *** . ***
  19690. --- ************************************************
  19691. ---
  19692. CREATE VIEW noncoding_region_of_exon AS
  19693. SELECT
  19694. feature_id AS noncoding_region_of_exon_id,
  19695. feature.*
  19696. FROM
  19697. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19698. 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';
  19699. --- ************************************************
  19700. --- *** relation: coding_region_of_exon ***
  19701. --- *** relation type: VIEW ***
  19702. --- *** ***
  19703. --- *** The region of an exon that encodes for p ***
  19704. --- *** rotein sequence. ***
  19705. --- ************************************************
  19706. ---
  19707. CREATE VIEW coding_region_of_exon AS
  19708. SELECT
  19709. feature_id AS coding_region_of_exon_id,
  19710. feature.*
  19711. FROM
  19712. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19713. 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';
  19714. --- ************************************************
  19715. --- *** relation: endonuclease_spliced_intron ***
  19716. --- *** relation type: VIEW ***
  19717. --- *** ***
  19718. --- *** An intron that spliced via endonucleolyt ***
  19719. --- *** ic cleavage and ligation rather than tra ***
  19720. --- *** nsesterification. ***
  19721. --- ************************************************
  19722. ---
  19723. CREATE VIEW endonuclease_spliced_intron AS
  19724. SELECT
  19725. feature_id AS endonuclease_spliced_intron_id,
  19726. feature.*
  19727. FROM
  19728. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19729. WHERE cvterm.name = 'archaeal_intron' OR cvterm.name = 'tRNA_intron' OR cvterm.name = 'endonuclease_spliced_intron';
  19730. --- ************************************************
  19731. --- *** relation: protein_coding_gene ***
  19732. --- *** relation type: VIEW ***
  19733. --- *** ***
  19734. --- ************************************************
  19735. ---
  19736. CREATE VIEW protein_coding_gene AS
  19737. SELECT
  19738. feature_id AS protein_coding_gene_id,
  19739. feature.*
  19740. FROM
  19741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19742. 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';
  19743. --- ************************************************
  19744. --- *** relation: transgenic_insertion ***
  19745. --- *** relation type: VIEW ***
  19746. --- *** ***
  19747. --- *** An insertion that derives from another o ***
  19748. --- *** rganism, via the use of recombinant DNA ***
  19749. --- *** technology. ***
  19750. --- ************************************************
  19751. ---
  19752. CREATE VIEW transgenic_insertion AS
  19753. SELECT
  19754. feature_id AS transgenic_insertion_id,
  19755. feature.*
  19756. FROM
  19757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19758. WHERE cvterm.name = 'transgenic_insertion';
  19759. --- ************************************************
  19760. --- *** relation: retrogene ***
  19761. --- *** relation type: VIEW ***
  19762. --- *** ***
  19763. --- ************************************************
  19764. ---
  19765. CREATE VIEW retrogene AS
  19766. SELECT
  19767. feature_id AS retrogene_id,
  19768. feature.*
  19769. FROM
  19770. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19771. WHERE cvterm.name = 'retrogene';
  19772. --- ************************************************
  19773. --- *** relation: silenced_by_rna_interference ***
  19774. --- *** relation type: VIEW ***
  19775. --- *** ***
  19776. --- *** An attribute describing an epigenetic pr ***
  19777. --- *** ocess where a gene is inactivated by RNA ***
  19778. --- *** interference. ***
  19779. --- ************************************************
  19780. ---
  19781. CREATE VIEW silenced_by_rna_interference AS
  19782. SELECT
  19783. feature_id AS silenced_by_rna_interference_id,
  19784. feature.*
  19785. FROM
  19786. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19787. WHERE cvterm.name = 'silenced_by_RNA_interference';
  19788. --- ************************************************
  19789. --- *** relation: silenced_by_histone_modification ***
  19790. --- *** relation type: VIEW ***
  19791. --- *** ***
  19792. --- *** An attribute describing an epigenetic pr ***
  19793. --- *** ocess where a gene is inactivated by his ***
  19794. --- *** tone modification. ***
  19795. --- ************************************************
  19796. ---
  19797. CREATE VIEW silenced_by_histone_modification AS
  19798. SELECT
  19799. feature_id AS silenced_by_histone_modification_id,
  19800. feature.*
  19801. FROM
  19802. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19803. WHERE cvterm.name = 'silenced_by_histone_methylation' OR cvterm.name = 'silenced_by_histone_deacetylation' OR cvterm.name = 'silenced_by_histone_modification';
  19804. --- ************************************************
  19805. --- *** relation: silenced_by_histone_methylation ***
  19806. --- *** relation type: VIEW ***
  19807. --- *** ***
  19808. --- *** An attribute describing an epigenetic pr ***
  19809. --- *** ocess where a gene is inactivated by his ***
  19810. --- *** tone methylation. ***
  19811. --- ************************************************
  19812. ---
  19813. CREATE VIEW silenced_by_histone_methylation AS
  19814. SELECT
  19815. feature_id AS silenced_by_histone_methylation_id,
  19816. feature.*
  19817. FROM
  19818. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19819. WHERE cvterm.name = 'silenced_by_histone_methylation';
  19820. --- ************************************************
  19821. --- *** relation: silenced_by_histone_deacetylation ***
  19822. --- *** relation type: VIEW ***
  19823. --- *** ***
  19824. --- *** An attribute describing an epigenetic pr ***
  19825. --- *** ocess where a gene is inactivated by his ***
  19826. --- *** tone deacetylation. ***
  19827. --- ************************************************
  19828. ---
  19829. CREATE VIEW silenced_by_histone_deacetylation AS
  19830. SELECT
  19831. feature_id AS silenced_by_histone_deacetylation_id,
  19832. feature.*
  19833. FROM
  19834. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19835. WHERE cvterm.name = 'silenced_by_histone_deacetylation';
  19836. --- ************************************************
  19837. --- *** relation: gene_silenced_by_rna_interference ***
  19838. --- *** relation type: VIEW ***
  19839. --- *** ***
  19840. --- *** A gene that is silenced by RNA interfere ***
  19841. --- *** nce. ***
  19842. --- ************************************************
  19843. ---
  19844. CREATE VIEW gene_silenced_by_rna_interference AS
  19845. SELECT
  19846. feature_id AS gene_silenced_by_rna_interference_id,
  19847. feature.*
  19848. FROM
  19849. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19850. WHERE cvterm.name = 'gene_silenced_by_RNA_interference';
  19851. --- ************************************************
  19852. --- *** relation: gene_silenced_by_histone_modification ***
  19853. --- *** relation type: VIEW ***
  19854. --- *** ***
  19855. --- *** A gene that is silenced by histone modif ***
  19856. --- *** ication. ***
  19857. --- ************************************************
  19858. ---
  19859. CREATE VIEW gene_silenced_by_histone_modification AS
  19860. SELECT
  19861. feature_id AS gene_silenced_by_histone_modification_id,
  19862. feature.*
  19863. FROM
  19864. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19865. WHERE cvterm.name = 'gene_silenced_by_histone_methylation' OR cvterm.name = 'gene_silenced_by_histone_deacetylation' OR cvterm.name = 'gene_silenced_by_histone_modification';
  19866. --- ************************************************
  19867. --- *** relation: gene_silenced_by_histone_methylation ***
  19868. --- *** relation type: VIEW ***
  19869. --- *** ***
  19870. --- *** A gene that is silenced by histone methy ***
  19871. --- *** lation. ***
  19872. --- ************************************************
  19873. ---
  19874. CREATE VIEW gene_silenced_by_histone_methylation AS
  19875. SELECT
  19876. feature_id AS gene_silenced_by_histone_methylation_id,
  19877. feature.*
  19878. FROM
  19879. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19880. WHERE cvterm.name = 'gene_silenced_by_histone_methylation';
  19881. --- ************************************************
  19882. --- *** relation: gene_silenced_by_histone_deacetylation ***
  19883. --- *** relation type: VIEW ***
  19884. --- *** ***
  19885. --- *** A gene that is silenced by histone deace ***
  19886. --- *** tylation. ***
  19887. --- ************************************************
  19888. ---
  19889. CREATE VIEW gene_silenced_by_histone_deacetylation AS
  19890. SELECT
  19891. feature_id AS gene_silenced_by_histone_deacetylation_id,
  19892. feature.*
  19893. FROM
  19894. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19895. WHERE cvterm.name = 'gene_silenced_by_histone_deacetylation';
  19896. --- ************************************************
  19897. --- *** relation: dihydrouridine ***
  19898. --- *** relation type: VIEW ***
  19899. --- *** ***
  19900. --- *** A modified RNA base in which the 5,6-dih ***
  19901. --- *** ydrouracil is bound to the ribose ring. ***
  19902. --- ************************************************
  19903. ---
  19904. CREATE VIEW dihydrouridine AS
  19905. SELECT
  19906. feature_id AS dihydrouridine_id,
  19907. feature.*
  19908. FROM
  19909. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19910. WHERE cvterm.name = 'dihydrouridine';
  19911. --- ************************************************
  19912. --- *** relation: pseudouridine ***
  19913. --- *** relation type: VIEW ***
  19914. --- *** ***
  19915. --- *** A modified RNA base in which the 5- posi ***
  19916. --- *** tion of the uracil is bound to the ribos ***
  19917. --- *** e ring instead of the 4- position. ***
  19918. --- ************************************************
  19919. ---
  19920. CREATE VIEW pseudouridine AS
  19921. SELECT
  19922. feature_id AS pseudouridine_id,
  19923. feature.*
  19924. FROM
  19925. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19926. WHERE cvterm.name = 'pseudouridine';
  19927. --- ************************************************
  19928. --- *** relation: inosine ***
  19929. --- *** relation type: VIEW ***
  19930. --- *** ***
  19931. --- *** A modified RNA base in which hypoxanthin ***
  19932. --- *** e is bound to the ribose ring. ***
  19933. --- ************************************************
  19934. ---
  19935. CREATE VIEW inosine AS
  19936. SELECT
  19937. feature_id AS inosine_id,
  19938. feature.*
  19939. FROM
  19940. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19941. 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';
  19942. --- ************************************************
  19943. --- *** relation: seven_methylguanine ***
  19944. --- *** relation type: VIEW ***
  19945. --- *** ***
  19946. --- *** A modified RNA base in which guanine is ***
  19947. --- *** methylated at the 7- position. ***
  19948. --- ************************************************
  19949. ---
  19950. CREATE VIEW seven_methylguanine AS
  19951. SELECT
  19952. feature_id AS seven_methylguanine_id,
  19953. feature.*
  19954. FROM
  19955. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19956. WHERE cvterm.name = 'seven_methylguanine';
  19957. --- ************************************************
  19958. --- *** relation: ribothymidine ***
  19959. --- *** relation type: VIEW ***
  19960. --- *** ***
  19961. --- *** A modified RNA base in which thymine is ***
  19962. --- *** bound to the ribose ring. ***
  19963. --- ************************************************
  19964. ---
  19965. CREATE VIEW ribothymidine AS
  19966. SELECT
  19967. feature_id AS ribothymidine_id,
  19968. feature.*
  19969. FROM
  19970. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19971. WHERE cvterm.name = 'ribothymidine';
  19972. --- ************************************************
  19973. --- *** relation: methylinosine ***
  19974. --- *** relation type: VIEW ***
  19975. --- *** ***
  19976. --- *** A modified RNA base in which methylhypox ***
  19977. --- *** anthine is bound to the ribose ring. ***
  19978. --- ************************************************
  19979. ---
  19980. CREATE VIEW methylinosine AS
  19981. SELECT
  19982. feature_id AS methylinosine_id,
  19983. feature.*
  19984. FROM
  19985. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  19986. WHERE cvterm.name = 'methylinosine';
  19987. --- ************************************************
  19988. --- *** relation: mobile ***
  19989. --- *** relation type: VIEW ***
  19990. --- *** ***
  19991. --- *** An attribute describing a feature that h ***
  19992. --- *** as either intra-genome or intracellular ***
  19993. --- *** mobility. ***
  19994. --- ************************************************
  19995. ---
  19996. CREATE VIEW mobile AS
  19997. SELECT
  19998. feature_id AS mobile_id,
  19999. feature.*
  20000. FROM
  20001. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20002. WHERE cvterm.name = 'mobile';
  20003. --- ************************************************
  20004. --- *** relation: replicon ***
  20005. --- *** relation type: VIEW ***
  20006. --- *** ***
  20007. --- *** A region containing at least one unique ***
  20008. --- *** origin of replication and a unique termi ***
  20009. --- *** nation site. ***
  20010. --- ************************************************
  20011. ---
  20012. CREATE VIEW replicon AS
  20013. SELECT
  20014. feature_id AS replicon_id,
  20015. feature.*
  20016. FROM
  20017. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20018. 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';
  20019. --- ************************************************
  20020. --- *** relation: base ***
  20021. --- *** relation type: VIEW ***
  20022. --- *** ***
  20023. --- *** A base is a sequence feature that corres ***
  20024. --- *** ponds to a single unit of a nucleotide p ***
  20025. --- *** olymer. ***
  20026. --- ************************************************
  20027. ---
  20028. CREATE VIEW base AS
  20029. SELECT
  20030. feature_id AS base_id,
  20031. feature.*
  20032. FROM
  20033. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20034. 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';
  20035. --- ************************************************
  20036. --- *** relation: amino_acid ***
  20037. --- *** relation type: VIEW ***
  20038. --- *** ***
  20039. --- *** A sequence feature that corresponds to a ***
  20040. --- *** single amino acid residue in a polypept ***
  20041. --- *** ide. ***
  20042. --- ************************************************
  20043. ---
  20044. CREATE VIEW amino_acid AS
  20045. SELECT
  20046. feature_id AS amino_acid_id,
  20047. feature.*
  20048. FROM
  20049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20050. 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';
  20051. --- ************************************************
  20052. --- *** relation: major_tss ***
  20053. --- *** relation type: VIEW ***
  20054. --- *** ***
  20055. --- ************************************************
  20056. ---
  20057. CREATE VIEW major_tss AS
  20058. SELECT
  20059. feature_id AS major_tss_id,
  20060. feature.*
  20061. FROM
  20062. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20063. WHERE cvterm.name = 'major_TSS';
  20064. --- ************************************************
  20065. --- *** relation: minor_tss ***
  20066. --- *** relation type: VIEW ***
  20067. --- *** ***
  20068. --- ************************************************
  20069. ---
  20070. CREATE VIEW minor_tss AS
  20071. SELECT
  20072. feature_id AS minor_tss_id,
  20073. feature.*
  20074. FROM
  20075. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20076. WHERE cvterm.name = 'minor_TSS';
  20077. --- ************************************************
  20078. --- *** relation: tss_region ***
  20079. --- *** relation type: VIEW ***
  20080. --- *** ***
  20081. --- *** The region of a gene from the 5' most TS ***
  20082. --- *** S to the 3' TSS. ***
  20083. --- ************************************************
  20084. ---
  20085. CREATE VIEW tss_region AS
  20086. SELECT
  20087. feature_id AS tss_region_id,
  20088. feature.*
  20089. FROM
  20090. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20091. WHERE cvterm.name = 'TSS_region';
  20092. --- ************************************************
  20093. --- *** relation: encodes_alternate_transcription_start_sites ***
  20094. --- *** relation type: VIEW ***
  20095. --- *** ***
  20096. --- ************************************************
  20097. ---
  20098. CREATE VIEW encodes_alternate_transcription_start_sites AS
  20099. SELECT
  20100. feature_id AS encodes_alternate_transcription_start_sites_id,
  20101. feature.*
  20102. FROM
  20103. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20104. WHERE cvterm.name = 'encodes_alternate_transcription_start_sites';
  20105. --- ************************************************
  20106. --- *** relation: mirna_primary_transcript_region ***
  20107. --- *** relation type: VIEW ***
  20108. --- *** ***
  20109. --- *** A part of an miRNA primary_transcript. ***
  20110. --- ************************************************
  20111. ---
  20112. CREATE VIEW mirna_primary_transcript_region AS
  20113. SELECT
  20114. feature_id AS mirna_primary_transcript_region_id,
  20115. feature.*
  20116. FROM
  20117. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20118. 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';
  20119. --- ************************************************
  20120. --- *** relation: pre_mirna ***
  20121. --- *** relation type: VIEW ***
  20122. --- *** ***
  20123. --- *** The 60-70 nucleotide region remain after ***
  20124. --- *** Drosha processing of the primary transc ***
  20125. --- *** ript, that folds back upon itself to for ***
  20126. --- *** m a hairpin sructure. ***
  20127. --- ************************************************
  20128. ---
  20129. CREATE VIEW pre_mirna AS
  20130. SELECT
  20131. feature_id AS pre_mirna_id,
  20132. feature.*
  20133. FROM
  20134. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20135. WHERE cvterm.name = 'pre_miRNA';
  20136. --- ************************************************
  20137. --- *** relation: mirna_stem ***
  20138. --- *** relation type: VIEW ***
  20139. --- *** ***
  20140. --- *** The stem of the hairpin loop formed by f ***
  20141. --- *** olding of the pre-miRNA. ***
  20142. --- ************************************************
  20143. ---
  20144. CREATE VIEW mirna_stem AS
  20145. SELECT
  20146. feature_id AS mirna_stem_id,
  20147. feature.*
  20148. FROM
  20149. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20150. WHERE cvterm.name = 'miRNA_stem';
  20151. --- ************************************************
  20152. --- *** relation: mirna_loop ***
  20153. --- *** relation type: VIEW ***
  20154. --- *** ***
  20155. --- *** The loop of the hairpin loop formed by f ***
  20156. --- *** olding of the pre-miRNA. ***
  20157. --- ************************************************
  20158. ---
  20159. CREATE VIEW mirna_loop AS
  20160. SELECT
  20161. feature_id AS mirna_loop_id,
  20162. feature.*
  20163. FROM
  20164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20165. WHERE cvterm.name = 'miRNA_loop';
  20166. --- ************************************************
  20167. --- *** relation: synthetic_oligo ***
  20168. --- *** relation type: VIEW ***
  20169. --- *** ***
  20170. --- *** An oligo composed of synthetic nucleotid ***
  20171. --- *** es. ***
  20172. --- ************************************************
  20173. ---
  20174. CREATE VIEW synthetic_oligo AS
  20175. SELECT
  20176. feature_id AS synthetic_oligo_id,
  20177. feature.*
  20178. FROM
  20179. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20180. 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';
  20181. --- ************************************************
  20182. --- *** relation: assembly ***
  20183. --- *** relation type: VIEW ***
  20184. --- *** ***
  20185. --- *** A region of the genome of known length t ***
  20186. --- *** hat is composed by ordering and aligning ***
  20187. --- *** two or more different regions. ***
  20188. --- ************************************************
  20189. ---
  20190. CREATE VIEW assembly AS
  20191. SELECT
  20192. feature_id AS assembly_id,
  20193. feature.*
  20194. FROM
  20195. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20196. 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';
  20197. --- ************************************************
  20198. --- *** relation: fragment_assembly ***
  20199. --- *** relation type: VIEW ***
  20200. --- *** ***
  20201. --- *** A fragment assembly is a genome assembly ***
  20202. --- *** that orders overlapping fragments of th ***
  20203. --- *** e genome based on landmark sequences. Th ***
  20204. --- *** e base pair distance between the landmar ***
  20205. --- *** ks is known allowing additivity of lengt ***
  20206. --- *** hs. ***
  20207. --- ************************************************
  20208. ---
  20209. CREATE VIEW fragment_assembly AS
  20210. SELECT
  20211. feature_id AS fragment_assembly_id,
  20212. feature.*
  20213. FROM
  20214. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20215. WHERE cvterm.name = 'fingerprint_map' OR cvterm.name = 'STS_map' OR cvterm.name = 'RH_map' OR cvterm.name = 'fragment_assembly';
  20216. --- ************************************************
  20217. --- *** relation: fingerprint_map ***
  20218. --- *** relation type: VIEW ***
  20219. --- *** ***
  20220. --- *** A fingerprint_map is a physical map comp ***
  20221. --- *** osed of restriction fragments. ***
  20222. --- ************************************************
  20223. ---
  20224. CREATE VIEW fingerprint_map AS
  20225. SELECT
  20226. feature_id AS fingerprint_map_id,
  20227. feature.*
  20228. FROM
  20229. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20230. WHERE cvterm.name = 'fingerprint_map';
  20231. --- ************************************************
  20232. --- *** relation: sts_map ***
  20233. --- *** relation type: VIEW ***
  20234. --- *** ***
  20235. --- *** An STS map is a physical map organized b ***
  20236. --- *** y the unique STS landmarks. ***
  20237. --- ************************************************
  20238. ---
  20239. CREATE VIEW sts_map AS
  20240. SELECT
  20241. feature_id AS sts_map_id,
  20242. feature.*
  20243. FROM
  20244. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20245. WHERE cvterm.name = 'STS_map';
  20246. --- ************************************************
  20247. --- *** relation: rh_map ***
  20248. --- *** relation type: VIEW ***
  20249. --- *** ***
  20250. --- *** A radiation hybrid map is a physical map ***
  20251. --- *** . ***
  20252. --- ************************************************
  20253. ---
  20254. CREATE VIEW rh_map AS
  20255. SELECT
  20256. feature_id AS rh_map_id,
  20257. feature.*
  20258. FROM
  20259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20260. WHERE cvterm.name = 'RH_map';
  20261. --- ************************************************
  20262. --- *** relation: sonicate_fragment ***
  20263. --- *** relation type: VIEW ***
  20264. --- *** ***
  20265. --- *** A DNA fragment generated by sonication. ***
  20266. --- *** Sonication is a technique used to sheer ***
  20267. --- *** DNA into smaller fragments. ***
  20268. --- ************************************************
  20269. ---
  20270. CREATE VIEW sonicate_fragment AS
  20271. SELECT
  20272. feature_id AS sonicate_fragment_id,
  20273. feature.*
  20274. FROM
  20275. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20276. WHERE cvterm.name = 'sonicate_fragment';
  20277. --- ************************************************
  20278. --- *** relation: polyploid ***
  20279. --- *** relation type: VIEW ***
  20280. --- *** ***
  20281. --- *** A kind of chromosome variation where the ***
  20282. --- *** chromosome complement is an exact multi ***
  20283. --- *** ple of the haploid number and is greater ***
  20284. --- *** than the diploid number. ***
  20285. --- ************************************************
  20286. ---
  20287. CREATE VIEW polyploid AS
  20288. SELECT
  20289. feature_id AS polyploid_id,
  20290. feature.*
  20291. FROM
  20292. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20293. WHERE cvterm.name = 'autopolyploid' OR cvterm.name = 'allopolyploid' OR cvterm.name = 'polyploid';
  20294. --- ************************************************
  20295. --- *** relation: autopolyploid ***
  20296. --- *** relation type: VIEW ***
  20297. --- *** ***
  20298. --- *** A polyploid where the multiple chromosom ***
  20299. --- *** e set was derived from the same organism ***
  20300. --- *** . ***
  20301. --- ************************************************
  20302. ---
  20303. CREATE VIEW autopolyploid AS
  20304. SELECT
  20305. feature_id AS autopolyploid_id,
  20306. feature.*
  20307. FROM
  20308. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20309. WHERE cvterm.name = 'autopolyploid';
  20310. --- ************************************************
  20311. --- *** relation: allopolyploid ***
  20312. --- *** relation type: VIEW ***
  20313. --- *** ***
  20314. --- *** A polyploid where the multiple chromosom ***
  20315. --- *** e set was derived from a different organ ***
  20316. --- *** ism. ***
  20317. --- ************************************************
  20318. ---
  20319. CREATE VIEW allopolyploid AS
  20320. SELECT
  20321. feature_id AS allopolyploid_id,
  20322. feature.*
  20323. FROM
  20324. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20325. WHERE cvterm.name = 'allopolyploid';
  20326. --- ************************************************
  20327. --- *** relation: homing_endonuclease_binding_site ***
  20328. --- *** relation type: VIEW ***
  20329. --- *** ***
  20330. --- *** The binding site (recognition site) of a ***
  20331. --- *** homing endonuclease. The binding site i ***
  20332. --- *** s typically large. ***
  20333. --- ************************************************
  20334. ---
  20335. CREATE VIEW homing_endonuclease_binding_site AS
  20336. SELECT
  20337. feature_id AS homing_endonuclease_binding_site_id,
  20338. feature.*
  20339. FROM
  20340. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20341. WHERE cvterm.name = 'homing_endonuclease_binding_site';
  20342. --- ************************************************
  20343. --- *** relation: octamer_motif ***
  20344. --- *** relation type: VIEW ***
  20345. --- *** ***
  20346. --- *** A sequence element characteristic of som ***
  20347. --- *** e RNA polymerase II promoters with seque ***
  20348. --- *** nce ATTGCAT that binds Pou-domain transc ***
  20349. --- *** ription factors. ***
  20350. --- ************************************************
  20351. ---
  20352. CREATE VIEW octamer_motif AS
  20353. SELECT
  20354. feature_id AS octamer_motif_id,
  20355. feature.*
  20356. FROM
  20357. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20358. WHERE cvterm.name = 'octamer_motif';
  20359. --- ************************************************
  20360. --- *** relation: apicoplast_chromosome ***
  20361. --- *** relation type: VIEW ***
  20362. --- *** ***
  20363. --- *** A chromosome originating in an apicoplas ***
  20364. --- *** t. ***
  20365. --- ************************************************
  20366. ---
  20367. CREATE VIEW apicoplast_chromosome AS
  20368. SELECT
  20369. feature_id AS apicoplast_chromosome_id,
  20370. feature.*
  20371. FROM
  20372. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20373. WHERE cvterm.name = 'apicoplast_chromosome';
  20374. --- ************************************************
  20375. --- *** relation: sequence_collection ***
  20376. --- *** relation type: VIEW ***
  20377. --- *** ***
  20378. --- *** A collection of discontinuous sequences. ***
  20379. --- ************************************************
  20380. ---
  20381. CREATE VIEW sequence_collection AS
  20382. SELECT
  20383. feature_id AS sequence_collection_id,
  20384. feature.*
  20385. FROM
  20386. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20387. 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';
  20388. --- ************************************************
  20389. --- *** relation: overlapping_feature_set ***
  20390. --- *** relation type: VIEW ***
  20391. --- *** ***
  20392. --- *** A continuous region of sequence composed ***
  20393. --- *** of the overlapping of multiple sequence ***
  20394. --- *** _features, which ultimately provides evi ***
  20395. --- *** dence for another sequence_feature. ***
  20396. --- ************************************************
  20397. ---
  20398. CREATE VIEW overlapping_feature_set AS
  20399. SELECT
  20400. feature_id AS overlapping_feature_set_id,
  20401. feature.*
  20402. FROM
  20403. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20404. WHERE cvterm.name = 'overlapping_EST_set' OR cvterm.name = 'overlapping_feature_set';
  20405. --- ************************************************
  20406. --- *** relation: overlapping_est_set ***
  20407. --- *** relation type: VIEW ***
  20408. --- *** ***
  20409. --- *** A continous experimental result region e ***
  20410. --- *** xtending the length of multiple overlapp ***
  20411. --- *** ing EST's. ***
  20412. --- ************************************************
  20413. ---
  20414. CREATE VIEW overlapping_est_set AS
  20415. SELECT
  20416. feature_id AS overlapping_est_set_id,
  20417. feature.*
  20418. FROM
  20419. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20420. WHERE cvterm.name = 'overlapping_EST_set';
  20421. --- ************************************************
  20422. --- *** relation: ncrna_gene ***
  20423. --- *** relation type: VIEW ***
  20424. --- *** ***
  20425. --- ************************************************
  20426. ---
  20427. CREATE VIEW ncrna_gene AS
  20428. SELECT
  20429. feature_id AS ncrna_gene_id,
  20430. feature.*
  20431. FROM
  20432. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20433. 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';
  20434. --- ************************************************
  20435. --- *** relation: grna_gene ***
  20436. --- *** relation type: VIEW ***
  20437. --- *** ***
  20438. --- ************************************************
  20439. ---
  20440. CREATE VIEW grna_gene AS
  20441. SELECT
  20442. feature_id AS grna_gene_id,
  20443. feature.*
  20444. FROM
  20445. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20446. WHERE cvterm.name = 'gRNA_gene';
  20447. --- ************************************************
  20448. --- *** relation: mirna_gene ***
  20449. --- *** relation type: VIEW ***
  20450. --- *** ***
  20451. --- ************************************************
  20452. ---
  20453. CREATE VIEW mirna_gene AS
  20454. SELECT
  20455. feature_id AS mirna_gene_id,
  20456. feature.*
  20457. FROM
  20458. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20459. WHERE cvterm.name = 'miRNA_gene';
  20460. --- ************************************************
  20461. --- *** relation: scrna_gene ***
  20462. --- *** relation type: VIEW ***
  20463. --- *** ***
  20464. --- ************************************************
  20465. ---
  20466. CREATE VIEW scrna_gene AS
  20467. SELECT
  20468. feature_id AS scrna_gene_id,
  20469. feature.*
  20470. FROM
  20471. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20472. WHERE cvterm.name = 'scRNA_gene';
  20473. --- ************************************************
  20474. --- *** relation: snorna_gene ***
  20475. --- *** relation type: VIEW ***
  20476. --- *** ***
  20477. --- ************************************************
  20478. ---
  20479. CREATE VIEW snorna_gene AS
  20480. SELECT
  20481. feature_id AS snorna_gene_id,
  20482. feature.*
  20483. FROM
  20484. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20485. WHERE cvterm.name = 'snoRNA_gene';
  20486. --- ************************************************
  20487. --- *** relation: snrna_gene ***
  20488. --- *** relation type: VIEW ***
  20489. --- *** ***
  20490. --- ************************************************
  20491. ---
  20492. CREATE VIEW snrna_gene AS
  20493. SELECT
  20494. feature_id AS snrna_gene_id,
  20495. feature.*
  20496. FROM
  20497. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20498. WHERE cvterm.name = 'snRNA_gene';
  20499. --- ************************************************
  20500. --- *** relation: srp_rna_gene ***
  20501. --- *** relation type: VIEW ***
  20502. --- *** ***
  20503. --- ************************************************
  20504. ---
  20505. CREATE VIEW srp_rna_gene AS
  20506. SELECT
  20507. feature_id AS srp_rna_gene_id,
  20508. feature.*
  20509. FROM
  20510. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20511. WHERE cvterm.name = 'SRP_RNA_gene';
  20512. --- ************************************************
  20513. --- *** relation: strna_gene ***
  20514. --- *** relation type: VIEW ***
  20515. --- *** ***
  20516. --- ************************************************
  20517. ---
  20518. CREATE VIEW strna_gene AS
  20519. SELECT
  20520. feature_id AS strna_gene_id,
  20521. feature.*
  20522. FROM
  20523. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20524. WHERE cvterm.name = 'stRNA_gene';
  20525. --- ************************************************
  20526. --- *** relation: tmrna_gene ***
  20527. --- *** relation type: VIEW ***
  20528. --- *** ***
  20529. --- ************************************************
  20530. ---
  20531. CREATE VIEW tmrna_gene AS
  20532. SELECT
  20533. feature_id AS tmrna_gene_id,
  20534. feature.*
  20535. FROM
  20536. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20537. WHERE cvterm.name = 'tmRNA_gene';
  20538. --- ************************************************
  20539. --- *** relation: trna_gene ***
  20540. --- *** relation type: VIEW ***
  20541. --- *** ***
  20542. --- ************************************************
  20543. ---
  20544. CREATE VIEW trna_gene AS
  20545. SELECT
  20546. feature_id AS trna_gene_id,
  20547. feature.*
  20548. FROM
  20549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20550. WHERE cvterm.name = 'tRNA_gene';
  20551. --- ************************************************
  20552. --- *** relation: modified_adenosine ***
  20553. --- *** relation type: VIEW ***
  20554. --- *** ***
  20555. --- *** A modified adenine is an adenine base fe ***
  20556. --- *** ature that has been altered. ***
  20557. --- ************************************************
  20558. ---
  20559. CREATE VIEW modified_adenosine AS
  20560. SELECT
  20561. feature_id AS modified_adenosine_id,
  20562. feature.*
  20563. FROM
  20564. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20565. 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';
  20566. --- ************************************************
  20567. --- *** relation: modified_inosine ***
  20568. --- *** relation type: VIEW ***
  20569. --- *** ***
  20570. --- *** A modified inosine is an inosine base fe ***
  20571. --- *** ature that has been altered. ***
  20572. --- ************************************************
  20573. ---
  20574. CREATE VIEW modified_inosine AS
  20575. SELECT
  20576. feature_id AS modified_inosine_id,
  20577. feature.*
  20578. FROM
  20579. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20580. 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';
  20581. --- ************************************************
  20582. --- *** relation: modified_cytidine ***
  20583. --- *** relation type: VIEW ***
  20584. --- *** ***
  20585. --- *** A modified cytidine is a cytidine base f ***
  20586. --- *** eature which has been altered. ***
  20587. --- ************************************************
  20588. ---
  20589. CREATE VIEW modified_cytidine AS
  20590. SELECT
  20591. feature_id AS modified_cytidine_id,
  20592. feature.*
  20593. FROM
  20594. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20595. 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';
  20596. --- ************************************************
  20597. --- *** relation: modified_guanosine ***
  20598. --- *** relation type: VIEW ***
  20599. --- *** ***
  20600. --- ************************************************
  20601. ---
  20602. CREATE VIEW modified_guanosine AS
  20603. SELECT
  20604. feature_id AS modified_guanosine_id,
  20605. feature.*
  20606. FROM
  20607. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20608. 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';
  20609. --- ************************************************
  20610. --- *** relation: modified_uridine ***
  20611. --- *** relation type: VIEW ***
  20612. --- *** ***
  20613. --- ************************************************
  20614. ---
  20615. CREATE VIEW modified_uridine AS
  20616. SELECT
  20617. feature_id AS modified_uridine_id,
  20618. feature.*
  20619. FROM
  20620. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20621. 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';
  20622. --- ************************************************
  20623. --- *** relation: one_methylinosine ***
  20624. --- *** relation type: VIEW ***
  20625. --- *** ***
  20626. --- *** 1-methylinosine is a modified insosine. ***
  20627. --- ************************************************
  20628. ---
  20629. CREATE VIEW one_methylinosine AS
  20630. SELECT
  20631. feature_id AS one_methylinosine_id,
  20632. feature.*
  20633. FROM
  20634. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20635. WHERE cvterm.name = 'one_methylinosine';
  20636. --- ************************************************
  20637. --- *** relation: one_two_prime_o_dimethylinosine ***
  20638. --- *** relation type: VIEW ***
  20639. --- *** ***
  20640. --- *** 1,2'-O-dimethylinosine is a modified ino ***
  20641. --- *** sine. ***
  20642. --- ************************************************
  20643. ---
  20644. CREATE VIEW one_two_prime_o_dimethylinosine AS
  20645. SELECT
  20646. feature_id AS one_two_prime_o_dimethylinosine_id,
  20647. feature.*
  20648. FROM
  20649. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20650. WHERE cvterm.name = 'one_two_prime_O_dimethylinosine';
  20651. --- ************************************************
  20652. --- *** relation: two_prime_o_methylinosine ***
  20653. --- *** relation type: VIEW ***
  20654. --- *** ***
  20655. --- *** 2'-O-methylinosine is a modified inosine ***
  20656. --- *** . ***
  20657. --- ************************************************
  20658. ---
  20659. CREATE VIEW two_prime_o_methylinosine AS
  20660. SELECT
  20661. feature_id AS two_prime_o_methylinosine_id,
  20662. feature.*
  20663. FROM
  20664. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20665. WHERE cvterm.name = 'two_prime_O_methylinosine';
  20666. --- ************************************************
  20667. --- *** relation: three_methylcytidine ***
  20668. --- *** relation type: VIEW ***
  20669. --- *** ***
  20670. --- *** 3-methylcytidine is a modified cytidine. ***
  20671. --- ************************************************
  20672. ---
  20673. CREATE VIEW three_methylcytidine AS
  20674. SELECT
  20675. feature_id AS three_methylcytidine_id,
  20676. feature.*
  20677. FROM
  20678. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20679. WHERE cvterm.name = 'three_methylcytidine';
  20680. --- ************************************************
  20681. --- *** relation: five_methylcytidine ***
  20682. --- *** relation type: VIEW ***
  20683. --- *** ***
  20684. --- *** 5-methylcytidine is a modified cytidine. ***
  20685. --- ************************************************
  20686. ---
  20687. CREATE VIEW five_methylcytidine AS
  20688. SELECT
  20689. feature_id AS five_methylcytidine_id,
  20690. feature.*
  20691. FROM
  20692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20693. WHERE cvterm.name = 'five_methylcytidine';
  20694. --- ************************************************
  20695. --- *** relation: two_prime_o_methylcytidine ***
  20696. --- *** relation type: VIEW ***
  20697. --- *** ***
  20698. --- *** 2'-O-methylcytidine is a modified cytidi ***
  20699. --- *** ne. ***
  20700. --- ************************************************
  20701. ---
  20702. CREATE VIEW two_prime_o_methylcytidine AS
  20703. SELECT
  20704. feature_id AS two_prime_o_methylcytidine_id,
  20705. feature.*
  20706. FROM
  20707. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20708. WHERE cvterm.name = 'two_prime_O_methylcytidine';
  20709. --- ************************************************
  20710. --- *** relation: two_thiocytidine ***
  20711. --- *** relation type: VIEW ***
  20712. --- *** ***
  20713. --- *** 2-thiocytidine is a modified cytidine. ***
  20714. --- ************************************************
  20715. ---
  20716. CREATE VIEW two_thiocytidine AS
  20717. SELECT
  20718. feature_id AS two_thiocytidine_id,
  20719. feature.*
  20720. FROM
  20721. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20722. WHERE cvterm.name = 'two_thiocytidine';
  20723. --- ************************************************
  20724. --- *** relation: n4_acetylcytidine ***
  20725. --- *** relation type: VIEW ***
  20726. --- *** ***
  20727. --- *** N4-acetylcytidine is a modified cytidine ***
  20728. --- *** . ***
  20729. --- ************************************************
  20730. ---
  20731. CREATE VIEW n4_acetylcytidine AS
  20732. SELECT
  20733. feature_id AS n4_acetylcytidine_id,
  20734. feature.*
  20735. FROM
  20736. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20737. WHERE cvterm.name = 'N4_acetylcytidine';
  20738. --- ************************************************
  20739. --- *** relation: five_formylcytidine ***
  20740. --- *** relation type: VIEW ***
  20741. --- *** ***
  20742. --- *** 5-formylcytidine is a modified cytidine. ***
  20743. --- ************************************************
  20744. ---
  20745. CREATE VIEW five_formylcytidine AS
  20746. SELECT
  20747. feature_id AS five_formylcytidine_id,
  20748. feature.*
  20749. FROM
  20750. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20751. WHERE cvterm.name = 'five_formylcytidine';
  20752. --- ************************************************
  20753. --- *** relation: five_two_prime_o_dimethylcytidine ***
  20754. --- *** relation type: VIEW ***
  20755. --- *** ***
  20756. --- *** 5,2'-O-dimethylcytidine is a modified cy ***
  20757. --- *** tidine. ***
  20758. --- ************************************************
  20759. ---
  20760. CREATE VIEW five_two_prime_o_dimethylcytidine AS
  20761. SELECT
  20762. feature_id AS five_two_prime_o_dimethylcytidine_id,
  20763. feature.*
  20764. FROM
  20765. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20766. WHERE cvterm.name = 'five_two_prime_O_dimethylcytidine';
  20767. --- ************************************************
  20768. --- *** relation: n4_acetyl_2_prime_o_methylcytidine ***
  20769. --- *** relation type: VIEW ***
  20770. --- *** ***
  20771. --- *** N4-acetyl-2'-O-methylcytidine is a modif ***
  20772. --- *** ied cytidine. ***
  20773. --- ************************************************
  20774. ---
  20775. CREATE VIEW n4_acetyl_2_prime_o_methylcytidine AS
  20776. SELECT
  20777. feature_id AS n4_acetyl_2_prime_o_methylcytidine_id,
  20778. feature.*
  20779. FROM
  20780. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20781. WHERE cvterm.name = 'N4_acetyl_2_prime_O_methylcytidine';
  20782. --- ************************************************
  20783. --- *** relation: lysidine ***
  20784. --- *** relation type: VIEW ***
  20785. --- *** ***
  20786. --- *** Lysidine is a modified cytidine. ***
  20787. --- ************************************************
  20788. ---
  20789. CREATE VIEW lysidine AS
  20790. SELECT
  20791. feature_id AS lysidine_id,
  20792. feature.*
  20793. FROM
  20794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20795. WHERE cvterm.name = 'lysidine';
  20796. --- ************************************************
  20797. --- *** relation: n4_methylcytidine ***
  20798. --- *** relation type: VIEW ***
  20799. --- *** ***
  20800. --- *** N4-methylcytidine is a modified cytidine ***
  20801. --- *** . ***
  20802. --- ************************************************
  20803. ---
  20804. CREATE VIEW n4_methylcytidine AS
  20805. SELECT
  20806. feature_id AS n4_methylcytidine_id,
  20807. feature.*
  20808. FROM
  20809. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20810. WHERE cvterm.name = 'N4_methylcytidine';
  20811. --- ************************************************
  20812. --- *** relation: n4_2_prime_o_dimethylcytidine ***
  20813. --- *** relation type: VIEW ***
  20814. --- *** ***
  20815. --- *** N4,2'-O-dimethylcytidine is a modified c ***
  20816. --- *** ytidine. ***
  20817. --- ************************************************
  20818. ---
  20819. CREATE VIEW n4_2_prime_o_dimethylcytidine AS
  20820. SELECT
  20821. feature_id AS n4_2_prime_o_dimethylcytidine_id,
  20822. feature.*
  20823. FROM
  20824. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20825. WHERE cvterm.name = 'N4_2_prime_O_dimethylcytidine';
  20826. --- ************************************************
  20827. --- *** relation: five_hydroxymethylcytidine ***
  20828. --- *** relation type: VIEW ***
  20829. --- *** ***
  20830. --- *** 5-hydroxymethylcytidine is a modified cy ***
  20831. --- *** tidine. ***
  20832. --- ************************************************
  20833. ---
  20834. CREATE VIEW five_hydroxymethylcytidine AS
  20835. SELECT
  20836. feature_id AS five_hydroxymethylcytidine_id,
  20837. feature.*
  20838. FROM
  20839. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20840. WHERE cvterm.name = 'five_hydroxymethylcytidine';
  20841. --- ************************************************
  20842. --- *** relation: five_formyl_two_prime_o_methylcytidine ***
  20843. --- *** relation type: VIEW ***
  20844. --- *** ***
  20845. --- *** 5-formyl-2'-O-methylcytidine is a modifi ***
  20846. --- *** ed cytidine. ***
  20847. --- ************************************************
  20848. ---
  20849. CREATE VIEW five_formyl_two_prime_o_methylcytidine AS
  20850. SELECT
  20851. feature_id AS five_formyl_two_prime_o_methylcytidine_id,
  20852. feature.*
  20853. FROM
  20854. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20855. WHERE cvterm.name = 'five_formyl_two_prime_O_methylcytidine';
  20856. --- ************************************************
  20857. --- *** relation: n4_n4_2_prime_o_trimethylcytidine ***
  20858. --- *** relation type: VIEW ***
  20859. --- *** ***
  20860. --- *** N4_N4_2_prime_O_trimethylcytidine is a m ***
  20861. --- *** odified cytidine. ***
  20862. --- ************************************************
  20863. ---
  20864. CREATE VIEW n4_n4_2_prime_o_trimethylcytidine AS
  20865. SELECT
  20866. feature_id AS n4_n4_2_prime_o_trimethylcytidine_id,
  20867. feature.*
  20868. FROM
  20869. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20870. WHERE cvterm.name = 'N4_N4_2_prime_O_trimethylcytidine';
  20871. --- ************************************************
  20872. --- *** relation: one_methyladenosine ***
  20873. --- *** relation type: VIEW ***
  20874. --- *** ***
  20875. --- *** 1_methyladenosine is a modified adenosin ***
  20876. --- *** e. ***
  20877. --- ************************************************
  20878. ---
  20879. CREATE VIEW one_methyladenosine AS
  20880. SELECT
  20881. feature_id AS one_methyladenosine_id,
  20882. feature.*
  20883. FROM
  20884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20885. WHERE cvterm.name = 'one_methyladenosine';
  20886. --- ************************************************
  20887. --- *** relation: two_methyladenosine ***
  20888. --- *** relation type: VIEW ***
  20889. --- *** ***
  20890. --- *** 2_methyladenosine is a modified adenosin ***
  20891. --- *** e. ***
  20892. --- ************************************************
  20893. ---
  20894. CREATE VIEW two_methyladenosine AS
  20895. SELECT
  20896. feature_id AS two_methyladenosine_id,
  20897. feature.*
  20898. FROM
  20899. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20900. WHERE cvterm.name = 'two_methyladenosine';
  20901. --- ************************************************
  20902. --- *** relation: n6_methyladenosine ***
  20903. --- *** relation type: VIEW ***
  20904. --- *** ***
  20905. --- *** N6_methyladenosine is a modified adenosi ***
  20906. --- *** ne. ***
  20907. --- ************************************************
  20908. ---
  20909. CREATE VIEW n6_methyladenosine AS
  20910. SELECT
  20911. feature_id AS n6_methyladenosine_id,
  20912. feature.*
  20913. FROM
  20914. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20915. WHERE cvterm.name = 'N6_methyladenosine';
  20916. --- ************************************************
  20917. --- *** relation: two_prime_o_methyladenosine ***
  20918. --- *** relation type: VIEW ***
  20919. --- *** ***
  20920. --- *** 2prime_O_methyladenosine is a modified a ***
  20921. --- *** denosine. ***
  20922. --- ************************************************
  20923. ---
  20924. CREATE VIEW two_prime_o_methyladenosine AS
  20925. SELECT
  20926. feature_id AS two_prime_o_methyladenosine_id,
  20927. feature.*
  20928. FROM
  20929. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20930. WHERE cvterm.name = 'two_prime_O_methyladenosine';
  20931. --- ************************************************
  20932. --- *** relation: two_methylthio_n6_methyladenosine ***
  20933. --- *** relation type: VIEW ***
  20934. --- *** ***
  20935. --- *** 2_methylthio_N6_methyladenosine is a mod ***
  20936. --- *** ified adenosine. ***
  20937. --- ************************************************
  20938. ---
  20939. CREATE VIEW two_methylthio_n6_methyladenosine AS
  20940. SELECT
  20941. feature_id AS two_methylthio_n6_methyladenosine_id,
  20942. feature.*
  20943. FROM
  20944. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20945. WHERE cvterm.name = 'two_methylthio_N6_methyladenosine';
  20946. --- ************************************************
  20947. --- *** relation: n6_isopentenyladenosine ***
  20948. --- *** relation type: VIEW ***
  20949. --- *** ***
  20950. --- *** N6_isopentenyladenosine is a modified ad ***
  20951. --- *** enosine. ***
  20952. --- ************************************************
  20953. ---
  20954. CREATE VIEW n6_isopentenyladenosine AS
  20955. SELECT
  20956. feature_id AS n6_isopentenyladenosine_id,
  20957. feature.*
  20958. FROM
  20959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20960. WHERE cvterm.name = 'N6_isopentenyladenosine';
  20961. --- ************************************************
  20962. --- *** relation: two_methylthio_n6_isopentenyladenosine ***
  20963. --- *** relation type: VIEW ***
  20964. --- *** ***
  20965. --- *** 2_methylthio_N6_isopentenyladenosine is ***
  20966. --- *** a modified adenosine. ***
  20967. --- ************************************************
  20968. ---
  20969. CREATE VIEW two_methylthio_n6_isopentenyladenosine AS
  20970. SELECT
  20971. feature_id AS two_methylthio_n6_isopentenyladenosine_id,
  20972. feature.*
  20973. FROM
  20974. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20975. WHERE cvterm.name = 'two_methylthio_N6_isopentenyladenosine';
  20976. --- ************************************************
  20977. --- *** relation: n6_cis_hydroxyisopentenyl_adenosine ***
  20978. --- *** relation type: VIEW ***
  20979. --- *** ***
  20980. --- *** N6_cis_hydroxyisopentenyl_adenosine is a ***
  20981. --- *** modified adenosine. ***
  20982. --- ************************************************
  20983. ---
  20984. CREATE VIEW n6_cis_hydroxyisopentenyl_adenosine AS
  20985. SELECT
  20986. feature_id AS n6_cis_hydroxyisopentenyl_adenosine_id,
  20987. feature.*
  20988. FROM
  20989. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  20990. WHERE cvterm.name = 'N6_cis_hydroxyisopentenyl_adenosine';
  20991. --- ************************************************
  20992. --- *** relation: two_methylthio_n6_cis_hydroxyisopentenyl_adenosine ***
  20993. --- *** relation type: VIEW ***
  20994. --- *** ***
  20995. --- *** 2_methylthio_N6_cis_hydroxyisopentenyl_a ***
  20996. --- *** denosine is a modified adenosine. ***
  20997. --- ************************************************
  20998. ---
  20999. CREATE VIEW two_methylthio_n6_cis_hydroxyisopentenyl_adenosine AS
  21000. SELECT
  21001. feature_id AS two_methylthio_n6_cis_hydroxyisopentenyl_adenosine_id,
  21002. feature.*
  21003. FROM
  21004. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21005. WHERE cvterm.name = 'two_methylthio_N6_cis_hydroxyisopentenyl_adenosine';
  21006. --- ************************************************
  21007. --- *** relation: n6_glycinylcarbamoyladenosine ***
  21008. --- *** relation type: VIEW ***
  21009. --- *** ***
  21010. --- *** N6_glycinylcarbamoyladenosine is a modif ***
  21011. --- *** ied adenosine. ***
  21012. --- ************************************************
  21013. ---
  21014. CREATE VIEW n6_glycinylcarbamoyladenosine AS
  21015. SELECT
  21016. feature_id AS n6_glycinylcarbamoyladenosine_id,
  21017. feature.*
  21018. FROM
  21019. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21020. WHERE cvterm.name = 'N6_glycinylcarbamoyladenosine';
  21021. --- ************************************************
  21022. --- *** relation: n6_threonylcarbamoyladenosine ***
  21023. --- *** relation type: VIEW ***
  21024. --- *** ***
  21025. --- *** N6_threonylcarbamoyladenosine is a modif ***
  21026. --- *** ied adenosine. ***
  21027. --- ************************************************
  21028. ---
  21029. CREATE VIEW n6_threonylcarbamoyladenosine AS
  21030. SELECT
  21031. feature_id AS n6_threonylcarbamoyladenosine_id,
  21032. feature.*
  21033. FROM
  21034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21035. WHERE cvterm.name = 'N6_threonylcarbamoyladenosine';
  21036. --- ************************************************
  21037. --- *** relation: two_methylthio_n6_threonyl_carbamoyladenosine ***
  21038. --- *** relation type: VIEW ***
  21039. --- *** ***
  21040. --- *** 2_methylthio_N6_threonyl_carbamoyladenos ***
  21041. --- *** ine is a modified adenosine. ***
  21042. --- ************************************************
  21043. ---
  21044. CREATE VIEW two_methylthio_n6_threonyl_carbamoyladenosine AS
  21045. SELECT
  21046. feature_id AS two_methylthio_n6_threonyl_carbamoyladenosine_id,
  21047. feature.*
  21048. FROM
  21049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21050. WHERE cvterm.name = 'two_methylthio_N6_threonyl_carbamoyladenosine';
  21051. --- ************************************************
  21052. --- *** relation: n6_methyl_n6_threonylcarbamoyladenosine ***
  21053. --- *** relation type: VIEW ***
  21054. --- *** ***
  21055. --- *** N6_methyl_N6_threonylcarbamoyladenosine ***
  21056. --- *** is a modified adenosine. ***
  21057. --- ************************************************
  21058. ---
  21059. CREATE VIEW n6_methyl_n6_threonylcarbamoyladenosine AS
  21060. SELECT
  21061. feature_id AS n6_methyl_n6_threonylcarbamoyladenosine_id,
  21062. feature.*
  21063. FROM
  21064. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21065. WHERE cvterm.name = 'N6_methyl_N6_threonylcarbamoyladenosine';
  21066. --- ************************************************
  21067. --- *** relation: n6_hydroxynorvalylcarbamoyladenosine ***
  21068. --- *** relation type: VIEW ***
  21069. --- *** ***
  21070. --- *** N6_hydroxynorvalylcarbamoyladenosine is ***
  21071. --- *** a modified adenosine. ***
  21072. --- ************************************************
  21073. ---
  21074. CREATE VIEW n6_hydroxynorvalylcarbamoyladenosine AS
  21075. SELECT
  21076. feature_id AS n6_hydroxynorvalylcarbamoyladenosine_id,
  21077. feature.*
  21078. FROM
  21079. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21080. WHERE cvterm.name = 'N6_hydroxynorvalylcarbamoyladenosine';
  21081. --- ************************************************
  21082. --- *** relation: two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine ***
  21083. --- *** relation type: VIEW ***
  21084. --- *** ***
  21085. --- *** 2_methylthio_N6_hydroxynorvalyl_carbamoy ***
  21086. --- *** ladenosine is a modified adenosine. ***
  21087. --- ************************************************
  21088. ---
  21089. CREATE VIEW two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine AS
  21090. SELECT
  21091. feature_id AS two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine_id,
  21092. feature.*
  21093. FROM
  21094. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21095. WHERE cvterm.name = 'two_methylthio_N6_hydroxynorvalyl_carbamoyladenosine';
  21096. --- ************************************************
  21097. --- *** relation: two_prime_o_riboA_phosphate ***
  21098. --- *** relation type: VIEW ***
  21099. --- *** ***
  21100. --- *** 2prime_O_ribosyladenosine_phosphate is a ***
  21101. --- *** modified adenosine. ***
  21102. --- ************************************************
  21103. ---
  21104. CREATE VIEW two_prime_o_riboA_phosphate AS
  21105. SELECT
  21106. feature_id AS two_prime_o_riboA_phosphate_id,
  21107. feature.*
  21108. FROM
  21109. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21110. WHERE cvterm.name = 'two_prime_O_ribosyladenosine_phosphate';
  21111. --- ************************************************
  21112. --- *** relation: n6_n6_dimethyladenosine ***
  21113. --- *** relation type: VIEW ***
  21114. --- *** ***
  21115. --- *** N6_N6_dimethyladenosine is a modified ad ***
  21116. --- *** enosine. ***
  21117. --- ************************************************
  21118. ---
  21119. CREATE VIEW n6_n6_dimethyladenosine AS
  21120. SELECT
  21121. feature_id AS n6_n6_dimethyladenosine_id,
  21122. feature.*
  21123. FROM
  21124. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21125. WHERE cvterm.name = 'N6_N6_dimethyladenosine';
  21126. --- ************************************************
  21127. --- *** relation: n6_2_prime_o_dimethyladenosine ***
  21128. --- *** relation type: VIEW ***
  21129. --- *** ***
  21130. --- *** N6_2prime_O_dimethyladenosine is a modif ***
  21131. --- *** ied adenosine. ***
  21132. --- ************************************************
  21133. ---
  21134. CREATE VIEW n6_2_prime_o_dimethyladenosine AS
  21135. SELECT
  21136. feature_id AS n6_2_prime_o_dimethyladenosine_id,
  21137. feature.*
  21138. FROM
  21139. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21140. WHERE cvterm.name = 'N6_2_prime_O_dimethyladenosine';
  21141. --- ************************************************
  21142. --- *** relation: n6_n6_2_prime_o_trimethyladenosine ***
  21143. --- *** relation type: VIEW ***
  21144. --- *** ***
  21145. --- *** N6_N6_2prime_O_trimethyladenosine is a m ***
  21146. --- *** odified adenosine. ***
  21147. --- ************************************************
  21148. ---
  21149. CREATE VIEW n6_n6_2_prime_o_trimethyladenosine AS
  21150. SELECT
  21151. feature_id AS n6_n6_2_prime_o_trimethyladenosine_id,
  21152. feature.*
  21153. FROM
  21154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21155. WHERE cvterm.name = 'N6_N6_2_prime_O_trimethyladenosine';
  21156. --- ************************************************
  21157. --- *** relation: one_two_prime_o_dimethyladenosine ***
  21158. --- *** relation type: VIEW ***
  21159. --- *** ***
  21160. --- *** 1,2'-O-dimethyladenosine is a modified a ***
  21161. --- *** denosine. ***
  21162. --- ************************************************
  21163. ---
  21164. CREATE VIEW one_two_prime_o_dimethyladenosine AS
  21165. SELECT
  21166. feature_id AS one_two_prime_o_dimethyladenosine_id,
  21167. feature.*
  21168. FROM
  21169. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21170. WHERE cvterm.name = 'one_two_prime_O_dimethyladenosine';
  21171. --- ************************************************
  21172. --- *** relation: n6_acetyladenosine ***
  21173. --- *** relation type: VIEW ***
  21174. --- *** ***
  21175. --- *** N6_acetyladenosine is a modified adenosi ***
  21176. --- *** ne. ***
  21177. --- ************************************************
  21178. ---
  21179. CREATE VIEW n6_acetyladenosine AS
  21180. SELECT
  21181. feature_id AS n6_acetyladenosine_id,
  21182. feature.*
  21183. FROM
  21184. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21185. WHERE cvterm.name = 'N6_acetyladenosine';
  21186. --- ************************************************
  21187. --- *** relation: seven_deazaguanosine ***
  21188. --- *** relation type: VIEW ***
  21189. --- *** ***
  21190. --- *** 7-deazaguanosine is a moddified guanosin ***
  21191. --- *** e. ***
  21192. --- ************************************************
  21193. ---
  21194. CREATE VIEW seven_deazaguanosine AS
  21195. SELECT
  21196. feature_id AS seven_deazaguanosine_id,
  21197. feature.*
  21198. FROM
  21199. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21200. 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';
  21201. --- ************************************************
  21202. --- *** relation: queuosine ***
  21203. --- *** relation type: VIEW ***
  21204. --- *** ***
  21205. --- *** Queuosine is a modified 7-deazoguanosine ***
  21206. --- *** . ***
  21207. --- ************************************************
  21208. ---
  21209. CREATE VIEW queuosine AS
  21210. SELECT
  21211. feature_id AS queuosine_id,
  21212. feature.*
  21213. FROM
  21214. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21215. WHERE cvterm.name = 'queuosine';
  21216. --- ************************************************
  21217. --- *** relation: epoxyqueuosine ***
  21218. --- *** relation type: VIEW ***
  21219. --- *** ***
  21220. --- *** Epoxyqueuosine is a modified 7-deazoguan ***
  21221. --- *** osine. ***
  21222. --- ************************************************
  21223. ---
  21224. CREATE VIEW epoxyqueuosine AS
  21225. SELECT
  21226. feature_id AS epoxyqueuosine_id,
  21227. feature.*
  21228. FROM
  21229. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21230. WHERE cvterm.name = 'epoxyqueuosine';
  21231. --- ************************************************
  21232. --- *** relation: galactosyl_queuosine ***
  21233. --- *** relation type: VIEW ***
  21234. --- *** ***
  21235. --- *** Galactosyl_queuosine is a modified 7-dea ***
  21236. --- *** zoguanosine. ***
  21237. --- ************************************************
  21238. ---
  21239. CREATE VIEW galactosyl_queuosine AS
  21240. SELECT
  21241. feature_id AS galactosyl_queuosine_id,
  21242. feature.*
  21243. FROM
  21244. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21245. WHERE cvterm.name = 'galactosyl_queuosine';
  21246. --- ************************************************
  21247. --- *** relation: mannosyl_queuosine ***
  21248. --- *** relation type: VIEW ***
  21249. --- *** ***
  21250. --- *** Mannosyl_queuosine is a modified 7-deazo ***
  21251. --- *** guanosine. ***
  21252. --- ************************************************
  21253. ---
  21254. CREATE VIEW mannosyl_queuosine AS
  21255. SELECT
  21256. feature_id AS mannosyl_queuosine_id,
  21257. feature.*
  21258. FROM
  21259. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21260. WHERE cvterm.name = 'mannosyl_queuosine';
  21261. --- ************************************************
  21262. --- *** relation: seven_cyano_seven_deazaguanosine ***
  21263. --- *** relation type: VIEW ***
  21264. --- *** ***
  21265. --- *** 7_cyano_7_deazaguanosine is a modified 7 ***
  21266. --- *** -deazoguanosine. ***
  21267. --- ************************************************
  21268. ---
  21269. CREATE VIEW seven_cyano_seven_deazaguanosine AS
  21270. SELECT
  21271. feature_id AS seven_cyano_seven_deazaguanosine_id,
  21272. feature.*
  21273. FROM
  21274. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21275. WHERE cvterm.name = 'seven_cyano_seven_deazaguanosine';
  21276. --- ************************************************
  21277. --- *** relation: seven_aminomethyl_seven_deazaguanosine ***
  21278. --- *** relation type: VIEW ***
  21279. --- *** ***
  21280. --- *** 7_aminomethyl_7_deazaguanosine is a modi ***
  21281. --- *** fied 7-deazoguanosine. ***
  21282. --- ************************************************
  21283. ---
  21284. CREATE VIEW seven_aminomethyl_seven_deazaguanosine AS
  21285. SELECT
  21286. feature_id AS seven_aminomethyl_seven_deazaguanosine_id,
  21287. feature.*
  21288. FROM
  21289. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21290. WHERE cvterm.name = 'seven_aminomethyl_seven_deazaguanosine';
  21291. --- ************************************************
  21292. --- *** relation: archaeosine ***
  21293. --- *** relation type: VIEW ***
  21294. --- *** ***
  21295. --- *** Archaeosine is a modified 7-deazoguanosi ***
  21296. --- *** ne. ***
  21297. --- ************************************************
  21298. ---
  21299. CREATE VIEW archaeosine AS
  21300. SELECT
  21301. feature_id AS archaeosine_id,
  21302. feature.*
  21303. FROM
  21304. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21305. WHERE cvterm.name = 'archaeosine';
  21306. --- ************************************************
  21307. --- *** relation: one_methylguanosine ***
  21308. --- *** relation type: VIEW ***
  21309. --- *** ***
  21310. --- *** 1_methylguanosine is a modified guanosin ***
  21311. --- *** e base feature. ***
  21312. --- ************************************************
  21313. ---
  21314. CREATE VIEW one_methylguanosine AS
  21315. SELECT
  21316. feature_id AS one_methylguanosine_id,
  21317. feature.*
  21318. FROM
  21319. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21320. WHERE cvterm.name = 'one_methylguanosine';
  21321. --- ************************************************
  21322. --- *** relation: n2_methylguanosine ***
  21323. --- *** relation type: VIEW ***
  21324. --- *** ***
  21325. --- *** N2_methylguanosine is a modified guanosi ***
  21326. --- *** ne base feature. ***
  21327. --- ************************************************
  21328. ---
  21329. CREATE VIEW n2_methylguanosine AS
  21330. SELECT
  21331. feature_id AS n2_methylguanosine_id,
  21332. feature.*
  21333. FROM
  21334. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21335. WHERE cvterm.name = 'N2_methylguanosine';
  21336. --- ************************************************
  21337. --- *** relation: seven_methylguanosine ***
  21338. --- *** relation type: VIEW ***
  21339. --- *** ***
  21340. --- *** 7_methylguanosine is a modified guanosin ***
  21341. --- *** e base feature. ***
  21342. --- ************************************************
  21343. ---
  21344. CREATE VIEW seven_methylguanosine AS
  21345. SELECT
  21346. feature_id AS seven_methylguanosine_id,
  21347. feature.*
  21348. FROM
  21349. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21350. WHERE cvterm.name = 'seven_methylguanosine';
  21351. --- ************************************************
  21352. --- *** relation: two_prime_o_methylguanosine ***
  21353. --- *** relation type: VIEW ***
  21354. --- *** ***
  21355. --- *** 2prime_O_methylguanosine is a modified g ***
  21356. --- *** uanosine base feature. ***
  21357. --- ************************************************
  21358. ---
  21359. CREATE VIEW two_prime_o_methylguanosine AS
  21360. SELECT
  21361. feature_id AS two_prime_o_methylguanosine_id,
  21362. feature.*
  21363. FROM
  21364. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21365. WHERE cvterm.name = 'two_prime_O_methylguanosine';
  21366. --- ************************************************
  21367. --- *** relation: n2_n2_dimethylguanosine ***
  21368. --- *** relation type: VIEW ***
  21369. --- *** ***
  21370. --- *** N2_N2_dimethylguanosine is a modified gu ***
  21371. --- *** anosine base feature. ***
  21372. --- ************************************************
  21373. ---
  21374. CREATE VIEW n2_n2_dimethylguanosine AS
  21375. SELECT
  21376. feature_id AS n2_n2_dimethylguanosine_id,
  21377. feature.*
  21378. FROM
  21379. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21380. WHERE cvterm.name = 'N2_N2_dimethylguanosine';
  21381. --- ************************************************
  21382. --- *** relation: n2_2_prime_o_dimethylguanosine ***
  21383. --- *** relation type: VIEW ***
  21384. --- *** ***
  21385. --- *** N2_2prime_O_dimethylguanosine is a modif ***
  21386. --- *** ied guanosine base feature. ***
  21387. --- ************************************************
  21388. ---
  21389. CREATE VIEW n2_2_prime_o_dimethylguanosine AS
  21390. SELECT
  21391. feature_id AS n2_2_prime_o_dimethylguanosine_id,
  21392. feature.*
  21393. FROM
  21394. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21395. WHERE cvterm.name = 'N2_2_prime_O_dimethylguanosine';
  21396. --- ************************************************
  21397. --- *** relation: n2_n2_2_prime_o_trimethylguanosine ***
  21398. --- *** relation type: VIEW ***
  21399. --- *** ***
  21400. --- *** N2_N2_2prime_O_trimethylguanosine is a m ***
  21401. --- *** odified guanosine base feature. ***
  21402. --- ************************************************
  21403. ---
  21404. CREATE VIEW n2_n2_2_prime_o_trimethylguanosine AS
  21405. SELECT
  21406. feature_id AS n2_n2_2_prime_o_trimethylguanosine_id,
  21407. feature.*
  21408. FROM
  21409. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21410. WHERE cvterm.name = 'N2_N2_2_prime_O_trimethylguanosine';
  21411. --- ************************************************
  21412. --- *** relation: two_prime_o_ribosylguanosine_phosphate ***
  21413. --- *** relation type: VIEW ***
  21414. --- *** ***
  21415. --- *** 2prime_O_ribosylguanosine_phosphate is a ***
  21416. --- *** modified guanosine base feature. ***
  21417. --- ************************************************
  21418. ---
  21419. CREATE VIEW two_prime_o_ribosylguanosine_phosphate AS
  21420. SELECT
  21421. feature_id AS two_prime_o_ribosylguanosine_phosphate_id,
  21422. feature.*
  21423. FROM
  21424. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21425. WHERE cvterm.name = 'two_prime_O_ribosylguanosine_phosphate';
  21426. --- ************************************************
  21427. --- *** relation: wybutosine ***
  21428. --- *** relation type: VIEW ***
  21429. --- *** ***
  21430. --- *** Wybutosine is a modified guanosine base ***
  21431. --- *** feature. ***
  21432. --- ************************************************
  21433. ---
  21434. CREATE VIEW wybutosine AS
  21435. SELECT
  21436. feature_id AS wybutosine_id,
  21437. feature.*
  21438. FROM
  21439. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21440. WHERE cvterm.name = 'wybutosine';
  21441. --- ************************************************
  21442. --- *** relation: peroxywybutosine ***
  21443. --- *** relation type: VIEW ***
  21444. --- *** ***
  21445. --- *** Peroxywybutosine is a modified guanosine ***
  21446. --- *** base feature. ***
  21447. --- ************************************************
  21448. ---
  21449. CREATE VIEW peroxywybutosine AS
  21450. SELECT
  21451. feature_id AS peroxywybutosine_id,
  21452. feature.*
  21453. FROM
  21454. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21455. WHERE cvterm.name = 'peroxywybutosine';
  21456. --- ************************************************
  21457. --- *** relation: hydroxywybutosine ***
  21458. --- *** relation type: VIEW ***
  21459. --- *** ***
  21460. --- *** Hydroxywybutosine is a modified guanosin ***
  21461. --- *** e base feature. ***
  21462. --- ************************************************
  21463. ---
  21464. CREATE VIEW hydroxywybutosine AS
  21465. SELECT
  21466. feature_id AS hydroxywybutosine_id,
  21467. feature.*
  21468. FROM
  21469. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21470. WHERE cvterm.name = 'hydroxywybutosine';
  21471. --- ************************************************
  21472. --- *** relation: undermodified_hydroxywybutosine ***
  21473. --- *** relation type: VIEW ***
  21474. --- *** ***
  21475. --- *** Undermodified_hydroxywybutosine is a mod ***
  21476. --- *** ified guanosine base feature. ***
  21477. --- ************************************************
  21478. ---
  21479. CREATE VIEW undermodified_hydroxywybutosine AS
  21480. SELECT
  21481. feature_id AS undermodified_hydroxywybutosine_id,
  21482. feature.*
  21483. FROM
  21484. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21485. WHERE cvterm.name = 'undermodified_hydroxywybutosine';
  21486. --- ************************************************
  21487. --- *** relation: wyosine ***
  21488. --- *** relation type: VIEW ***
  21489. --- *** ***
  21490. --- *** Wyosine is a modified guanosine base fea ***
  21491. --- *** ture. ***
  21492. --- ************************************************
  21493. ---
  21494. CREATE VIEW wyosine AS
  21495. SELECT
  21496. feature_id AS wyosine_id,
  21497. feature.*
  21498. FROM
  21499. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21500. WHERE cvterm.name = 'wyosine';
  21501. --- ************************************************
  21502. --- *** relation: methylwyosine ***
  21503. --- *** relation type: VIEW ***
  21504. --- *** ***
  21505. --- *** Methylwyosine is a modified guanosine ba ***
  21506. --- *** se feature. ***
  21507. --- ************************************************
  21508. ---
  21509. CREATE VIEW methylwyosine AS
  21510. SELECT
  21511. feature_id AS methylwyosine_id,
  21512. feature.*
  21513. FROM
  21514. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21515. WHERE cvterm.name = 'methylwyosine';
  21516. --- ************************************************
  21517. --- *** relation: n2_7_dimethylguanosine ***
  21518. --- *** relation type: VIEW ***
  21519. --- *** ***
  21520. --- *** N2_7_dimethylguanosine is a modified gua ***
  21521. --- *** nosine base feature. ***
  21522. --- ************************************************
  21523. ---
  21524. CREATE VIEW n2_7_dimethylguanosine AS
  21525. SELECT
  21526. feature_id AS n2_7_dimethylguanosine_id,
  21527. feature.*
  21528. FROM
  21529. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21530. WHERE cvterm.name = 'N2_7_dimethylguanosine';
  21531. --- ************************************************
  21532. --- *** relation: n2_n2_7_trimethylguanosine ***
  21533. --- *** relation type: VIEW ***
  21534. --- *** ***
  21535. --- *** N2_N2_7_trimethylguanosine is a modified ***
  21536. --- *** guanosine base feature. ***
  21537. --- ************************************************
  21538. ---
  21539. CREATE VIEW n2_n2_7_trimethylguanosine AS
  21540. SELECT
  21541. feature_id AS n2_n2_7_trimethylguanosine_id,
  21542. feature.*
  21543. FROM
  21544. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21545. WHERE cvterm.name = 'N2_N2_7_trimethylguanosine';
  21546. --- ************************************************
  21547. --- *** relation: one_two_prime_o_dimethylguanosine ***
  21548. --- *** relation type: VIEW ***
  21549. --- *** ***
  21550. --- *** 1_2prime_O_dimethylguanosine is a modifi ***
  21551. --- *** ed guanosine base feature. ***
  21552. --- ************************************************
  21553. ---
  21554. CREATE VIEW one_two_prime_o_dimethylguanosine AS
  21555. SELECT
  21556. feature_id AS one_two_prime_o_dimethylguanosine_id,
  21557. feature.*
  21558. FROM
  21559. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21560. WHERE cvterm.name = 'one_two_prime_O_dimethylguanosine';
  21561. --- ************************************************
  21562. --- *** relation: four_demethylwyosine ***
  21563. --- *** relation type: VIEW ***
  21564. --- *** ***
  21565. --- *** 4_demethylwyosine is a modified guanosin ***
  21566. --- *** e base feature. ***
  21567. --- ************************************************
  21568. ---
  21569. CREATE VIEW four_demethylwyosine AS
  21570. SELECT
  21571. feature_id AS four_demethylwyosine_id,
  21572. feature.*
  21573. FROM
  21574. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21575. WHERE cvterm.name = 'four_demethylwyosine';
  21576. --- ************************************************
  21577. --- *** relation: isowyosine ***
  21578. --- *** relation type: VIEW ***
  21579. --- *** ***
  21580. --- *** Isowyosine is a modified guanosine base ***
  21581. --- *** feature. ***
  21582. --- ************************************************
  21583. ---
  21584. CREATE VIEW isowyosine AS
  21585. SELECT
  21586. feature_id AS isowyosine_id,
  21587. feature.*
  21588. FROM
  21589. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21590. WHERE cvterm.name = 'isowyosine';
  21591. --- ************************************************
  21592. --- *** relation: n2_7_2prirme_o_trimethylguanosine ***
  21593. --- *** relation type: VIEW ***
  21594. --- *** ***
  21595. --- *** N2_7_2prirme_O_trimethylguanosine is a m ***
  21596. --- *** odified guanosine base feature. ***
  21597. --- ************************************************
  21598. ---
  21599. CREATE VIEW n2_7_2prirme_o_trimethylguanosine AS
  21600. SELECT
  21601. feature_id AS n2_7_2prirme_o_trimethylguanosine_id,
  21602. feature.*
  21603. FROM
  21604. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21605. WHERE cvterm.name = 'N2_7_2prirme_O_trimethylguanosine';
  21606. --- ************************************************
  21607. --- *** relation: five_methyluridine ***
  21608. --- *** relation type: VIEW ***
  21609. --- *** ***
  21610. --- *** 5_methyluridine is a modified uridine ba ***
  21611. --- *** se feature. ***
  21612. --- ************************************************
  21613. ---
  21614. CREATE VIEW five_methyluridine AS
  21615. SELECT
  21616. feature_id AS five_methyluridine_id,
  21617. feature.*
  21618. FROM
  21619. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21620. WHERE cvterm.name = 'five_methyluridine';
  21621. --- ************************************************
  21622. --- *** relation: two_prime_o_methyluridine ***
  21623. --- *** relation type: VIEW ***
  21624. --- *** ***
  21625. --- *** 2prime_O_methyluridine is a modified uri ***
  21626. --- *** dine base feature. ***
  21627. --- ************************************************
  21628. ---
  21629. CREATE VIEW two_prime_o_methyluridine AS
  21630. SELECT
  21631. feature_id AS two_prime_o_methyluridine_id,
  21632. feature.*
  21633. FROM
  21634. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21635. WHERE cvterm.name = 'two_prime_O_methyluridine';
  21636. --- ************************************************
  21637. --- *** relation: five_two_prime_o_dimethyluridine ***
  21638. --- *** relation type: VIEW ***
  21639. --- *** ***
  21640. --- *** 5_2_prime_O_dimethyluridine is a modifie ***
  21641. --- *** d uridine base feature. ***
  21642. --- ************************************************
  21643. ---
  21644. CREATE VIEW five_two_prime_o_dimethyluridine AS
  21645. SELECT
  21646. feature_id AS five_two_prime_o_dimethyluridine_id,
  21647. feature.*
  21648. FROM
  21649. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21650. WHERE cvterm.name = 'five_two_prime_O_dimethyluridine';
  21651. --- ************************************************
  21652. --- *** relation: one_methylpseudouridine ***
  21653. --- *** relation type: VIEW ***
  21654. --- *** ***
  21655. --- *** 1_methylpseudouridine is a modified urid ***
  21656. --- *** ine base feature. ***
  21657. --- ************************************************
  21658. ---
  21659. CREATE VIEW one_methylpseudouridine AS
  21660. SELECT
  21661. feature_id AS one_methylpseudouridine_id,
  21662. feature.*
  21663. FROM
  21664. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21665. WHERE cvterm.name = 'one_methylpseudouridine';
  21666. --- ************************************************
  21667. --- *** relation: two_prime_o_methylpseudouridine ***
  21668. --- *** relation type: VIEW ***
  21669. --- *** ***
  21670. --- *** 2prime_O_methylpseudouridine is a modifi ***
  21671. --- *** ed uridine base feature. ***
  21672. --- ************************************************
  21673. ---
  21674. CREATE VIEW two_prime_o_methylpseudouridine AS
  21675. SELECT
  21676. feature_id AS two_prime_o_methylpseudouridine_id,
  21677. feature.*
  21678. FROM
  21679. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21680. WHERE cvterm.name = 'two_prime_O_methylpseudouridine';
  21681. --- ************************************************
  21682. --- *** relation: two_thiouridine ***
  21683. --- *** relation type: VIEW ***
  21684. --- *** ***
  21685. --- *** 2_thiouridine is a modified uridine base ***
  21686. --- *** feature. ***
  21687. --- ************************************************
  21688. ---
  21689. CREATE VIEW two_thiouridine AS
  21690. SELECT
  21691. feature_id AS two_thiouridine_id,
  21692. feature.*
  21693. FROM
  21694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21695. WHERE cvterm.name = 'two_thiouridine';
  21696. --- ************************************************
  21697. --- *** relation: four_thiouridine ***
  21698. --- *** relation type: VIEW ***
  21699. --- *** ***
  21700. --- *** 4_thiouridine is a modified uridine base ***
  21701. --- *** feature. ***
  21702. --- ************************************************
  21703. ---
  21704. CREATE VIEW four_thiouridine AS
  21705. SELECT
  21706. feature_id AS four_thiouridine_id,
  21707. feature.*
  21708. FROM
  21709. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21710. WHERE cvterm.name = 'four_thiouridine';
  21711. --- ************************************************
  21712. --- *** relation: five_methyl_2_thiouridine ***
  21713. --- *** relation type: VIEW ***
  21714. --- *** ***
  21715. --- *** 5_methyl_2_thiouridine is a modified uri ***
  21716. --- *** dine base feature. ***
  21717. --- ************************************************
  21718. ---
  21719. CREATE VIEW five_methyl_2_thiouridine AS
  21720. SELECT
  21721. feature_id AS five_methyl_2_thiouridine_id,
  21722. feature.*
  21723. FROM
  21724. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21725. WHERE cvterm.name = 'five_methyl_2_thiouridine';
  21726. --- ************************************************
  21727. --- *** relation: two_thio_two_prime_o_methyluridine ***
  21728. --- *** relation type: VIEW ***
  21729. --- *** ***
  21730. --- *** 2_thio_2prime_O_methyluridine is a modif ***
  21731. --- *** ied uridine base feature. ***
  21732. --- ************************************************
  21733. ---
  21734. CREATE VIEW two_thio_two_prime_o_methyluridine AS
  21735. SELECT
  21736. feature_id AS two_thio_two_prime_o_methyluridine_id,
  21737. feature.*
  21738. FROM
  21739. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21740. WHERE cvterm.name = 'two_thio_two_prime_O_methyluridine';
  21741. --- ************************************************
  21742. --- *** relation: three_three_amino_three_carboxypropyl_uridine ***
  21743. --- *** relation type: VIEW ***
  21744. --- *** ***
  21745. --- *** 3_3_amino_3_carboxypropyl_uridine is a m ***
  21746. --- *** odified uridine base feature. ***
  21747. --- ************************************************
  21748. ---
  21749. CREATE VIEW three_three_amino_three_carboxypropyl_uridine AS
  21750. SELECT
  21751. feature_id AS three_three_amino_three_carboxypropyl_uridine_id,
  21752. feature.*
  21753. FROM
  21754. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21755. WHERE cvterm.name = 'three_three_amino_three_carboxypropyl_uridine';
  21756. --- ************************************************
  21757. --- *** relation: five_hydroxyuridine ***
  21758. --- *** relation type: VIEW ***
  21759. --- *** ***
  21760. --- *** 5_hydroxyuridine is a modified uridine b ***
  21761. --- *** ase feature. ***
  21762. --- ************************************************
  21763. ---
  21764. CREATE VIEW five_hydroxyuridine AS
  21765. SELECT
  21766. feature_id AS five_hydroxyuridine_id,
  21767. feature.*
  21768. FROM
  21769. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21770. WHERE cvterm.name = 'five_hydroxyuridine';
  21771. --- ************************************************
  21772. --- *** relation: five_methoxyuridine ***
  21773. --- *** relation type: VIEW ***
  21774. --- *** ***
  21775. --- *** 5_methoxyuridine is a modified uridine b ***
  21776. --- *** ase feature. ***
  21777. --- ************************************************
  21778. ---
  21779. CREATE VIEW five_methoxyuridine AS
  21780. SELECT
  21781. feature_id AS five_methoxyuridine_id,
  21782. feature.*
  21783. FROM
  21784. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21785. WHERE cvterm.name = 'five_methoxyuridine';
  21786. --- ************************************************
  21787. --- *** relation: uridine_five_oxyacetic_acid ***
  21788. --- *** relation type: VIEW ***
  21789. --- *** ***
  21790. --- *** Uridine_5_oxyacetic_acid is a modified u ***
  21791. --- *** ridine base feature. ***
  21792. --- ************************************************
  21793. ---
  21794. CREATE VIEW uridine_five_oxyacetic_acid AS
  21795. SELECT
  21796. feature_id AS uridine_five_oxyacetic_acid_id,
  21797. feature.*
  21798. FROM
  21799. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21800. WHERE cvterm.name = 'uridine_five_oxyacetic_acid';
  21801. --- ************************************************
  21802. --- *** relation: uridine_five_oxyacetic_acid_methyl_ester ***
  21803. --- *** relation type: VIEW ***
  21804. --- *** ***
  21805. --- *** Uridine_5_oxyacetic_acid_methyl_ester is ***
  21806. --- *** a modified uridine base feature. ***
  21807. --- ************************************************
  21808. ---
  21809. CREATE VIEW uridine_five_oxyacetic_acid_methyl_ester AS
  21810. SELECT
  21811. feature_id AS uridine_five_oxyacetic_acid_methyl_ester_id,
  21812. feature.*
  21813. FROM
  21814. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21815. WHERE cvterm.name = 'uridine_five_oxyacetic_acid_methyl_ester';
  21816. --- ************************************************
  21817. --- *** relation: five_carboxyhydroxymethyl_uridine ***
  21818. --- *** relation type: VIEW ***
  21819. --- *** ***
  21820. --- *** 5_carboxyhydroxymethyl_uridine is a modi ***
  21821. --- *** fied uridine base feature. ***
  21822. --- ************************************************
  21823. ---
  21824. CREATE VIEW five_carboxyhydroxymethyl_uridine AS
  21825. SELECT
  21826. feature_id AS five_carboxyhydroxymethyl_uridine_id,
  21827. feature.*
  21828. FROM
  21829. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21830. WHERE cvterm.name = 'five_carboxyhydroxymethyl_uridine';
  21831. --- ************************************************
  21832. --- *** relation: five_carboxyhydroxymethyl_uridine_methyl_ester ***
  21833. --- *** relation type: VIEW ***
  21834. --- *** ***
  21835. --- *** 5_carboxyhydroxymethyl_uridine_methyl_es ***
  21836. --- *** ter is a modified uridine base feature. ***
  21837. --- ************************************************
  21838. ---
  21839. CREATE VIEW five_carboxyhydroxymethyl_uridine_methyl_ester AS
  21840. SELECT
  21841. feature_id AS five_carboxyhydroxymethyl_uridine_methyl_ester_id,
  21842. feature.*
  21843. FROM
  21844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21845. WHERE cvterm.name = 'five_carboxyhydroxymethyl_uridine_methyl_ester';
  21846. --- ************************************************
  21847. --- *** relation: five_methoxycarbonylmethyluridine ***
  21848. --- *** relation type: VIEW ***
  21849. --- *** ***
  21850. --- *** Five_methoxycarbonylmethyluridine is a m ***
  21851. --- *** odified uridine base feature. ***
  21852. --- ************************************************
  21853. ---
  21854. CREATE VIEW five_methoxycarbonylmethyluridine AS
  21855. SELECT
  21856. feature_id AS five_methoxycarbonylmethyluridine_id,
  21857. feature.*
  21858. FROM
  21859. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21860. WHERE cvterm.name = 'five_methoxycarbonylmethyluridine';
  21861. --- ************************************************
  21862. --- *** relation: five_methoxycarbonylmethyl_two_prime_o_methyluridine ***
  21863. --- *** relation type: VIEW ***
  21864. --- *** ***
  21865. --- *** Five_methoxycarbonylmethyl_2_prime_O_met ***
  21866. --- *** hyluridine is a modified uridine base fe ***
  21867. --- *** ature. ***
  21868. --- ************************************************
  21869. ---
  21870. CREATE VIEW five_methoxycarbonylmethyl_two_prime_o_methyluridine AS
  21871. SELECT
  21872. feature_id AS five_methoxycarbonylmethyl_two_prime_o_methyluridine_id,
  21873. feature.*
  21874. FROM
  21875. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21876. WHERE cvterm.name = 'five_methoxycarbonylmethyl_two_prime_O_methyluridine';
  21877. --- ************************************************
  21878. --- *** relation: five_mcm_2_thiouridine ***
  21879. --- *** relation type: VIEW ***
  21880. --- *** ***
  21881. --- *** 5_methoxycarbonylmethyl_2_thiouridine is ***
  21882. --- *** a modified uridine base feature. ***
  21883. --- ************************************************
  21884. ---
  21885. CREATE VIEW five_mcm_2_thiouridine AS
  21886. SELECT
  21887. feature_id AS five_mcm_2_thiouridine_id,
  21888. feature.*
  21889. FROM
  21890. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21891. WHERE cvterm.name = 'five_methoxycarbonylmethyl_two_thiouridine';
  21892. --- ************************************************
  21893. --- *** relation: five_aminomethyl_two_thiouridine ***
  21894. --- *** relation type: VIEW ***
  21895. --- *** ***
  21896. --- *** 5_aminomethyl_2_thiouridine is a modifie ***
  21897. --- *** d uridine base feature. ***
  21898. --- ************************************************
  21899. ---
  21900. CREATE VIEW five_aminomethyl_two_thiouridine AS
  21901. SELECT
  21902. feature_id AS five_aminomethyl_two_thiouridine_id,
  21903. feature.*
  21904. FROM
  21905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21906. WHERE cvterm.name = 'five_aminomethyl_two_thiouridine';
  21907. --- ************************************************
  21908. --- *** relation: five_methylaminomethyluridine ***
  21909. --- *** relation type: VIEW ***
  21910. --- *** ***
  21911. --- *** 5_methylaminomethyluridine is a modified ***
  21912. --- *** uridine base feature. ***
  21913. --- ************************************************
  21914. ---
  21915. CREATE VIEW five_methylaminomethyluridine AS
  21916. SELECT
  21917. feature_id AS five_methylaminomethyluridine_id,
  21918. feature.*
  21919. FROM
  21920. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21921. WHERE cvterm.name = 'five_methylaminomethyluridine';
  21922. --- ************************************************
  21923. --- *** relation: five_mam_2_thiouridine ***
  21924. --- *** relation type: VIEW ***
  21925. --- *** ***
  21926. --- *** 5_methylaminomethyl_2_thiouridine is a m ***
  21927. --- *** odified uridine base feature. ***
  21928. --- ************************************************
  21929. ---
  21930. CREATE VIEW five_mam_2_thiouridine AS
  21931. SELECT
  21932. feature_id AS five_mam_2_thiouridine_id,
  21933. feature.*
  21934. FROM
  21935. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21936. WHERE cvterm.name = 'five_methylaminomethyl_two_thiouridine';
  21937. --- ************************************************
  21938. --- *** relation: five_methylaminomethyl_two_selenouridine ***
  21939. --- *** relation type: VIEW ***
  21940. --- *** ***
  21941. --- *** 5_methylaminomethyl_2_selenouridine is a ***
  21942. --- *** modified uridine base feature. ***
  21943. --- ************************************************
  21944. ---
  21945. CREATE VIEW five_methylaminomethyl_two_selenouridine AS
  21946. SELECT
  21947. feature_id AS five_methylaminomethyl_two_selenouridine_id,
  21948. feature.*
  21949. FROM
  21950. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21951. WHERE cvterm.name = 'five_methylaminomethyl_two_selenouridine';
  21952. --- ************************************************
  21953. --- *** relation: five_carbamoylmethyluridine ***
  21954. --- *** relation type: VIEW ***
  21955. --- *** ***
  21956. --- *** 5_carbamoylmethyluridine is a modified u ***
  21957. --- *** ridine base feature. ***
  21958. --- ************************************************
  21959. ---
  21960. CREATE VIEW five_carbamoylmethyluridine AS
  21961. SELECT
  21962. feature_id AS five_carbamoylmethyluridine_id,
  21963. feature.*
  21964. FROM
  21965. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21966. WHERE cvterm.name = 'five_carbamoylmethyluridine';
  21967. --- ************************************************
  21968. --- *** relation: five_cm_2_prime_o_methU ***
  21969. --- *** relation type: VIEW ***
  21970. --- *** ***
  21971. --- *** 5_carbamoylmethyl_2_prime_O_methyluridin ***
  21972. --- *** e is a modified uridine base feature. ***
  21973. --- ************************************************
  21974. ---
  21975. CREATE VIEW five_cm_2_prime_o_methU AS
  21976. SELECT
  21977. feature_id AS five_cm_2_prime_o_methU_id,
  21978. feature.*
  21979. FROM
  21980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21981. WHERE cvterm.name = 'five_carbamoylmethyl_two_prime_O_methyluridine';
  21982. --- ************************************************
  21983. --- *** relation: five_carboxymethylaminomethyluridine ***
  21984. --- *** relation type: VIEW ***
  21985. --- *** ***
  21986. --- *** 5_carboxymethylaminomethyluridine is a m ***
  21987. --- *** odified uridine base feature. ***
  21988. --- ************************************************
  21989. ---
  21990. CREATE VIEW five_carboxymethylaminomethyluridine AS
  21991. SELECT
  21992. feature_id AS five_carboxymethylaminomethyluridine_id,
  21993. feature.*
  21994. FROM
  21995. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  21996. WHERE cvterm.name = 'five_carboxymethylaminomethyluridine';
  21997. --- ************************************************
  21998. --- *** relation: five_carboxymethylaminomethyl_two_prime_o_methyluridine ***
  21999. --- *** relation type: VIEW ***
  22000. --- *** ***
  22001. --- *** 5_carboxymethylaminomethyl_2_prime_O_met ***
  22002. --- *** hyluridine is a modified uridine base fe ***
  22003. --- *** ature. ***
  22004. --- ************************************************
  22005. ---
  22006. CREATE VIEW five_carboxymethylaminomethyl_two_prime_o_methyluridine AS
  22007. SELECT
  22008. feature_id AS five_carboxymethylaminomethyl_two_prime_o_methyluridine_id,
  22009. feature.*
  22010. FROM
  22011. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22012. WHERE cvterm.name = 'five_carboxymethylaminomethyl_two_prime_O_methyluridine';
  22013. --- ************************************************
  22014. --- *** relation: five_carboxymethylaminomethyl_two_thiouridine ***
  22015. --- *** relation type: VIEW ***
  22016. --- *** ***
  22017. --- *** 5_carboxymethylaminomethyl_2_thiouridine ***
  22018. --- *** is a modified uridine base feature. ***
  22019. --- ************************************************
  22020. ---
  22021. CREATE VIEW five_carboxymethylaminomethyl_two_thiouridine AS
  22022. SELECT
  22023. feature_id AS five_carboxymethylaminomethyl_two_thiouridine_id,
  22024. feature.*
  22025. FROM
  22026. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22027. WHERE cvterm.name = 'five_carboxymethylaminomethyl_two_thiouridine';
  22028. --- ************************************************
  22029. --- *** relation: three_methyluridine ***
  22030. --- *** relation type: VIEW ***
  22031. --- *** ***
  22032. --- *** 3_methyluridine is a modified uridine ba ***
  22033. --- *** se feature. ***
  22034. --- ************************************************
  22035. ---
  22036. CREATE VIEW three_methyluridine AS
  22037. SELECT
  22038. feature_id AS three_methyluridine_id,
  22039. feature.*
  22040. FROM
  22041. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22042. WHERE cvterm.name = 'three_methyluridine';
  22043. --- ************************************************
  22044. --- *** relation: one_methyl_3_3_amino_three_carboxypropyl_pseudouridine ***
  22045. --- *** relation type: VIEW ***
  22046. --- *** ***
  22047. --- *** 1_methyl_3_3_amino_3_carboxypropyl_pseud ***
  22048. --- *** ouridine is a modified uridine base feat ***
  22049. --- *** ure. ***
  22050. --- ************************************************
  22051. ---
  22052. CREATE VIEW one_methyl_3_3_amino_three_carboxypropyl_pseudouridine AS
  22053. SELECT
  22054. feature_id AS one_methyl_3_3_amino_three_carboxypropyl_pseudouridine_id,
  22055. feature.*
  22056. FROM
  22057. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22058. WHERE cvterm.name = 'one_methyl_three_three_amino_three_carboxypropyl_pseudouridine';
  22059. --- ************************************************
  22060. --- *** relation: five_carboxymethyluridine ***
  22061. --- *** relation type: VIEW ***
  22062. --- *** ***
  22063. --- *** 5_carboxymethyluridine is a modified uri ***
  22064. --- *** dine base feature. ***
  22065. --- ************************************************
  22066. ---
  22067. CREATE VIEW five_carboxymethyluridine AS
  22068. SELECT
  22069. feature_id AS five_carboxymethyluridine_id,
  22070. feature.*
  22071. FROM
  22072. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22073. WHERE cvterm.name = 'five_carboxymethyluridine';
  22074. --- ************************************************
  22075. --- *** relation: three_two_prime_o_dimethyluridine ***
  22076. --- *** relation type: VIEW ***
  22077. --- *** ***
  22078. --- *** 3_2prime_O_dimethyluridine is a modified ***
  22079. --- *** uridine base feature. ***
  22080. --- ************************************************
  22081. ---
  22082. CREATE VIEW three_two_prime_o_dimethyluridine AS
  22083. SELECT
  22084. feature_id AS three_two_prime_o_dimethyluridine_id,
  22085. feature.*
  22086. FROM
  22087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22088. WHERE cvterm.name = 'three_two_prime_O_dimethyluridine';
  22089. --- ************************************************
  22090. --- *** relation: five_methyldihydrouridine ***
  22091. --- *** relation type: VIEW ***
  22092. --- *** ***
  22093. --- *** 5_methyldihydrouridine is a modified uri ***
  22094. --- *** dine base feature. ***
  22095. --- ************************************************
  22096. ---
  22097. CREATE VIEW five_methyldihydrouridine AS
  22098. SELECT
  22099. feature_id AS five_methyldihydrouridine_id,
  22100. feature.*
  22101. FROM
  22102. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22103. WHERE cvterm.name = 'five_methyldihydrouridine';
  22104. --- ************************************************
  22105. --- *** relation: three_methylpseudouridine ***
  22106. --- *** relation type: VIEW ***
  22107. --- *** ***
  22108. --- *** 3_methylpseudouridine is a modified urid ***
  22109. --- *** ine base feature. ***
  22110. --- ************************************************
  22111. ---
  22112. CREATE VIEW three_methylpseudouridine AS
  22113. SELECT
  22114. feature_id AS three_methylpseudouridine_id,
  22115. feature.*
  22116. FROM
  22117. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22118. WHERE cvterm.name = 'three_methylpseudouridine';
  22119. --- ************************************************
  22120. --- *** relation: five_taurinomethyluridine ***
  22121. --- *** relation type: VIEW ***
  22122. --- *** ***
  22123. --- *** 5_taurinomethyluridine is a modified uri ***
  22124. --- *** dine base feature. ***
  22125. --- ************************************************
  22126. ---
  22127. CREATE VIEW five_taurinomethyluridine AS
  22128. SELECT
  22129. feature_id AS five_taurinomethyluridine_id,
  22130. feature.*
  22131. FROM
  22132. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22133. WHERE cvterm.name = 'five_taurinomethyluridine';
  22134. --- ************************************************
  22135. --- *** relation: five_taurinomethyl_two_thiouridine ***
  22136. --- *** relation type: VIEW ***
  22137. --- *** ***
  22138. --- *** 5_taurinomethyl_2_thiouridineis a modifi ***
  22139. --- *** ed uridine base feature. ***
  22140. --- ************************************************
  22141. ---
  22142. CREATE VIEW five_taurinomethyl_two_thiouridine AS
  22143. SELECT
  22144. feature_id AS five_taurinomethyl_two_thiouridine_id,
  22145. feature.*
  22146. FROM
  22147. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22148. WHERE cvterm.name = 'five_taurinomethyl_two_thiouridine';
  22149. --- ************************************************
  22150. --- *** relation: five_isopentenylaminomethyl_uridine ***
  22151. --- *** relation type: VIEW ***
  22152. --- *** ***
  22153. --- *** 5_isopentenylaminomethyl_uridine is a mo ***
  22154. --- *** dified uridine base feature. ***
  22155. --- ************************************************
  22156. ---
  22157. CREATE VIEW five_isopentenylaminomethyl_uridine AS
  22158. SELECT
  22159. feature_id AS five_isopentenylaminomethyl_uridine_id,
  22160. feature.*
  22161. FROM
  22162. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22163. WHERE cvterm.name = 'five_isopentenylaminomethyl_uridine';
  22164. --- ************************************************
  22165. --- *** relation: five_isopentenylaminomethyl_two_thiouridine ***
  22166. --- *** relation type: VIEW ***
  22167. --- *** ***
  22168. --- *** 5_isopentenylaminomethyl_2_thiouridine i ***
  22169. --- *** s a modified uridine base feature. ***
  22170. --- ************************************************
  22171. ---
  22172. CREATE VIEW five_isopentenylaminomethyl_two_thiouridine AS
  22173. SELECT
  22174. feature_id AS five_isopentenylaminomethyl_two_thiouridine_id,
  22175. feature.*
  22176. FROM
  22177. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22178. WHERE cvterm.name = 'five_isopentenylaminomethyl_two_thiouridine';
  22179. --- ************************************************
  22180. --- *** relation: five_isopentenylaminomethyl_two_prime_o_methyluridine ***
  22181. --- *** relation type: VIEW ***
  22182. --- *** ***
  22183. --- *** 5_isopentenylaminomethyl_2prime_O_methyl ***
  22184. --- *** uridine is a modified uridine base featu ***
  22185. --- *** re. ***
  22186. --- ************************************************
  22187. ---
  22188. CREATE VIEW five_isopentenylaminomethyl_two_prime_o_methyluridine AS
  22189. SELECT
  22190. feature_id AS five_isopentenylaminomethyl_two_prime_o_methyluridine_id,
  22191. feature.*
  22192. FROM
  22193. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22194. WHERE cvterm.name = 'five_isopentenylaminomethyl_two_prime_O_methyluridine';
  22195. --- ************************************************
  22196. --- *** relation: histone_binding_site ***
  22197. --- *** relation type: VIEW ***
  22198. --- *** ***
  22199. --- *** A binding site that, in the nucleotide m ***
  22200. --- *** olecule, interacts selectively and non-c ***
  22201. --- *** ovalently with polypeptide residues of a ***
  22202. --- *** histone. ***
  22203. --- ************************************************
  22204. ---
  22205. CREATE VIEW histone_binding_site AS
  22206. SELECT
  22207. feature_id AS histone_binding_site_id,
  22208. feature.*
  22209. FROM
  22210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22211. WHERE cvterm.name = 'histone_binding_site';
  22212. --- ************************************************
  22213. --- *** relation: cds_fragment ***
  22214. --- *** relation type: VIEW ***
  22215. --- *** ***
  22216. --- ************************************************
  22217. ---
  22218. CREATE VIEW cds_fragment AS
  22219. SELECT
  22220. feature_id AS cds_fragment_id,
  22221. feature.*
  22222. FROM
  22223. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22224. WHERE cvterm.name = 'CDS_fragment';
  22225. --- ************************************************
  22226. --- *** relation: modified_amino_acid_feature ***
  22227. --- *** relation type: VIEW ***
  22228. --- *** ***
  22229. --- *** A post translationally modified amino ac ***
  22230. --- *** id feature. ***
  22231. --- ************************************************
  22232. ---
  22233. CREATE VIEW modified_amino_acid_feature AS
  22234. SELECT
  22235. feature_id AS modified_amino_acid_feature_id,
  22236. feature.*
  22237. FROM
  22238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22239. 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';
  22240. --- ************************************************
  22241. --- *** relation: modified_glycine ***
  22242. --- *** relation type: VIEW ***
  22243. --- *** ***
  22244. --- *** A post translationally modified glycine ***
  22245. --- *** amino acid feature. ***
  22246. --- ************************************************
  22247. ---
  22248. CREATE VIEW modified_glycine AS
  22249. SELECT
  22250. feature_id AS modified_glycine_id,
  22251. feature.*
  22252. FROM
  22253. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22254. WHERE cvterm.name = 'modified_glycine';
  22255. --- ************************************************
  22256. --- *** relation: modified_l_alanine ***
  22257. --- *** relation type: VIEW ***
  22258. --- *** ***
  22259. --- *** A post translationally modified alanine ***
  22260. --- *** amino acid feature. ***
  22261. --- ************************************************
  22262. ---
  22263. CREATE VIEW modified_l_alanine AS
  22264. SELECT
  22265. feature_id AS modified_l_alanine_id,
  22266. feature.*
  22267. FROM
  22268. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22269. WHERE cvterm.name = 'modified_L_alanine';
  22270. --- ************************************************
  22271. --- *** relation: modified_l_asparagine ***
  22272. --- *** relation type: VIEW ***
  22273. --- *** ***
  22274. --- *** A post translationally modified asparagi ***
  22275. --- *** ne amino acid feature. ***
  22276. --- ************************************************
  22277. ---
  22278. CREATE VIEW modified_l_asparagine AS
  22279. SELECT
  22280. feature_id AS modified_l_asparagine_id,
  22281. feature.*
  22282. FROM
  22283. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22284. WHERE cvterm.name = 'modified_L_asparagine';
  22285. --- ************************************************
  22286. --- *** relation: modified_l_aspartic_acid ***
  22287. --- *** relation type: VIEW ***
  22288. --- *** ***
  22289. --- *** A post translationally modified aspartic ***
  22290. --- *** acid amino acid feature. ***
  22291. --- ************************************************
  22292. ---
  22293. CREATE VIEW modified_l_aspartic_acid AS
  22294. SELECT
  22295. feature_id AS modified_l_aspartic_acid_id,
  22296. feature.*
  22297. FROM
  22298. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22299. WHERE cvterm.name = 'modified_L_aspartic_acid';
  22300. --- ************************************************
  22301. --- *** relation: modified_l_cysteine ***
  22302. --- *** relation type: VIEW ***
  22303. --- *** ***
  22304. --- *** A post translationally modified cysteine ***
  22305. --- *** amino acid feature. ***
  22306. --- ************************************************
  22307. ---
  22308. CREATE VIEW modified_l_cysteine AS
  22309. SELECT
  22310. feature_id AS modified_l_cysteine_id,
  22311. feature.*
  22312. FROM
  22313. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22314. WHERE cvterm.name = 'modified_L_cysteine';
  22315. --- ************************************************
  22316. --- *** relation: modified_l_glutamic_acid ***
  22317. --- *** relation type: VIEW ***
  22318. --- *** ***
  22319. --- ************************************************
  22320. ---
  22321. CREATE VIEW modified_l_glutamic_acid AS
  22322. SELECT
  22323. feature_id AS modified_l_glutamic_acid_id,
  22324. feature.*
  22325. FROM
  22326. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22327. WHERE cvterm.name = 'modified_L_glutamic_acid';
  22328. --- ************************************************
  22329. --- *** relation: modified_l_threonine ***
  22330. --- *** relation type: VIEW ***
  22331. --- *** ***
  22332. --- *** A post translationally modified threonin ***
  22333. --- *** e amino acid feature. ***
  22334. --- ************************************************
  22335. ---
  22336. CREATE VIEW modified_l_threonine AS
  22337. SELECT
  22338. feature_id AS modified_l_threonine_id,
  22339. feature.*
  22340. FROM
  22341. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22342. WHERE cvterm.name = 'modified_L_threonine';
  22343. --- ************************************************
  22344. --- *** relation: modified_l_tryptophan ***
  22345. --- *** relation type: VIEW ***
  22346. --- *** ***
  22347. --- *** A post translationally modified tryptoph ***
  22348. --- *** an amino acid feature. ***
  22349. --- ************************************************
  22350. ---
  22351. CREATE VIEW modified_l_tryptophan AS
  22352. SELECT
  22353. feature_id AS modified_l_tryptophan_id,
  22354. feature.*
  22355. FROM
  22356. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22357. WHERE cvterm.name = 'modified_L_tryptophan';
  22358. --- ************************************************
  22359. --- *** relation: modified_l_glutamine ***
  22360. --- *** relation type: VIEW ***
  22361. --- *** ***
  22362. --- *** A post translationally modified glutamin ***
  22363. --- *** e amino acid feature. ***
  22364. --- ************************************************
  22365. ---
  22366. CREATE VIEW modified_l_glutamine AS
  22367. SELECT
  22368. feature_id AS modified_l_glutamine_id,
  22369. feature.*
  22370. FROM
  22371. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22372. WHERE cvterm.name = 'modified_L_glutamine';
  22373. --- ************************************************
  22374. --- *** relation: modified_l_methionine ***
  22375. --- *** relation type: VIEW ***
  22376. --- *** ***
  22377. --- *** A post translationally modified methioni ***
  22378. --- *** ne amino acid feature. ***
  22379. --- ************************************************
  22380. ---
  22381. CREATE VIEW modified_l_methionine AS
  22382. SELECT
  22383. feature_id AS modified_l_methionine_id,
  22384. feature.*
  22385. FROM
  22386. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22387. WHERE cvterm.name = 'modified_L_methionine';
  22388. --- ************************************************
  22389. --- *** relation: modified_l_isoleucine ***
  22390. --- *** relation type: VIEW ***
  22391. --- *** ***
  22392. --- *** A post translationally modified isoleuci ***
  22393. --- *** ne amino acid feature. ***
  22394. --- ************************************************
  22395. ---
  22396. CREATE VIEW modified_l_isoleucine AS
  22397. SELECT
  22398. feature_id AS modified_l_isoleucine_id,
  22399. feature.*
  22400. FROM
  22401. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22402. WHERE cvterm.name = 'modified_L_isoleucine';
  22403. --- ************************************************
  22404. --- *** relation: modified_l_phenylalanine ***
  22405. --- *** relation type: VIEW ***
  22406. --- *** ***
  22407. --- *** A post translationally modified phenylal ***
  22408. --- *** anine amino acid feature. ***
  22409. --- ************************************************
  22410. ---
  22411. CREATE VIEW modified_l_phenylalanine AS
  22412. SELECT
  22413. feature_id AS modified_l_phenylalanine_id,
  22414. feature.*
  22415. FROM
  22416. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22417. WHERE cvterm.name = 'modified_L_phenylalanine';
  22418. --- ************************************************
  22419. --- *** relation: modified_l_histidine ***
  22420. --- *** relation type: VIEW ***
  22421. --- *** ***
  22422. --- *** A post translationally modified histidie ***
  22423. --- *** amino acid feature. ***
  22424. --- ************************************************
  22425. ---
  22426. CREATE VIEW modified_l_histidine AS
  22427. SELECT
  22428. feature_id AS modified_l_histidine_id,
  22429. feature.*
  22430. FROM
  22431. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22432. WHERE cvterm.name = 'modified_L_histidine';
  22433. --- ************************************************
  22434. --- *** relation: modified_l_serine ***
  22435. --- *** relation type: VIEW ***
  22436. --- *** ***
  22437. --- *** A post translationally modified serine a ***
  22438. --- *** mino acid feature. ***
  22439. --- ************************************************
  22440. ---
  22441. CREATE VIEW modified_l_serine AS
  22442. SELECT
  22443. feature_id AS modified_l_serine_id,
  22444. feature.*
  22445. FROM
  22446. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22447. WHERE cvterm.name = 'modified_L_serine';
  22448. --- ************************************************
  22449. --- *** relation: modified_l_lysine ***
  22450. --- *** relation type: VIEW ***
  22451. --- *** ***
  22452. --- *** A post translationally modified lysine a ***
  22453. --- *** mino acid feature. ***
  22454. --- ************************************************
  22455. ---
  22456. CREATE VIEW modified_l_lysine AS
  22457. SELECT
  22458. feature_id AS modified_l_lysine_id,
  22459. feature.*
  22460. FROM
  22461. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22462. WHERE cvterm.name = 'modified_L_lysine';
  22463. --- ************************************************
  22464. --- *** relation: modified_l_leucine ***
  22465. --- *** relation type: VIEW ***
  22466. --- *** ***
  22467. --- *** A post translationally modified leucine ***
  22468. --- *** amino acid feature. ***
  22469. --- ************************************************
  22470. ---
  22471. CREATE VIEW modified_l_leucine AS
  22472. SELECT
  22473. feature_id AS modified_l_leucine_id,
  22474. feature.*
  22475. FROM
  22476. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22477. WHERE cvterm.name = 'modified_L_leucine';
  22478. --- ************************************************
  22479. --- *** relation: modified_l_selenocysteine ***
  22480. --- *** relation type: VIEW ***
  22481. --- *** ***
  22482. --- *** A post translationally modified selenocy ***
  22483. --- *** steine amino acid feature. ***
  22484. --- ************************************************
  22485. ---
  22486. CREATE VIEW modified_l_selenocysteine AS
  22487. SELECT
  22488. feature_id AS modified_l_selenocysteine_id,
  22489. feature.*
  22490. FROM
  22491. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22492. WHERE cvterm.name = 'modified_L_selenocysteine';
  22493. --- ************************************************
  22494. --- *** relation: modified_l_valine ***
  22495. --- *** relation type: VIEW ***
  22496. --- *** ***
  22497. --- *** A post translationally modified valine a ***
  22498. --- *** mino acid feature. ***
  22499. --- ************************************************
  22500. ---
  22501. CREATE VIEW modified_l_valine AS
  22502. SELECT
  22503. feature_id AS modified_l_valine_id,
  22504. feature.*
  22505. FROM
  22506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22507. WHERE cvterm.name = 'modified_L_valine';
  22508. --- ************************************************
  22509. --- *** relation: modified_l_proline ***
  22510. --- *** relation type: VIEW ***
  22511. --- *** ***
  22512. --- *** A post translationally modified proline ***
  22513. --- *** amino acid feature. ***
  22514. --- ************************************************
  22515. ---
  22516. CREATE VIEW modified_l_proline AS
  22517. SELECT
  22518. feature_id AS modified_l_proline_id,
  22519. feature.*
  22520. FROM
  22521. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22522. WHERE cvterm.name = 'modified_L_proline';
  22523. --- ************************************************
  22524. --- *** relation: modified_l_tyrosine ***
  22525. --- *** relation type: VIEW ***
  22526. --- *** ***
  22527. --- *** A post translationally modified tyrosine ***
  22528. --- *** amino acid feature. ***
  22529. --- ************************************************
  22530. ---
  22531. CREATE VIEW modified_l_tyrosine AS
  22532. SELECT
  22533. feature_id AS modified_l_tyrosine_id,
  22534. feature.*
  22535. FROM
  22536. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22537. WHERE cvterm.name = 'modified_L_tyrosine';
  22538. --- ************************************************
  22539. --- *** relation: modified_l_arginine ***
  22540. --- *** relation type: VIEW ***
  22541. --- *** ***
  22542. --- *** A post translationally modified arginine ***
  22543. --- *** amino acid feature. ***
  22544. --- ************************************************
  22545. ---
  22546. CREATE VIEW modified_l_arginine AS
  22547. SELECT
  22548. feature_id AS modified_l_arginine_id,
  22549. feature.*
  22550. FROM
  22551. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22552. WHERE cvterm.name = 'modified_L_arginine';
  22553. --- ************************************************
  22554. --- *** relation: peptidyl ***
  22555. --- *** relation type: VIEW ***
  22556. --- *** ***
  22557. --- *** An attribute describing the nature of a ***
  22558. --- *** proteinaceous polymer, where by the amin ***
  22559. --- *** o acid units are joined by peptide bonds ***
  22560. --- *** . ***
  22561. --- ************************************************
  22562. ---
  22563. CREATE VIEW peptidyl AS
  22564. SELECT
  22565. feature_id AS peptidyl_id,
  22566. feature.*
  22567. FROM
  22568. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22569. WHERE cvterm.name = 'peptidyl';
  22570. --- ************************************************
  22571. --- *** relation: cleaved_for_gpi_anchor_region ***
  22572. --- *** relation type: VIEW ***
  22573. --- *** ***
  22574. --- *** The C-terminal residues of a polypeptide ***
  22575. --- *** which are exchanged for a GPI-anchor. ***
  22576. --- ************************************************
  22577. ---
  22578. CREATE VIEW cleaved_for_gpi_anchor_region AS
  22579. SELECT
  22580. feature_id AS cleaved_for_gpi_anchor_region_id,
  22581. feature.*
  22582. FROM
  22583. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22584. WHERE cvterm.name = 'cleaved_for_gpi_anchor_region';
  22585. --- ************************************************
  22586. --- *** relation: biomaterial_region ***
  22587. --- *** relation type: VIEW ***
  22588. --- *** ***
  22589. --- *** A region which is intended for use in an ***
  22590. --- *** experiment. ***
  22591. --- ************************************************
  22592. ---
  22593. CREATE VIEW biomaterial_region AS
  22594. SELECT
  22595. feature_id AS biomaterial_region_id,
  22596. feature.*
  22597. FROM
  22598. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22599. 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';
  22600. --- ************************************************
  22601. --- *** relation: experimental_feature ***
  22602. --- *** relation type: VIEW ***
  22603. --- *** ***
  22604. --- *** A region which is the result of some arb ***
  22605. --- *** itrary experimental procedure. The proce ***
  22606. --- *** dure may be carried out with biological ***
  22607. --- *** material or inside a computer. ***
  22608. --- ************************************************
  22609. ---
  22610. CREATE VIEW experimental_feature AS
  22611. SELECT
  22612. feature_id AS experimental_feature_id,
  22613. feature.*
  22614. FROM
  22615. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22616. 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';
  22617. --- ************************************************
  22618. --- *** relation: biological_region ***
  22619. --- *** relation type: VIEW ***
  22620. --- *** ***
  22621. --- *** A region defined by its disposition to b ***
  22622. --- *** e involved in a biological process. ***
  22623. --- ************************************************
  22624. ---
  22625. CREATE VIEW biological_region AS
  22626. SELECT
  22627. feature_id AS biological_region_id,
  22628. feature.*
  22629. FROM
  22630. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22631. 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';
  22632. --- ************************************************
  22633. --- *** relation: topologically_defined_region ***
  22634. --- *** relation type: VIEW ***
  22635. --- *** ***
  22636. --- *** A region that is defined according to it ***
  22637. --- *** s relations with other regions within th ***
  22638. --- *** e same sequence. ***
  22639. --- ************************************************
  22640. ---
  22641. CREATE VIEW topologically_defined_region AS
  22642. SELECT
  22643. feature_id AS topologically_defined_region_id,
  22644. feature.*
  22645. FROM
  22646. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22647. 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';
  22648. --- ************************************************
  22649. --- *** relation: translocation_breakpoint ***
  22650. --- *** relation type: VIEW ***
  22651. --- *** ***
  22652. --- *** The point within a chromosome where a tr ***
  22653. --- *** anslocation begins or ends. ***
  22654. --- ************************************************
  22655. ---
  22656. CREATE VIEW translocation_breakpoint AS
  22657. SELECT
  22658. feature_id AS translocation_breakpoint_id,
  22659. feature.*
  22660. FROM
  22661. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22662. WHERE cvterm.name = 'translocation_breakpoint';
  22663. --- ************************************************
  22664. --- *** relation: insertion_breakpoint ***
  22665. --- *** relation type: VIEW ***
  22666. --- *** ***
  22667. --- *** The point within a chromosome where a in ***
  22668. --- *** sertion begins or ends. ***
  22669. --- ************************************************
  22670. ---
  22671. CREATE VIEW insertion_breakpoint AS
  22672. SELECT
  22673. feature_id AS insertion_breakpoint_id,
  22674. feature.*
  22675. FROM
  22676. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22677. WHERE cvterm.name = 'insertion_breakpoint';
  22678. --- ************************************************
  22679. --- *** relation: deletion_breakpoint ***
  22680. --- *** relation type: VIEW ***
  22681. --- *** ***
  22682. --- *** The point within a chromosome where a de ***
  22683. --- *** letion begins or ends. ***
  22684. --- ************************************************
  22685. ---
  22686. CREATE VIEW deletion_breakpoint AS
  22687. SELECT
  22688. feature_id AS deletion_breakpoint_id,
  22689. feature.*
  22690. FROM
  22691. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22692. WHERE cvterm.name = 'deletion_breakpoint';
  22693. --- ************************************************
  22694. --- *** relation: five_prime_flanking_region ***
  22695. --- *** relation type: VIEW ***
  22696. --- *** ***
  22697. --- *** A flanking region located five prime of ***
  22698. --- *** a specific region. ***
  22699. --- ************************************************
  22700. ---
  22701. CREATE VIEW five_prime_flanking_region AS
  22702. SELECT
  22703. feature_id AS five_prime_flanking_region_id,
  22704. feature.*
  22705. FROM
  22706. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22707. WHERE cvterm.name = 'five_prime_flanking_region';
  22708. --- ************************************************
  22709. --- *** relation: three_prime_flanking_region ***
  22710. --- *** relation type: VIEW ***
  22711. --- *** ***
  22712. --- *** A flanking region located three prime of ***
  22713. --- *** a specific region. ***
  22714. --- ************************************************
  22715. ---
  22716. CREATE VIEW three_prime_flanking_region AS
  22717. SELECT
  22718. feature_id AS three_prime_flanking_region_id,
  22719. feature.*
  22720. FROM
  22721. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22722. WHERE cvterm.name = 'three_prime_flanking_region';
  22723. --- ************************************************
  22724. --- *** relation: transcribed_fragment ***
  22725. --- *** relation type: VIEW ***
  22726. --- *** ***
  22727. --- *** An experimental region, defined by a til ***
  22728. --- *** ing array experiment to be transcribed a ***
  22729. --- *** t some level. ***
  22730. --- ************************************************
  22731. ---
  22732. CREATE VIEW transcribed_fragment AS
  22733. SELECT
  22734. feature_id AS transcribed_fragment_id,
  22735. feature.*
  22736. FROM
  22737. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22738. WHERE cvterm.name = 'transcribed_fragment';
  22739. --- ************************************************
  22740. --- *** relation: cis_splice_site ***
  22741. --- *** relation type: VIEW ***
  22742. --- *** ***
  22743. --- *** Intronic 2 bp region bordering exon. A s ***
  22744. --- *** plice_site that adjacent_to exon and ove ***
  22745. --- *** rlaps intron. ***
  22746. --- ************************************************
  22747. ---
  22748. CREATE VIEW cis_splice_site AS
  22749. SELECT
  22750. feature_id AS cis_splice_site_id,
  22751. feature.*
  22752. FROM
  22753. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22754. 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';
  22755. --- ************************************************
  22756. --- *** relation: trans_splice_site ***
  22757. --- *** relation type: VIEW ***
  22758. --- *** ***
  22759. --- *** Primary transcript region bordering tran ***
  22760. --- *** s-splice junction. ***
  22761. --- ************************************************
  22762. ---
  22763. CREATE VIEW trans_splice_site AS
  22764. SELECT
  22765. feature_id AS trans_splice_site_id,
  22766. feature.*
  22767. FROM
  22768. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22769. 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';
  22770. --- ************************************************
  22771. --- *** relation: splice_junction ***
  22772. --- *** relation type: VIEW ***
  22773. --- *** ***
  22774. --- *** The boundary between an intron and an ex ***
  22775. --- *** on. ***
  22776. --- ************************************************
  22777. ---
  22778. CREATE VIEW splice_junction AS
  22779. SELECT
  22780. feature_id AS splice_junction_id,
  22781. feature.*
  22782. FROM
  22783. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22784. WHERE cvterm.name = 'splice_junction';
  22785. --- ************************************************
  22786. --- *** relation: conformational_switch ***
  22787. --- *** relation type: VIEW ***
  22788. --- *** ***
  22789. --- *** A region of a polypeptide, involved in t ***
  22790. --- *** he transition from one conformational st ***
  22791. --- *** ate to another. ***
  22792. --- ************************************************
  22793. ---
  22794. CREATE VIEW conformational_switch AS
  22795. SELECT
  22796. feature_id AS conformational_switch_id,
  22797. feature.*
  22798. FROM
  22799. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22800. WHERE cvterm.name = 'conformational_switch';
  22801. --- ************************************************
  22802. --- *** relation: dye_terminator_read ***
  22803. --- *** relation type: VIEW ***
  22804. --- *** ***
  22805. --- *** A read produced by the dye terminator me ***
  22806. --- *** thod of sequencing. ***
  22807. --- ************************************************
  22808. ---
  22809. CREATE VIEW dye_terminator_read AS
  22810. SELECT
  22811. feature_id AS dye_terminator_read_id,
  22812. feature.*
  22813. FROM
  22814. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22815. WHERE cvterm.name = 'dye_terminator_read';
  22816. --- ************************************************
  22817. --- *** relation: pyrosequenced_read ***
  22818. --- *** relation type: VIEW ***
  22819. --- *** ***
  22820. --- *** A read produced by pyrosequencing techno ***
  22821. --- *** logy. ***
  22822. --- ************************************************
  22823. ---
  22824. CREATE VIEW pyrosequenced_read AS
  22825. SELECT
  22826. feature_id AS pyrosequenced_read_id,
  22827. feature.*
  22828. FROM
  22829. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22830. WHERE cvterm.name = 'pyrosequenced_read';
  22831. --- ************************************************
  22832. --- *** relation: ligation_based_read ***
  22833. --- *** relation type: VIEW ***
  22834. --- *** ***
  22835. --- *** A read produced by ligation based sequen ***
  22836. --- *** cing technologies. ***
  22837. --- ************************************************
  22838. ---
  22839. CREATE VIEW ligation_based_read AS
  22840. SELECT
  22841. feature_id AS ligation_based_read_id,
  22842. feature.*
  22843. FROM
  22844. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22845. WHERE cvterm.name = 'ligation_based_read';
  22846. --- ************************************************
  22847. --- *** relation: polymerase_synthesis_read ***
  22848. --- *** relation type: VIEW ***
  22849. --- *** ***
  22850. --- *** A read produced by the polymerase based ***
  22851. --- *** sequence by synthesis method. ***
  22852. --- ************************************************
  22853. ---
  22854. CREATE VIEW polymerase_synthesis_read AS
  22855. SELECT
  22856. feature_id AS polymerase_synthesis_read_id,
  22857. feature.*
  22858. FROM
  22859. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22860. WHERE cvterm.name = 'polymerase_synthesis_read';
  22861. --- ************************************************
  22862. --- *** relation: cis_regulatory_frameshift_element ***
  22863. --- *** relation type: VIEW ***
  22864. --- *** ***
  22865. --- *** A structural region in an RNA molecule w ***
  22866. --- *** hich promotes ribosomal frameshifting of ***
  22867. --- *** cis coding sequence. ***
  22868. --- ************************************************
  22869. ---
  22870. CREATE VIEW cis_regulatory_frameshift_element AS
  22871. SELECT
  22872. feature_id AS cis_regulatory_frameshift_element_id,
  22873. feature.*
  22874. FROM
  22875. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22876. WHERE cvterm.name = 'cis_regulatory_frameshift_element';
  22877. --- ************************************************
  22878. --- *** relation: expressed_sequence_assembly ***
  22879. --- *** relation type: VIEW ***
  22880. --- *** ***
  22881. --- *** A sequence assembly derived from express ***
  22882. --- *** ed sequences. ***
  22883. --- ************************************************
  22884. ---
  22885. CREATE VIEW expressed_sequence_assembly AS
  22886. SELECT
  22887. feature_id AS expressed_sequence_assembly_id,
  22888. feature.*
  22889. FROM
  22890. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22891. WHERE cvterm.name = 'expressed_sequence_assembly';
  22892. --- ************************************************
  22893. --- *** relation: dna_binding_site ***
  22894. --- *** relation type: VIEW ***
  22895. --- *** ***
  22896. --- *** A binding site that, in the molecule, in ***
  22897. --- *** teracts selectively and non-covalently w ***
  22898. --- *** ith DNA. ***
  22899. --- ************************************************
  22900. ---
  22901. CREATE VIEW dna_binding_site AS
  22902. SELECT
  22903. feature_id AS dna_binding_site_id,
  22904. feature.*
  22905. FROM
  22906. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22907. WHERE cvterm.name = 'polypeptide_DNA_contact' OR cvterm.name = 'DNA_binding_site';
  22908. --- ************************************************
  22909. --- *** relation: cryptic_gene ***
  22910. --- *** relation type: VIEW ***
  22911. --- *** ***
  22912. --- *** A gene that is not transcribed under nor ***
  22913. --- *** mal conditions and is not critical to no ***
  22914. --- *** rmal cellular functioning. ***
  22915. --- ************************************************
  22916. ---
  22917. CREATE VIEW cryptic_gene AS
  22918. SELECT
  22919. feature_id AS cryptic_gene_id,
  22920. feature.*
  22921. FROM
  22922. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22923. WHERE cvterm.name = 'cryptogene' OR cvterm.name = 'cryptic_gene';
  22924. --- ************************************************
  22925. --- *** relation: three_prime_race_clone ***
  22926. --- *** relation type: VIEW ***
  22927. --- *** ***
  22928. --- *** A three prime RACE (Rapid Amplification ***
  22929. --- *** of cDNA Ends) clone is a cDNA clone copi ***
  22930. --- *** ed from the 3' end of an mRNA (using a p ***
  22931. --- *** oly-dT primer to capture the polyA tail ***
  22932. --- *** and a gene-specific or randomly primed 5 ***
  22933. --- *** ' primer), and spliced into a vector for ***
  22934. --- *** propagation in a suitable host. ***
  22935. --- ************************************************
  22936. ---
  22937. CREATE VIEW three_prime_race_clone AS
  22938. SELECT
  22939. feature_id AS three_prime_race_clone_id,
  22940. feature.*
  22941. FROM
  22942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22943. WHERE cvterm.name = 'three_prime_RACE_clone';
  22944. --- ************************************************
  22945. --- *** relation: cassette_pseudogene ***
  22946. --- *** relation type: VIEW ***
  22947. --- *** ***
  22948. --- *** A cassette pseudogene is a kind of gene ***
  22949. --- *** in an inactive form which may recombine ***
  22950. --- *** at a telomeric locus to form a functiona ***
  22951. --- *** l copy. ***
  22952. --- ************************************************
  22953. ---
  22954. CREATE VIEW cassette_pseudogene AS
  22955. SELECT
  22956. feature_id AS cassette_pseudogene_id,
  22957. feature.*
  22958. FROM
  22959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22960. WHERE cvterm.name = 'cassette_pseudogene';
  22961. --- ************************************************
  22962. --- *** relation: alanine ***
  22963. --- *** relation type: VIEW ***
  22964. --- *** ***
  22965. --- ************************************************
  22966. ---
  22967. CREATE VIEW alanine AS
  22968. SELECT
  22969. feature_id AS alanine_id,
  22970. feature.*
  22971. FROM
  22972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22973. WHERE cvterm.name = 'alanine';
  22974. --- ************************************************
  22975. --- *** relation: valine ***
  22976. --- *** relation type: VIEW ***
  22977. --- *** ***
  22978. --- ************************************************
  22979. ---
  22980. CREATE VIEW valine AS
  22981. SELECT
  22982. feature_id AS valine_id,
  22983. feature.*
  22984. FROM
  22985. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22986. WHERE cvterm.name = 'valine';
  22987. --- ************************************************
  22988. --- *** relation: leucine ***
  22989. --- *** relation type: VIEW ***
  22990. --- *** ***
  22991. --- ************************************************
  22992. ---
  22993. CREATE VIEW leucine AS
  22994. SELECT
  22995. feature_id AS leucine_id,
  22996. feature.*
  22997. FROM
  22998. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  22999. WHERE cvterm.name = 'leucine';
  23000. --- ************************************************
  23001. --- *** relation: isoleucine ***
  23002. --- *** relation type: VIEW ***
  23003. --- *** ***
  23004. --- ************************************************
  23005. ---
  23006. CREATE VIEW isoleucine AS
  23007. SELECT
  23008. feature_id AS isoleucine_id,
  23009. feature.*
  23010. FROM
  23011. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23012. WHERE cvterm.name = 'isoleucine';
  23013. --- ************************************************
  23014. --- *** relation: proline ***
  23015. --- *** relation type: VIEW ***
  23016. --- *** ***
  23017. --- ************************************************
  23018. ---
  23019. CREATE VIEW proline AS
  23020. SELECT
  23021. feature_id AS proline_id,
  23022. feature.*
  23023. FROM
  23024. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23025. WHERE cvterm.name = 'proline';
  23026. --- ************************************************
  23027. --- *** relation: tryptophan ***
  23028. --- *** relation type: VIEW ***
  23029. --- *** ***
  23030. --- ************************************************
  23031. ---
  23032. CREATE VIEW tryptophan AS
  23033. SELECT
  23034. feature_id AS tryptophan_id,
  23035. feature.*
  23036. FROM
  23037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23038. WHERE cvterm.name = 'tryptophan';
  23039. --- ************************************************
  23040. --- *** relation: phenylalanine ***
  23041. --- *** relation type: VIEW ***
  23042. --- *** ***
  23043. --- ************************************************
  23044. ---
  23045. CREATE VIEW phenylalanine AS
  23046. SELECT
  23047. feature_id AS phenylalanine_id,
  23048. feature.*
  23049. FROM
  23050. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23051. WHERE cvterm.name = 'phenylalanine';
  23052. --- ************************************************
  23053. --- *** relation: methionine ***
  23054. --- *** relation type: VIEW ***
  23055. --- *** ***
  23056. --- ************************************************
  23057. ---
  23058. CREATE VIEW methionine AS
  23059. SELECT
  23060. feature_id AS methionine_id,
  23061. feature.*
  23062. FROM
  23063. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23064. WHERE cvterm.name = 'methionine';
  23065. --- ************************************************
  23066. --- *** relation: glycine ***
  23067. --- *** relation type: VIEW ***
  23068. --- *** ***
  23069. --- ************************************************
  23070. ---
  23071. CREATE VIEW glycine AS
  23072. SELECT
  23073. feature_id AS glycine_id,
  23074. feature.*
  23075. FROM
  23076. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23077. WHERE cvterm.name = 'glycine';
  23078. --- ************************************************
  23079. --- *** relation: serine ***
  23080. --- *** relation type: VIEW ***
  23081. --- *** ***
  23082. --- ************************************************
  23083. ---
  23084. CREATE VIEW serine AS
  23085. SELECT
  23086. feature_id AS serine_id,
  23087. feature.*
  23088. FROM
  23089. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23090. WHERE cvterm.name = 'serine';
  23091. --- ************************************************
  23092. --- *** relation: threonine ***
  23093. --- *** relation type: VIEW ***
  23094. --- *** ***
  23095. --- ************************************************
  23096. ---
  23097. CREATE VIEW threonine AS
  23098. SELECT
  23099. feature_id AS threonine_id,
  23100. feature.*
  23101. FROM
  23102. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23103. WHERE cvterm.name = 'threonine';
  23104. --- ************************************************
  23105. --- *** relation: tyrosine ***
  23106. --- *** relation type: VIEW ***
  23107. --- *** ***
  23108. --- ************************************************
  23109. ---
  23110. CREATE VIEW tyrosine AS
  23111. SELECT
  23112. feature_id AS tyrosine_id,
  23113. feature.*
  23114. FROM
  23115. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23116. WHERE cvterm.name = 'tyrosine';
  23117. --- ************************************************
  23118. --- *** relation: cysteine ***
  23119. --- *** relation type: VIEW ***
  23120. --- *** ***
  23121. --- ************************************************
  23122. ---
  23123. CREATE VIEW cysteine AS
  23124. SELECT
  23125. feature_id AS cysteine_id,
  23126. feature.*
  23127. FROM
  23128. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23129. WHERE cvterm.name = 'cysteine';
  23130. --- ************************************************
  23131. --- *** relation: glutamine ***
  23132. --- *** relation type: VIEW ***
  23133. --- *** ***
  23134. --- ************************************************
  23135. ---
  23136. CREATE VIEW glutamine AS
  23137. SELECT
  23138. feature_id AS glutamine_id,
  23139. feature.*
  23140. FROM
  23141. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23142. WHERE cvterm.name = 'glutamine';
  23143. --- ************************************************
  23144. --- *** relation: asparagine ***
  23145. --- *** relation type: VIEW ***
  23146. --- *** ***
  23147. --- ************************************************
  23148. ---
  23149. CREATE VIEW asparagine AS
  23150. SELECT
  23151. feature_id AS asparagine_id,
  23152. feature.*
  23153. FROM
  23154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23155. WHERE cvterm.name = 'asparagine';
  23156. --- ************************************************
  23157. --- *** relation: lysine ***
  23158. --- *** relation type: VIEW ***
  23159. --- *** ***
  23160. --- ************************************************
  23161. ---
  23162. CREATE VIEW lysine AS
  23163. SELECT
  23164. feature_id AS lysine_id,
  23165. feature.*
  23166. FROM
  23167. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23168. WHERE cvterm.name = 'lysine';
  23169. --- ************************************************
  23170. --- *** relation: arginine ***
  23171. --- *** relation type: VIEW ***
  23172. --- *** ***
  23173. --- ************************************************
  23174. ---
  23175. CREATE VIEW arginine AS
  23176. SELECT
  23177. feature_id AS arginine_id,
  23178. feature.*
  23179. FROM
  23180. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23181. WHERE cvterm.name = 'arginine';
  23182. --- ************************************************
  23183. --- *** relation: histidine ***
  23184. --- *** relation type: VIEW ***
  23185. --- *** ***
  23186. --- ************************************************
  23187. ---
  23188. CREATE VIEW histidine AS
  23189. SELECT
  23190. feature_id AS histidine_id,
  23191. feature.*
  23192. FROM
  23193. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23194. WHERE cvterm.name = 'histidine';
  23195. --- ************************************************
  23196. --- *** relation: aspartic_acid ***
  23197. --- *** relation type: VIEW ***
  23198. --- *** ***
  23199. --- ************************************************
  23200. ---
  23201. CREATE VIEW aspartic_acid AS
  23202. SELECT
  23203. feature_id AS aspartic_acid_id,
  23204. feature.*
  23205. FROM
  23206. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23207. WHERE cvterm.name = 'aspartic_acid';
  23208. --- ************************************************
  23209. --- *** relation: glutamic_acid ***
  23210. --- *** relation type: VIEW ***
  23211. --- *** ***
  23212. --- ************************************************
  23213. ---
  23214. CREATE VIEW glutamic_acid AS
  23215. SELECT
  23216. feature_id AS glutamic_acid_id,
  23217. feature.*
  23218. FROM
  23219. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23220. WHERE cvterm.name = 'glutamic_acid';
  23221. --- ************************************************
  23222. --- *** relation: selenocysteine ***
  23223. --- *** relation type: VIEW ***
  23224. --- *** ***
  23225. --- ************************************************
  23226. ---
  23227. CREATE VIEW selenocysteine AS
  23228. SELECT
  23229. feature_id AS selenocysteine_id,
  23230. feature.*
  23231. FROM
  23232. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23233. WHERE cvterm.name = 'selenocysteine';
  23234. --- ************************************************
  23235. --- *** relation: pyrrolysine ***
  23236. --- *** relation type: VIEW ***
  23237. --- *** ***
  23238. --- ************************************************
  23239. ---
  23240. CREATE VIEW pyrrolysine AS
  23241. SELECT
  23242. feature_id AS pyrrolysine_id,
  23243. feature.*
  23244. FROM
  23245. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23246. WHERE cvterm.name = 'pyrrolysine';
  23247. --- ************************************************
  23248. --- *** relation: transcribed_cluster ***
  23249. --- *** relation type: VIEW ***
  23250. --- *** ***
  23251. --- *** A region defined by a set of transcribed ***
  23252. --- *** sequences from the same gene or express ***
  23253. --- *** ed pseudogene. ***
  23254. --- ************************************************
  23255. ---
  23256. CREATE VIEW transcribed_cluster AS
  23257. SELECT
  23258. feature_id AS transcribed_cluster_id,
  23259. feature.*
  23260. FROM
  23261. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23262. WHERE cvterm.name = 'unigene_cluster' OR cvterm.name = 'transcribed_cluster';
  23263. --- ************************************************
  23264. --- *** relation: unigene_cluster ***
  23265. --- *** relation type: VIEW ***
  23266. --- *** ***
  23267. --- *** A kind of transcribed_cluster defined by ***
  23268. --- *** a set of transcribed sequences from the ***
  23269. --- *** a unique gene. ***
  23270. --- ************************************************
  23271. ---
  23272. CREATE VIEW unigene_cluster AS
  23273. SELECT
  23274. feature_id AS unigene_cluster_id,
  23275. feature.*
  23276. FROM
  23277. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23278. WHERE cvterm.name = 'unigene_cluster';
  23279. --- ************************************************
  23280. --- *** relation: crispr ***
  23281. --- *** relation type: VIEW ***
  23282. --- *** ***
  23283. --- *** Clustered Palindromic Repeats interspers ***
  23284. --- *** ed with bacteriophage derived spacer seq ***
  23285. --- *** uences. ***
  23286. --- ************************************************
  23287. ---
  23288. CREATE VIEW crispr AS
  23289. SELECT
  23290. feature_id AS crispr_id,
  23291. feature.*
  23292. FROM
  23293. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23294. WHERE cvterm.name = 'CRISPR';
  23295. --- ************************************************
  23296. --- *** relation: insulator_binding_site ***
  23297. --- *** relation type: VIEW ***
  23298. --- *** ***
  23299. --- *** A binding site that, in an insulator reg ***
  23300. --- *** ion of a nucleotide molecule, interacts ***
  23301. --- *** selectively and non-covalently with poly ***
  23302. --- *** peptide residues. ***
  23303. --- ************************************************
  23304. ---
  23305. CREATE VIEW insulator_binding_site AS
  23306. SELECT
  23307. feature_id AS insulator_binding_site_id,
  23308. feature.*
  23309. FROM
  23310. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23311. WHERE cvterm.name = 'insulator_binding_site';
  23312. --- ************************************************
  23313. --- *** relation: enhancer_binding_site ***
  23314. --- *** relation type: VIEW ***
  23315. --- *** ***
  23316. --- *** A binding site that, in the enhancer reg ***
  23317. --- *** ion of a nucleotide molecule, interacts ***
  23318. --- *** selectively and non-covalently with poly ***
  23319. --- *** peptide residues. ***
  23320. --- ************************************************
  23321. ---
  23322. CREATE VIEW enhancer_binding_site AS
  23323. SELECT
  23324. feature_id AS enhancer_binding_site_id,
  23325. feature.*
  23326. FROM
  23327. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23328. WHERE cvterm.name = 'enhancer_binding_site';
  23329. --- ************************************************
  23330. --- *** relation: contig_collection ***
  23331. --- *** relation type: VIEW ***
  23332. --- *** ***
  23333. --- *** A collection of contigs. ***
  23334. --- ************************************************
  23335. ---
  23336. CREATE VIEW contig_collection AS
  23337. SELECT
  23338. feature_id AS contig_collection_id,
  23339. feature.*
  23340. FROM
  23341. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23342. WHERE cvterm.name = 'contig_collection';
  23343. --- ************************************************
  23344. --- *** relation: lincrna ***
  23345. --- *** relation type: VIEW ***
  23346. --- *** ***
  23347. --- *** A multiexonic non-coding RNA transcribed ***
  23348. --- *** by RNA polymerase II. ***
  23349. --- ************************************************
  23350. ---
  23351. CREATE VIEW lincrna AS
  23352. SELECT
  23353. feature_id AS lincrna_id,
  23354. feature.*
  23355. FROM
  23356. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23357. WHERE cvterm.name = 'lincRNA';
  23358. --- ************************************************
  23359. --- *** relation: ust ***
  23360. --- *** relation type: VIEW ***
  23361. --- *** ***
  23362. --- *** An EST spanning part or all of the untra ***
  23363. --- *** nslated regions of a protein-coding tran ***
  23364. --- *** script. ***
  23365. --- ************************************************
  23366. ---
  23367. CREATE VIEW ust AS
  23368. SELECT
  23369. feature_id AS ust_id,
  23370. feature.*
  23371. FROM
  23372. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23373. WHERE cvterm.name = 'three_prime_UST' OR cvterm.name = 'five_prime_UST' OR cvterm.name = 'UST';
  23374. --- ************************************************
  23375. --- *** relation: three_prime_ust ***
  23376. --- *** relation type: VIEW ***
  23377. --- *** ***
  23378. --- *** A UST located in the 3'UTR of a protein- ***
  23379. --- *** coding transcript. ***
  23380. --- ************************************************
  23381. ---
  23382. CREATE VIEW three_prime_ust AS
  23383. SELECT
  23384. feature_id AS three_prime_ust_id,
  23385. feature.*
  23386. FROM
  23387. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23388. WHERE cvterm.name = 'three_prime_UST';
  23389. --- ************************************************
  23390. --- *** relation: five_prime_ust ***
  23391. --- *** relation type: VIEW ***
  23392. --- *** ***
  23393. --- *** An UST located in the 5'UTR of a protein ***
  23394. --- *** -coding transcript. ***
  23395. --- ************************************************
  23396. ---
  23397. CREATE VIEW five_prime_ust AS
  23398. SELECT
  23399. feature_id AS five_prime_ust_id,
  23400. feature.*
  23401. FROM
  23402. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23403. WHERE cvterm.name = 'five_prime_UST';
  23404. --- ************************************************
  23405. --- *** relation: rst ***
  23406. --- *** relation type: VIEW ***
  23407. --- *** ***
  23408. --- *** A tag produced from a single sequencing ***
  23409. --- *** read from a RACE product; typically a fe ***
  23410. --- *** w hundred base pairs long. ***
  23411. --- ************************************************
  23412. ---
  23413. CREATE VIEW rst AS
  23414. SELECT
  23415. feature_id AS rst_id,
  23416. feature.*
  23417. FROM
  23418. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23419. WHERE cvterm.name = 'three_prime_RST' OR cvterm.name = 'five_prime_RST' OR cvterm.name = 'RST';
  23420. --- ************************************************
  23421. --- *** relation: three_prime_rst ***
  23422. --- *** relation type: VIEW ***
  23423. --- *** ***
  23424. --- *** A tag produced from a single sequencing ***
  23425. --- *** read from a 3'-RACE product; typically a ***
  23426. --- *** few hundred base pairs long. ***
  23427. --- ************************************************
  23428. ---
  23429. CREATE VIEW three_prime_rst AS
  23430. SELECT
  23431. feature_id AS three_prime_rst_id,
  23432. feature.*
  23433. FROM
  23434. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23435. WHERE cvterm.name = 'three_prime_RST';
  23436. --- ************************************************
  23437. --- *** relation: five_prime_rst ***
  23438. --- *** relation type: VIEW ***
  23439. --- *** ***
  23440. --- *** A tag produced from a single sequencing ***
  23441. --- *** read from a 5'-RACE product; typically a ***
  23442. --- *** few hundred base pairs long. ***
  23443. --- ************************************************
  23444. ---
  23445. CREATE VIEW five_prime_rst AS
  23446. SELECT
  23447. feature_id AS five_prime_rst_id,
  23448. feature.*
  23449. FROM
  23450. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23451. WHERE cvterm.name = 'five_prime_RST';
  23452. --- ************************************************
  23453. --- *** relation: ust_match ***
  23454. --- *** relation type: VIEW ***
  23455. --- *** ***
  23456. --- *** A match against an UST sequence. ***
  23457. --- ************************************************
  23458. ---
  23459. CREATE VIEW ust_match AS
  23460. SELECT
  23461. feature_id AS ust_match_id,
  23462. feature.*
  23463. FROM
  23464. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23465. WHERE cvterm.name = 'UST_match';
  23466. --- ************************************************
  23467. --- *** relation: rst_match ***
  23468. --- *** relation type: VIEW ***
  23469. --- *** ***
  23470. --- *** A match against an RST sequence. ***
  23471. --- ************************************************
  23472. ---
  23473. CREATE VIEW rst_match AS
  23474. SELECT
  23475. feature_id AS rst_match_id,
  23476. feature.*
  23477. FROM
  23478. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23479. WHERE cvterm.name = 'RST_match';
  23480. --- ************************************************
  23481. --- *** relation: primer_match ***
  23482. --- *** relation type: VIEW ***
  23483. --- *** ***
  23484. --- *** A nucleotide match to a primer sequence. ***
  23485. --- ************************************************
  23486. ---
  23487. CREATE VIEW primer_match AS
  23488. SELECT
  23489. feature_id AS primer_match_id,
  23490. feature.*
  23491. FROM
  23492. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23493. WHERE cvterm.name = 'primer_match';
  23494. --- ************************************************
  23495. --- *** relation: mirna_antiguide ***
  23496. --- *** relation type: VIEW ***
  23497. --- *** ***
  23498. --- *** A region of the pri miRNA that basepairs ***
  23499. --- *** with the guide to form the hairpin. ***
  23500. --- ************************************************
  23501. ---
  23502. CREATE VIEW mirna_antiguide AS
  23503. SELECT
  23504. feature_id AS mirna_antiguide_id,
  23505. feature.*
  23506. FROM
  23507. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23508. WHERE cvterm.name = 'miRNA_antiguide';
  23509. --- ************************************************
  23510. --- *** relation: trans_splice_junction ***
  23511. --- *** relation type: VIEW ***
  23512. --- *** ***
  23513. --- *** The boundary between the spliced leader ***
  23514. --- *** and the first exon of the mRNA. ***
  23515. --- ************************************************
  23516. ---
  23517. CREATE VIEW trans_splice_junction AS
  23518. SELECT
  23519. feature_id AS trans_splice_junction_id,
  23520. feature.*
  23521. FROM
  23522. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23523. WHERE cvterm.name = 'trans_splice_junction';
  23524. --- ************************************************
  23525. --- *** relation: outron ***
  23526. --- *** relation type: VIEW ***
  23527. --- *** ***
  23528. --- *** A region of a primary transcript, that i ***
  23529. --- *** s removed via trans splicing. ***
  23530. --- ************************************************
  23531. ---
  23532. CREATE VIEW outron AS
  23533. SELECT
  23534. feature_id AS outron_id,
  23535. feature.*
  23536. FROM
  23537. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23538. WHERE cvterm.name = 'outron';
  23539. --- ************************************************
  23540. --- *** relation: natural_plasmid ***
  23541. --- *** relation type: VIEW ***
  23542. --- *** ***
  23543. --- *** A plasmid that occurs naturally. ***
  23544. --- ************************************************
  23545. ---
  23546. CREATE VIEW natural_plasmid AS
  23547. SELECT
  23548. feature_id AS natural_plasmid_id,
  23549. feature.*
  23550. FROM
  23551. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23552. WHERE cvterm.name = 'natural_plasmid';
  23553. --- ************************************************
  23554. --- *** relation: gene_trap_construct ***
  23555. --- *** relation type: VIEW ***
  23556. --- *** ***
  23557. --- *** A gene trap construct is a type of engin ***
  23558. --- *** eered plasmid which is designed to integ ***
  23559. --- *** rate into a genome and produce a fusion ***
  23560. --- *** transcript between exons of the gene int ***
  23561. --- *** o which it inserts and a reporter elemen ***
  23562. --- *** t in the construct. Gene traps contain a ***
  23563. --- *** splice acceptor, do not contain promote ***
  23564. --- *** r elements for the reporter, and are mut ***
  23565. --- *** agenic. Gene traps may be bicistronic wi ***
  23566. --- *** th the second cassette containing a prom ***
  23567. --- *** oter driving an a selectable marker. ***
  23568. --- ************************************************
  23569. ---
  23570. CREATE VIEW gene_trap_construct AS
  23571. SELECT
  23572. feature_id AS gene_trap_construct_id,
  23573. feature.*
  23574. FROM
  23575. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23576. WHERE cvterm.name = 'gene_trap_construct';
  23577. --- ************************************************
  23578. --- *** relation: promoter_trap_construct ***
  23579. --- *** relation type: VIEW ***
  23580. --- *** ***
  23581. --- *** A promoter trap construct is a type of e ***
  23582. --- *** ngineered plasmid which is designed to i ***
  23583. --- *** ntegrate into a genome and express a rep ***
  23584. --- *** orter when inserted in close proximity t ***
  23585. --- *** o a promoter element. Promoter traps typ ***
  23586. --- *** ically do not contain promoter elements ***
  23587. --- *** and are mutagenic. ***
  23588. --- ************************************************
  23589. ---
  23590. CREATE VIEW promoter_trap_construct AS
  23591. SELECT
  23592. feature_id AS promoter_trap_construct_id,
  23593. feature.*
  23594. FROM
  23595. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23596. WHERE cvterm.name = 'promoter_trap_construct';
  23597. --- ************************************************
  23598. --- *** relation: enhancer_trap_construct ***
  23599. --- *** relation type: VIEW ***
  23600. --- *** ***
  23601. --- *** An enhancer trap construct is a type of ***
  23602. --- *** engineered plasmid which is designed to ***
  23603. --- *** integrate into a genome and express a re ***
  23604. --- *** porter when the expression from a basic ***
  23605. --- *** minimal promoter is enhanced by genomic ***
  23606. --- *** enhancer elements. Enhancer traps contai ***
  23607. --- *** n promoter elements and are not usually ***
  23608. --- *** mutagenic. ***
  23609. --- ************************************************
  23610. ---
  23611. CREATE VIEW enhancer_trap_construct AS
  23612. SELECT
  23613. feature_id AS enhancer_trap_construct_id,
  23614. feature.*
  23615. FROM
  23616. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23617. WHERE cvterm.name = 'enhancer_trap_construct';
  23618. --- ************************************************
  23619. --- *** relation: pac_end ***
  23620. --- *** relation type: VIEW ***
  23621. --- *** ***
  23622. --- *** A region of sequence from the end of a P ***
  23623. --- *** AC clone that may provide a highly speci ***
  23624. --- *** fic marker. ***
  23625. --- ************************************************
  23626. ---
  23627. CREATE VIEW pac_end AS
  23628. SELECT
  23629. feature_id AS pac_end_id,
  23630. feature.*
  23631. FROM
  23632. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23633. WHERE cvterm.name = 'PAC_end';
  23634. --- ************************************************
  23635. --- *** relation: rapd ***
  23636. --- *** relation type: VIEW ***
  23637. --- *** ***
  23638. --- *** RAPD is a 'PCR product' where a sequence ***
  23639. --- *** variant is identified through the use o ***
  23640. --- *** f PCR with random primers. ***
  23641. --- ************************************************
  23642. ---
  23643. CREATE VIEW rapd AS
  23644. SELECT
  23645. feature_id AS rapd_id,
  23646. feature.*
  23647. FROM
  23648. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23649. WHERE cvterm.name = 'RAPD';
  23650. --- ************************************************
  23651. --- *** relation: shadow_enhancer ***
  23652. --- *** relation type: VIEW ***
  23653. --- *** ***
  23654. --- ************************************************
  23655. ---
  23656. CREATE VIEW shadow_enhancer AS
  23657. SELECT
  23658. feature_id AS shadow_enhancer_id,
  23659. feature.*
  23660. FROM
  23661. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23662. WHERE cvterm.name = 'shadow_enhancer';
  23663. --- ************************************************
  23664. --- *** relation: snv ***
  23665. --- *** relation type: VIEW ***
  23666. --- *** ***
  23667. --- *** SNVs are single nucleotide positions in ***
  23668. --- *** genomic DNA at which different sequence ***
  23669. --- *** alternatives exist. ***
  23670. --- ************************************************
  23671. ---
  23672. CREATE VIEW snv AS
  23673. SELECT
  23674. feature_id AS snv_id,
  23675. feature.*
  23676. FROM
  23677. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23678. 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';
  23679. --- ************************************************
  23680. --- *** relation: x_element_combinatorial_repeat ***
  23681. --- *** relation type: VIEW ***
  23682. --- *** ***
  23683. --- *** An X element combinatorial repeat is a r ***
  23684. --- *** epeat region located between the X eleme ***
  23685. --- *** nt and the telomere or adjacent Y' eleme ***
  23686. --- *** nt. ***
  23687. --- ************************************************
  23688. ---
  23689. CREATE VIEW x_element_combinatorial_repeat AS
  23690. SELECT
  23691. feature_id AS x_element_combinatorial_repeat_id,
  23692. feature.*
  23693. FROM
  23694. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23695. WHERE cvterm.name = 'X_element_combinatorial_repeat';
  23696. --- ************************************************
  23697. --- *** relation: y_prime_element ***
  23698. --- *** relation type: VIEW ***
  23699. --- *** ***
  23700. --- *** A Y' element is a repeat region (SO:0000 ***
  23701. --- *** 657) located adjacent to telomeric repea ***
  23702. --- *** ts or X element combinatorial repeats, e ***
  23703. --- *** ither as a single copy or tandem repeat ***
  23704. --- *** of two to four copies. ***
  23705. --- ************************************************
  23706. ---
  23707. CREATE VIEW y_prime_element AS
  23708. SELECT
  23709. feature_id AS y_prime_element_id,
  23710. feature.*
  23711. FROM
  23712. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23713. WHERE cvterm.name = 'Y_prime_element';
  23714. --- ************************************************
  23715. --- *** relation: standard_draft ***
  23716. --- *** relation type: VIEW ***
  23717. --- *** ***
  23718. --- *** The status of a whole genome sequence, w ***
  23719. --- *** here the data is minimally filtered or u ***
  23720. --- *** n-filtered, from any number of sequencin ***
  23721. --- *** g platforms, and is assembled into conti ***
  23722. --- *** gs. Genome sequence of this quality may ***
  23723. --- *** harbour regions of poor quality and can ***
  23724. --- *** be relatively incomplete. ***
  23725. --- ************************************************
  23726. ---
  23727. CREATE VIEW standard_draft AS
  23728. SELECT
  23729. feature_id AS standard_draft_id,
  23730. feature.*
  23731. FROM
  23732. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23733. WHERE cvterm.name = 'standard_draft';
  23734. --- ************************************************
  23735. --- *** relation: high_quality_draft ***
  23736. --- *** relation type: VIEW ***
  23737. --- *** ***
  23738. --- *** The status of a whole genome sequence, w ***
  23739. --- *** here overall coverage represents at leas ***
  23740. --- *** t 90 percent of the genome. ***
  23741. --- ************************************************
  23742. ---
  23743. CREATE VIEW high_quality_draft AS
  23744. SELECT
  23745. feature_id AS high_quality_draft_id,
  23746. feature.*
  23747. FROM
  23748. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23749. WHERE cvterm.name = 'high_quality_draft';
  23750. --- ************************************************
  23751. --- *** relation: improved_high_quality_draft ***
  23752. --- *** relation type: VIEW ***
  23753. --- *** ***
  23754. --- *** The status of a whole genome sequence, w ***
  23755. --- *** here additional work has been performed, ***
  23756. --- *** using either manual or automated method ***
  23757. --- *** s, such as gap resolution. ***
  23758. --- ************************************************
  23759. ---
  23760. CREATE VIEW improved_high_quality_draft AS
  23761. SELECT
  23762. feature_id AS improved_high_quality_draft_id,
  23763. feature.*
  23764. FROM
  23765. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23766. WHERE cvterm.name = 'improved_high_quality_draft';
  23767. --- ************************************************
  23768. --- *** relation: annotation_directed_improved_draft ***
  23769. --- *** relation type: VIEW ***
  23770. --- *** ***
  23771. --- *** The status of a whole genome sequence,wh ***
  23772. --- *** ere annotation, and verification of codi ***
  23773. --- *** ng regions has occurred. ***
  23774. --- ************************************************
  23775. ---
  23776. CREATE VIEW annotation_directed_improved_draft AS
  23777. SELECT
  23778. feature_id AS annotation_directed_improved_draft_id,
  23779. feature.*
  23780. FROM
  23781. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23782. WHERE cvterm.name = 'annotation_directed_improved_draft';
  23783. --- ************************************************
  23784. --- *** relation: noncontiguous_finished ***
  23785. --- *** relation type: VIEW ***
  23786. --- *** ***
  23787. --- *** The status of a whole genome sequence, w ***
  23788. --- *** here the assembly is high quality, closu ***
  23789. --- *** re approaches have been successful for m ***
  23790. --- *** ost gaps, misassemblies and low quality ***
  23791. --- *** regions. ***
  23792. --- ************************************************
  23793. ---
  23794. CREATE VIEW noncontiguous_finished AS
  23795. SELECT
  23796. feature_id AS noncontiguous_finished_id,
  23797. feature.*
  23798. FROM
  23799. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23800. WHERE cvterm.name = 'noncontiguous_finished';
  23801. --- ************************************************
  23802. --- *** relation: finished_genome ***
  23803. --- *** relation type: VIEW ***
  23804. --- *** ***
  23805. --- *** The status of a whole genome sequence, w ***
  23806. --- *** ith less than 1 error per 100,000 base p ***
  23807. --- *** airs. ***
  23808. --- ************************************************
  23809. ---
  23810. CREATE VIEW finished_genome AS
  23811. SELECT
  23812. feature_id AS finished_genome_id,
  23813. feature.*
  23814. FROM
  23815. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23816. WHERE cvterm.name = 'finished_genome';
  23817. --- ************************************************
  23818. --- *** relation: intronic_regulatory_region ***
  23819. --- *** relation type: VIEW ***
  23820. --- *** ***
  23821. --- *** A regulatory region that is part of an i ***
  23822. --- *** ntron. ***
  23823. --- ************************************************
  23824. ---
  23825. CREATE VIEW intronic_regulatory_region AS
  23826. SELECT
  23827. feature_id AS intronic_regulatory_region_id,
  23828. feature.*
  23829. FROM
  23830. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23831. WHERE cvterm.name = 'intronic_regulatory_region';
  23832. --- ************************************************
  23833. --- *** relation: centromere_dna_element_i ***
  23834. --- *** relation type: VIEW ***
  23835. --- *** ***
  23836. --- *** A centromere DNA Element I (CDEI) is a c ***
  23837. --- *** onserved region, part of the centromere, ***
  23838. --- *** consisting of a consensus region compos ***
  23839. --- *** ed of 8-11bp which enables binding by th ***
  23840. --- *** e centromere binding factor 1(Cbf1p). ***
  23841. --- ************************************************
  23842. ---
  23843. CREATE VIEW centromere_dna_element_i AS
  23844. SELECT
  23845. feature_id AS centromere_dna_element_i_id,
  23846. feature.*
  23847. FROM
  23848. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23849. WHERE cvterm.name = 'centromere_DNA_Element_I';
  23850. --- ************************************************
  23851. --- *** relation: centromere_dna_element_ii ***
  23852. --- *** relation type: VIEW ***
  23853. --- *** ***
  23854. --- *** A centromere DNA Element II (CDEII) is p ***
  23855. --- *** art a conserved region of the centromere ***
  23856. --- *** , consisting of a consensus region that ***
  23857. --- *** is AT-rich and ~ 75-100 bp in length. ***
  23858. --- ************************************************
  23859. ---
  23860. CREATE VIEW centromere_dna_element_ii AS
  23861. SELECT
  23862. feature_id AS centromere_dna_element_ii_id,
  23863. feature.*
  23864. FROM
  23865. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23866. WHERE cvterm.name = 'centromere_DNA_Element_II';
  23867. --- ************************************************
  23868. --- *** relation: centromere_dna_element_iii ***
  23869. --- *** relation type: VIEW ***
  23870. --- *** ***
  23871. --- *** A centromere DNA Element I (CDEI) is a c ***
  23872. --- *** onserved region, part of the centromere, ***
  23873. --- *** consisting of a consensus region that c ***
  23874. --- *** onsists of a 25-bp which enables binding ***
  23875. --- *** by the centromere DNA binding factor 3 ***
  23876. --- *** (CBF3) complex. ***
  23877. --- ************************************************
  23878. ---
  23879. CREATE VIEW centromere_dna_element_iii AS
  23880. SELECT
  23881. feature_id AS centromere_dna_element_iii_id,
  23882. feature.*
  23883. FROM
  23884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23885. WHERE cvterm.name = 'centromere_DNA_Element_III';
  23886. --- ************************************************
  23887. --- *** relation: telomeric_repeat ***
  23888. --- *** relation type: VIEW ***
  23889. --- *** ***
  23890. --- *** The telomeric repeat is a repeat region, ***
  23891. --- *** part of the chromosome, which in yeast, ***
  23892. --- *** is a G-rich terminal sequence of the fo ***
  23893. --- *** rm (TG(1-3))n or more precisely ((TG)(1- ***
  23894. --- *** 6)TG(2-3))n. ***
  23895. --- ************************************************
  23896. ---
  23897. CREATE VIEW telomeric_repeat AS
  23898. SELECT
  23899. feature_id AS telomeric_repeat_id,
  23900. feature.*
  23901. FROM
  23902. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23903. WHERE cvterm.name = 'telomeric_repeat';
  23904. --- ************************************************
  23905. --- *** relation: x_element ***
  23906. --- *** relation type: VIEW ***
  23907. --- *** ***
  23908. --- *** The X element is a conserved region, of ***
  23909. --- *** the telomere, of ~475 bp that contains a ***
  23910. --- *** n ARS sequence and in most cases an Abf1 ***
  23911. --- *** p binding site. ***
  23912. --- ************************************************
  23913. ---
  23914. CREATE VIEW x_element AS
  23915. SELECT
  23916. feature_id AS x_element_id,
  23917. feature.*
  23918. FROM
  23919. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23920. WHERE cvterm.name = 'X_element';
  23921. --- ************************************************
  23922. --- *** relation: yac_end ***
  23923. --- *** relation type: VIEW ***
  23924. --- *** ***
  23925. --- *** A region of sequence from the end of a Y ***
  23926. --- *** AC clone that may provide a highly speci ***
  23927. --- *** fic marker. ***
  23928. --- ************************************************
  23929. ---
  23930. CREATE VIEW yac_end AS
  23931. SELECT
  23932. feature_id AS yac_end_id,
  23933. feature.*
  23934. FROM
  23935. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23936. WHERE cvterm.name = 'YAC_end';
  23937. --- ************************************************
  23938. --- *** relation: whole_genome_sequence_status ***
  23939. --- *** relation type: VIEW ***
  23940. --- *** ***
  23941. --- *** The status of whole genome sequence. ***
  23942. --- ************************************************
  23943. ---
  23944. CREATE VIEW whole_genome_sequence_status AS
  23945. SELECT
  23946. feature_id AS whole_genome_sequence_status_id,
  23947. feature.*
  23948. FROM
  23949. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23950. 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';
  23951. --- ************************************************
  23952. --- *** relation: heritable_phenotypic_marker ***
  23953. --- *** relation type: VIEW ***
  23954. --- *** ***
  23955. --- *** A biological_region characterized as a s ***
  23956. --- *** ingle heritable trait in a phenotype scr ***
  23957. --- *** een. The heritable phenotype may be mapp ***
  23958. --- *** ed to a chromosome but generally has not ***
  23959. --- *** been characterized to a specific gene l ***
  23960. --- *** ocus. ***
  23961. --- ************************************************
  23962. ---
  23963. CREATE VIEW heritable_phenotypic_marker AS
  23964. SELECT
  23965. feature_id AS heritable_phenotypic_marker_id,
  23966. feature.*
  23967. FROM
  23968. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23969. WHERE cvterm.name = 'heritable_phenotypic_marker';
  23970. --- ************************************************
  23971. --- *** relation: peptide_collection ***
  23972. --- *** relation type: VIEW ***
  23973. --- *** ***
  23974. --- *** A collection of peptide sequences. ***
  23975. --- ************************************************
  23976. ---
  23977. CREATE VIEW peptide_collection AS
  23978. SELECT
  23979. feature_id AS peptide_collection_id,
  23980. feature.*
  23981. FROM
  23982. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23983. WHERE cvterm.name = 'peptide_collection';
  23984. --- ************************************************
  23985. --- *** relation: high_identity_region ***
  23986. --- *** relation type: VIEW ***
  23987. --- *** ***
  23988. --- *** An experimental feature with high sequen ***
  23989. --- *** ce identity to another sequence. ***
  23990. --- ************************************************
  23991. ---
  23992. CREATE VIEW high_identity_region AS
  23993. SELECT
  23994. feature_id AS high_identity_region_id,
  23995. feature.*
  23996. FROM
  23997. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  23998. WHERE cvterm.name = 'high_identity_region';
  23999. --- ************************************************
  24000. --- *** relation: processed_transcript ***
  24001. --- *** relation type: VIEW ***
  24002. --- *** ***
  24003. --- *** A transcript for which no open reading f ***
  24004. --- *** rame has been identified and for which n ***
  24005. --- *** o other function has been determined. ***
  24006. --- ************************************************
  24007. ---
  24008. CREATE VIEW processed_transcript AS
  24009. SELECT
  24010. feature_id AS processed_transcript_id,
  24011. feature.*
  24012. FROM
  24013. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24014. WHERE cvterm.name = 'processed_transcript';
  24015. --- ************************************************
  24016. --- *** relation: assortment_derived_variation ***
  24017. --- *** relation type: VIEW ***
  24018. --- *** ***
  24019. --- *** A chromosome variation derived from an e ***
  24020. --- *** vent during meiosis. ***
  24021. --- ************************************************
  24022. ---
  24023. CREATE VIEW assortment_derived_variation AS
  24024. SELECT
  24025. feature_id AS assortment_derived_variation_id,
  24026. feature.*
  24027. FROM
  24028. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24029. 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';
  24030. --- ************************************************
  24031. --- *** relation: reference_genome ***
  24032. --- *** relation type: VIEW ***
  24033. --- *** ***
  24034. --- *** A collection of sequences (often chromos ***
  24035. --- *** omes) taken as the standard for a given ***
  24036. --- *** organism and genome assembly. ***
  24037. --- ************************************************
  24038. ---
  24039. CREATE VIEW reference_genome AS
  24040. SELECT
  24041. feature_id AS reference_genome_id,
  24042. feature.*
  24043. FROM
  24044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24045. WHERE cvterm.name = 'reference_genome';
  24046. --- ************************************************
  24047. --- *** relation: variant_genome ***
  24048. --- *** relation type: VIEW ***
  24049. --- *** ***
  24050. --- *** A collection of sequences (often chromos ***
  24051. --- *** omes) of an individual. ***
  24052. --- ************************************************
  24053. ---
  24054. CREATE VIEW variant_genome AS
  24055. SELECT
  24056. feature_id AS variant_genome_id,
  24057. feature.*
  24058. FROM
  24059. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24060. WHERE cvterm.name = 'chromosomally_aberrant_genome' OR cvterm.name = 'variant_genome';
  24061. --- ************************************************
  24062. --- *** relation: variant_collection ***
  24063. --- *** relation type: VIEW ***
  24064. --- *** ***
  24065. --- *** A collection of one or more sequences of ***
  24066. --- *** an individual. ***
  24067. --- ************************************************
  24068. ---
  24069. CREATE VIEW variant_collection AS
  24070. SELECT
  24071. feature_id AS variant_collection_id,
  24072. feature.*
  24073. FROM
  24074. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24075. 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';
  24076. --- ************************************************
  24077. --- *** relation: alteration_attribute ***
  24078. --- *** relation type: VIEW ***
  24079. --- *** ***
  24080. --- ************************************************
  24081. ---
  24082. CREATE VIEW alteration_attribute AS
  24083. SELECT
  24084. feature_id AS alteration_attribute_id,
  24085. feature.*
  24086. FROM
  24087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24088. 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';
  24089. --- ************************************************
  24090. --- *** relation: chromosomal_variation_attribute ***
  24091. --- *** relation type: VIEW ***
  24092. --- *** ***
  24093. --- ************************************************
  24094. ---
  24095. CREATE VIEW chromosomal_variation_attribute AS
  24096. SELECT
  24097. feature_id AS chromosomal_variation_attribute_id,
  24098. feature.*
  24099. FROM
  24100. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24101. WHERE cvterm.name = 'intrachromosomal' OR cvterm.name = 'interchromosomal' OR cvterm.name = 'chromosomal_variation_attribute';
  24102. --- ************************************************
  24103. --- *** relation: intrachromosomal ***
  24104. --- *** relation type: VIEW ***
  24105. --- *** ***
  24106. --- ************************************************
  24107. ---
  24108. CREATE VIEW intrachromosomal AS
  24109. SELECT
  24110. feature_id AS intrachromosomal_id,
  24111. feature.*
  24112. FROM
  24113. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24114. WHERE cvterm.name = 'intrachromosomal';
  24115. --- ************************************************
  24116. --- *** relation: interchromosomal ***
  24117. --- *** relation type: VIEW ***
  24118. --- *** ***
  24119. --- ************************************************
  24120. ---
  24121. CREATE VIEW interchromosomal AS
  24122. SELECT
  24123. feature_id AS interchromosomal_id,
  24124. feature.*
  24125. FROM
  24126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24127. WHERE cvterm.name = 'interchromosomal';
  24128. --- ************************************************
  24129. --- *** relation: insertion_attribute ***
  24130. --- *** relation type: VIEW ***
  24131. --- *** ***
  24132. --- *** A quality of a chromosomal insertion,. ***
  24133. --- ************************************************
  24134. ---
  24135. CREATE VIEW insertion_attribute AS
  24136. SELECT
  24137. feature_id AS insertion_attribute_id,
  24138. feature.*
  24139. FROM
  24140. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24141. WHERE cvterm.name = 'tandem' OR cvterm.name = 'direct' OR cvterm.name = 'inverted' OR cvterm.name = 'insertion_attribute';
  24142. --- ************************************************
  24143. --- *** relation: tandem ***
  24144. --- *** relation type: VIEW ***
  24145. --- *** ***
  24146. --- ************************************************
  24147. ---
  24148. CREATE VIEW tandem AS
  24149. SELECT
  24150. feature_id AS tandem_id,
  24151. feature.*
  24152. FROM
  24153. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24154. WHERE cvterm.name = 'tandem';
  24155. --- ************************************************
  24156. --- *** relation: direct ***
  24157. --- *** relation type: VIEW ***
  24158. --- *** ***
  24159. --- *** A quality of an insertion where the inse ***
  24160. --- *** rt is not in a cytologically inverted or ***
  24161. --- *** ientation. ***
  24162. --- ************************************************
  24163. ---
  24164. CREATE VIEW direct AS
  24165. SELECT
  24166. feature_id AS direct_id,
  24167. feature.*
  24168. FROM
  24169. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24170. WHERE cvterm.name = 'direct';
  24171. --- ************************************************
  24172. --- *** relation: inverted ***
  24173. --- *** relation type: VIEW ***
  24174. --- *** ***
  24175. --- *** A quality of an insertion where the inse ***
  24176. --- *** rt is in a cytologically inverted orient ***
  24177. --- *** ation. ***
  24178. --- ************************************************
  24179. ---
  24180. CREATE VIEW inverted AS
  24181. SELECT
  24182. feature_id AS inverted_id,
  24183. feature.*
  24184. FROM
  24185. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24186. WHERE cvterm.name = 'inverted';
  24187. --- ************************************************
  24188. --- *** relation: free ***
  24189. --- *** relation type: VIEW ***
  24190. --- *** ***
  24191. --- *** The quality of a duplication where the n ***
  24192. --- *** ew region exists independently of the or ***
  24193. --- *** iginal. ***
  24194. --- ************************************************
  24195. ---
  24196. CREATE VIEW free AS
  24197. SELECT
  24198. feature_id AS free_id,
  24199. feature.*
  24200. FROM
  24201. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24202. WHERE cvterm.name = 'free';
  24203. --- ************************************************
  24204. --- *** relation: inversion_attribute ***
  24205. --- *** relation type: VIEW ***
  24206. --- *** ***
  24207. --- ************************************************
  24208. ---
  24209. CREATE VIEW inversion_attribute AS
  24210. SELECT
  24211. feature_id AS inversion_attribute_id,
  24212. feature.*
  24213. FROM
  24214. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24215. WHERE cvterm.name = 'pericentric' OR cvterm.name = 'paracentric' OR cvterm.name = 'inversion_attribute';
  24216. --- ************************************************
  24217. --- *** relation: pericentric ***
  24218. --- *** relation type: VIEW ***
  24219. --- *** ***
  24220. --- ************************************************
  24221. ---
  24222. CREATE VIEW pericentric AS
  24223. SELECT
  24224. feature_id AS pericentric_id,
  24225. feature.*
  24226. FROM
  24227. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24228. WHERE cvterm.name = 'pericentric';
  24229. --- ************************************************
  24230. --- *** relation: paracentric ***
  24231. --- *** relation type: VIEW ***
  24232. --- *** ***
  24233. --- ************************************************
  24234. ---
  24235. CREATE VIEW paracentric AS
  24236. SELECT
  24237. feature_id AS paracentric_id,
  24238. feature.*
  24239. FROM
  24240. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24241. WHERE cvterm.name = 'paracentric';
  24242. --- ************************************************
  24243. --- *** relation: translocaton_attribute ***
  24244. --- *** relation type: VIEW ***
  24245. --- *** ***
  24246. --- ************************************************
  24247. ---
  24248. CREATE VIEW translocaton_attribute AS
  24249. SELECT
  24250. feature_id AS translocaton_attribute_id,
  24251. feature.*
  24252. FROM
  24253. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24254. WHERE cvterm.name = 'reciprocal' OR cvterm.name = 'insertional' OR cvterm.name = 'translocaton_attribute';
  24255. --- ************************************************
  24256. --- *** relation: reciprocal ***
  24257. --- *** relation type: VIEW ***
  24258. --- *** ***
  24259. --- ************************************************
  24260. ---
  24261. CREATE VIEW reciprocal AS
  24262. SELECT
  24263. feature_id AS reciprocal_id,
  24264. feature.*
  24265. FROM
  24266. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24267. WHERE cvterm.name = 'reciprocal';
  24268. --- ************************************************
  24269. --- *** relation: insertional ***
  24270. --- *** relation type: VIEW ***
  24271. --- *** ***
  24272. --- ************************************************
  24273. ---
  24274. CREATE VIEW insertional AS
  24275. SELECT
  24276. feature_id AS insertional_id,
  24277. feature.*
  24278. FROM
  24279. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24280. WHERE cvterm.name = 'insertional';
  24281. --- ************************************************
  24282. --- *** relation: duplication_attribute ***
  24283. --- *** relation type: VIEW ***
  24284. --- *** ***
  24285. --- ************************************************
  24286. ---
  24287. CREATE VIEW duplication_attribute AS
  24288. SELECT
  24289. feature_id AS duplication_attribute_id,
  24290. feature.*
  24291. FROM
  24292. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24293. WHERE cvterm.name = 'free' OR cvterm.name = 'duplication_attribute';
  24294. --- ************************************************
  24295. --- *** relation: chromosomally_aberrant_genome ***
  24296. --- *** relation type: VIEW ***
  24297. --- *** ***
  24298. --- ************************************************
  24299. ---
  24300. CREATE VIEW chromosomally_aberrant_genome AS
  24301. SELECT
  24302. feature_id AS chromosomally_aberrant_genome_id,
  24303. feature.*
  24304. FROM
  24305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24306. WHERE cvterm.name = 'chromosomally_aberrant_genome';
  24307. --- ************************************************
  24308. --- *** relation: assembly_error_correction ***
  24309. --- *** relation type: VIEW ***
  24310. --- *** ***
  24311. --- *** A region of sequence where the final nuc ***
  24312. --- *** leotide assignment differs from the orig ***
  24313. --- *** inal assembly due to an improvement that ***
  24314. --- *** replaces a mistake. ***
  24315. --- ************************************************
  24316. ---
  24317. CREATE VIEW assembly_error_correction AS
  24318. SELECT
  24319. feature_id AS assembly_error_correction_id,
  24320. feature.*
  24321. FROM
  24322. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24323. WHERE cvterm.name = 'assembly_error_correction';
  24324. --- ************************************************
  24325. --- *** relation: base_call_error_correction ***
  24326. --- *** relation type: VIEW ***
  24327. --- *** ***
  24328. --- *** A region of sequence where the final nuc ***
  24329. --- *** leotide assignment is different from tha ***
  24330. --- *** t given by the base caller due to an imp ***
  24331. --- *** rovement that replaces a mistake. ***
  24332. --- ************************************************
  24333. ---
  24334. CREATE VIEW base_call_error_correction AS
  24335. SELECT
  24336. feature_id AS base_call_error_correction_id,
  24337. feature.*
  24338. FROM
  24339. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24340. WHERE cvterm.name = 'base_call_error_correction';
  24341. --- ************************************************
  24342. --- *** relation: peptide_localization_signal ***
  24343. --- *** relation type: VIEW ***
  24344. --- *** ***
  24345. --- *** A region of peptide sequence used to tar ***
  24346. --- *** get the polypeptide molecule to a specif ***
  24347. --- *** ic organelle. ***
  24348. --- ************************************************
  24349. ---
  24350. CREATE VIEW peptide_localization_signal AS
  24351. SELECT
  24352. feature_id AS peptide_localization_signal_id,
  24353. feature.*
  24354. FROM
  24355. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24356. 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';
  24357. --- ************************************************
  24358. --- *** relation: nuclear_localization_signal ***
  24359. --- *** relation type: VIEW ***
  24360. --- *** ***
  24361. --- *** A polypeptide region that targets a poly ***
  24362. --- *** peptide to the nucleus. ***
  24363. --- ************************************************
  24364. ---
  24365. CREATE VIEW nuclear_localization_signal AS
  24366. SELECT
  24367. feature_id AS nuclear_localization_signal_id,
  24368. feature.*
  24369. FROM
  24370. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24371. WHERE cvterm.name = 'nuclear_localization_signal';
  24372. --- ************************************************
  24373. --- *** relation: endosomal_localization_signal ***
  24374. --- *** relation type: VIEW ***
  24375. --- *** ***
  24376. --- *** A polypeptide region that targets a poly ***
  24377. --- *** peptide to the endosome. ***
  24378. --- ************************************************
  24379. ---
  24380. CREATE VIEW endosomal_localization_signal AS
  24381. SELECT
  24382. feature_id AS endosomal_localization_signal_id,
  24383. feature.*
  24384. FROM
  24385. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24386. WHERE cvterm.name = 'endosomal_localization_signal';
  24387. --- ************************************************
  24388. --- *** relation: lysosomal_localization_signal ***
  24389. --- *** relation type: VIEW ***
  24390. --- *** ***
  24391. --- *** A polypeptide region that targets a poly ***
  24392. --- *** peptide to the lysosome. ***
  24393. --- ************************************************
  24394. ---
  24395. CREATE VIEW lysosomal_localization_signal AS
  24396. SELECT
  24397. feature_id AS lysosomal_localization_signal_id,
  24398. feature.*
  24399. FROM
  24400. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24401. WHERE cvterm.name = 'lysosomal_localization_signal';
  24402. --- ************************************************
  24403. --- *** relation: nuclear_export_signal ***
  24404. --- *** relation type: VIEW ***
  24405. --- *** ***
  24406. --- *** A polypeptide region that targets a poly ***
  24407. --- *** peptide to he cytoplasm. ***
  24408. --- ************************************************
  24409. ---
  24410. CREATE VIEW nuclear_export_signal AS
  24411. SELECT
  24412. feature_id AS nuclear_export_signal_id,
  24413. feature.*
  24414. FROM
  24415. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24416. WHERE cvterm.name = 'nuclear_export_signal';
  24417. --- ************************************************
  24418. --- *** relation: recombination_signal_sequence ***
  24419. --- *** relation type: VIEW ***
  24420. --- *** ***
  24421. --- *** A region recognized by a recombinase. ***
  24422. --- ************************************************
  24423. ---
  24424. CREATE VIEW recombination_signal_sequence AS
  24425. SELECT
  24426. feature_id AS recombination_signal_sequence_id,
  24427. feature.*
  24428. FROM
  24429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24430. WHERE cvterm.name = 'recombination_signal_sequence';
  24431. --- ************************************************
  24432. --- *** relation: cryptic_splice_site ***
  24433. --- *** relation type: VIEW ***
  24434. --- *** ***
  24435. --- *** A splice site that is in part of the tra ***
  24436. --- *** nscript not normally spliced. They occur ***
  24437. --- *** via mutation or transcriptional error. ***
  24438. --- ************************************************
  24439. ---
  24440. CREATE VIEW cryptic_splice_site AS
  24441. SELECT
  24442. feature_id AS cryptic_splice_site_id,
  24443. feature.*
  24444. FROM
  24445. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24446. WHERE cvterm.name = 'cryptic_splice_site';
  24447. --- ************************************************
  24448. --- *** relation: nuclear_rim_localization_signal ***
  24449. --- *** relation type: VIEW ***
  24450. --- *** ***
  24451. --- *** A polypeptide region that targets a poly ***
  24452. --- *** peptide to the nuclear rim. ***
  24453. --- ************************************************
  24454. ---
  24455. CREATE VIEW nuclear_rim_localization_signal AS
  24456. SELECT
  24457. feature_id AS nuclear_rim_localization_signal_id,
  24458. feature.*
  24459. FROM
  24460. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24461. WHERE cvterm.name = 'nuclear_rim_localization_signal';
  24462. --- ************************************************
  24463. --- *** relation: p_element ***
  24464. --- *** relation type: VIEW ***
  24465. --- *** ***
  24466. --- *** A P_element is a DNA transposon responsi ***
  24467. --- *** ble for hybrid dysgenesis. ***
  24468. --- ************************************************
  24469. ---
  24470. CREATE VIEW p_element AS
  24471. SELECT
  24472. feature_id AS p_element_id,
  24473. feature.*
  24474. FROM
  24475. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24476. WHERE cvterm.name = 'p_element';
  24477. --- ************************************************
  24478. --- *** relation: functional_variant ***
  24479. --- *** relation type: VIEW ***
  24480. --- *** ***
  24481. --- *** A sequence variant in which the function ***
  24482. --- *** of a gene product is altered with respe ***
  24483. --- *** ct to a reference. ***
  24484. --- ************************************************
  24485. ---
  24486. CREATE VIEW functional_variant AS
  24487. SELECT
  24488. feature_id AS functional_variant_id,
  24489. feature.*
  24490. FROM
  24491. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24492. 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';
  24493. --- ************************************************
  24494. --- *** relation: structural_variant ***
  24495. --- *** relation type: VIEW ***
  24496. --- *** ***
  24497. --- *** A sequence variant that changes one or m ***
  24498. --- *** ore sequence features. ***
  24499. --- ************************************************
  24500. ---
  24501. CREATE VIEW structural_variant AS
  24502. SELECT
  24503. feature_id AS structural_variant_id,
  24504. feature.*
  24505. FROM
  24506. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24507. 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';
  24508. --- ************************************************
  24509. --- *** relation: transcript_function_variant ***
  24510. --- *** relation type: VIEW ***
  24511. --- *** ***
  24512. --- *** A sequence variant which alters the func ***
  24513. --- *** tioning of a transcript with respect to ***
  24514. --- *** a reference sequence. ***
  24515. --- ************************************************
  24516. ---
  24517. CREATE VIEW transcript_function_variant AS
  24518. SELECT
  24519. feature_id AS transcript_function_variant_id,
  24520. feature.*
  24521. FROM
  24522. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24523. 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';
  24524. --- ************************************************
  24525. --- *** relation: translational_product_function_variant ***
  24526. --- *** relation type: VIEW ***
  24527. --- *** ***
  24528. --- *** A sequence variant that affects the func ***
  24529. --- *** tioning of a translational product with ***
  24530. --- *** respect to a reference sequence. ***
  24531. --- ************************************************
  24532. ---
  24533. CREATE VIEW translational_product_function_variant AS
  24534. SELECT
  24535. feature_id AS translational_product_function_variant_id,
  24536. feature.*
  24537. FROM
  24538. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24539. 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';
  24540. --- ************************************************
  24541. --- *** relation: level_of_transcript_variant ***
  24542. --- *** relation type: VIEW ***
  24543. --- *** ***
  24544. --- *** A sequence variant which alters the leve ***
  24545. --- *** l of a transcript. ***
  24546. --- ************************************************
  24547. ---
  24548. CREATE VIEW level_of_transcript_variant AS
  24549. SELECT
  24550. feature_id AS level_of_transcript_variant_id,
  24551. feature.*
  24552. FROM
  24553. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24554. WHERE cvterm.name = 'decreased_transcript_level_variant' OR cvterm.name = 'increased_transcript_level_variant' OR cvterm.name = 'level_of_transcript_variant';
  24555. --- ************************************************
  24556. --- *** relation: decreased_transcript_level_variant ***
  24557. --- *** relation type: VIEW ***
  24558. --- *** ***
  24559. --- *** A sequence variant that increases the le ***
  24560. --- *** vel of mature, spliced and processed RNA ***
  24561. --- *** with respect to a reference sequence. ***
  24562. --- ************************************************
  24563. ---
  24564. CREATE VIEW decreased_transcript_level_variant AS
  24565. SELECT
  24566. feature_id AS decreased_transcript_level_variant_id,
  24567. feature.*
  24568. FROM
  24569. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24570. WHERE cvterm.name = 'decreased_transcript_level_variant';
  24571. --- ************************************************
  24572. --- *** relation: increased_transcript_level_variant ***
  24573. --- *** relation type: VIEW ***
  24574. --- *** ***
  24575. --- *** A sequence variant that increases the le ***
  24576. --- *** vel of mature, spliced and processed RNA ***
  24577. --- *** with respect to a reference sequence. ***
  24578. --- ************************************************
  24579. ---
  24580. CREATE VIEW increased_transcript_level_variant AS
  24581. SELECT
  24582. feature_id AS increased_transcript_level_variant_id,
  24583. feature.*
  24584. FROM
  24585. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24586. WHERE cvterm.name = 'increased_transcript_level_variant';
  24587. --- ************************************************
  24588. --- *** relation: transcript_processing_variant ***
  24589. --- *** relation type: VIEW ***
  24590. --- *** ***
  24591. --- *** A sequence variant that affects the post ***
  24592. --- *** transcriptional processing of a transcr ***
  24593. --- *** ipt with respect to a reference sequence ***
  24594. --- *** . ***
  24595. --- ************************************************
  24596. ---
  24597. CREATE VIEW transcript_processing_variant AS
  24598. SELECT
  24599. feature_id AS transcript_processing_variant_id,
  24600. feature.*
  24601. FROM
  24602. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24603. 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';
  24604. --- ************************************************
  24605. --- *** relation: editing_variant ***
  24606. --- *** relation type: VIEW ***
  24607. --- *** ***
  24608. --- *** A transcript processing variant whereby ***
  24609. --- *** the process of editing is disrupted with ***
  24610. --- *** respect to the reference. ***
  24611. --- ************************************************
  24612. ---
  24613. CREATE VIEW editing_variant AS
  24614. SELECT
  24615. feature_id AS editing_variant_id,
  24616. feature.*
  24617. FROM
  24618. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24619. WHERE cvterm.name = 'editing_variant';
  24620. --- ************************************************
  24621. --- *** relation: polyadenylation_variant ***
  24622. --- *** relation type: VIEW ***
  24623. --- *** ***
  24624. --- *** A sequence variant that changes polyaden ***
  24625. --- *** ylation with respect to a reference sequ ***
  24626. --- *** ence. ***
  24627. --- ************************************************
  24628. ---
  24629. CREATE VIEW polyadenylation_variant AS
  24630. SELECT
  24631. feature_id AS polyadenylation_variant_id,
  24632. feature.*
  24633. FROM
  24634. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24635. WHERE cvterm.name = 'increased_polyadenylation_variant' OR cvterm.name = 'decreased_polyadenylation_variant' OR cvterm.name = 'polyadenylation_variant';
  24636. --- ************************************************
  24637. --- *** relation: transcript_stability_variant ***
  24638. --- *** relation type: VIEW ***
  24639. --- *** ***
  24640. --- *** A variant that changes the stability of ***
  24641. --- *** a transcript with respect to a reference ***
  24642. --- *** sequence. ***
  24643. --- ************************************************
  24644. ---
  24645. CREATE VIEW transcript_stability_variant AS
  24646. SELECT
  24647. feature_id AS transcript_stability_variant_id,
  24648. feature.*
  24649. FROM
  24650. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24651. WHERE cvterm.name = 'decreased_transcript_stability_variant' OR cvterm.name = 'increased_transcript_stability_variant' OR cvterm.name = 'transcript_stability_variant';
  24652. --- ************************************************
  24653. --- *** relation: decreased_transcript_stability_variant ***
  24654. --- *** relation type: VIEW ***
  24655. --- *** ***
  24656. --- *** A sequence variant that decreases transc ***
  24657. --- *** ript stability with respect to a referen ***
  24658. --- *** ce sequence. ***
  24659. --- ************************************************
  24660. ---
  24661. CREATE VIEW decreased_transcript_stability_variant AS
  24662. SELECT
  24663. feature_id AS decreased_transcript_stability_variant_id,
  24664. feature.*
  24665. FROM
  24666. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24667. WHERE cvterm.name = 'decreased_transcript_stability_variant';
  24668. --- ************************************************
  24669. --- *** relation: increased_transcript_stability_variant ***
  24670. --- *** relation type: VIEW ***
  24671. --- *** ***
  24672. --- *** A sequence variant that increases transc ***
  24673. --- *** ript stability with respect to a referen ***
  24674. --- *** ce sequence. ***
  24675. --- ************************************************
  24676. ---
  24677. CREATE VIEW increased_transcript_stability_variant AS
  24678. SELECT
  24679. feature_id AS increased_transcript_stability_variant_id,
  24680. feature.*
  24681. FROM
  24682. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24683. WHERE cvterm.name = 'increased_transcript_stability_variant';
  24684. --- ************************************************
  24685. --- *** relation: transcription_variant ***
  24686. --- *** relation type: VIEW ***
  24687. --- *** ***
  24688. --- *** A variant that changes alters the transc ***
  24689. --- *** ription of a transcript with respect to ***
  24690. --- *** a reference sequence. ***
  24691. --- ************************************************
  24692. ---
  24693. CREATE VIEW transcription_variant AS
  24694. SELECT
  24695. feature_id AS transcription_variant_id,
  24696. feature.*
  24697. FROM
  24698. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24699. 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';
  24700. --- ************************************************
  24701. --- *** relation: rate_of_transcription_variant ***
  24702. --- *** relation type: VIEW ***
  24703. --- *** ***
  24704. --- *** A sequence variant that changes the rate ***
  24705. --- *** of transcription with respect to a refe ***
  24706. --- *** rence sequence. ***
  24707. --- ************************************************
  24708. ---
  24709. CREATE VIEW rate_of_transcription_variant AS
  24710. SELECT
  24711. feature_id AS rate_of_transcription_variant_id,
  24712. feature.*
  24713. FROM
  24714. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24715. WHERE cvterm.name = 'increased_transcription_rate_variant' OR cvterm.name = 'decreased_transcription_rate_variant' OR cvterm.name = 'rate_of_transcription_variant';
  24716. --- ************************************************
  24717. --- *** relation: increased_transcription_rate_variant ***
  24718. --- *** relation type: VIEW ***
  24719. --- *** ***
  24720. --- *** A sequence variant that increases the ra ***
  24721. --- *** te of transcription with respect to a re ***
  24722. --- *** ference sequence. ***
  24723. --- ************************************************
  24724. ---
  24725. CREATE VIEW increased_transcription_rate_variant AS
  24726. SELECT
  24727. feature_id AS increased_transcription_rate_variant_id,
  24728. feature.*
  24729. FROM
  24730. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24731. WHERE cvterm.name = 'increased_transcription_rate_variant';
  24732. --- ************************************************
  24733. --- *** relation: decreased_transcription_rate_variant ***
  24734. --- *** relation type: VIEW ***
  24735. --- *** ***
  24736. --- *** A sequence variant that decreases the ra ***
  24737. --- *** te of transcription with respect to a re ***
  24738. --- *** ference sequence. ***
  24739. --- ************************************************
  24740. ---
  24741. CREATE VIEW decreased_transcription_rate_variant AS
  24742. SELECT
  24743. feature_id AS decreased_transcription_rate_variant_id,
  24744. feature.*
  24745. FROM
  24746. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24747. WHERE cvterm.name = 'decreased_transcription_rate_variant';
  24748. --- ************************************************
  24749. --- *** relation: translational_product_level_variant ***
  24750. --- *** relation type: VIEW ***
  24751. --- *** ***
  24752. --- *** A functional variant that changes the tr ***
  24753. --- *** anslational product level with respect t ***
  24754. --- *** o a reference sequence. ***
  24755. --- ************************************************
  24756. ---
  24757. CREATE VIEW translational_product_level_variant AS
  24758. SELECT
  24759. feature_id AS translational_product_level_variant_id,
  24760. feature.*
  24761. FROM
  24762. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24763. WHERE cvterm.name = 'decreased_translational_product_level' OR cvterm.name = 'increased_translational_product_level' OR cvterm.name = 'translational_product_level_variant';
  24764. --- ************************************************
  24765. --- *** relation: polypeptide_function_variant ***
  24766. --- *** relation type: VIEW ***
  24767. --- *** ***
  24768. --- *** A sequence variant which changes polypep ***
  24769. --- *** tide functioning with respect to a refer ***
  24770. --- *** ence sequence. ***
  24771. --- ************************************************
  24772. ---
  24773. CREATE VIEW polypeptide_function_variant AS
  24774. SELECT
  24775. feature_id AS polypeptide_function_variant_id,
  24776. feature.*
  24777. FROM
  24778. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24779. 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';
  24780. --- ************************************************
  24781. --- *** relation: decreased_translational_product_level ***
  24782. --- *** relation type: VIEW ***
  24783. --- *** ***
  24784. --- *** A sequence variant which decreases the t ***
  24785. --- *** ranslational product level with respect ***
  24786. --- *** to a reference sequence. ***
  24787. --- ************************************************
  24788. ---
  24789. CREATE VIEW decreased_translational_product_level AS
  24790. SELECT
  24791. feature_id AS decreased_translational_product_level_id,
  24792. feature.*
  24793. FROM
  24794. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24795. WHERE cvterm.name = 'decreased_translational_product_level';
  24796. --- ************************************************
  24797. --- *** relation: increased_translational_product_level ***
  24798. --- *** relation type: VIEW ***
  24799. --- *** ***
  24800. --- *** A sequence variant which increases the t ***
  24801. --- *** ranslational product level with respect ***
  24802. --- *** to a reference sequence. ***
  24803. --- ************************************************
  24804. ---
  24805. CREATE VIEW increased_translational_product_level AS
  24806. SELECT
  24807. feature_id AS increased_translational_product_level_id,
  24808. feature.*
  24809. FROM
  24810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24811. WHERE cvterm.name = 'increased_translational_product_level';
  24812. --- ************************************************
  24813. --- *** relation: polypeptide_gain_of_function_variant ***
  24814. --- *** relation type: VIEW ***
  24815. --- *** ***
  24816. --- *** A sequence variant which causes gain of ***
  24817. --- *** polypeptide function with respect to a r ***
  24818. --- *** eference sequence. ***
  24819. --- ************************************************
  24820. ---
  24821. CREATE VIEW polypeptide_gain_of_function_variant AS
  24822. SELECT
  24823. feature_id AS polypeptide_gain_of_function_variant_id,
  24824. feature.*
  24825. FROM
  24826. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24827. WHERE cvterm.name = 'polypeptide_gain_of_function_variant';
  24828. --- ************************************************
  24829. --- *** relation: polypeptide_localization_variant ***
  24830. --- *** relation type: VIEW ***
  24831. --- *** ***
  24832. --- *** A sequence variant which changes the loc ***
  24833. --- *** alization of a polypeptide with respect ***
  24834. --- *** to a reference sequence. ***
  24835. --- ************************************************
  24836. ---
  24837. CREATE VIEW polypeptide_localization_variant AS
  24838. SELECT
  24839. feature_id AS polypeptide_localization_variant_id,
  24840. feature.*
  24841. FROM
  24842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24843. WHERE cvterm.name = 'polypeptide_localization_variant';
  24844. --- ************************************************
  24845. --- *** relation: polypeptide_loss_of_function_variant ***
  24846. --- *** relation type: VIEW ***
  24847. --- *** ***
  24848. --- *** A sequence variant that causes the loss ***
  24849. --- *** of a polypeptide function with respect t ***
  24850. --- *** o a reference sequence. ***
  24851. --- ************************************************
  24852. ---
  24853. CREATE VIEW polypeptide_loss_of_function_variant AS
  24854. SELECT
  24855. feature_id AS polypeptide_loss_of_function_variant_id,
  24856. feature.*
  24857. FROM
  24858. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24859. 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';
  24860. --- ************************************************
  24861. --- *** relation: inactive_ligand_binding_site ***
  24862. --- *** relation type: VIEW ***
  24863. --- *** ***
  24864. --- *** A sequence variant that causes the inact ***
  24865. --- *** ivation of a ligand binding site with re ***
  24866. --- *** spect to a reference sequence. ***
  24867. --- ************************************************
  24868. ---
  24869. CREATE VIEW inactive_ligand_binding_site AS
  24870. SELECT
  24871. feature_id AS inactive_ligand_binding_site_id,
  24872. feature.*
  24873. FROM
  24874. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24875. WHERE cvterm.name = 'inactive_catalytic_site' OR cvterm.name = 'inactive_ligand_binding_site';
  24876. --- ************************************************
  24877. --- *** relation: polypeptide_partial_loss_of_function ***
  24878. --- *** relation type: VIEW ***
  24879. --- *** ***
  24880. --- *** A sequence variant that causes some but ***
  24881. --- *** not all loss of polypeptide function wit ***
  24882. --- *** h respect to a reference sequence. ***
  24883. --- ************************************************
  24884. ---
  24885. CREATE VIEW polypeptide_partial_loss_of_function AS
  24886. SELECT
  24887. feature_id AS polypeptide_partial_loss_of_function_id,
  24888. feature.*
  24889. FROM
  24890. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24891. WHERE cvterm.name = 'polypeptide_partial_loss_of_function';
  24892. --- ************************************************
  24893. --- *** relation: polypeptide_post_translational_processing_variant ***
  24894. --- *** relation type: VIEW ***
  24895. --- *** ***
  24896. --- *** A sequence variant that causes a change ***
  24897. --- *** in post translational processing of the ***
  24898. --- *** peptide with respect to a reference sequ ***
  24899. --- *** ence. ***
  24900. --- ************************************************
  24901. ---
  24902. CREATE VIEW polypeptide_post_translational_processing_variant AS
  24903. SELECT
  24904. feature_id AS polypeptide_post_translational_processing_variant_id,
  24905. feature.*
  24906. FROM
  24907. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24908. WHERE cvterm.name = 'polypeptide_post_translational_processing_variant';
  24909. --- ************************************************
  24910. --- *** relation: copy_number_change ***
  24911. --- *** relation type: VIEW ***
  24912. --- *** ***
  24913. --- *** A sequence variant where copies of a fea ***
  24914. --- *** ture (CNV) are either increased or decre ***
  24915. --- *** ased. ***
  24916. --- ************************************************
  24917. ---
  24918. CREATE VIEW copy_number_change AS
  24919. SELECT
  24920. feature_id AS copy_number_change_id,
  24921. feature.*
  24922. FROM
  24923. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24924. WHERE cvterm.name = 'copy_number_change';
  24925. --- ************************************************
  24926. --- *** relation: gene_variant ***
  24927. --- *** relation type: VIEW ***
  24928. --- *** ***
  24929. --- *** A sequence variant where the structure o ***
  24930. --- *** f the gene is changed. ***
  24931. --- ************************************************
  24932. ---
  24933. CREATE VIEW gene_variant AS
  24934. SELECT
  24935. feature_id AS gene_variant_id,
  24936. feature.*
  24937. FROM
  24938. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24939. 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';
  24940. --- ************************************************
  24941. --- *** relation: gene_fusion ***
  24942. --- *** relation type: VIEW ***
  24943. --- *** ***
  24944. --- *** A sequence variant whereby a two genes h ***
  24945. --- *** ave become joined. ***
  24946. --- ************************************************
  24947. ---
  24948. CREATE VIEW gene_fusion AS
  24949. SELECT
  24950. feature_id AS gene_fusion_id,
  24951. feature.*
  24952. FROM
  24953. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24954. WHERE cvterm.name = 'gene_fusion';
  24955. --- ************************************************
  24956. --- *** relation: regulatory_region_variant ***
  24957. --- *** relation type: VIEW ***
  24958. --- *** ***
  24959. --- *** A sequence variant located within a regu ***
  24960. --- *** latory region. ***
  24961. --- ************************************************
  24962. ---
  24963. CREATE VIEW regulatory_region_variant AS
  24964. SELECT
  24965. feature_id AS regulatory_region_variant_id,
  24966. feature.*
  24967. FROM
  24968. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24969. WHERE cvterm.name = 'TF_binding_site_variant' OR cvterm.name = 'regulatory_region_variant';
  24970. --- ************************************************
  24971. --- *** relation: stop_retained_variant ***
  24972. --- *** relation type: VIEW ***
  24973. --- *** ***
  24974. --- *** A sequence variant where at least one ba ***
  24975. --- *** se in the terminator codon is changed, b ***
  24976. --- *** ut the terminator remains. ***
  24977. --- ************************************************
  24978. ---
  24979. CREATE VIEW stop_retained_variant AS
  24980. SELECT
  24981. feature_id AS stop_retained_variant_id,
  24982. feature.*
  24983. FROM
  24984. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  24985. WHERE cvterm.name = 'stop_retained_variant';
  24986. --- ************************************************
  24987. --- *** relation: splicing_variant ***
  24988. --- *** relation type: VIEW ***
  24989. --- *** ***
  24990. --- *** A sequence variant that changes the proc ***
  24991. --- *** ess of splicing. ***
  24992. --- ************************************************
  24993. ---
  24994. CREATE VIEW splicing_variant AS
  24995. SELECT
  24996. feature_id AS splicing_variant_id,
  24997. feature.*
  24998. FROM
  24999. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25000. 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';
  25001. --- ************************************************
  25002. --- *** relation: cryptic_splice_site_variant ***
  25003. --- *** relation type: VIEW ***
  25004. --- *** ***
  25005. --- *** A sequence variant causing a new (functi ***
  25006. --- *** onal) splice site. ***
  25007. --- ************************************************
  25008. ---
  25009. CREATE VIEW cryptic_splice_site_variant AS
  25010. SELECT
  25011. feature_id AS cryptic_splice_site_variant_id,
  25012. feature.*
  25013. FROM
  25014. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25015. WHERE cvterm.name = 'cryptic_splice_acceptor' OR cvterm.name = 'cryptic_splice_donor' OR cvterm.name = 'cryptic_splice_site_variant';
  25016. --- ************************************************
  25017. --- *** relation: cryptic_splice_acceptor ***
  25018. --- *** relation type: VIEW ***
  25019. --- *** ***
  25020. --- *** A sequence variant whereby a new splice ***
  25021. --- *** site is created due to the activation of ***
  25022. --- *** a new acceptor. ***
  25023. --- ************************************************
  25024. ---
  25025. CREATE VIEW cryptic_splice_acceptor AS
  25026. SELECT
  25027. feature_id AS cryptic_splice_acceptor_id,
  25028. feature.*
  25029. FROM
  25030. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25031. WHERE cvterm.name = 'cryptic_splice_acceptor';
  25032. --- ************************************************
  25033. --- *** relation: cryptic_splice_donor ***
  25034. --- *** relation type: VIEW ***
  25035. --- *** ***
  25036. --- *** A sequence variant whereby a new splice ***
  25037. --- *** site is created due to the activation of ***
  25038. --- *** a new donor. ***
  25039. --- ************************************************
  25040. ---
  25041. CREATE VIEW cryptic_splice_donor AS
  25042. SELECT
  25043. feature_id AS cryptic_splice_donor_id,
  25044. feature.*
  25045. FROM
  25046. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25047. WHERE cvterm.name = 'cryptic_splice_donor';
  25048. --- ************************************************
  25049. --- *** relation: exon_loss ***
  25050. --- *** relation type: VIEW ***
  25051. --- *** ***
  25052. --- *** A sequence variant whereby an exon is lo ***
  25053. --- *** st from the transcript. ***
  25054. --- ************************************************
  25055. ---
  25056. CREATE VIEW exon_loss AS
  25057. SELECT
  25058. feature_id AS exon_loss_id,
  25059. feature.*
  25060. FROM
  25061. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25062. WHERE cvterm.name = 'exon_loss';
  25063. --- ************************************************
  25064. --- *** relation: intron_gain ***
  25065. --- *** relation type: VIEW ***
  25066. --- *** ***
  25067. --- *** A sequence variant whereby an intron is ***
  25068. --- *** gained by the processed transcript; usua ***
  25069. --- *** lly a result of an alteration of the don ***
  25070. --- *** or or acceptor. ***
  25071. --- ************************************************
  25072. ---
  25073. CREATE VIEW intron_gain AS
  25074. SELECT
  25075. feature_id AS intron_gain_id,
  25076. feature.*
  25077. FROM
  25078. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25079. WHERE cvterm.name = 'intron_gain';
  25080. --- ************************************************
  25081. --- *** relation: splice_acceptor_variant ***
  25082. --- *** relation type: VIEW ***
  25083. --- *** ***
  25084. --- *** A splice variant that changes the 2 base ***
  25085. --- *** region at the 3' end of an intron. ***
  25086. --- ************************************************
  25087. ---
  25088. CREATE VIEW splice_acceptor_variant AS
  25089. SELECT
  25090. feature_id AS splice_acceptor_variant_id,
  25091. feature.*
  25092. FROM
  25093. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25094. WHERE cvterm.name = 'splice_acceptor_variant';
  25095. --- ************************************************
  25096. --- *** relation: splice_donor_variant ***
  25097. --- *** relation type: VIEW ***
  25098. --- *** ***
  25099. --- *** A splice variant that changes the2 base ***
  25100. --- *** region at the 5' end of an intron. ***
  25101. --- ************************************************
  25102. ---
  25103. CREATE VIEW splice_donor_variant AS
  25104. SELECT
  25105. feature_id AS splice_donor_variant_id,
  25106. feature.*
  25107. FROM
  25108. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25109. WHERE cvterm.name = 'splice_donor_variant';
  25110. --- ************************************************
  25111. --- *** relation: transcript_variant ***
  25112. --- *** relation type: VIEW ***
  25113. --- *** ***
  25114. --- *** A sequence variant that changes the stru ***
  25115. --- *** cture of the transcript. ***
  25116. --- ************************************************
  25117. ---
  25118. CREATE VIEW transcript_variant AS
  25119. SELECT
  25120. feature_id AS transcript_variant_id,
  25121. feature.*
  25122. FROM
  25123. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25124. 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';
  25125. --- ************************************************
  25126. --- *** relation: complex_change_in_transcript ***
  25127. --- *** relation type: VIEW ***
  25128. --- *** ***
  25129. --- *** A transcript variant with a complex INDE ***
  25130. --- *** L- Insertion or deletion that spans an e ***
  25131. --- *** xon/intron border or a coding sequence/U ***
  25132. --- *** TR border. ***
  25133. --- ************************************************
  25134. ---
  25135. CREATE VIEW complex_change_in_transcript AS
  25136. SELECT
  25137. feature_id AS complex_change_in_transcript_id,
  25138. feature.*
  25139. FROM
  25140. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25141. WHERE cvterm.name = 'complex_change_in_transcript';
  25142. --- ************************************************
  25143. --- *** relation: stop_lost ***
  25144. --- *** relation type: VIEW ***
  25145. --- *** ***
  25146. --- *** A sequence variant where at least one ba ***
  25147. --- *** se of the terminator codon (stop) is cha ***
  25148. --- *** nged, resulting in an elongated transcri ***
  25149. --- *** pt. ***
  25150. --- ************************************************
  25151. ---
  25152. CREATE VIEW stop_lost AS
  25153. SELECT
  25154. feature_id AS stop_lost_id,
  25155. feature.*
  25156. FROM
  25157. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25158. WHERE cvterm.name = 'stop_lost';
  25159. --- ************************************************
  25160. --- *** relation: coding_sequence_variant ***
  25161. --- *** relation type: VIEW ***
  25162. --- *** ***
  25163. --- *** A sequence variant that changes the codi ***
  25164. --- *** ng sequence. ***
  25165. --- ************************************************
  25166. ---
  25167. CREATE VIEW coding_sequence_variant AS
  25168. SELECT
  25169. feature_id AS coding_sequence_variant_id,
  25170. feature.*
  25171. FROM
  25172. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25173. 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';
  25174. --- ************************************************
  25175. --- *** relation: codon_variant ***
  25176. --- *** relation type: VIEW ***
  25177. --- *** ***
  25178. --- *** A sequence variant that changes at least ***
  25179. --- *** one base in a codon. ***
  25180. --- ************************************************
  25181. ---
  25182. CREATE VIEW codon_variant AS
  25183. SELECT
  25184. feature_id AS codon_variant_id,
  25185. feature.*
  25186. FROM
  25187. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25188. 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';
  25189. --- ************************************************
  25190. --- *** relation: initiator_codon_change ***
  25191. --- *** relation type: VIEW ***
  25192. --- *** ***
  25193. --- *** A codon variant that changes at least on ***
  25194. --- *** e base of the first codon of a transcrip ***
  25195. --- *** t. ***
  25196. --- ************************************************
  25197. ---
  25198. CREATE VIEW initiator_codon_change AS
  25199. SELECT
  25200. feature_id AS initiator_codon_change_id,
  25201. feature.*
  25202. FROM
  25203. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25204. WHERE cvterm.name = 'initiator_codon_change';
  25205. --- ************************************************
  25206. --- *** relation: non_synonymous_codon ***
  25207. --- *** relation type: VIEW ***
  25208. --- *** ***
  25209. --- *** A sequence variant whereby at least one ***
  25210. --- *** base of a codon is changed resulting in ***
  25211. --- *** a codon that encodes for a different ami ***
  25212. --- *** no acid or stop codon. ***
  25213. --- ************************************************
  25214. ---
  25215. CREATE VIEW non_synonymous_codon AS
  25216. SELECT
  25217. feature_id AS non_synonymous_codon_id,
  25218. feature.*
  25219. FROM
  25220. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25221. 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';
  25222. --- ************************************************
  25223. --- *** relation: conservative_missense_codon ***
  25224. --- *** relation type: VIEW ***
  25225. --- *** ***
  25226. --- *** A sequence variant whereby at least one ***
  25227. --- *** base of a codon is changed resulting in ***
  25228. --- *** a codon that encodes for a different but ***
  25229. --- *** similar amino acid. These variants may ***
  25230. --- *** or may not be deleterious. ***
  25231. --- ************************************************
  25232. ---
  25233. CREATE VIEW conservative_missense_codon AS
  25234. SELECT
  25235. feature_id AS conservative_missense_codon_id,
  25236. feature.*
  25237. FROM
  25238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25239. WHERE cvterm.name = 'conservative_missense_codon';
  25240. --- ************************************************
  25241. --- *** relation: non_conservative_missense_codon ***
  25242. --- *** relation type: VIEW ***
  25243. --- *** ***
  25244. --- *** A sequence variant whereby at least one ***
  25245. --- *** base of a codon is changed resulting in ***
  25246. --- *** a codon that encodes for an amino acid w ***
  25247. --- *** ith different biochemical properties. ***
  25248. --- ************************************************
  25249. ---
  25250. CREATE VIEW non_conservative_missense_codon AS
  25251. SELECT
  25252. feature_id AS non_conservative_missense_codon_id,
  25253. feature.*
  25254. FROM
  25255. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25256. WHERE cvterm.name = 'non_conservative_missense_codon';
  25257. --- ************************************************
  25258. --- *** relation: stop_gained ***
  25259. --- *** relation type: VIEW ***
  25260. --- *** ***
  25261. --- *** A sequence variant whereby at least one ***
  25262. --- *** base of a codon is changed, resulting in ***
  25263. --- *** a premature stop codon, leading to a sh ***
  25264. --- *** ortened transcript. ***
  25265. --- ************************************************
  25266. ---
  25267. CREATE VIEW stop_gained AS
  25268. SELECT
  25269. feature_id AS stop_gained_id,
  25270. feature.*
  25271. FROM
  25272. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25273. WHERE cvterm.name = 'stop_gained';
  25274. --- ************************************************
  25275. --- *** relation: synonymous_codon ***
  25276. --- *** relation type: VIEW ***
  25277. --- *** ***
  25278. --- *** A sequence variant whereby a base of a c ***
  25279. --- *** odon is changed, but there is no resulti ***
  25280. --- *** ng change to the encoded amino acid. ***
  25281. --- ************************************************
  25282. ---
  25283. CREATE VIEW synonymous_codon AS
  25284. SELECT
  25285. feature_id AS synonymous_codon_id,
  25286. feature.*
  25287. FROM
  25288. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25289. WHERE cvterm.name = 'synonymous_codon';
  25290. --- ************************************************
  25291. --- *** relation: frameshift_variant ***
  25292. --- *** relation type: VIEW ***
  25293. --- *** ***
  25294. --- *** A sequence variant which causes a disrup ***
  25295. --- *** tion of the translational reading frame, ***
  25296. --- *** because the number of nucleotides inser ***
  25297. --- *** ted or deleted is not a multiple of thre ***
  25298. --- *** e. ***
  25299. --- ************************************************
  25300. ---
  25301. CREATE VIEW frameshift_variant AS
  25302. SELECT
  25303. feature_id AS frameshift_variant_id,
  25304. feature.*
  25305. FROM
  25306. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25307. 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';
  25308. --- ************************************************
  25309. --- *** relation: terminator_codon_variant ***
  25310. --- *** relation type: VIEW ***
  25311. --- *** ***
  25312. --- *** A sequence variant whereby at least one ***
  25313. --- *** of the bases in the terminator codon is ***
  25314. --- *** changed. ***
  25315. --- ************************************************
  25316. ---
  25317. CREATE VIEW terminator_codon_variant AS
  25318. SELECT
  25319. feature_id AS terminator_codon_variant_id,
  25320. feature.*
  25321. FROM
  25322. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25323. WHERE cvterm.name = 'stop_retained_variant' OR cvterm.name = 'stop_lost' OR cvterm.name = 'terminator_codon_variant';
  25324. --- ************************************************
  25325. --- *** relation: frame_restoring_variant ***
  25326. --- *** relation type: VIEW ***
  25327. --- *** ***
  25328. --- *** A sequence variant that reverts the sequ ***
  25329. --- *** ence of a previous frameshift mutation b ***
  25330. --- *** ack to the initial frame. ***
  25331. --- ************************************************
  25332. ---
  25333. CREATE VIEW frame_restoring_variant AS
  25334. SELECT
  25335. feature_id AS frame_restoring_variant_id,
  25336. feature.*
  25337. FROM
  25338. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25339. WHERE cvterm.name = 'frame_restoring_variant';
  25340. --- ************************************************
  25341. --- *** relation: minus_1_frameshift_variant ***
  25342. --- *** relation type: VIEW ***
  25343. --- *** ***
  25344. --- *** A sequence variant which causes a disrup ***
  25345. --- *** tion of the translational reading frame, ***
  25346. --- *** by shifting one base ahead. ***
  25347. --- ************************************************
  25348. ---
  25349. CREATE VIEW minus_1_frameshift_variant AS
  25350. SELECT
  25351. feature_id AS minus_1_frameshift_variant_id,
  25352. feature.*
  25353. FROM
  25354. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25355. WHERE cvterm.name = 'minus_1_frameshift_variant';
  25356. --- ************************************************
  25357. --- *** relation: minus_2_frameshift_variant ***
  25358. --- *** relation type: VIEW ***
  25359. --- *** ***
  25360. --- ************************************************
  25361. ---
  25362. CREATE VIEW minus_2_frameshift_variant AS
  25363. SELECT
  25364. feature_id AS minus_2_frameshift_variant_id,
  25365. feature.*
  25366. FROM
  25367. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25368. WHERE cvterm.name = 'minus_2_frameshift_variant';
  25369. --- ************************************************
  25370. --- *** relation: plus_1_frameshift_variant ***
  25371. --- *** relation type: VIEW ***
  25372. --- *** ***
  25373. --- *** A sequence variant which causes a disrup ***
  25374. --- *** tion of the translational reading frame, ***
  25375. --- *** by shifting one base backward. ***
  25376. --- ************************************************
  25377. ---
  25378. CREATE VIEW plus_1_frameshift_variant AS
  25379. SELECT
  25380. feature_id AS plus_1_frameshift_variant_id,
  25381. feature.*
  25382. FROM
  25383. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25384. WHERE cvterm.name = 'plus_1_frameshift_variant';
  25385. --- ************************************************
  25386. --- *** relation: plus_2_frameshift_variant ***
  25387. --- *** relation type: VIEW ***
  25388. --- *** ***
  25389. --- ************************************************
  25390. ---
  25391. CREATE VIEW plus_2_frameshift_variant AS
  25392. SELECT
  25393. feature_id AS plus_2_frameshift_variant_id,
  25394. feature.*
  25395. FROM
  25396. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25397. WHERE cvterm.name = 'plus_2_frameshift variant';
  25398. --- ************************************************
  25399. --- *** relation: transcript_secondary_structure_variant ***
  25400. --- *** relation type: VIEW ***
  25401. --- *** ***
  25402. --- *** A sequence variant within a transcript t ***
  25403. --- *** hat changes the secondary structure of t ***
  25404. --- *** he RNA product. ***
  25405. --- ************************************************
  25406. ---
  25407. CREATE VIEW transcript_secondary_structure_variant AS
  25408. SELECT
  25409. feature_id AS transcript_secondary_structure_variant_id,
  25410. feature.*
  25411. FROM
  25412. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25413. WHERE cvterm.name = 'compensatory_transcript_secondary_structure_variant' OR cvterm.name = 'transcript_secondary_structure_variant';
  25414. --- ************************************************
  25415. --- *** relation: compensatory_transcript_secondary_structure_variant ***
  25416. --- *** relation type: VIEW ***
  25417. --- *** ***
  25418. --- *** A secondary structure variant that compe ***
  25419. --- *** nsate for the change made by a previous ***
  25420. --- *** variant. ***
  25421. --- ************************************************
  25422. ---
  25423. CREATE VIEW compensatory_transcript_secondary_structure_variant AS
  25424. SELECT
  25425. feature_id AS compensatory_transcript_secondary_structure_variant_id,
  25426. feature.*
  25427. FROM
  25428. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25429. WHERE cvterm.name = 'compensatory_transcript_secondary_structure_variant';
  25430. --- ************************************************
  25431. --- *** relation: translational_product_structure_variant ***
  25432. --- *** relation type: VIEW ***
  25433. --- *** ***
  25434. --- *** A sequence variant within the transcript ***
  25435. --- *** that changes the structure of the trans ***
  25436. --- *** lational product. ***
  25437. --- ************************************************
  25438. ---
  25439. CREATE VIEW translational_product_structure_variant AS
  25440. SELECT
  25441. feature_id AS translational_product_structure_variant_id,
  25442. feature.*
  25443. FROM
  25444. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25445. 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';
  25446. --- ************************************************
  25447. --- *** relation: threed_polypeptide_structure_variant ***
  25448. --- *** relation type: VIEW ***
  25449. --- *** ***
  25450. --- *** A sequence variant that changes the resu ***
  25451. --- *** lting polypeptide structure. ***
  25452. --- ************************************************
  25453. ---
  25454. CREATE VIEW threed_polypeptide_structure_variant AS
  25455. SELECT
  25456. feature_id AS threed_polypeptide_structure_variant_id,
  25457. feature.*
  25458. FROM
  25459. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25460. WHERE cvterm.name = 'complex_3D_structural_variant' OR cvterm.name = 'conformational_change_variant' OR cvterm.name = '3D_polypeptide_structure_variant';
  25461. --- ************************************************
  25462. --- *** relation: complex_3d_structural_variant ***
  25463. --- *** relation type: VIEW ***
  25464. --- *** ***
  25465. --- *** A sequence variant that changes the resu ***
  25466. --- *** lting polypeptide structure. ***
  25467. --- ************************************************
  25468. ---
  25469. CREATE VIEW complex_3d_structural_variant AS
  25470. SELECT
  25471. feature_id AS complex_3d_structural_variant_id,
  25472. feature.*
  25473. FROM
  25474. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25475. WHERE cvterm.name = 'complex_3D_structural_variant';
  25476. --- ************************************************
  25477. --- *** relation: conformational_change_variant ***
  25478. --- *** relation type: VIEW ***
  25479. --- *** ***
  25480. --- *** A sequence variant in the CDS region tha ***
  25481. --- *** t causes a conformational change in the ***
  25482. --- *** resulting polypeptide sequence. ***
  25483. --- ************************************************
  25484. ---
  25485. CREATE VIEW conformational_change_variant AS
  25486. SELECT
  25487. feature_id AS conformational_change_variant_id,
  25488. feature.*
  25489. FROM
  25490. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25491. WHERE cvterm.name = 'conformational_change_variant';
  25492. --- ************************************************
  25493. --- *** relation: complex_change_of_translational_product_variant ***
  25494. --- *** relation type: VIEW ***
  25495. --- *** ***
  25496. --- ************************************************
  25497. ---
  25498. CREATE VIEW complex_change_of_translational_product_variant AS
  25499. SELECT
  25500. feature_id AS complex_change_of_translational_product_variant_id,
  25501. feature.*
  25502. FROM
  25503. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25504. WHERE cvterm.name = 'complex_change_of_translational_product_variant';
  25505. --- ************************************************
  25506. --- *** relation: polypeptide_sequence_variant ***
  25507. --- *** relation type: VIEW ***
  25508. --- *** ***
  25509. --- *** A sequence variant with in the CDS that ***
  25510. --- *** causes a change in the resulting polypep ***
  25511. --- *** tide sequence. ***
  25512. --- ************************************************
  25513. ---
  25514. CREATE VIEW polypeptide_sequence_variant AS
  25515. SELECT
  25516. feature_id AS polypeptide_sequence_variant_id,
  25517. feature.*
  25518. FROM
  25519. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25520. 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';
  25521. --- ************************************************
  25522. --- *** relation: amino_acid_deletion ***
  25523. --- *** relation type: VIEW ***
  25524. --- *** ***
  25525. --- *** A sequence variant within a CDS resultin ***
  25526. --- *** g in the loss of an amino acid from the ***
  25527. --- *** resulting polypeptide. ***
  25528. --- ************************************************
  25529. ---
  25530. CREATE VIEW amino_acid_deletion AS
  25531. SELECT
  25532. feature_id AS amino_acid_deletion_id,
  25533. feature.*
  25534. FROM
  25535. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25536. WHERE cvterm.name = 'amino_acid_deletion';
  25537. --- ************************************************
  25538. --- *** relation: amino_acid_insertion ***
  25539. --- *** relation type: VIEW ***
  25540. --- *** ***
  25541. --- *** A sequence variant within a CDS resultin ***
  25542. --- *** g in the gain of an amino acid to the re ***
  25543. --- *** sulting polypeptide. ***
  25544. --- ************************************************
  25545. ---
  25546. CREATE VIEW amino_acid_insertion AS
  25547. SELECT
  25548. feature_id AS amino_acid_insertion_id,
  25549. feature.*
  25550. FROM
  25551. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25552. WHERE cvterm.name = 'amino_acid_insertion';
  25553. --- ************************************************
  25554. --- *** relation: amino_acid_substitution ***
  25555. --- *** relation type: VIEW ***
  25556. --- *** ***
  25557. --- *** A sequence variant of a codon resulting ***
  25558. --- *** in the substitution of one amino acid fo ***
  25559. --- *** r another in the resulting polypeptide. ***
  25560. --- ************************************************
  25561. ---
  25562. CREATE VIEW amino_acid_substitution AS
  25563. SELECT
  25564. feature_id AS amino_acid_substitution_id,
  25565. feature.*
  25566. FROM
  25567. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25568. WHERE cvterm.name = 'conservative_amino_acid_substitution' OR cvterm.name = 'non_conservative_amino_acid_substitution' OR cvterm.name = 'amino_acid_substitution';
  25569. --- ************************************************
  25570. --- *** relation: conservative_amino_acid_substitution ***
  25571. --- *** relation type: VIEW ***
  25572. --- *** ***
  25573. --- *** A sequence variant of a codon causing th ***
  25574. --- *** e substitution of a similar amino acid f ***
  25575. --- *** or another in the resulting polypeptide. ***
  25576. --- ************************************************
  25577. ---
  25578. CREATE VIEW conservative_amino_acid_substitution AS
  25579. SELECT
  25580. feature_id AS conservative_amino_acid_substitution_id,
  25581. feature.*
  25582. FROM
  25583. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25584. WHERE cvterm.name = 'conservative_amino_acid_substitution';
  25585. --- ************************************************
  25586. --- *** relation: non_conservative_amino_acid_substitution ***
  25587. --- *** relation type: VIEW ***
  25588. --- *** ***
  25589. --- *** A sequence variant of a codon causing th ***
  25590. --- *** e substitution of a non conservative ami ***
  25591. --- *** no acid for another in the resulting pol ***
  25592. --- *** ypeptide. ***
  25593. --- ************************************************
  25594. ---
  25595. CREATE VIEW non_conservative_amino_acid_substitution AS
  25596. SELECT
  25597. feature_id AS non_conservative_amino_acid_substitution_id,
  25598. feature.*
  25599. FROM
  25600. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25601. WHERE cvterm.name = 'non_conservative_amino_acid_substitution';
  25602. --- ************************************************
  25603. --- *** relation: elongated_polypeptide ***
  25604. --- *** relation type: VIEW ***
  25605. --- *** ***
  25606. --- *** A sequence variant with in the CDS that ***
  25607. --- *** causes elongation of the resulting polyp ***
  25608. --- *** eptide sequence. ***
  25609. --- ************************************************
  25610. ---
  25611. CREATE VIEW elongated_polypeptide AS
  25612. SELECT
  25613. feature_id AS elongated_polypeptide_id,
  25614. feature.*
  25615. FROM
  25616. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25617. 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';
  25618. --- ************************************************
  25619. --- *** relation: elongated_polypeptide_c_terminal ***
  25620. --- *** relation type: VIEW ***
  25621. --- *** ***
  25622. --- *** A sequence variant with in the CDS that ***
  25623. --- *** causes elongation of the resulting polyp ***
  25624. --- *** eptide sequence at the C terminus. ***
  25625. --- ************************************************
  25626. ---
  25627. CREATE VIEW elongated_polypeptide_c_terminal AS
  25628. SELECT
  25629. feature_id AS elongated_polypeptide_c_terminal_id,
  25630. feature.*
  25631. FROM
  25632. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25633. 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';
  25634. --- ************************************************
  25635. --- *** relation: elongated_polypeptide_n_terminal ***
  25636. --- *** relation type: VIEW ***
  25637. --- *** ***
  25638. --- *** A sequence variant with in the CDS that ***
  25639. --- *** causes elongation of the resulting polyp ***
  25640. --- *** eptide sequence at the N terminus. ***
  25641. --- ************************************************
  25642. ---
  25643. CREATE VIEW elongated_polypeptide_n_terminal AS
  25644. SELECT
  25645. feature_id AS elongated_polypeptide_n_terminal_id,
  25646. feature.*
  25647. FROM
  25648. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25649. 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';
  25650. --- ************************************************
  25651. --- *** relation: elongated_in_frame_polypeptide_c_terminal ***
  25652. --- *** relation type: VIEW ***
  25653. --- *** ***
  25654. --- *** A sequence variant with in the CDS that ***
  25655. --- *** causes in frame elongation of the result ***
  25656. --- *** ing polypeptide sequence at the C termin ***
  25657. --- *** us. ***
  25658. --- ************************************************
  25659. ---
  25660. CREATE VIEW elongated_in_frame_polypeptide_c_terminal AS
  25661. SELECT
  25662. feature_id AS elongated_in_frame_polypeptide_c_terminal_id,
  25663. feature.*
  25664. FROM
  25665. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25666. WHERE cvterm.name = 'elongated_in_frame_polypeptide_C_terminal';
  25667. --- ************************************************
  25668. --- *** relation: elongated_out_of_frame_polypeptide_c_terminal ***
  25669. --- *** relation type: VIEW ***
  25670. --- *** ***
  25671. --- *** A sequence variant with in the CDS that ***
  25672. --- *** causes out of frame elongation of the re ***
  25673. --- *** sulting polypeptide sequence at the C te ***
  25674. --- *** rminus. ***
  25675. --- ************************************************
  25676. ---
  25677. CREATE VIEW elongated_out_of_frame_polypeptide_c_terminal AS
  25678. SELECT
  25679. feature_id AS elongated_out_of_frame_polypeptide_c_terminal_id,
  25680. feature.*
  25681. FROM
  25682. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25683. WHERE cvterm.name = 'elongated_out_of_frame_polypeptide_C_terminal';
  25684. --- ************************************************
  25685. --- *** relation: elongated_in_frame_polypeptide_n_terminal_elongation ***
  25686. --- *** relation type: VIEW ***
  25687. --- *** ***
  25688. --- *** A sequence variant with in the CDS that ***
  25689. --- *** causes in frame elongation of the result ***
  25690. --- *** ing polypeptide sequence at the N termin ***
  25691. --- *** us. ***
  25692. --- ************************************************
  25693. ---
  25694. CREATE VIEW elongated_in_frame_polypeptide_n_terminal_elongation AS
  25695. SELECT
  25696. feature_id AS elongated_in_frame_polypeptide_n_terminal_elongation_id,
  25697. feature.*
  25698. FROM
  25699. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25700. WHERE cvterm.name = 'elongated_in_frame_polypeptide_N_terminal_elongation';
  25701. --- ************************************************
  25702. --- *** relation: elongated_out_of_frame_polypeptide_n_terminal ***
  25703. --- *** relation type: VIEW ***
  25704. --- *** ***
  25705. --- *** A sequence variant with in the CDS that ***
  25706. --- *** causes out of frame elongation of the re ***
  25707. --- *** sulting polypeptide sequence at the N te ***
  25708. --- *** rminus. ***
  25709. --- ************************************************
  25710. ---
  25711. CREATE VIEW elongated_out_of_frame_polypeptide_n_terminal AS
  25712. SELECT
  25713. feature_id AS elongated_out_of_frame_polypeptide_n_terminal_id,
  25714. feature.*
  25715. FROM
  25716. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25717. WHERE cvterm.name = 'elongated_out_of_frame_polypeptide_N_terminal';
  25718. --- ************************************************
  25719. --- *** relation: polypeptide_fusion ***
  25720. --- *** relation type: VIEW ***
  25721. --- *** ***
  25722. --- *** A sequence variant that causes a fusion ***
  25723. --- *** of two polypeptide sequences. ***
  25724. --- ************************************************
  25725. ---
  25726. CREATE VIEW polypeptide_fusion AS
  25727. SELECT
  25728. feature_id AS polypeptide_fusion_id,
  25729. feature.*
  25730. FROM
  25731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25732. WHERE cvterm.name = 'polypeptide_fusion';
  25733. --- ************************************************
  25734. --- *** relation: polypeptide_truncation ***
  25735. --- *** relation type: VIEW ***
  25736. --- *** ***
  25737. --- *** A sequence variant of the CD that causes ***
  25738. --- *** a truncation of the resulting polypepti ***
  25739. --- *** de. ***
  25740. --- ************************************************
  25741. ---
  25742. CREATE VIEW polypeptide_truncation AS
  25743. SELECT
  25744. feature_id AS polypeptide_truncation_id,
  25745. feature.*
  25746. FROM
  25747. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25748. WHERE cvterm.name = 'polypeptide_truncation';
  25749. --- ************************************************
  25750. --- *** relation: inactive_catalytic_site ***
  25751. --- *** relation type: VIEW ***
  25752. --- *** ***
  25753. --- *** A sequence variant that causes the inact ***
  25754. --- *** ivation of a catalytic site with respect ***
  25755. --- *** to a reference sequence. ***
  25756. --- ************************************************
  25757. ---
  25758. CREATE VIEW inactive_catalytic_site AS
  25759. SELECT
  25760. feature_id AS inactive_catalytic_site_id,
  25761. feature.*
  25762. FROM
  25763. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25764. WHERE cvterm.name = 'inactive_catalytic_site';
  25765. --- ************************************************
  25766. --- *** relation: nc_transcript_variant ***
  25767. --- *** relation type: VIEW ***
  25768. --- *** ***
  25769. --- *** A transcript variant of a non coding RNA ***
  25770. --- *** gene. ***
  25771. --- ************************************************
  25772. ---
  25773. CREATE VIEW nc_transcript_variant AS
  25774. SELECT
  25775. feature_id AS nc_transcript_variant_id,
  25776. feature.*
  25777. FROM
  25778. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25779. WHERE cvterm.name = 'mature_miRNA_variant' OR cvterm.name = 'nc_transcript_variant';
  25780. --- ************************************************
  25781. --- *** relation: mature_mirna_variant ***
  25782. --- *** relation type: VIEW ***
  25783. --- *** ***
  25784. --- *** A transcript variant located with the se ***
  25785. --- *** quence of the mature miRNA. ***
  25786. --- ************************************************
  25787. ---
  25788. CREATE VIEW mature_mirna_variant AS
  25789. SELECT
  25790. feature_id AS mature_mirna_variant_id,
  25791. feature.*
  25792. FROM
  25793. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25794. WHERE cvterm.name = 'mature_miRNA_variant';
  25795. --- ************************************************
  25796. --- *** relation: nmd_transcript_variant ***
  25797. --- *** relation type: VIEW ***
  25798. --- *** ***
  25799. --- *** A variant in a transcript that is the ta ***
  25800. --- *** rget of NMD. ***
  25801. --- ************************************************
  25802. ---
  25803. CREATE VIEW nmd_transcript_variant AS
  25804. SELECT
  25805. feature_id AS nmd_transcript_variant_id,
  25806. feature.*
  25807. FROM
  25808. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25809. WHERE cvterm.name = 'NMD_transcript_variant';
  25810. --- ************************************************
  25811. --- *** relation: utr_variant ***
  25812. --- *** relation type: VIEW ***
  25813. --- *** ***
  25814. --- *** A transcript variant that is located wit ***
  25815. --- *** hin the UTR. ***
  25816. --- ************************************************
  25817. ---
  25818. CREATE VIEW utr_variant AS
  25819. SELECT
  25820. feature_id AS utr_variant_id,
  25821. feature.*
  25822. FROM
  25823. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25824. WHERE cvterm.name = '5_prime_UTR_variant' OR cvterm.name = '3_prime_UTR_variant' OR cvterm.name = 'UTR_variant';
  25825. --- ************************************************
  25826. --- *** relation: five_prime_utr_variant ***
  25827. --- *** relation type: VIEW ***
  25828. --- *** ***
  25829. --- *** A UTR variant of the 5' UTR. ***
  25830. --- ************************************************
  25831. ---
  25832. CREATE VIEW five_prime_utr_variant AS
  25833. SELECT
  25834. feature_id AS five_prime_utr_variant_id,
  25835. feature.*
  25836. FROM
  25837. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25838. WHERE cvterm.name = '5_prime_UTR_variant';
  25839. --- ************************************************
  25840. --- *** relation: three_prime_utr_variant ***
  25841. --- *** relation type: VIEW ***
  25842. --- *** ***
  25843. --- *** A UTR variant of the 3' UTR. ***
  25844. --- ************************************************
  25845. ---
  25846. CREATE VIEW three_prime_utr_variant AS
  25847. SELECT
  25848. feature_id AS three_prime_utr_variant_id,
  25849. feature.*
  25850. FROM
  25851. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25852. WHERE cvterm.name = '3_prime_UTR_variant';
  25853. --- ************************************************
  25854. --- *** relation: terminal_codon_variant ***
  25855. --- *** relation type: VIEW ***
  25856. --- *** ***
  25857. --- *** A codon variant that changes at least on ***
  25858. --- *** e base of the last codon of the transcri ***
  25859. --- *** pt. ***
  25860. --- ************************************************
  25861. ---
  25862. CREATE VIEW terminal_codon_variant AS
  25863. SELECT
  25864. feature_id AS terminal_codon_variant_id,
  25865. feature.*
  25866. FROM
  25867. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25868. 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';
  25869. --- ************************************************
  25870. --- *** relation: incomplete_terminal_codon_variant ***
  25871. --- *** relation type: VIEW ***
  25872. --- *** ***
  25873. --- *** A sequence variant where at least one ba ***
  25874. --- *** se of the final codon of an incompletely ***
  25875. --- *** annotated transcript is changed. ***
  25876. --- ************************************************
  25877. ---
  25878. CREATE VIEW incomplete_terminal_codon_variant AS
  25879. SELECT
  25880. feature_id AS incomplete_terminal_codon_variant_id,
  25881. feature.*
  25882. FROM
  25883. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25884. WHERE cvterm.name = 'incomplete_terminal_codon_variant';
  25885. --- ************************************************
  25886. --- *** relation: intron_variant ***
  25887. --- *** relation type: VIEW ***
  25888. --- *** ***
  25889. --- *** A transcript variant occurring within an ***
  25890. --- *** intron. ***
  25891. --- ************************************************
  25892. ---
  25893. CREATE VIEW intron_variant AS
  25894. SELECT
  25895. feature_id AS intron_variant_id,
  25896. feature.*
  25897. FROM
  25898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25899. 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';
  25900. --- ************************************************
  25901. --- *** relation: intergenic_variant ***
  25902. --- *** relation type: VIEW ***
  25903. --- *** ***
  25904. --- *** A sequence variant located in the interg ***
  25905. --- *** enic region, between genes. ***
  25906. --- ************************************************
  25907. ---
  25908. CREATE VIEW intergenic_variant AS
  25909. SELECT
  25910. feature_id AS intergenic_variant_id,
  25911. feature.*
  25912. FROM
  25913. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25914. WHERE cvterm.name = 'intergenic_variant';
  25915. --- ************************************************
  25916. --- *** relation: splice_site_variant ***
  25917. --- *** relation type: VIEW ***
  25918. --- *** ***
  25919. --- *** A sequence variant that changes the firs ***
  25920. --- *** t two or last two bases of an intron, or ***
  25921. --- *** the 5th base from the start of the intr ***
  25922. --- *** on in the orientation of the transcript. ***
  25923. --- ************************************************
  25924. ---
  25925. CREATE VIEW splice_site_variant AS
  25926. SELECT
  25927. feature_id AS splice_site_variant_id,
  25928. feature.*
  25929. FROM
  25930. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25931. 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';
  25932. --- ************************************************
  25933. --- *** relation: splice_region_variant ***
  25934. --- *** relation type: VIEW ***
  25935. --- *** ***
  25936. --- *** A sequence variant in which a change has ***
  25937. --- *** occurred within the region of the splic ***
  25938. --- *** e site, either within 1-3 bases of the e ***
  25939. --- *** xon or 3-8 bases of the intron. ***
  25940. --- ************************************************
  25941. ---
  25942. CREATE VIEW splice_region_variant AS
  25943. SELECT
  25944. feature_id AS splice_region_variant_id,
  25945. feature.*
  25946. FROM
  25947. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25948. WHERE cvterm.name = 'splice_region_variant';
  25949. --- ************************************************
  25950. --- *** relation: upstream_gene_variant ***
  25951. --- *** relation type: VIEW ***
  25952. --- *** ***
  25953. --- *** A sequence variant located 5' of a gene. ***
  25954. --- ************************************************
  25955. ---
  25956. CREATE VIEW upstream_gene_variant AS
  25957. SELECT
  25958. feature_id AS upstream_gene_variant_id,
  25959. feature.*
  25960. FROM
  25961. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25962. WHERE cvterm.name = '5KB_upstream_variant' OR cvterm.name = '2KB_upstream_variant' OR cvterm.name = 'upstream_gene_variant';
  25963. --- ************************************************
  25964. --- *** relation: downstream_gene_variant ***
  25965. --- *** relation type: VIEW ***
  25966. --- *** ***
  25967. --- *** A sequence variant located 3' of a gene. ***
  25968. --- ************************************************
  25969. ---
  25970. CREATE VIEW downstream_gene_variant AS
  25971. SELECT
  25972. feature_id AS downstream_gene_variant_id,
  25973. feature.*
  25974. FROM
  25975. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25976. WHERE cvterm.name = '5KB_downstream_variant' OR cvterm.name = '500B_downstream_variant' OR cvterm.name = 'downstream_gene_variant';
  25977. --- ************************************************
  25978. --- *** relation: fivekb_downstream_variant ***
  25979. --- *** relation type: VIEW ***
  25980. --- *** ***
  25981. --- *** A sequence variant located within 5 KB o ***
  25982. --- *** f the end of a gene. ***
  25983. --- ************************************************
  25984. ---
  25985. CREATE VIEW fivekb_downstream_variant AS
  25986. SELECT
  25987. feature_id AS fivekb_downstream_variant_id,
  25988. feature.*
  25989. FROM
  25990. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  25991. WHERE cvterm.name = '500B_downstream_variant' OR cvterm.name = '5KB_downstream_variant';
  25992. --- ************************************************
  25993. --- *** relation: fivehundred_b_downstream_variant ***
  25994. --- *** relation type: VIEW ***
  25995. --- *** ***
  25996. --- *** A sequence variant located within a half ***
  25997. --- *** KB of the end of a gene. ***
  25998. --- ************************************************
  25999. ---
  26000. CREATE VIEW fivehundred_b_downstream_variant AS
  26001. SELECT
  26002. feature_id AS fivehundred_b_downstream_variant_id,
  26003. feature.*
  26004. FROM
  26005. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26006. WHERE cvterm.name = '500B_downstream_variant';
  26007. --- ************************************************
  26008. --- *** relation: fivekb_upstream_variant ***
  26009. --- *** relation type: VIEW ***
  26010. --- *** ***
  26011. --- *** A sequence variant located within 5KB 5' ***
  26012. --- *** of a gene. ***
  26013. --- ************************************************
  26014. ---
  26015. CREATE VIEW fivekb_upstream_variant AS
  26016. SELECT
  26017. feature_id AS fivekb_upstream_variant_id,
  26018. feature.*
  26019. FROM
  26020. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26021. WHERE cvterm.name = '2KB_upstream_variant' OR cvterm.name = '5KB_upstream_variant';
  26022. --- ************************************************
  26023. --- *** relation: twokb_upstream_variant ***
  26024. --- *** relation type: VIEW ***
  26025. --- *** ***
  26026. --- *** A sequence variant located within 2KB 5' ***
  26027. --- *** of a gene. ***
  26028. --- ************************************************
  26029. ---
  26030. CREATE VIEW twokb_upstream_variant AS
  26031. SELECT
  26032. feature_id AS twokb_upstream_variant_id,
  26033. feature.*
  26034. FROM
  26035. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26036. WHERE cvterm.name = '2KB_upstream_variant';
  26037. --- ************************************************
  26038. --- *** relation: rrna_gene ***
  26039. --- *** relation type: VIEW ***
  26040. --- *** ***
  26041. --- *** A gene that encodes for ribosomal RNA. ***
  26042. --- ************************************************
  26043. ---
  26044. CREATE VIEW rrna_gene AS
  26045. SELECT
  26046. feature_id AS rrna_gene_id,
  26047. feature.*
  26048. FROM
  26049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26050. WHERE cvterm.name = 'rRNA_gene';
  26051. --- ************************************************
  26052. --- *** relation: pirna_gene ***
  26053. --- *** relation type: VIEW ***
  26054. --- *** ***
  26055. --- *** A gene that encodes for an piwi associat ***
  26056. --- *** ed RNA. ***
  26057. --- ************************************************
  26058. ---
  26059. CREATE VIEW pirna_gene AS
  26060. SELECT
  26061. feature_id AS pirna_gene_id,
  26062. feature.*
  26063. FROM
  26064. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26065. WHERE cvterm.name = 'piRNA_gene';
  26066. --- ************************************************
  26067. --- *** relation: rnase_p_rna_gene ***
  26068. --- *** relation type: VIEW ***
  26069. --- *** ***
  26070. --- *** A gene that encodes an RNase P RNA. ***
  26071. --- ************************************************
  26072. ---
  26073. CREATE VIEW rnase_p_rna_gene AS
  26074. SELECT
  26075. feature_id AS rnase_p_rna_gene_id,
  26076. feature.*
  26077. FROM
  26078. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26079. WHERE cvterm.name = 'RNase_P_RNA_gene';
  26080. --- ************************************************
  26081. --- *** relation: rnase_mrp_rna_gene ***
  26082. --- *** relation type: VIEW ***
  26083. --- *** ***
  26084. --- *** A gene that encodes a RNase_MRP_RNA. ***
  26085. --- ************************************************
  26086. ---
  26087. CREATE VIEW rnase_mrp_rna_gene AS
  26088. SELECT
  26089. feature_id AS rnase_mrp_rna_gene_id,
  26090. feature.*
  26091. FROM
  26092. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26093. WHERE cvterm.name = 'RNase_MRP_RNA_gene';
  26094. --- ************************************************
  26095. --- *** relation: lincrna_gene ***
  26096. --- *** relation type: VIEW ***
  26097. --- *** ***
  26098. --- *** A gene that encodes large intervening no ***
  26099. --- *** n-coding RNA. ***
  26100. --- ************************************************
  26101. ---
  26102. CREATE VIEW lincrna_gene AS
  26103. SELECT
  26104. feature_id AS lincrna_gene_id,
  26105. feature.*
  26106. FROM
  26107. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26108. WHERE cvterm.name = 'lincRNA_gene';
  26109. --- ************************************************
  26110. --- *** relation: mathematically_defined_repeat ***
  26111. --- *** relation type: VIEW ***
  26112. --- *** ***
  26113. --- *** A mathematically defined repeat (MDR) is ***
  26114. --- *** a experimental feature that is determin ***
  26115. --- *** ed by querying overlapping oligomers of ***
  26116. --- *** length k against a database of shotgun s ***
  26117. --- *** equence data and identifying regions in ***
  26118. --- *** the query sequence that exceed a statist ***
  26119. --- *** ically determined threshold of repetitiv ***
  26120. --- *** eness. ***
  26121. --- ************************************************
  26122. ---
  26123. CREATE VIEW mathematically_defined_repeat AS
  26124. SELECT
  26125. feature_id AS mathematically_defined_repeat_id,
  26126. feature.*
  26127. FROM
  26128. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26129. WHERE cvterm.name = 'mathematically_defined_repeat';
  26130. --- ************************************************
  26131. --- *** relation: telomerase_rna_gene ***
  26132. --- *** relation type: VIEW ***
  26133. --- *** ***
  26134. --- *** A telomerase RNA gene is a non coding RN ***
  26135. --- *** A gene the RNA product of which is a com ***
  26136. --- *** ponent of telomerase. ***
  26137. --- ************************************************
  26138. ---
  26139. CREATE VIEW telomerase_rna_gene AS
  26140. SELECT
  26141. feature_id AS telomerase_rna_gene_id,
  26142. feature.*
  26143. FROM
  26144. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26145. WHERE cvterm.name = 'telomerase_RNA_gene';
  26146. --- ************************************************
  26147. --- *** relation: targeting_vector ***
  26148. --- *** relation type: VIEW ***
  26149. --- *** ***
  26150. --- *** An engineered vector that is able to tak ***
  26151. --- *** e part in homologous recombination in a ***
  26152. --- *** host with the intent of introducing site ***
  26153. --- *** specific genomic modifications. ***
  26154. --- ************************************************
  26155. ---
  26156. CREATE VIEW targeting_vector AS
  26157. SELECT
  26158. feature_id AS targeting_vector_id,
  26159. feature.*
  26160. FROM
  26161. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26162. WHERE cvterm.name = 'targeting_vector';
  26163. --- ************************************************
  26164. --- *** relation: genetic_marker ***
  26165. --- *** relation type: VIEW ***
  26166. --- *** ***
  26167. --- *** A measurable sequence feature that varie ***
  26168. --- *** s within a population. ***
  26169. --- ************************************************
  26170. ---
  26171. CREATE VIEW genetic_marker AS
  26172. SELECT
  26173. feature_id AS genetic_marker_id,
  26174. feature.*
  26175. FROM
  26176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26177. WHERE cvterm.name = 'heritable_phenotypic_marker' OR cvterm.name = 'DArT_marker' OR cvterm.name = 'genetic_marker';
  26178. --- ************************************************
  26179. --- *** relation: dart_marker ***
  26180. --- *** relation type: VIEW ***
  26181. --- *** ***
  26182. --- *** A genetic marker, discovered using Diver ***
  26183. --- *** sity Arrays Technology (DArT) technology ***
  26184. --- *** . ***
  26185. --- ************************************************
  26186. ---
  26187. CREATE VIEW dart_marker AS
  26188. SELECT
  26189. feature_id AS dart_marker_id,
  26190. feature.*
  26191. FROM
  26192. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26193. WHERE cvterm.name = 'DArT_marker';
  26194. --- ************************************************
  26195. --- *** relation: kozak_sequence ***
  26196. --- *** relation type: VIEW ***
  26197. --- *** ***
  26198. --- *** A kind of ribosome entry site, specific ***
  26199. --- *** to Eukaryotic organisms that overlaps pa ***
  26200. --- *** rt of both 5' UTR and CDS sequence. ***
  26201. --- ************************************************
  26202. ---
  26203. CREATE VIEW kozak_sequence AS
  26204. SELECT
  26205. feature_id AS kozak_sequence_id,
  26206. feature.*
  26207. FROM
  26208. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26209. WHERE cvterm.name = 'kozak_sequence';
  26210. --- ************************************************
  26211. --- *** relation: nested_transposon ***
  26212. --- *** relation type: VIEW ***
  26213. --- *** ***
  26214. --- *** A transposon that is disrupted by the in ***
  26215. --- *** sertion of another element. ***
  26216. --- ************************************************
  26217. ---
  26218. CREATE VIEW nested_transposon AS
  26219. SELECT
  26220. feature_id AS nested_transposon_id,
  26221. feature.*
  26222. FROM
  26223. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26224. WHERE cvterm.name = 'nested_transposon';
  26225. --- ************************************************
  26226. --- *** relation: nested_repeat ***
  26227. --- *** relation type: VIEW ***
  26228. --- *** ***
  26229. --- *** A repeat that is disrupted by the insert ***
  26230. --- *** ion of another element. ***
  26231. --- ************************************************
  26232. ---
  26233. CREATE VIEW nested_repeat AS
  26234. SELECT
  26235. feature_id AS nested_repeat_id,
  26236. feature.*
  26237. FROM
  26238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26239. WHERE cvterm.name = 'nested_tandem_repeat' OR cvterm.name = 'nested_repeat';
  26240. --- ************************************************
  26241. --- *** relation: inframe_variant ***
  26242. --- *** relation type: VIEW ***
  26243. --- *** ***
  26244. --- *** A sequence variant which does not cause ***
  26245. --- *** a disruption of the translational readin ***
  26246. --- *** g frame. ***
  26247. --- ************************************************
  26248. ---
  26249. CREATE VIEW inframe_variant AS
  26250. SELECT
  26251. feature_id AS inframe_variant_id,
  26252. feature.*
  26253. FROM
  26254. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26255. WHERE cvterm.name = 'inframe_codon_gain' OR cvterm.name = 'inframe_codon_loss' OR cvterm.name = 'inframe_variant';
  26256. --- ************************************************
  26257. --- *** relation: inframe_codon_gain ***
  26258. --- *** relation type: VIEW ***
  26259. --- *** ***
  26260. --- *** A sequence variant which gains a codon, ***
  26261. --- *** and does not cause a disruption of the t ***
  26262. --- *** ranslational reading frame. ***
  26263. --- ************************************************
  26264. ---
  26265. CREATE VIEW inframe_codon_gain AS
  26266. SELECT
  26267. feature_id AS inframe_codon_gain_id,
  26268. feature.*
  26269. FROM
  26270. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26271. WHERE cvterm.name = 'inframe_codon_gain';
  26272. --- ************************************************
  26273. --- *** relation: inframe_codon_loss ***
  26274. --- *** relation type: VIEW ***
  26275. --- *** ***
  26276. --- *** A sequence variant which loses a codon, ***
  26277. --- *** and does not cause a disruption of the t ***
  26278. --- *** ranslational reading frame. ***
  26279. --- ************************************************
  26280. ---
  26281. CREATE VIEW inframe_codon_loss AS
  26282. SELECT
  26283. feature_id AS inframe_codon_loss_id,
  26284. feature.*
  26285. FROM
  26286. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26287. WHERE cvterm.name = 'inframe_codon_loss';
  26288. --- ************************************************
  26289. --- *** relation: retinoic_acid_responsive_element ***
  26290. --- *** relation type: VIEW ***
  26291. --- *** ***
  26292. --- *** A transcription factor binding site of v ***
  26293. --- *** ariable direct repeats of the sequence P ***
  26294. --- *** uGGTCA spaced by five nucleotides (DR5) ***
  26295. --- *** found in the promoters of retinoic acid- ***
  26296. --- *** responsive genes, to which retinoic acid ***
  26297. --- *** receptors bind. ***
  26298. --- ************************************************
  26299. ---
  26300. CREATE VIEW retinoic_acid_responsive_element AS
  26301. SELECT
  26302. feature_id AS retinoic_acid_responsive_element_id,
  26303. feature.*
  26304. FROM
  26305. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26306. WHERE cvterm.name = 'retinoic_acid_responsive_element';
  26307. --- ************************************************
  26308. --- *** relation: nucleotide_to_protein_binding_site ***
  26309. --- *** relation type: VIEW ***
  26310. --- *** ***
  26311. --- *** A binding site that, in the nucleotide m ***
  26312. --- *** olecule, interacts selectively and non-c ***
  26313. --- *** ovalently with polypeptide residues. ***
  26314. --- ************************************************
  26315. ---
  26316. CREATE VIEW nucleotide_to_protein_binding_site AS
  26317. SELECT
  26318. feature_id AS nucleotide_to_protein_binding_site_id,
  26319. feature.*
  26320. FROM
  26321. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26322. 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';
  26323. --- ************************************************
  26324. --- *** relation: nucleotide_binding_site ***
  26325. --- *** relation type: VIEW ***
  26326. --- *** ***
  26327. --- *** A binding site that, in the molecule, in ***
  26328. --- *** teracts selectively and non-covalently w ***
  26329. --- *** ith nucleotide residues. ***
  26330. --- ************************************************
  26331. ---
  26332. CREATE VIEW nucleotide_binding_site AS
  26333. SELECT
  26334. feature_id AS nucleotide_binding_site_id,
  26335. feature.*
  26336. FROM
  26337. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26338. 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';
  26339. --- ************************************************
  26340. --- *** relation: metal_binding_site ***
  26341. --- *** relation type: VIEW ***
  26342. --- *** ***
  26343. --- *** A binding site that, in the molecule, in ***
  26344. --- *** teracts selectively and non-covalently w ***
  26345. --- *** ith metal ions. ***
  26346. --- ************************************************
  26347. ---
  26348. CREATE VIEW metal_binding_site AS
  26349. SELECT
  26350. feature_id AS metal_binding_site_id,
  26351. feature.*
  26352. FROM
  26353. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26354. 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';
  26355. --- ************************************************
  26356. --- *** relation: ligand_binding_site ***
  26357. --- *** relation type: VIEW ***
  26358. --- *** ***
  26359. --- *** A binding site that, in the molecule, in ***
  26360. --- *** teracts selectively and non-covalently w ***
  26361. --- *** ith a small molecule such as a drug, or ***
  26362. --- *** hormone. ***
  26363. --- ************************************************
  26364. ---
  26365. CREATE VIEW ligand_binding_site AS
  26366. SELECT
  26367. feature_id AS ligand_binding_site_id,
  26368. feature.*
  26369. FROM
  26370. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26371. WHERE cvterm.name = 'polypeptide_ligand_contact' OR cvterm.name = 'ligand_binding_site';
  26372. --- ************************************************
  26373. --- *** relation: nested_tandem_repeat ***
  26374. --- *** relation type: VIEW ***
  26375. --- *** ***
  26376. --- *** An NTR is a nested repeat of two distinc ***
  26377. --- *** t tandem motifs interspersed with each o ***
  26378. --- *** ther. ***
  26379. --- ************************************************
  26380. ---
  26381. CREATE VIEW nested_tandem_repeat AS
  26382. SELECT
  26383. feature_id AS nested_tandem_repeat_id,
  26384. feature.*
  26385. FROM
  26386. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26387. WHERE cvterm.name = 'nested_tandem_repeat';
  26388. --- ************************************************
  26389. --- *** relation: promoter_element ***
  26390. --- *** relation type: VIEW ***
  26391. --- *** ***
  26392. --- ************************************************
  26393. ---
  26394. CREATE VIEW promoter_element AS
  26395. SELECT
  26396. feature_id AS promoter_element_id,
  26397. feature.*
  26398. FROM
  26399. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26400. 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';
  26401. --- ************************************************
  26402. --- *** relation: core_promoter_element ***
  26403. --- *** relation type: VIEW ***
  26404. --- *** ***
  26405. --- ************************************************
  26406. ---
  26407. CREATE VIEW core_promoter_element AS
  26408. SELECT
  26409. feature_id AS core_promoter_element_id,
  26410. feature.*
  26411. FROM
  26412. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26413. 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';
  26414. --- ************************************************
  26415. --- *** relation: rna_polymerase_ii_tata_box ***
  26416. --- *** relation type: VIEW ***
  26417. --- *** ***
  26418. --- *** A TATA box core promoter of a gene trans ***
  26419. --- *** cribed by RNA polymerase II. ***
  26420. --- ************************************************
  26421. ---
  26422. CREATE VIEW rna_polymerase_ii_tata_box AS
  26423. SELECT
  26424. feature_id AS rna_polymerase_ii_tata_box_id,
  26425. feature.*
  26426. FROM
  26427. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26428. WHERE cvterm.name = 'RNA_polymerase_II_TATA_box';
  26429. --- ************************************************
  26430. --- *** relation: rna_polymerase_iii_tata_box ***
  26431. --- *** relation type: VIEW ***
  26432. --- *** ***
  26433. --- *** A TATA box core promoter of a gene trans ***
  26434. --- *** cribed by RNA polymerase III. ***
  26435. --- ************************************************
  26436. ---
  26437. CREATE VIEW rna_polymerase_iii_tata_box AS
  26438. SELECT
  26439. feature_id AS rna_polymerase_iii_tata_box_id,
  26440. feature.*
  26441. FROM
  26442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26443. WHERE cvterm.name = 'RNA_polymerase_III_TATA_box';
  26444. --- ************************************************
  26445. --- *** relation: bred_motif ***
  26446. --- *** relation type: VIEW ***
  26447. --- *** ***
  26448. --- *** A core TRNA polymerase II promoter eleme ***
  26449. --- *** nt with consensus (G/A)T(T/G/A)(T/A)(G/T ***
  26450. --- *** )(T/G)(T/G). ***
  26451. --- ************************************************
  26452. ---
  26453. CREATE VIEW bred_motif AS
  26454. SELECT
  26455. feature_id AS bred_motif_id,
  26456. feature.*
  26457. FROM
  26458. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26459. WHERE cvterm.name = 'BREd_motif';
  26460. --- ************************************************
  26461. --- *** relation: dce ***
  26462. --- *** relation type: VIEW ***
  26463. --- *** ***
  26464. --- *** A discontinuous core element of RNA poly ***
  26465. --- *** merase II transcribed genes, situated do ***
  26466. --- *** wnstream of the TSS. It is composed of t ***
  26467. --- *** hree sub elements: SI, SII and SIII. ***
  26468. --- ************************************************
  26469. ---
  26470. CREATE VIEW dce AS
  26471. SELECT
  26472. feature_id AS dce_id,
  26473. feature.*
  26474. FROM
  26475. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26476. WHERE cvterm.name = 'DCE';
  26477. --- ************************************************
  26478. --- *** relation: dce_si ***
  26479. --- *** relation type: VIEW ***
  26480. --- *** ***
  26481. --- *** A sub element of the DCE core promoter e ***
  26482. --- *** lement, with consensus sequence CTTC. ***
  26483. --- ************************************************
  26484. ---
  26485. CREATE VIEW dce_si AS
  26486. SELECT
  26487. feature_id AS dce_si_id,
  26488. feature.*
  26489. FROM
  26490. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26491. WHERE cvterm.name = 'DCE_SI';
  26492. --- ************************************************
  26493. --- *** relation: dce_sii ***
  26494. --- *** relation type: VIEW ***
  26495. --- *** ***
  26496. --- *** A sub element of the DCE core promoter e ***
  26497. --- *** lement with consensus sequence CTGT. ***
  26498. --- ************************************************
  26499. ---
  26500. CREATE VIEW dce_sii AS
  26501. SELECT
  26502. feature_id AS dce_sii_id,
  26503. feature.*
  26504. FROM
  26505. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26506. WHERE cvterm.name = 'DCE_SII';
  26507. --- ************************************************
  26508. --- *** relation: dce_siii ***
  26509. --- *** relation type: VIEW ***
  26510. --- *** ***
  26511. --- *** A sub element of the DCE core promoter e ***
  26512. --- *** lement with consensus sequence AGC. ***
  26513. --- ************************************************
  26514. ---
  26515. CREATE VIEW dce_siii AS
  26516. SELECT
  26517. feature_id AS dce_siii_id,
  26518. feature.*
  26519. FROM
  26520. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26521. WHERE cvterm.name = 'DCE_SIII';
  26522. --- ************************************************
  26523. --- *** relation: proximal_promoter_element ***
  26524. --- *** relation type: VIEW ***
  26525. --- *** ***
  26526. --- ************************************************
  26527. ---
  26528. CREATE VIEW proximal_promoter_element AS
  26529. SELECT
  26530. feature_id AS proximal_promoter_element_id,
  26531. feature.*
  26532. FROM
  26533. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26534. WHERE cvterm.name = 'proximal_promoter_element';
  26535. --- ************************************************
  26536. --- *** relation: rnapol_ii_core_promoter ***
  26537. --- *** relation type: VIEW ***
  26538. --- *** ***
  26539. --- *** The minimal portion of the promoter requ ***
  26540. --- *** ired to properly initiate transcription ***
  26541. --- *** in RNA polymerase II transcribed genes. ***
  26542. --- ************************************************
  26543. ---
  26544. CREATE VIEW rnapol_ii_core_promoter AS
  26545. SELECT
  26546. feature_id AS rnapol_ii_core_promoter_id,
  26547. feature.*
  26548. FROM
  26549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26550. WHERE cvterm.name = 'RNApol_II_core_promoter';
  26551. --- ************************************************
  26552. --- *** relation: distal_promoter_element ***
  26553. --- *** relation type: VIEW ***
  26554. --- *** ***
  26555. --- ************************************************
  26556. ---
  26557. CREATE VIEW distal_promoter_element AS
  26558. SELECT
  26559. feature_id AS distal_promoter_element_id,
  26560. feature.*
  26561. FROM
  26562. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26563. WHERE cvterm.name = 'distal_promoter_element';
  26564. --- ************************************************
  26565. --- *** relation: bacterial_rnapol_promoter_sigma_70 ***
  26566. --- *** relation type: VIEW ***
  26567. --- *** ***
  26568. --- ************************************************
  26569. ---
  26570. CREATE VIEW bacterial_rnapol_promoter_sigma_70 AS
  26571. SELECT
  26572. feature_id AS bacterial_rnapol_promoter_sigma_70_id,
  26573. feature.*
  26574. FROM
  26575. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26576. WHERE cvterm.name = 'bacterial_RNApol_promoter_sigma_70';
  26577. --- ************************************************
  26578. --- *** relation: bacterial_rnapol_promoter_sigma54 ***
  26579. --- *** relation type: VIEW ***
  26580. --- *** ***
  26581. --- ************************************************
  26582. ---
  26583. CREATE VIEW bacterial_rnapol_promoter_sigma54 AS
  26584. SELECT
  26585. feature_id AS bacterial_rnapol_promoter_sigma54_id,
  26586. feature.*
  26587. FROM
  26588. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26589. WHERE cvterm.name = 'bacterial_RNApol_promoter_sigma54';
  26590. --- ************************************************
  26591. --- *** relation: minus_12_signal ***
  26592. --- *** relation type: VIEW ***
  26593. --- *** ***
  26594. --- *** A conserved region about 12-bp upstream ***
  26595. --- *** of the start point of bacterial transcri ***
  26596. --- *** ption units, involved with sigma factor ***
  26597. --- *** 54. ***
  26598. --- ************************************************
  26599. ---
  26600. CREATE VIEW minus_12_signal AS
  26601. SELECT
  26602. feature_id AS minus_12_signal_id,
  26603. feature.*
  26604. FROM
  26605. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26606. WHERE cvterm.name = 'minus_12_signal';
  26607. --- ************************************************
  26608. --- *** relation: minus_24_signal ***
  26609. --- *** relation type: VIEW ***
  26610. --- *** ***
  26611. --- *** A conserved region about 12-bp upstream ***
  26612. --- *** of the start point of bacterial transcri ***
  26613. --- *** ption units, involved with sigma factor ***
  26614. --- *** 54. ***
  26615. --- ************************************************
  26616. ---
  26617. CREATE VIEW minus_24_signal AS
  26618. SELECT
  26619. feature_id AS minus_24_signal_id,
  26620. feature.*
  26621. FROM
  26622. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26623. WHERE cvterm.name = 'minus_24_signal';
  26624. --- ************************************************
  26625. --- *** relation: a_box_type_1 ***
  26626. --- *** relation type: VIEW ***
  26627. --- *** ***
  26628. --- *** An A box within an RNA polymerase III ty ***
  26629. --- *** pe 1 promoter. ***
  26630. --- ************************************************
  26631. ---
  26632. CREATE VIEW a_box_type_1 AS
  26633. SELECT
  26634. feature_id AS a_box_type_1_id,
  26635. feature.*
  26636. FROM
  26637. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26638. WHERE cvterm.name = 'A_box_type_1';
  26639. --- ************************************************
  26640. --- *** relation: a_box_type_2 ***
  26641. --- *** relation type: VIEW ***
  26642. --- *** ***
  26643. --- *** An A box within an RNA polymerase III ty ***
  26644. --- *** pe 2 promoter. ***
  26645. --- ************************************************
  26646. ---
  26647. CREATE VIEW a_box_type_2 AS
  26648. SELECT
  26649. feature_id AS a_box_type_2_id,
  26650. feature.*
  26651. FROM
  26652. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26653. WHERE cvterm.name = 'A_box_type_2';
  26654. --- ************************************************
  26655. --- *** relation: intermediate_element ***
  26656. --- *** relation type: VIEW ***
  26657. --- *** ***
  26658. --- *** A core promoter region of RNA polymerase ***
  26659. --- *** III type 1 promoters. ***
  26660. --- ************************************************
  26661. ---
  26662. CREATE VIEW intermediate_element AS
  26663. SELECT
  26664. feature_id AS intermediate_element_id,
  26665. feature.*
  26666. FROM
  26667. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26668. WHERE cvterm.name = 'intermediate_element';
  26669. --- ************************************************
  26670. --- *** relation: regulatory_promoter_element ***
  26671. --- *** relation type: VIEW ***
  26672. --- *** ***
  26673. --- *** A promoter element that is not part of t ***
  26674. --- *** he core promoter, but provides the promo ***
  26675. --- *** ter with a specific regulatory region. ***
  26676. --- ************************************************
  26677. ---
  26678. CREATE VIEW regulatory_promoter_element AS
  26679. SELECT
  26680. feature_id AS regulatory_promoter_element_id,
  26681. feature.*
  26682. FROM
  26683. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26684. WHERE cvterm.name = 'proximal_promoter_element' OR cvterm.name = 'distal_promoter_element' OR cvterm.name = 'regulatory_promoter_element';
  26685. --- ************************************************
  26686. --- *** relation: transcription_regulatory_region ***
  26687. --- *** relation type: VIEW ***
  26688. --- *** ***
  26689. --- *** A regulatory region that is involved in ***
  26690. --- *** the control of the process of transcript ***
  26691. --- *** ion. ***
  26692. --- ************************************************
  26693. ---
  26694. CREATE VIEW transcription_regulatory_region AS
  26695. SELECT
  26696. feature_id AS transcription_regulatory_region_id,
  26697. feature.*
  26698. FROM
  26699. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26700. 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';
  26701. --- ************************************************
  26702. --- *** relation: translation_regulatory_region ***
  26703. --- *** relation type: VIEW ***
  26704. --- *** ***
  26705. --- *** A regulatory region that is involved in ***
  26706. --- *** the control of the process of translatio ***
  26707. --- *** n. ***
  26708. --- ************************************************
  26709. ---
  26710. CREATE VIEW translation_regulatory_region AS
  26711. SELECT
  26712. feature_id AS translation_regulatory_region_id,
  26713. feature.*
  26714. FROM
  26715. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26716. WHERE cvterm.name = 'attenuator' OR cvterm.name = 'translation_regulatory_region';
  26717. --- ************************************************
  26718. --- *** relation: recombination_regulatory_region ***
  26719. --- *** relation type: VIEW ***
  26720. --- *** ***
  26721. --- *** A regulatory region that is involved in ***
  26722. --- *** the control of the process of recombinat ***
  26723. --- *** ion. ***
  26724. --- ************************************************
  26725. ---
  26726. CREATE VIEW recombination_regulatory_region AS
  26727. SELECT
  26728. feature_id AS recombination_regulatory_region_id,
  26729. feature.*
  26730. FROM
  26731. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26732. WHERE cvterm.name = 'recombination_regulatory_region';
  26733. --- ************************************************
  26734. --- *** relation: replication_regulatory_region ***
  26735. --- *** relation type: VIEW ***
  26736. --- *** ***
  26737. --- *** A regulatory region that is involved in ***
  26738. --- *** the control of the process of nucleotide ***
  26739. --- *** replication. ***
  26740. --- ************************************************
  26741. ---
  26742. CREATE VIEW replication_regulatory_region AS
  26743. SELECT
  26744. feature_id AS replication_regulatory_region_id,
  26745. feature.*
  26746. FROM
  26747. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26748. WHERE cvterm.name = 'replication_regulatory_region';
  26749. --- ************************************************
  26750. --- *** relation: sequence_motif ***
  26751. --- *** relation type: VIEW ***
  26752. --- *** ***
  26753. --- *** A sequence motif is a nucleotide or amin ***
  26754. --- *** o-acid sequence pattern that may have bi ***
  26755. --- *** ological significance. ***
  26756. --- ************************************************
  26757. ---
  26758. CREATE VIEW sequence_motif AS
  26759. SELECT
  26760. feature_id AS sequence_motif_id,
  26761. feature.*
  26762. FROM
  26763. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26764. 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';
  26765. --- ************************************************
  26766. --- *** relation: experimental_feature_attribute ***
  26767. --- *** relation type: VIEW ***
  26768. --- *** ***
  26769. --- *** An attribute of an experimentally derive ***
  26770. --- *** d feature. ***
  26771. --- ************************************************
  26772. ---
  26773. CREATE VIEW experimental_feature_attribute AS
  26774. SELECT
  26775. feature_id AS experimental_feature_attribute_id,
  26776. feature.*
  26777. FROM
  26778. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26779. WHERE cvterm.name = 'score' OR cvterm.name = 'quality_value' OR cvterm.name = 'experimental_feature_attribute';
  26780. --- ************************************************
  26781. --- *** relation: score ***
  26782. --- *** relation type: VIEW ***
  26783. --- *** ***
  26784. --- *** The score of an experimentally derived f ***
  26785. --- *** eature such as a p-value. ***
  26786. --- ************************************************
  26787. ---
  26788. CREATE VIEW score AS
  26789. SELECT
  26790. feature_id AS score_id,
  26791. feature.*
  26792. FROM
  26793. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26794. WHERE cvterm.name = 'score';
  26795. --- ************************************************
  26796. --- *** relation: quality_value ***
  26797. --- *** relation type: VIEW ***
  26798. --- *** ***
  26799. --- *** An experimental feature attribute that d ***
  26800. --- *** efines the quality of the feature in a q ***
  26801. --- *** uantitative way, such as a phred quality ***
  26802. --- *** score. ***
  26803. --- ************************************************
  26804. ---
  26805. CREATE VIEW quality_value AS
  26806. SELECT
  26807. feature_id AS quality_value_id,
  26808. feature.*
  26809. FROM
  26810. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26811. WHERE cvterm.name = 'quality_value';
  26812. --- ************************************************
  26813. --- *** relation: restriction_enzyme_recognition_site ***
  26814. --- *** relation type: VIEW ***
  26815. --- *** ***
  26816. --- *** The nucleotide region (usually a palindr ***
  26817. --- *** ome) that is recognized by a restriction ***
  26818. --- *** enzyme. This may or may not be equal to ***
  26819. --- *** the restriction enzyme binding site. ***
  26820. --- ************************************************
  26821. ---
  26822. CREATE VIEW restriction_enzyme_recognition_site AS
  26823. SELECT
  26824. feature_id AS restriction_enzyme_recognition_site_id,
  26825. feature.*
  26826. FROM
  26827. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26828. 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';
  26829. --- ************************************************
  26830. --- *** relation: restriction_enzyme_cleavage_junction ***
  26831. --- *** relation type: VIEW ***
  26832. --- *** ***
  26833. --- *** The boundary at which a restriction enzy ***
  26834. --- *** me breaks the nucleotide sequence. ***
  26835. --- ************************************************
  26836. ---
  26837. CREATE VIEW restriction_enzyme_cleavage_junction AS
  26838. SELECT
  26839. feature_id AS restriction_enzyme_cleavage_junction_id,
  26840. feature.*
  26841. FROM
  26842. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26843. 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';
  26844. --- ************************************************
  26845. --- *** relation: five_prime_restriction_enzyme_junction ***
  26846. --- *** relation type: VIEW ***
  26847. --- *** ***
  26848. --- *** The restriction enzyme cleavage junction ***
  26849. --- *** on the 5' strand of the nucleotide sequ ***
  26850. --- *** ence. ***
  26851. --- ************************************************
  26852. ---
  26853. CREATE VIEW five_prime_restriction_enzyme_junction AS
  26854. SELECT
  26855. feature_id AS five_prime_restriction_enzyme_junction_id,
  26856. feature.*
  26857. FROM
  26858. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26859. WHERE cvterm.name = 'five_prime_restriction_enzyme_junction';
  26860. --- ************************************************
  26861. --- *** relation: three_prime_restriction_enzyme_junction ***
  26862. --- *** relation type: VIEW ***
  26863. --- *** ***
  26864. --- ************************************************
  26865. ---
  26866. CREATE VIEW three_prime_restriction_enzyme_junction AS
  26867. SELECT
  26868. feature_id AS three_prime_restriction_enzyme_junction_id,
  26869. feature.*
  26870. FROM
  26871. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26872. WHERE cvterm.name = 'three_prime_restriction_enzyme_junction';
  26873. --- ************************************************
  26874. --- *** relation: blunt_end_restriction_enzyme_cleavage_site ***
  26875. --- *** relation type: VIEW ***
  26876. --- *** ***
  26877. --- ************************************************
  26878. ---
  26879. CREATE VIEW blunt_end_restriction_enzyme_cleavage_site AS
  26880. SELECT
  26881. feature_id AS blunt_end_restriction_enzyme_cleavage_site_id,
  26882. feature.*
  26883. FROM
  26884. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26885. WHERE cvterm.name = 'blunt_end_restriction_enzyme_cleavage_site';
  26886. --- ************************************************
  26887. --- *** relation: sticky_end_restriction_enzyme_cleavage_site ***
  26888. --- *** relation type: VIEW ***
  26889. --- *** ***
  26890. --- ************************************************
  26891. ---
  26892. CREATE VIEW sticky_end_restriction_enzyme_cleavage_site AS
  26893. SELECT
  26894. feature_id AS sticky_end_restriction_enzyme_cleavage_site_id,
  26895. feature.*
  26896. FROM
  26897. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26898. WHERE cvterm.name = 'sticky_end_restriction_enzyme_cleavage_site';
  26899. --- ************************************************
  26900. --- *** relation: blunt_end_restriction_enzyme_cleavage_junction ***
  26901. --- *** relation type: VIEW ***
  26902. --- *** ***
  26903. --- *** A restriction enzyme cleavage site where ***
  26904. --- *** both strands are cut at the same positi ***
  26905. --- *** on. ***
  26906. --- ************************************************
  26907. ---
  26908. CREATE VIEW blunt_end_restriction_enzyme_cleavage_junction AS
  26909. SELECT
  26910. feature_id AS blunt_end_restriction_enzyme_cleavage_junction_id,
  26911. feature.*
  26912. FROM
  26913. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26914. WHERE cvterm.name = 'blunt_end_restriction_enzyme_cleavage_junction';
  26915. --- ************************************************
  26916. --- *** relation: single_strand_restriction_enzyme_cleavage_site ***
  26917. --- *** relation type: VIEW ***
  26918. --- *** ***
  26919. --- *** A restriction enzyme cleavage site where ***
  26920. --- *** by only one strand is cut. ***
  26921. --- ************************************************
  26922. ---
  26923. CREATE VIEW single_strand_restriction_enzyme_cleavage_site AS
  26924. SELECT
  26925. feature_id AS single_strand_restriction_enzyme_cleavage_site_id,
  26926. feature.*
  26927. FROM
  26928. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26929. 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';
  26930. --- ************************************************
  26931. --- *** relation: restriction_enzyme_single_strand_overhang ***
  26932. --- *** relation type: VIEW ***
  26933. --- *** ***
  26934. --- *** A terminal region of DNA sequence where ***
  26935. --- *** the end of the region is not blunt ended ***
  26936. --- *** . ***
  26937. --- ************************************************
  26938. ---
  26939. CREATE VIEW restriction_enzyme_single_strand_overhang AS
  26940. SELECT
  26941. feature_id AS restriction_enzyme_single_strand_overhang_id,
  26942. feature.*
  26943. FROM
  26944. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26945. WHERE cvterm.name = 'restriction_enzyme_single_strand_overhang';
  26946. --- ************************************************
  26947. --- *** relation: experimentally_defined_binding_region ***
  26948. --- *** relation type: VIEW ***
  26949. --- *** ***
  26950. --- *** A region that has been implicated in bin ***
  26951. --- *** ding although the exact coordinates of b ***
  26952. --- *** inding may be unknown. ***
  26953. --- ************************************************
  26954. ---
  26955. CREATE VIEW experimentally_defined_binding_region AS
  26956. SELECT
  26957. feature_id AS experimentally_defined_binding_region_id,
  26958. feature.*
  26959. FROM
  26960. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26961. WHERE cvterm.name = 'CHiP_seq_region' OR cvterm.name = 'experimentally_defined_binding_region';
  26962. --- ************************************************
  26963. --- *** relation: chip_seq_region ***
  26964. --- *** relation type: VIEW ***
  26965. --- *** ***
  26966. --- *** A region of sequence identified by CHiP ***
  26967. --- *** seq technology to contain a protein bind ***
  26968. --- *** ing site. ***
  26969. --- ************************************************
  26970. ---
  26971. CREATE VIEW chip_seq_region AS
  26972. SELECT
  26973. feature_id AS chip_seq_region_id,
  26974. feature.*
  26975. FROM
  26976. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26977. WHERE cvterm.name = 'CHiP_seq_region';
  26978. --- ************************************************
  26979. --- *** relation: aspe_primer ***
  26980. --- *** relation type: VIEW ***
  26981. --- *** ***
  26982. --- *** "A primer containing an SNV at the 3' en ***
  26983. --- *** d for accurate genotyping. ***
  26984. --- ************************************************
  26985. ---
  26986. CREATE VIEW aspe_primer AS
  26987. SELECT
  26988. feature_id AS aspe_primer_id,
  26989. feature.*
  26990. FROM
  26991. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  26992. WHERE cvterm.name = 'ASPE_primer';
  26993. --- ************************************************
  26994. --- *** relation: dcaps_primer ***
  26995. --- *** relation type: VIEW ***
  26996. --- *** ***
  26997. --- *** A primer with one or more mis-matches to ***
  26998. --- *** the DNA template corresponding to a pos ***
  26999. --- *** ition within a restriction enzyme recogn ***
  27000. --- *** ition site. ***
  27001. --- ************************************************
  27002. ---
  27003. CREATE VIEW dcaps_primer AS
  27004. SELECT
  27005. feature_id AS dcaps_primer_id,
  27006. feature.*
  27007. FROM
  27008. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27009. WHERE cvterm.name = 'dCAPS_primer';
  27010. --- ************************************************
  27011. --- *** relation: histone_modification ***
  27012. --- *** relation type: VIEW ***
  27013. --- *** ***
  27014. --- *** Histone modification is a post translati ***
  27015. --- *** onally modified region whereby residues ***
  27016. --- *** of the histone protein are modified by m ***
  27017. --- *** ethylation, acetylation, phosphorylation ***
  27018. --- *** , ubiquitination, sumoylation, citrullin ***
  27019. --- *** ation, or ADP-ribosylation. ***
  27020. --- ************************************************
  27021. ---
  27022. CREATE VIEW histone_modification AS
  27023. SELECT
  27024. feature_id AS histone_modification_id,
  27025. feature.*
  27026. FROM
  27027. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27028. 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';
  27029. --- ************************************************
  27030. --- *** relation: histone_methylation_site ***
  27031. --- *** relation type: VIEW ***
  27032. --- *** ***
  27033. --- *** A histone modification site where the mo ***
  27034. --- *** dification is the methylation of the res ***
  27035. --- *** idue. ***
  27036. --- ************************************************
  27037. ---
  27038. CREATE VIEW histone_methylation_site AS
  27039. SELECT
  27040. feature_id AS histone_methylation_site_id,
  27041. feature.*
  27042. FROM
  27043. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27044. 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';
  27045. --- ************************************************
  27046. --- *** relation: histone_acetylation_site ***
  27047. --- *** relation type: VIEW ***
  27048. --- *** ***
  27049. --- *** A histone modification where the modific ***
  27050. --- *** ation is the acylation of the residue. ***
  27051. --- ************************************************
  27052. ---
  27053. CREATE VIEW histone_acetylation_site AS
  27054. SELECT
  27055. feature_id AS histone_acetylation_site_id,
  27056. feature.*
  27057. FROM
  27058. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27059. 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';
  27060. --- ************************************************
  27061. --- *** relation: h3k9_acetylation_site ***
  27062. --- *** relation type: VIEW ***
  27063. --- *** ***
  27064. --- *** A kind of histone modification site, whe ***
  27065. --- *** reby the 9th residue (a lysine), from th ***
  27066. --- *** e start of the H3 histone protein is acy ***
  27067. --- *** lated. ***
  27068. --- ************************************************
  27069. ---
  27070. CREATE VIEW h3k9_acetylation_site AS
  27071. SELECT
  27072. feature_id AS h3k9_acetylation_site_id,
  27073. feature.*
  27074. FROM
  27075. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27076. WHERE cvterm.name = 'H3K9_acetylation_site';
  27077. --- ************************************************
  27078. --- *** relation: h3k14_acetylation_site ***
  27079. --- *** relation type: VIEW ***
  27080. --- *** ***
  27081. --- *** A kind of histone modification site, whe ***
  27082. --- *** reby the 14th residue (a lysine), from t ***
  27083. --- *** he start of the H3 histone protein is ac ***
  27084. --- *** ylated. ***
  27085. --- ************************************************
  27086. ---
  27087. CREATE VIEW h3k14_acetylation_site AS
  27088. SELECT
  27089. feature_id AS h3k14_acetylation_site_id,
  27090. feature.*
  27091. FROM
  27092. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27093. WHERE cvterm.name = 'H3K14_acetylation_site';
  27094. --- ************************************************
  27095. --- *** relation: h3k4_monomethylation_site ***
  27096. --- *** relation type: VIEW ***
  27097. --- *** ***
  27098. --- *** A kind of histone modification, whereby ***
  27099. --- *** the 4th residue (a lysine), from the sta ***
  27100. --- *** rt of the H3 protein is mono-methylated. ***
  27101. --- ************************************************
  27102. ---
  27103. CREATE VIEW h3k4_monomethylation_site AS
  27104. SELECT
  27105. feature_id AS h3k4_monomethylation_site_id,
  27106. feature.*
  27107. FROM
  27108. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27109. WHERE cvterm.name = 'H3K4_monomethylation_site';
  27110. --- ************************************************
  27111. --- *** relation: h3k4_trimethylation ***
  27112. --- *** relation type: VIEW ***
  27113. --- *** ***
  27114. --- *** A kind of histone modification site, whe ***
  27115. --- *** reby the 4th residue (a lysine), from th ***
  27116. --- *** e start of the H3 protein is tri-methyla ***
  27117. --- *** ted. ***
  27118. --- ************************************************
  27119. ---
  27120. CREATE VIEW h3k4_trimethylation AS
  27121. SELECT
  27122. feature_id AS h3k4_trimethylation_id,
  27123. feature.*
  27124. FROM
  27125. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27126. WHERE cvterm.name = 'H3K4_trimethylation';
  27127. --- ************************************************
  27128. --- *** relation: h3k9_trimethylation_site ***
  27129. --- *** relation type: VIEW ***
  27130. --- *** ***
  27131. --- *** A kind of histone modification site, whe ***
  27132. --- *** reby the 9th residue (a lysine), from th ***
  27133. --- *** e start of the H3 histone protein is tri ***
  27134. --- *** -methylated. ***
  27135. --- ************************************************
  27136. ---
  27137. CREATE VIEW h3k9_trimethylation_site AS
  27138. SELECT
  27139. feature_id AS h3k9_trimethylation_site_id,
  27140. feature.*
  27141. FROM
  27142. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27143. WHERE cvterm.name = 'H3K9_trimethylation_site';
  27144. --- ************************************************
  27145. --- *** relation: h3k27_monomethylation_site ***
  27146. --- *** relation type: VIEW ***
  27147. --- *** ***
  27148. --- *** A kind of histone modification site, whe ***
  27149. --- *** reby the 27th residue (a lysine), from t ***
  27150. --- *** he start of the H3 histone protein is mo ***
  27151. --- *** no-methylated. ***
  27152. --- ************************************************
  27153. ---
  27154. CREATE VIEW h3k27_monomethylation_site AS
  27155. SELECT
  27156. feature_id AS h3k27_monomethylation_site_id,
  27157. feature.*
  27158. FROM
  27159. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27160. WHERE cvterm.name = 'H3K27_monomethylation_site';
  27161. --- ************************************************
  27162. --- *** relation: h3k27_trimethylation_site ***
  27163. --- *** relation type: VIEW ***
  27164. --- *** ***
  27165. --- *** A kind of histone modification site, whe ***
  27166. --- *** reby the 27th residue (a lysine), from t ***
  27167. --- *** he start of the H3 histone protein is tr ***
  27168. --- *** i-methylated. ***
  27169. --- ************************************************
  27170. ---
  27171. CREATE VIEW h3k27_trimethylation_site AS
  27172. SELECT
  27173. feature_id AS h3k27_trimethylation_site_id,
  27174. feature.*
  27175. FROM
  27176. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27177. WHERE cvterm.name = 'H3K27_trimethylation_site';
  27178. --- ************************************************
  27179. --- *** relation: h3k79_monomethylation_site ***
  27180. --- *** relation type: VIEW ***
  27181. --- *** ***
  27182. --- *** A kind of histone modification site, whe ***
  27183. --- *** reby the 79th residue (a lysine), from t ***
  27184. --- *** he start of the H3 histone protein is mo ***
  27185. --- *** no- methylated. ***
  27186. --- ************************************************
  27187. ---
  27188. CREATE VIEW h3k79_monomethylation_site AS
  27189. SELECT
  27190. feature_id AS h3k79_monomethylation_site_id,
  27191. feature.*
  27192. FROM
  27193. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27194. WHERE cvterm.name = 'H3K79_monomethylation_site';
  27195. --- ************************************************
  27196. --- *** relation: h3k79_dimethylation_site ***
  27197. --- *** relation type: VIEW ***
  27198. --- *** ***
  27199. --- *** A kind of histone modification site, whe ***
  27200. --- *** reby the 79th residue (a lysine), from t ***
  27201. --- *** he start of the H3 histone protein is di ***
  27202. --- *** -methylated. ***
  27203. --- ************************************************
  27204. ---
  27205. CREATE VIEW h3k79_dimethylation_site AS
  27206. SELECT
  27207. feature_id AS h3k79_dimethylation_site_id,
  27208. feature.*
  27209. FROM
  27210. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27211. WHERE cvterm.name = 'H3K79_dimethylation_site';
  27212. --- ************************************************
  27213. --- *** relation: h3k79_trimethylation_site ***
  27214. --- *** relation type: VIEW ***
  27215. --- *** ***
  27216. --- *** A kind of histone modification site, whe ***
  27217. --- *** reby the 79th residue (a lysine), from t ***
  27218. --- *** he start of the H3 histone protein is tr ***
  27219. --- *** i-methylated. ***
  27220. --- ************************************************
  27221. ---
  27222. CREATE VIEW h3k79_trimethylation_site AS
  27223. SELECT
  27224. feature_id AS h3k79_trimethylation_site_id,
  27225. feature.*
  27226. FROM
  27227. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27228. WHERE cvterm.name = 'H3K79_trimethylation_site';
  27229. --- ************************************************
  27230. --- *** relation: h4k20_monomethylation_site ***
  27231. --- *** relation type: VIEW ***
  27232. --- *** ***
  27233. --- *** A kind of histone modification site, whe ***
  27234. --- *** reby the 20th residue (a lysine), from t ***
  27235. --- *** he start of the H34histone protein is mo ***
  27236. --- *** no-methylated. ***
  27237. --- ************************************************
  27238. ---
  27239. CREATE VIEW h4k20_monomethylation_site AS
  27240. SELECT
  27241. feature_id AS h4k20_monomethylation_site_id,
  27242. feature.*
  27243. FROM
  27244. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27245. WHERE cvterm.name = 'H4K20_monomethylation_site';
  27246. --- ************************************************
  27247. --- *** relation: h2bk5_monomethylation_site ***
  27248. --- *** relation type: VIEW ***
  27249. --- *** ***
  27250. --- *** A kind of histone modification site, whe ***
  27251. --- *** reby the 5th residue (a lysine), from th ***
  27252. --- *** e start of the H2B protein is methylated ***
  27253. --- *** . ***
  27254. --- ************************************************
  27255. ---
  27256. CREATE VIEW h2bk5_monomethylation_site AS
  27257. SELECT
  27258. feature_id AS h2bk5_monomethylation_site_id,
  27259. feature.*
  27260. FROM
  27261. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27262. WHERE cvterm.name = 'H2BK5_monomethylation_site';
  27263. --- ************************************************
  27264. --- *** relation: isre ***
  27265. --- *** relation type: VIEW ***
  27266. --- *** ***
  27267. --- *** An ISRE is a transcriptional cis regulat ***
  27268. --- *** ory region, containing the consensus reg ***
  27269. --- *** ion: YAGTTTC(A/T)YTTTYCC, responsible fo ***
  27270. --- *** r increased transcription via interferon ***
  27271. --- *** binding. ***
  27272. --- ************************************************
  27273. ---
  27274. CREATE VIEW isre AS
  27275. SELECT
  27276. feature_id AS isre_id,
  27277. feature.*
  27278. FROM
  27279. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27280. WHERE cvterm.name = 'ISRE';
  27281. --- ************************************************
  27282. --- *** relation: histone_ubiqitination_site ***
  27283. --- *** relation type: VIEW ***
  27284. --- *** ***
  27285. --- *** A histone modification site where ubiqui ***
  27286. --- *** tin may be added. ***
  27287. --- ************************************************
  27288. ---
  27289. CREATE VIEW histone_ubiqitination_site AS
  27290. SELECT
  27291. feature_id AS histone_ubiqitination_site_id,
  27292. feature.*
  27293. FROM
  27294. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27295. WHERE cvterm.name = 'H2B_ubiquitination_site' OR cvterm.name = 'histone_ubiqitination_site';
  27296. --- ************************************************
  27297. --- *** relation: h2b_ubiquitination_site ***
  27298. --- *** relation type: VIEW ***
  27299. --- *** ***
  27300. --- *** A histone modification site on H2B where ***
  27301. --- *** ubiquitin may be added. ***
  27302. --- ************************************************
  27303. ---
  27304. CREATE VIEW h2b_ubiquitination_site AS
  27305. SELECT
  27306. feature_id AS h2b_ubiquitination_site_id,
  27307. feature.*
  27308. FROM
  27309. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27310. WHERE cvterm.name = 'H2B_ubiquitination_site';
  27311. --- ************************************************
  27312. --- *** relation: h3k18_acetylation_site ***
  27313. --- *** relation type: VIEW ***
  27314. --- *** ***
  27315. --- *** A kind of histone modification site, whe ***
  27316. --- *** reby the 14th residue (a lysine), from t ***
  27317. --- *** he start of the H3 histone protein is ac ***
  27318. --- *** ylated. ***
  27319. --- ************************************************
  27320. ---
  27321. CREATE VIEW h3k18_acetylation_site AS
  27322. SELECT
  27323. feature_id AS h3k18_acetylation_site_id,
  27324. feature.*
  27325. FROM
  27326. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27327. WHERE cvterm.name = 'H3K18_acetylation_site';
  27328. --- ************************************************
  27329. --- *** relation: h3k23_acylation_site ***
  27330. --- *** relation type: VIEW ***
  27331. --- *** ***
  27332. --- *** A kind of histone modification, whereby ***
  27333. --- *** the 23rd residue (a lysine), from the st ***
  27334. --- *** art of the H3 histone protein is acylate ***
  27335. --- *** d. ***
  27336. --- ************************************************
  27337. ---
  27338. CREATE VIEW h3k23_acylation_site AS
  27339. SELECT
  27340. feature_id AS h3k23_acylation_site_id,
  27341. feature.*
  27342. FROM
  27343. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27344. WHERE cvterm.name = 'H3K23_acylation site';
  27345. --- ************************************************
  27346. --- *** relation: epigenetically_modified_region ***
  27347. --- *** relation type: VIEW ***
  27348. --- *** ***
  27349. --- *** A biological region implicated in inheri ***
  27350. --- *** ted changes caused by mechanisms other t ***
  27351. --- *** han changes in the underlying DNA sequen ***
  27352. --- *** ce. ***
  27353. --- ************************************************
  27354. ---
  27355. CREATE VIEW epigenetically_modified_region AS
  27356. SELECT
  27357. feature_id AS epigenetically_modified_region_id,
  27358. feature.*
  27359. FROM
  27360. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27361. 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';
  27362. --- ************************************************
  27363. --- *** relation: h3k27_acylation_site ***
  27364. --- *** relation type: VIEW ***
  27365. --- *** ***
  27366. --- *** A kind of histone modification site, whe ***
  27367. --- *** reby the 27th residue (a lysine), from t ***
  27368. --- *** he start of the H3 histone protein is ac ***
  27369. --- *** ylated. ***
  27370. --- ************************************************
  27371. ---
  27372. CREATE VIEW h3k27_acylation_site AS
  27373. SELECT
  27374. feature_id AS h3k27_acylation_site_id,
  27375. feature.*
  27376. FROM
  27377. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27378. WHERE cvterm.name = 'H3K27_acylation_site';
  27379. --- ************************************************
  27380. --- *** relation: h3k36_monomethylation_site ***
  27381. --- *** relation type: VIEW ***
  27382. --- *** ***
  27383. --- *** A kind of histone modification site, whe ***
  27384. --- *** reby the 36th residue (a lysine), from t ***
  27385. --- *** he start of the H3 histone protein is mo ***
  27386. --- *** no-methylated. ***
  27387. --- ************************************************
  27388. ---
  27389. CREATE VIEW h3k36_monomethylation_site AS
  27390. SELECT
  27391. feature_id AS h3k36_monomethylation_site_id,
  27392. feature.*
  27393. FROM
  27394. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27395. WHERE cvterm.name = 'H3K36_monomethylation_site';
  27396. --- ************************************************
  27397. --- *** relation: h3k36_dimethylation_site ***
  27398. --- *** relation type: VIEW ***
  27399. --- *** ***
  27400. --- *** A kind of histone modification site, whe ***
  27401. --- *** reby the 36th residue (a lysine), from t ***
  27402. --- *** he start of the H3 histone protein is di ***
  27403. --- *** methylated. ***
  27404. --- ************************************************
  27405. ---
  27406. CREATE VIEW h3k36_dimethylation_site AS
  27407. SELECT
  27408. feature_id AS h3k36_dimethylation_site_id,
  27409. feature.*
  27410. FROM
  27411. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27412. WHERE cvterm.name = 'H3K36_dimethylation_site';
  27413. --- ************************************************
  27414. --- *** relation: h3k36_trimethylation_site ***
  27415. --- *** relation type: VIEW ***
  27416. --- *** ***
  27417. --- *** A kind of histone modification site, whe ***
  27418. --- *** reby the 36th residue (a lysine), from t ***
  27419. --- *** he start of the H3 histone protein is tr ***
  27420. --- *** i-methylated. ***
  27421. --- ************************************************
  27422. ---
  27423. CREATE VIEW h3k36_trimethylation_site AS
  27424. SELECT
  27425. feature_id AS h3k36_trimethylation_site_id,
  27426. feature.*
  27427. FROM
  27428. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27429. WHERE cvterm.name = 'H3K36_trimethylation_site';
  27430. --- ************************************************
  27431. --- *** relation: h3k4_dimethylation_site ***
  27432. --- *** relation type: VIEW ***
  27433. --- *** ***
  27434. --- *** A kind of histone modification site, whe ***
  27435. --- *** reby the 4th residue (a lysine), from th ***
  27436. --- *** e start of the H3 histone protein is di- ***
  27437. --- *** methylated. ***
  27438. --- ************************************************
  27439. ---
  27440. CREATE VIEW h3k4_dimethylation_site AS
  27441. SELECT
  27442. feature_id AS h3k4_dimethylation_site_id,
  27443. feature.*
  27444. FROM
  27445. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27446. WHERE cvterm.name = 'H3K4_dimethylation_site';
  27447. --- ************************************************
  27448. --- *** relation: h3k27_dimethylation_site ***
  27449. --- *** relation type: VIEW ***
  27450. --- *** ***
  27451. --- *** A kind of histone modification site, whe ***
  27452. --- *** reby the 27th residue (a lysine), from t ***
  27453. --- *** he start of the H3 histone protein is di ***
  27454. --- *** -methylated. ***
  27455. --- ************************************************
  27456. ---
  27457. CREATE VIEW h3k27_dimethylation_site AS
  27458. SELECT
  27459. feature_id AS h3k27_dimethylation_site_id,
  27460. feature.*
  27461. FROM
  27462. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27463. WHERE cvterm.name = 'H3K27_dimethylation_site';
  27464. --- ************************************************
  27465. --- *** relation: h3k9_monomethylation_site ***
  27466. --- *** relation type: VIEW ***
  27467. --- *** ***
  27468. --- *** A kind of histone modification site, whe ***
  27469. --- *** reby the 9th residue (a lysine), from th ***
  27470. --- *** e start of the H3 histone protein is mon ***
  27471. --- *** o-methylated. ***
  27472. --- ************************************************
  27473. ---
  27474. CREATE VIEW h3k9_monomethylation_site AS
  27475. SELECT
  27476. feature_id AS h3k9_monomethylation_site_id,
  27477. feature.*
  27478. FROM
  27479. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27480. WHERE cvterm.name = 'H3K9_monomethylation_site';
  27481. --- ************************************************
  27482. --- *** relation: h3k9_dimethylation_site ***
  27483. --- *** relation type: VIEW ***
  27484. --- *** ***
  27485. --- *** A kind of histone modification site, whe ***
  27486. --- *** reby the 9th residue (a lysine), from th ***
  27487. --- *** e start of the H3 histone protein may be ***
  27488. --- *** dimethylated. ***
  27489. --- ************************************************
  27490. ---
  27491. CREATE VIEW h3k9_dimethylation_site AS
  27492. SELECT
  27493. feature_id AS h3k9_dimethylation_site_id,
  27494. feature.*
  27495. FROM
  27496. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27497. WHERE cvterm.name = 'H3K9_dimethylation_site';
  27498. --- ************************************************
  27499. --- *** relation: h4k16_acylation_site ***
  27500. --- *** relation type: VIEW ***
  27501. --- *** ***
  27502. --- *** A kind of histone modification site, whe ***
  27503. --- *** reby the 16th residue (a lysine), from t ***
  27504. --- *** he start of the H4 histone protein is ac ***
  27505. --- *** ylated. ***
  27506. --- ************************************************
  27507. ---
  27508. CREATE VIEW h4k16_acylation_site AS
  27509. SELECT
  27510. feature_id AS h4k16_acylation_site_id,
  27511. feature.*
  27512. FROM
  27513. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27514. WHERE cvterm.name = 'H4K16_acylation_site';
  27515. --- ************************************************
  27516. --- *** relation: h4k5_acylation_site ***
  27517. --- *** relation type: VIEW ***
  27518. --- *** ***
  27519. --- *** A kind of histone modification site, whe ***
  27520. --- *** reby the 5th residue (a lysine), from th ***
  27521. --- *** e start of the H4 histone protein is acy ***
  27522. --- *** lated. ***
  27523. --- ************************************************
  27524. ---
  27525. CREATE VIEW h4k5_acylation_site AS
  27526. SELECT
  27527. feature_id AS h4k5_acylation_site_id,
  27528. feature.*
  27529. FROM
  27530. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27531. WHERE cvterm.name = 'H4K5_acylation_site';
  27532. --- ************************************************
  27533. --- *** relation: h4k8_acylation_site ***
  27534. --- *** relation type: VIEW ***
  27535. --- *** ***
  27536. --- *** A kind of histone modification site, whe ***
  27537. --- *** reby the 8th residue (a lysine), from th ***
  27538. --- *** e start of the H4 histone protein is acy ***
  27539. --- *** lated. ***
  27540. --- ************************************************
  27541. ---
  27542. CREATE VIEW h4k8_acylation_site AS
  27543. SELECT
  27544. feature_id AS h4k8_acylation_site_id,
  27545. feature.*
  27546. FROM
  27547. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27548. WHERE cvterm.name = 'H4K8_acylation site';
  27549. --- ************************************************
  27550. --- *** relation: h3k27_methylation_site ***
  27551. --- *** relation type: VIEW ***
  27552. --- *** ***
  27553. --- *** A kind of histone modification site, whe ***
  27554. --- *** reby the 27th residue (a lysine), from t ***
  27555. --- *** he start of the H3 histone protein is me ***
  27556. --- *** thylated. ***
  27557. --- ************************************************
  27558. ---
  27559. CREATE VIEW h3k27_methylation_site AS
  27560. SELECT
  27561. feature_id AS h3k27_methylation_site_id,
  27562. feature.*
  27563. FROM
  27564. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27565. WHERE cvterm.name = 'H3K27_monomethylation_site' OR cvterm.name = 'H3K27_trimethylation_site' OR cvterm.name = 'H3K27_dimethylation_site' OR cvterm.name = 'H3K27_methylation_site';
  27566. --- ************************************************
  27567. --- *** relation: h3k36_methylation_site ***
  27568. --- *** relation type: VIEW ***
  27569. --- *** ***
  27570. --- *** A kind of histone modification site, whe ***
  27571. --- *** reby the 36th residue (a lysine), from t ***
  27572. --- *** he start of the H3 histone protein is me ***
  27573. --- *** thylated. ***
  27574. --- ************************************************
  27575. ---
  27576. CREATE VIEW h3k36_methylation_site AS
  27577. SELECT
  27578. feature_id AS h3k36_methylation_site_id,
  27579. feature.*
  27580. FROM
  27581. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27582. WHERE cvterm.name = 'H3K36_monomethylation_site' OR cvterm.name = 'H3K36_dimethylation_site' OR cvterm.name = 'H3K36_trimethylation_site' OR cvterm.name = 'H3K36_methylation_site';
  27583. --- ************************************************
  27584. --- *** relation: h3k4_methylation_site ***
  27585. --- *** relation type: VIEW ***
  27586. --- *** ***
  27587. --- *** A kind of histone modification, whereby ***
  27588. --- *** the 4th residue (a lysine), from the sta ***
  27589. --- *** rt of the H3 protein is methylated. ***
  27590. --- ************************************************
  27591. ---
  27592. CREATE VIEW h3k4_methylation_site AS
  27593. SELECT
  27594. feature_id AS h3k4_methylation_site_id,
  27595. feature.*
  27596. FROM
  27597. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27598. WHERE cvterm.name = 'H3K4_monomethylation_site' OR cvterm.name = 'H3K4_trimethylation' OR cvterm.name = 'H3K4_dimethylation_site' OR cvterm.name = 'H3K4_methylation_site';
  27599. --- ************************************************
  27600. --- *** relation: h3k79_methylation_site ***
  27601. --- *** relation type: VIEW ***
  27602. --- *** ***
  27603. --- *** A kind of histone modification site, whe ***
  27604. --- *** reby the 79th residue (a lysine), from t ***
  27605. --- *** he start of the H3 histone protein is me ***
  27606. --- *** thylated. ***
  27607. --- ************************************************
  27608. ---
  27609. CREATE VIEW h3k79_methylation_site AS
  27610. SELECT
  27611. feature_id AS h3k79_methylation_site_id,
  27612. feature.*
  27613. FROM
  27614. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27615. WHERE cvterm.name = 'H3K79_monomethylation_site' OR cvterm.name = 'H3K79_dimethylation_site' OR cvterm.name = 'H3K79_trimethylation_site' OR cvterm.name = 'H3K79_methylation_site';
  27616. --- ************************************************
  27617. --- *** relation: h3k9_methylation_site ***
  27618. --- *** relation type: VIEW ***
  27619. --- *** ***
  27620. --- *** A kind of histone modification site, whe ***
  27621. --- *** reby the 9th residue (a lysine), from th ***
  27622. --- *** e start of the H3 histone protein is met ***
  27623. --- *** hylated. ***
  27624. --- ************************************************
  27625. ---
  27626. CREATE VIEW h3k9_methylation_site AS
  27627. SELECT
  27628. feature_id AS h3k9_methylation_site_id,
  27629. feature.*
  27630. FROM
  27631. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27632. WHERE cvterm.name = 'H3K9_trimethylation_site' OR cvterm.name = 'H3K9_monomethylation_site' OR cvterm.name = 'H3K9_dimethylation_site' OR cvterm.name = 'H3K9_methylation_site';
  27633. --- ************************************************
  27634. --- *** relation: histone_acylation_region ***
  27635. --- *** relation type: VIEW ***
  27636. --- *** ***
  27637. --- *** A histone modification, whereby the hist ***
  27638. --- *** one protein is acylated at multiple site ***
  27639. --- *** s in a region. ***
  27640. --- ************************************************
  27641. ---
  27642. CREATE VIEW histone_acylation_region AS
  27643. SELECT
  27644. feature_id AS histone_acylation_region_id,
  27645. feature.*
  27646. FROM
  27647. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27648. WHERE cvterm.name = 'H4K_acylation_region' OR cvterm.name = 'histone_acylation_region';
  27649. --- ************************************************
  27650. --- *** relation: h4k_acylation_region ***
  27651. --- *** relation type: VIEW ***
  27652. --- *** ***
  27653. --- *** A region of the H4 histone whereby multi ***
  27654. --- *** ple lysines are acylated. ***
  27655. --- ************************************************
  27656. ---
  27657. CREATE VIEW h4k_acylation_region AS
  27658. SELECT
  27659. feature_id AS h4k_acylation_region_id,
  27660. feature.*
  27661. FROM
  27662. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27663. WHERE cvterm.name = 'H4K_acylation_region';
  27664. --- ************************************************
  27665. --- *** relation: gene_with_non_canonical_start_codon ***
  27666. --- *** relation type: VIEW ***
  27667. --- *** ***
  27668. --- *** A gene with a start codon other than AUG ***
  27669. --- *** . ***
  27670. --- ************************************************
  27671. ---
  27672. CREATE VIEW gene_with_non_canonical_start_codon AS
  27673. SELECT
  27674. feature_id AS gene_with_non_canonical_start_codon_id,
  27675. feature.*
  27676. FROM
  27677. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27678. WHERE cvterm.name = 'gene_with_start_codon_CUG' OR cvterm.name = 'gene_with_non_canonical_start_codon';
  27679. --- ************************************************
  27680. --- *** relation: gene_with_start_codon_cug ***
  27681. --- *** relation type: VIEW ***
  27682. --- *** ***
  27683. --- *** A gene with a translational start codon ***
  27684. --- *** of CUG. ***
  27685. --- ************************************************
  27686. ---
  27687. CREATE VIEW gene_with_start_codon_cug AS
  27688. SELECT
  27689. feature_id AS gene_with_start_codon_cug_id,
  27690. feature.*
  27691. FROM
  27692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27693. WHERE cvterm.name = 'gene_with_start_codon_CUG';
  27694. --- ************************************************
  27695. --- *** relation: pseudogenic_gene_segment ***
  27696. --- *** relation type: VIEW ***
  27697. --- *** ***
  27698. --- *** A gene segment which when incorporated b ***
  27699. --- *** y somatic recombination in the final gen ***
  27700. --- *** e transcript results in a nonfunctional ***
  27701. --- *** product. ***
  27702. --- ************************************************
  27703. ---
  27704. CREATE VIEW pseudogenic_gene_segment AS
  27705. SELECT
  27706. feature_id AS pseudogenic_gene_segment_id,
  27707. feature.*
  27708. FROM
  27709. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27710. WHERE cvterm.name = 'pseudogenic_gene_segment';
  27711. --- ************************************************
  27712. --- *** relation: copy_number_gain ***
  27713. --- *** relation type: VIEW ***
  27714. --- *** ***
  27715. --- *** A sequence alteration whereby the copy n ***
  27716. --- *** umber of a given regions is greater than ***
  27717. --- *** the reference sequence. ***
  27718. --- ************************************************
  27719. ---
  27720. CREATE VIEW copy_number_gain AS
  27721. SELECT
  27722. feature_id AS copy_number_gain_id,
  27723. feature.*
  27724. FROM
  27725. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27726. WHERE cvterm.name = 'copy_number_gain';
  27727. --- ************************************************
  27728. --- *** relation: copy_number_loss ***
  27729. --- *** relation type: VIEW ***
  27730. --- *** ***
  27731. --- *** A sequence alteration whereby the copy n ***
  27732. --- *** umber of a given region is less than the ***
  27733. --- *** reference sequence. ***
  27734. --- ************************************************
  27735. ---
  27736. CREATE VIEW copy_number_loss AS
  27737. SELECT
  27738. feature_id AS copy_number_loss_id,
  27739. feature.*
  27740. FROM
  27741. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27742. WHERE cvterm.name = 'copy_number_loss';
  27743. --- ************************************************
  27744. --- *** relation: upd ***
  27745. --- *** relation type: VIEW ***
  27746. --- *** ***
  27747. --- *** Uniparental disomy is a sequence_alterat ***
  27748. --- *** ion where a diploid individual receives ***
  27749. --- *** two copies for all or part of a chromoso ***
  27750. --- *** me from one parent and no copies of the ***
  27751. --- *** same chromosome or region from the other ***
  27752. --- *** parent. ***
  27753. --- ************************************************
  27754. ---
  27755. CREATE VIEW upd AS
  27756. SELECT
  27757. feature_id AS upd_id,
  27758. feature.*
  27759. FROM
  27760. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27761. WHERE cvterm.name = 'maternal_uniparental_disomy' OR cvterm.name = 'paternal_uniparental_disomy' OR cvterm.name = 'UPD';
  27762. --- ************************************************
  27763. --- *** relation: maternal_uniparental_disomy ***
  27764. --- *** relation type: VIEW ***
  27765. --- *** ***
  27766. --- *** Uniparental disomy is a sequence_alterat ***
  27767. --- *** ion where a diploid individual receives ***
  27768. --- *** two copies for all or part of a chromoso ***
  27769. --- *** me from the mother and no copies of the ***
  27770. --- *** same chromosome or region from the fathe ***
  27771. --- *** r. ***
  27772. --- ************************************************
  27773. ---
  27774. CREATE VIEW maternal_uniparental_disomy AS
  27775. SELECT
  27776. feature_id AS maternal_uniparental_disomy_id,
  27777. feature.*
  27778. FROM
  27779. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27780. WHERE cvterm.name = 'maternal_uniparental_disomy';
  27781. --- ************************************************
  27782. --- *** relation: paternal_uniparental_disomy ***
  27783. --- *** relation type: VIEW ***
  27784. --- *** ***
  27785. --- *** Uniparental disomy is a sequence_alterat ***
  27786. --- *** ion where a diploid individual receives ***
  27787. --- *** two copies for all or part of a chromoso ***
  27788. --- *** me from the father and no copies of the ***
  27789. --- *** same chromosome or region from the mothe ***
  27790. --- *** r. ***
  27791. --- ************************************************
  27792. ---
  27793. CREATE VIEW paternal_uniparental_disomy AS
  27794. SELECT
  27795. feature_id AS paternal_uniparental_disomy_id,
  27796. feature.*
  27797. FROM
  27798. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27799. WHERE cvterm.name = 'paternal_uniparental_disomy';
  27800. --- ************************************************
  27801. --- *** relation: open_chromatin_region ***
  27802. --- *** relation type: VIEW ***
  27803. --- *** ***
  27804. --- *** A DNA sequence that in the normal state ***
  27805. --- *** of the chromosome corresponds to an unfo ***
  27806. --- *** lded, un-complexed stretch of double-str ***
  27807. --- *** anded DNA. ***
  27808. --- ************************************************
  27809. ---
  27810. CREATE VIEW open_chromatin_region AS
  27811. SELECT
  27812. feature_id AS open_chromatin_region_id,
  27813. feature.*
  27814. FROM
  27815. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27816. WHERE cvterm.name = 'open_chromatin_region';
  27817. --- ************************************************
  27818. --- *** relation: sl3_acceptor_site ***
  27819. --- *** relation type: VIEW ***
  27820. --- *** ***
  27821. --- *** A SL2_acceptor_site which appends the SL ***
  27822. --- *** 3 RNA leader sequence to the 5' end of a ***
  27823. --- *** n mRNA. SL3 acceptor sites occur in gene ***
  27824. --- *** s in internal segments of polycistronic ***
  27825. --- *** transcripts. ***
  27826. --- ************************************************
  27827. ---
  27828. CREATE VIEW sl3_acceptor_site AS
  27829. SELECT
  27830. feature_id AS sl3_acceptor_site_id,
  27831. feature.*
  27832. FROM
  27833. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27834. WHERE cvterm.name = 'SL3_acceptor_site';
  27835. --- ************************************************
  27836. --- *** relation: sl4_acceptor_site ***
  27837. --- *** relation type: VIEW ***
  27838. --- *** ***
  27839. --- *** A SL2_acceptor_site which appends the SL ***
  27840. --- *** 4 RNA leader sequence to the 5' end of a ***
  27841. --- *** n mRNA. SL4 acceptor sites occur in gene ***
  27842. --- *** s in internal segments of polycistronic ***
  27843. --- *** transcripts. ***
  27844. --- ************************************************
  27845. ---
  27846. CREATE VIEW sl4_acceptor_site AS
  27847. SELECT
  27848. feature_id AS sl4_acceptor_site_id,
  27849. feature.*
  27850. FROM
  27851. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27852. WHERE cvterm.name = 'SL4_acceptor_site';
  27853. --- ************************************************
  27854. --- *** relation: sl5_acceptor_site ***
  27855. --- *** relation type: VIEW ***
  27856. --- *** ***
  27857. --- *** A SL2_acceptor_site which appends the SL ***
  27858. --- *** 5 RNA leader sequence to the 5' end of a ***
  27859. --- *** n mRNA. SL5 acceptor sites occur in gene ***
  27860. --- *** s in internal segments of polycistronic ***
  27861. --- *** transcripts. ***
  27862. --- ************************************************
  27863. ---
  27864. CREATE VIEW sl5_acceptor_site AS
  27865. SELECT
  27866. feature_id AS sl5_acceptor_site_id,
  27867. feature.*
  27868. FROM
  27869. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27870. WHERE cvterm.name = 'SL5_acceptor_site';
  27871. --- ************************************************
  27872. --- *** relation: sl6_acceptor_site ***
  27873. --- *** relation type: VIEW ***
  27874. --- *** ***
  27875. --- *** A SL2_acceptor_site which appends the SL ***
  27876. --- *** 6 RNA leader sequence to the 5' end of a ***
  27877. --- *** n mRNA. SL6 acceptor sites occur in gene ***
  27878. --- *** s in internal segments of polycistronic ***
  27879. --- *** transcripts. ***
  27880. --- ************************************************
  27881. ---
  27882. CREATE VIEW sl6_acceptor_site AS
  27883. SELECT
  27884. feature_id AS sl6_acceptor_site_id,
  27885. feature.*
  27886. FROM
  27887. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27888. WHERE cvterm.name = 'SL6_acceptor_site';
  27889. --- ************************************************
  27890. --- *** relation: sl7_acceptor_site ***
  27891. --- *** relation type: VIEW ***
  27892. --- *** ***
  27893. --- *** A SL2_acceptor_site which appends the SL ***
  27894. --- *** 7 RNA leader sequence to the 5' end of a ***
  27895. --- *** n mRNA. SL7 acceptor sites occur in gene ***
  27896. --- *** s in internal segments of polycistronic ***
  27897. --- *** transcripts. ***
  27898. --- ************************************************
  27899. ---
  27900. CREATE VIEW sl7_acceptor_site AS
  27901. SELECT
  27902. feature_id AS sl7_acceptor_site_id,
  27903. feature.*
  27904. FROM
  27905. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27906. WHERE cvterm.name = 'SL7_acceptor_site';
  27907. --- ************************************************
  27908. --- *** relation: sl8_acceptor_site ***
  27909. --- *** relation type: VIEW ***
  27910. --- *** ***
  27911. --- *** A SL2_acceptor_site which appends the SL ***
  27912. --- *** 8 RNA leader sequence to the 5' end of a ***
  27913. --- *** n mRNA. SL8 acceptor sites occur in gene ***
  27914. --- *** s in internal segments of polycistronic ***
  27915. --- *** transcripts. ***
  27916. --- ************************************************
  27917. ---
  27918. CREATE VIEW sl8_acceptor_site AS
  27919. SELECT
  27920. feature_id AS sl8_acceptor_site_id,
  27921. feature.*
  27922. FROM
  27923. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27924. WHERE cvterm.name = 'SL8_acceptor_site';
  27925. --- ************************************************
  27926. --- *** relation: sl9_acceptor_site ***
  27927. --- *** relation type: VIEW ***
  27928. --- *** ***
  27929. --- *** A SL2_acceptor_site which appends the SL ***
  27930. --- *** 9 RNA leader sequence to the 5' end of a ***
  27931. --- *** n mRNA. SL9 acceptor sites occur in gene ***
  27932. --- *** s in internal segments of polycistronic ***
  27933. --- *** transcripts. ***
  27934. --- ************************************************
  27935. ---
  27936. CREATE VIEW sl9_acceptor_site AS
  27937. SELECT
  27938. feature_id AS sl9_acceptor_site_id,
  27939. feature.*
  27940. FROM
  27941. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27942. WHERE cvterm.name = 'SL9_acceptor_site';
  27943. --- ************************************************
  27944. --- *** relation: sl10_accceptor_site ***
  27945. --- *** relation type: VIEW ***
  27946. --- *** ***
  27947. --- *** A SL2_acceptor_site which appends the SL ***
  27948. --- *** 10 RNA leader sequence to the 5' end of ***
  27949. --- *** an mRNA. SL10 acceptor sites occur in ge ***
  27950. --- *** nes in internal segments of polycistroni ***
  27951. --- *** c transcripts. ***
  27952. --- ************************************************
  27953. ---
  27954. CREATE VIEW sl10_accceptor_site AS
  27955. SELECT
  27956. feature_id AS sl10_accceptor_site_id,
  27957. feature.*
  27958. FROM
  27959. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27960. WHERE cvterm.name = 'SL10_accceptor_site';
  27961. --- ************************************************
  27962. --- *** relation: sl11_acceptor_site ***
  27963. --- *** relation type: VIEW ***
  27964. --- *** ***
  27965. --- *** A SL2_acceptor_site which appends the SL ***
  27966. --- *** 11 RNA leader sequence to the 5' end of ***
  27967. --- *** an mRNA. SL11 acceptor sites occur in ge ***
  27968. --- *** nes in internal segments of polycistroni ***
  27969. --- *** c transcripts. ***
  27970. --- ************************************************
  27971. ---
  27972. CREATE VIEW sl11_acceptor_site AS
  27973. SELECT
  27974. feature_id AS sl11_acceptor_site_id,
  27975. feature.*
  27976. FROM
  27977. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27978. WHERE cvterm.name = 'SL11_acceptor_site';
  27979. --- ************************************************
  27980. --- *** relation: sl12_acceptor_site ***
  27981. --- *** relation type: VIEW ***
  27982. --- *** ***
  27983. --- *** A SL2_acceptor_site which appends the SL ***
  27984. --- *** 12 RNA leader sequence to the 5' end of ***
  27985. --- *** an mRNA. SL12 acceptor sites occur in ge ***
  27986. --- *** nes in internal segments of polycistroni ***
  27987. --- *** c transcripts. ***
  27988. --- ************************************************
  27989. ---
  27990. CREATE VIEW sl12_acceptor_site AS
  27991. SELECT
  27992. feature_id AS sl12_acceptor_site_id,
  27993. feature.*
  27994. FROM
  27995. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  27996. WHERE cvterm.name = 'SL12_acceptor_site';
  27997. --- ************************************************
  27998. --- *** relation: duplicated_pseudogene ***
  27999. --- *** relation type: VIEW ***
  28000. --- *** ***
  28001. --- *** A pseudogene that arose via gene duplica ***
  28002. --- *** tion. Generally duplicated pseudogenes h ***
  28003. --- *** ave the same structure as the original g ***
  28004. --- *** ene, including intron-exon structure and ***
  28005. --- *** some regulatory sequence. ***
  28006. --- ************************************************
  28007. ---
  28008. CREATE VIEW duplicated_pseudogene AS
  28009. SELECT
  28010. feature_id AS duplicated_pseudogene_id,
  28011. feature.*
  28012. FROM
  28013. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28014. WHERE cvterm.name = 'duplicated_pseudogene';
  28015. --- ************************************************
  28016. --- *** relation: unitary_pseudogene ***
  28017. --- *** relation type: VIEW ***
  28018. --- *** ***
  28019. --- *** A pseudogene, deactivated from original ***
  28020. --- *** state by mutation, fixed in a population ***
  28021. --- *** . ***
  28022. --- ************************************************
  28023. ---
  28024. CREATE VIEW unitary_pseudogene AS
  28025. SELECT
  28026. feature_id AS unitary_pseudogene_id,
  28027. feature.*
  28028. FROM
  28029. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28030. WHERE cvterm.name = 'unitary_pseudogene';
  28031. --- ************************************************
  28032. --- *** relation: non_processed_pseudogene ***
  28033. --- *** relation type: VIEW ***
  28034. --- *** ***
  28035. --- *** A pseudogene that arose from a means oth ***
  28036. --- *** er than retrotransposition. ***
  28037. --- ************************************************
  28038. ---
  28039. CREATE VIEW non_processed_pseudogene AS
  28040. SELECT
  28041. feature_id AS non_processed_pseudogene_id,
  28042. feature.*
  28043. FROM
  28044. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28045. 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';
  28046. --- ************************************************
  28047. --- *** relation: variant_quality ***
  28048. --- *** relation type: VIEW ***
  28049. --- *** ***
  28050. --- *** A dependent entity that inheres in a bea ***
  28051. --- *** rer, a sequence variant. ***
  28052. --- ************************************************
  28053. ---
  28054. CREATE VIEW variant_quality AS
  28055. SELECT
  28056. feature_id AS variant_quality_id,
  28057. feature.*
  28058. FROM
  28059. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28060. 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';
  28061. --- ************************************************
  28062. --- *** relation: variant_origin ***
  28063. --- *** relation type: VIEW ***
  28064. --- *** ***
  28065. --- *** A quality inhering in a variant by virtu ***
  28066. --- *** e of its origin. ***
  28067. --- ************************************************
  28068. ---
  28069. CREATE VIEW variant_origin AS
  28070. SELECT
  28071. feature_id AS variant_origin_id,
  28072. feature.*
  28073. FROM
  28074. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28075. 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';
  28076. --- ************************************************
  28077. --- *** relation: variant_frequency ***
  28078. --- *** relation type: VIEW ***
  28079. --- *** ***
  28080. --- *** A physical quality which inheres to the ***
  28081. --- *** variant by virtue of the number instance ***
  28082. --- *** s of the variant within a population. ***
  28083. --- ************************************************
  28084. ---
  28085. CREATE VIEW variant_frequency AS
  28086. SELECT
  28087. feature_id AS variant_frequency_id,
  28088. feature.*
  28089. FROM
  28090. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28091. 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';
  28092. --- ************************************************
  28093. --- *** relation: unique_variant ***
  28094. --- *** relation type: VIEW ***
  28095. --- *** ***
  28096. --- *** A physical quality which inheres to the ***
  28097. --- *** variant by virtue of the number instance ***
  28098. --- *** s of the variant within a population. ***
  28099. --- ************************************************
  28100. ---
  28101. CREATE VIEW unique_variant AS
  28102. SELECT
  28103. feature_id AS unique_variant_id,
  28104. feature.*
  28105. FROM
  28106. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28107. WHERE cvterm.name = 'unique_variant';
  28108. --- ************************************************
  28109. --- *** relation: rare_variant ***
  28110. --- *** relation type: VIEW ***
  28111. --- *** ***
  28112. --- ************************************************
  28113. ---
  28114. CREATE VIEW rare_variant AS
  28115. SELECT
  28116. feature_id AS rare_variant_id,
  28117. feature.*
  28118. FROM
  28119. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28120. WHERE cvterm.name = 'rare_variant';
  28121. --- ************************************************
  28122. --- *** relation: polymorphic_variant ***
  28123. --- *** relation type: VIEW ***
  28124. --- *** ***
  28125. --- ************************************************
  28126. ---
  28127. CREATE VIEW polymorphic_variant AS
  28128. SELECT
  28129. feature_id AS polymorphic_variant_id,
  28130. feature.*
  28131. FROM
  28132. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28133. WHERE cvterm.name = 'polymorphic_variant';
  28134. --- ************************************************
  28135. --- *** relation: common_variant ***
  28136. --- *** relation type: VIEW ***
  28137. --- *** ***
  28138. --- ************************************************
  28139. ---
  28140. CREATE VIEW common_variant AS
  28141. SELECT
  28142. feature_id AS common_variant_id,
  28143. feature.*
  28144. FROM
  28145. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28146. WHERE cvterm.name = 'common_variant';
  28147. --- ************************************************
  28148. --- *** relation: fixed_variant ***
  28149. --- *** relation type: VIEW ***
  28150. --- *** ***
  28151. --- ************************************************
  28152. ---
  28153. CREATE VIEW fixed_variant AS
  28154. SELECT
  28155. feature_id AS fixed_variant_id,
  28156. feature.*
  28157. FROM
  28158. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28159. WHERE cvterm.name = 'fixed_variant';
  28160. --- ************************************************
  28161. --- *** relation: variant_phenotype ***
  28162. --- *** relation type: VIEW ***
  28163. --- *** ***
  28164. --- *** A quality inhering in a variant by virtu ***
  28165. --- *** e of its phenotype. ***
  28166. --- ************************************************
  28167. ---
  28168. CREATE VIEW variant_phenotype AS
  28169. SELECT
  28170. feature_id AS variant_phenotype_id,
  28171. feature.*
  28172. FROM
  28173. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28174. 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';
  28175. --- ************************************************
  28176. --- *** relation: benign_variant ***
  28177. --- *** relation type: VIEW ***
  28178. --- *** ***
  28179. --- ************************************************
  28180. ---
  28181. CREATE VIEW benign_variant AS
  28182. SELECT
  28183. feature_id AS benign_variant_id,
  28184. feature.*
  28185. FROM
  28186. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28187. WHERE cvterm.name = 'benign_variant';
  28188. --- ************************************************
  28189. --- *** relation: disease_associated_variant ***
  28190. --- *** relation type: VIEW ***
  28191. --- *** ***
  28192. --- ************************************************
  28193. ---
  28194. CREATE VIEW disease_associated_variant AS
  28195. SELECT
  28196. feature_id AS disease_associated_variant_id,
  28197. feature.*
  28198. FROM
  28199. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28200. WHERE cvterm.name = 'disease_associated_variant';
  28201. --- ************************************************
  28202. --- *** relation: disease_causing_variant ***
  28203. --- *** relation type: VIEW ***
  28204. --- *** ***
  28205. --- ************************************************
  28206. ---
  28207. CREATE VIEW disease_causing_variant AS
  28208. SELECT
  28209. feature_id AS disease_causing_variant_id,
  28210. feature.*
  28211. FROM
  28212. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28213. WHERE cvterm.name = 'disease_causing_variant';
  28214. --- ************************************************
  28215. --- *** relation: lethal_variant ***
  28216. --- *** relation type: VIEW ***
  28217. --- *** ***
  28218. --- ************************************************
  28219. ---
  28220. CREATE VIEW lethal_variant AS
  28221. SELECT
  28222. feature_id AS lethal_variant_id,
  28223. feature.*
  28224. FROM
  28225. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28226. WHERE cvterm.name = 'lethal_variant';
  28227. --- ************************************************
  28228. --- *** relation: quantitative_variant ***
  28229. --- *** relation type: VIEW ***
  28230. --- *** ***
  28231. --- ************************************************
  28232. ---
  28233. CREATE VIEW quantitative_variant AS
  28234. SELECT
  28235. feature_id AS quantitative_variant_id,
  28236. feature.*
  28237. FROM
  28238. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28239. WHERE cvterm.name = 'quantitative_variant';
  28240. --- ************************************************
  28241. --- *** relation: maternal_variant ***
  28242. --- *** relation type: VIEW ***
  28243. --- *** ***
  28244. --- ************************************************
  28245. ---
  28246. CREATE VIEW maternal_variant AS
  28247. SELECT
  28248. feature_id AS maternal_variant_id,
  28249. feature.*
  28250. FROM
  28251. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28252. WHERE cvterm.name = 'maternal_variant';
  28253. --- ************************************************
  28254. --- *** relation: paternal_variant ***
  28255. --- *** relation type: VIEW ***
  28256. --- *** ***
  28257. --- ************************************************
  28258. ---
  28259. CREATE VIEW paternal_variant AS
  28260. SELECT
  28261. feature_id AS paternal_variant_id,
  28262. feature.*
  28263. FROM
  28264. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28265. WHERE cvterm.name = 'paternal_variant';
  28266. --- ************************************************
  28267. --- *** relation: somatic_variant ***
  28268. --- *** relation type: VIEW ***
  28269. --- *** ***
  28270. --- ************************************************
  28271. ---
  28272. CREATE VIEW somatic_variant AS
  28273. SELECT
  28274. feature_id AS somatic_variant_id,
  28275. feature.*
  28276. FROM
  28277. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28278. WHERE cvterm.name = 'somatic_variant';
  28279. --- ************************************************
  28280. --- *** relation: germline_variant ***
  28281. --- *** relation type: VIEW ***
  28282. --- *** ***
  28283. --- ************************************************
  28284. ---
  28285. CREATE VIEW germline_variant AS
  28286. SELECT
  28287. feature_id AS germline_variant_id,
  28288. feature.*
  28289. FROM
  28290. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28291. WHERE cvterm.name = 'germline_variant';
  28292. --- ************************************************
  28293. --- *** relation: pedigree_specific_variant ***
  28294. --- *** relation type: VIEW ***
  28295. --- *** ***
  28296. --- ************************************************
  28297. ---
  28298. CREATE VIEW pedigree_specific_variant AS
  28299. SELECT
  28300. feature_id AS pedigree_specific_variant_id,
  28301. feature.*
  28302. FROM
  28303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28304. WHERE cvterm.name = 'pedigree_specific_variant';
  28305. --- ************************************************
  28306. --- *** relation: population_specific_variant ***
  28307. --- *** relation type: VIEW ***
  28308. --- *** ***
  28309. --- ************************************************
  28310. ---
  28311. CREATE VIEW population_specific_variant AS
  28312. SELECT
  28313. feature_id AS population_specific_variant_id,
  28314. feature.*
  28315. FROM
  28316. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28317. WHERE cvterm.name = 'population_specific_variant';
  28318. --- ************************************************
  28319. --- *** relation: de_novo_variant ***
  28320. --- *** relation type: VIEW ***
  28321. --- *** ***
  28322. --- ************************************************
  28323. ---
  28324. CREATE VIEW de_novo_variant AS
  28325. SELECT
  28326. feature_id AS de_novo_variant_id,
  28327. feature.*
  28328. FROM
  28329. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28330. WHERE cvterm.name = 'de_novo_variant';
  28331. --- ************************************************
  28332. --- *** relation: tf_binding_site_variant ***
  28333. --- *** relation type: VIEW ***
  28334. --- *** ***
  28335. --- *** A sequence variant located within a tran ***
  28336. --- *** scription factor binding site. ***
  28337. --- ************************************************
  28338. ---
  28339. CREATE VIEW tf_binding_site_variant AS
  28340. SELECT
  28341. feature_id AS tf_binding_site_variant_id,
  28342. feature.*
  28343. FROM
  28344. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28345. WHERE cvterm.name = 'TF_binding_site_variant';
  28346. --- ************************************************
  28347. --- *** relation: missense_codon ***
  28348. --- *** relation type: VIEW ***
  28349. --- *** ***
  28350. --- *** A sequence variant whereby at least one ***
  28351. --- *** base of a codon is changed resulting in ***
  28352. --- *** a codon that encodes for a different ami ***
  28353. --- *** no acid. ***
  28354. --- ************************************************
  28355. ---
  28356. CREATE VIEW missense_codon AS
  28357. SELECT
  28358. feature_id AS missense_codon_id,
  28359. feature.*
  28360. FROM
  28361. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28362. WHERE cvterm.name = 'conservative_missense_codon' OR cvterm.name = 'non_conservative_missense_codon' OR cvterm.name = 'missense_codon';
  28363. --- ************************************************
  28364. --- *** relation: complex_structural_alteration ***
  28365. --- *** relation type: VIEW ***
  28366. --- *** ***
  28367. --- *** A structural sequence alteration where t ***
  28368. --- *** here are multiple equally plausible expl ***
  28369. --- *** anations for the change. ***
  28370. --- ************************************************
  28371. ---
  28372. CREATE VIEW complex_structural_alteration AS
  28373. SELECT
  28374. feature_id AS complex_structural_alteration_id,
  28375. feature.*
  28376. FROM
  28377. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28378. WHERE cvterm.name = 'complex_structural_alteration';
  28379. --- ************************************************
  28380. --- *** relation: structural_alteration ***
  28381. --- *** relation type: VIEW ***
  28382. --- *** ***
  28383. --- ************************************************
  28384. ---
  28385. CREATE VIEW structural_alteration AS
  28386. SELECT
  28387. feature_id AS structural_alteration_id,
  28388. feature.*
  28389. FROM
  28390. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28391. WHERE cvterm.name = 'complex_structural_alteration' OR cvterm.name = 'structural_alteration';
  28392. --- ************************************************
  28393. --- *** relation: loss_of_heterozygosity ***
  28394. --- *** relation type: VIEW ***
  28395. --- *** ***
  28396. --- ************************************************
  28397. ---
  28398. CREATE VIEW loss_of_heterozygosity AS
  28399. SELECT
  28400. feature_id AS loss_of_heterozygosity_id,
  28401. feature.*
  28402. FROM
  28403. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28404. WHERE cvterm.name = 'loss_of_heterozygosity';
  28405. --- ************************************************
  28406. --- *** relation: splice_donor_5th_base_variant ***
  28407. --- *** relation type: VIEW ***
  28408. --- *** ***
  28409. --- *** A sequence variant that causes a change ***
  28410. --- *** at the 5th base pair after the start of ***
  28411. --- *** the intron in the orientation of the tra ***
  28412. --- *** nscript. ***
  28413. --- ************************************************
  28414. ---
  28415. CREATE VIEW splice_donor_5th_base_variant AS
  28416. SELECT
  28417. feature_id AS splice_donor_5th_base_variant_id,
  28418. feature.*
  28419. FROM
  28420. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28421. WHERE cvterm.name = 'splice_donor_5th_base_variant';
  28422. --- ************************************************
  28423. --- *** relation: u_box ***
  28424. --- *** relation type: VIEW ***
  28425. --- *** ***
  28426. --- *** An U-box is a conserved T-rich region up ***
  28427. --- *** stream of a retroviral polypurine tract ***
  28428. --- *** that is involved in PPT primer creation ***
  28429. --- *** during reverse transcription. ***
  28430. --- ************************************************
  28431. ---
  28432. CREATE VIEW u_box AS
  28433. SELECT
  28434. feature_id AS u_box_id,
  28435. feature.*
  28436. FROM
  28437. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28438. WHERE cvterm.name = 'U_box';
  28439. --- ************************************************
  28440. --- *** relation: mating_type_region ***
  28441. --- *** relation type: VIEW ***
  28442. --- *** ***
  28443. --- *** A specialized region in the genomes of s ***
  28444. --- *** ome yeast and fungi, the genes of which ***
  28445. --- *** regulate mating type. ***
  28446. --- ************************************************
  28447. ---
  28448. CREATE VIEW mating_type_region AS
  28449. SELECT
  28450. feature_id AS mating_type_region_id,
  28451. feature.*
  28452. FROM
  28453. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28454. WHERE cvterm.name = 'mating_type_region';
  28455. --- ************************************************
  28456. --- *** relation: paired_end_fragment ***
  28457. --- *** relation type: VIEW ***
  28458. --- *** ***
  28459. --- *** An assembly region that has been sequenc ***
  28460. --- *** ed from both ends resulting in a read_pa ***
  28461. --- *** ir (mate_pair). ***
  28462. --- ************************************************
  28463. ---
  28464. CREATE VIEW paired_end_fragment AS
  28465. SELECT
  28466. feature_id AS paired_end_fragment_id,
  28467. feature.*
  28468. FROM
  28469. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28470. WHERE cvterm.name = 'paired_end_fragment';
  28471. --- ************************************************
  28472. --- *** relation: exon_variant ***
  28473. --- *** relation type: VIEW ***
  28474. --- *** ***
  28475. --- *** A sequence variant that changes exon seq ***
  28476. --- *** uence. ***
  28477. --- ************************************************
  28478. ---
  28479. CREATE VIEW exon_variant AS
  28480. SELECT
  28481. feature_id AS exon_variant_id,
  28482. feature.*
  28483. FROM
  28484. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28485. 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';
  28486. --- ************************************************
  28487. --- *** relation: non_coding_exon_variant ***
  28488. --- *** relation type: VIEW ***
  28489. --- *** ***
  28490. --- *** A sequence variant that changes non-codi ***
  28491. --- *** ng exon sequence. ***
  28492. --- ************************************************
  28493. ---
  28494. CREATE VIEW non_coding_exon_variant AS
  28495. SELECT
  28496. feature_id AS non_coding_exon_variant_id,
  28497. feature.*
  28498. FROM
  28499. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28500. WHERE cvterm.name = 'non_coding_exon_variant';
  28501. --- ************************************************
  28502. --- *** relation: clone_end ***
  28503. --- *** relation type: VIEW ***
  28504. --- *** ***
  28505. --- *** A read from an end of the clone sequence ***
  28506. --- *** . ***
  28507. --- ************************************************
  28508. ---
  28509. CREATE VIEW clone_end AS
  28510. SELECT
  28511. feature_id AS clone_end_id,
  28512. feature.*
  28513. FROM
  28514. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28515. WHERE cvterm.name = 'clone_end';
  28516. --- ************************************************
  28517. --- *** relation: point_centromere ***
  28518. --- *** relation type: VIEW ***
  28519. --- *** ***
  28520. --- *** A point centromere is a relatively small ***
  28521. --- *** centromere (about 125 bp DNA) in discre ***
  28522. --- *** te sequence, found in some yeast includi ***
  28523. --- *** ng S. cerevisiae. ***
  28524. --- ************************************************
  28525. ---
  28526. CREATE VIEW point_centromere AS
  28527. SELECT
  28528. feature_id AS point_centromere_id,
  28529. feature.*
  28530. FROM
  28531. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28532. WHERE cvterm.name = 'point_centromere';
  28533. --- ************************************************
  28534. --- *** relation: regional_centromere ***
  28535. --- *** relation type: VIEW ***
  28536. --- *** ***
  28537. --- *** A regional centromere is a large modular ***
  28538. --- *** centromere found in fission yeast and h ***
  28539. --- *** igher eukaryotes. It consist of a centra ***
  28540. --- *** l core region flanked by inverted inner ***
  28541. --- *** and outer repeat regions. ***
  28542. --- ************************************************
  28543. ---
  28544. CREATE VIEW regional_centromere AS
  28545. SELECT
  28546. feature_id AS regional_centromere_id,
  28547. feature.*
  28548. FROM
  28549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28550. WHERE cvterm.name = 'regional_centromere';
  28551. --- ************************************************
  28552. --- *** relation: regional_centromere_central_core ***
  28553. --- *** relation type: VIEW ***
  28554. --- *** ***
  28555. --- *** A conserved region within the central re ***
  28556. --- *** gion of a modular centromere, where the ***
  28557. --- *** kinetochore is formed. ***
  28558. --- ************************************************
  28559. ---
  28560. CREATE VIEW regional_centromere_central_core AS
  28561. SELECT
  28562. feature_id AS regional_centromere_central_core_id,
  28563. feature.*
  28564. FROM
  28565. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28566. WHERE cvterm.name = 'regional_centromere_central_core';
  28567. --- ************************************************
  28568. --- *** relation: centromeric_repeat ***
  28569. --- *** relation type: VIEW ***
  28570. --- *** ***
  28571. --- *** A repeat region found within the modular ***
  28572. --- *** centromere. ***
  28573. --- ************************************************
  28574. ---
  28575. CREATE VIEW centromeric_repeat AS
  28576. SELECT
  28577. feature_id AS centromeric_repeat_id,
  28578. feature.*
  28579. FROM
  28580. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28581. WHERE cvterm.name = 'regional_centromere_inner_repeat_region' OR cvterm.name = 'regional_centromere_outer_repeat_region' OR cvterm.name = 'centromeric_repeat';
  28582. --- ************************************************
  28583. --- *** relation: regional_centromere_inner_repeat_region ***
  28584. --- *** relation type: VIEW ***
  28585. --- *** ***
  28586. --- *** The inner repeat region of a modular cen ***
  28587. --- *** tromere. This region is adjacent to the ***
  28588. --- *** central core, on each chromosome arm. ***
  28589. --- ************************************************
  28590. ---
  28591. CREATE VIEW regional_centromere_inner_repeat_region AS
  28592. SELECT
  28593. feature_id AS regional_centromere_inner_repeat_region_id,
  28594. feature.*
  28595. FROM
  28596. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28597. WHERE cvterm.name = 'regional_centromere_inner_repeat_region';
  28598. --- ************************************************
  28599. --- *** relation: regional_centromere_outer_repeat_region ***
  28600. --- *** relation type: VIEW ***
  28601. --- *** ***
  28602. --- *** The heterochromatic outer repeat region ***
  28603. --- *** of a modular centromere. These repeats e ***
  28604. --- *** xist in tandem arrays on both chromosome ***
  28605. --- *** arms. ***
  28606. --- ************************************************
  28607. ---
  28608. CREATE VIEW regional_centromere_outer_repeat_region AS
  28609. SELECT
  28610. feature_id AS regional_centromere_outer_repeat_region_id,
  28611. feature.*
  28612. FROM
  28613. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28614. WHERE cvterm.name = 'regional_centromere_outer_repeat_region';
  28615. --- ************************************************
  28616. --- *** relation: tasirna ***
  28617. --- *** relation type: VIEW ***
  28618. --- *** ***
  28619. --- *** The sequence of a 21 nucleotide double s ***
  28620. --- *** tranded, polyadenylated non coding RNA, ***
  28621. --- *** transcribed from the TAS gene. ***
  28622. --- ************************************************
  28623. ---
  28624. CREATE VIEW tasirna AS
  28625. SELECT
  28626. feature_id AS tasirna_id,
  28627. feature.*
  28628. FROM
  28629. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28630. WHERE cvterm.name = 'tasiRNA';
  28631. --- ************************************************
  28632. --- *** relation: tasirna_primary_transcript ***
  28633. --- *** relation type: VIEW ***
  28634. --- *** ***
  28635. --- *** A primary transcript encoding a tasiRNA. ***
  28636. --- ************************************************
  28637. ---
  28638. CREATE VIEW tasirna_primary_transcript AS
  28639. SELECT
  28640. feature_id AS tasirna_primary_transcript_id,
  28641. feature.*
  28642. FROM
  28643. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28644. WHERE cvterm.name = 'tasiRNA_primary_transcript';
  28645. --- ************************************************
  28646. --- *** relation: increased_polyadenylation_variant ***
  28647. --- *** relation type: VIEW ***
  28648. --- *** ***
  28649. --- *** A transcript processing variant whereby ***
  28650. --- *** polyadenylation of the encoded transcrip ***
  28651. --- *** t is increased with respect to the refer ***
  28652. --- *** ence. ***
  28653. --- ************************************************
  28654. ---
  28655. CREATE VIEW increased_polyadenylation_variant AS
  28656. SELECT
  28657. feature_id AS increased_polyadenylation_variant_id,
  28658. feature.*
  28659. FROM
  28660. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28661. WHERE cvterm.name = 'increased_polyadenylation_variant';
  28662. --- ************************************************
  28663. --- *** relation: decreased_polyadenylation_variant ***
  28664. --- *** relation type: VIEW ***
  28665. --- *** ***
  28666. --- *** A transcript processing variant whereby ***
  28667. --- *** polyadenylation of the encoded transcrip ***
  28668. --- *** t is decreased with respect to the refer ***
  28669. --- *** ence. ***
  28670. --- ************************************************
  28671. ---
  28672. CREATE VIEW decreased_polyadenylation_variant AS
  28673. SELECT
  28674. feature_id AS decreased_polyadenylation_variant_id,
  28675. feature.*
  28676. FROM
  28677. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28678. WHERE cvterm.name = 'decreased_polyadenylation_variant';
  28679. --- ************************************************
  28680. --- *** relation: regulatory_region ***
  28681. --- *** relation type: VIEW ***
  28682. --- *** ***
  28683. --- *** A region of sequence that is involved in ***
  28684. --- *** the control of a biological process. ***
  28685. --- ************************************************
  28686. ---
  28687. CREATE VIEW regulatory_region AS
  28688. SELECT
  28689. feature_id AS regulatory_region_id,
  28690. feature.*
  28691. FROM
  28692. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28693. 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';
  28694. --- ************************************************
  28695. --- *** relation: u14_snorna_primary_transcript ***
  28696. --- *** relation type: VIEW ***
  28697. --- *** ***
  28698. --- *** The primary transcript of an evolutionar ***
  28699. --- *** ily conserved eukaryotic low molecular w ***
  28700. --- *** eight RNA capable of intermolecular hybr ***
  28701. --- *** idization with both homologous and heter ***
  28702. --- *** ologous 18S rRNA. ***
  28703. --- ************************************************
  28704. ---
  28705. CREATE VIEW u14_snorna_primary_transcript AS
  28706. SELECT
  28707. feature_id AS u14_snorna_primary_transcript_id,
  28708. feature.*
  28709. FROM
  28710. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28711. WHERE cvterm.name = 'U14_snoRNA_primary_transcript';
  28712. --- ************************************************
  28713. --- *** relation: methylation_guide_snorna ***
  28714. --- *** relation type: VIEW ***
  28715. --- *** ***
  28716. --- *** A snoRNA that specifies the site of 2'-O ***
  28717. --- *** -ribose methylation in an RNA molecule b ***
  28718. --- *** y base pairing with a short sequence aro ***
  28719. --- *** und the target residue. ***
  28720. --- ************************************************
  28721. ---
  28722. CREATE VIEW methylation_guide_snorna AS
  28723. SELECT
  28724. feature_id AS methylation_guide_snorna_id,
  28725. feature.*
  28726. FROM
  28727. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28728. WHERE cvterm.name = 'methylation_guide_snoRNA';
  28729. --- ************************************************
  28730. --- *** relation: rrna_cleavage_rna ***
  28731. --- *** relation type: VIEW ***
  28732. --- *** ***
  28733. --- *** An ncRNA that is part of a ribonucleopro ***
  28734. --- *** tein that cleaves the primary pre-rRNA t ***
  28735. --- *** ranscript in the process of producing ma ***
  28736. --- *** ture rRNA molecules. ***
  28737. --- ************************************************
  28738. ---
  28739. CREATE VIEW rrna_cleavage_rna AS
  28740. SELECT
  28741. feature_id AS rrna_cleavage_rna_id,
  28742. feature.*
  28743. FROM
  28744. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28745. WHERE cvterm.name = 'rRNA_cleavage_RNA';
  28746. --- ************************************************
  28747. --- *** relation: exon_of_single_exon_gene ***
  28748. --- *** relation type: VIEW ***
  28749. --- *** ***
  28750. --- *** An exon that is the only exon in a gene. ***
  28751. --- ************************************************
  28752. ---
  28753. CREATE VIEW exon_of_single_exon_gene AS
  28754. SELECT
  28755. feature_id AS exon_of_single_exon_gene_id,
  28756. feature.*
  28757. FROM
  28758. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28759. WHERE cvterm.name = 'exon_of_single_exon_gene';
  28760. --- ************************************************
  28761. --- *** relation: cassette_array_member ***
  28762. --- *** relation type: VIEW ***
  28763. --- *** ***
  28764. --- ************************************************
  28765. ---
  28766. CREATE VIEW cassette_array_member AS
  28767. SELECT
  28768. feature_id AS cassette_array_member_id,
  28769. feature.*
  28770. FROM
  28771. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28772. WHERE cvterm.name = 'cassette_array_member';
  28773. --- ************************************************
  28774. --- *** relation: gene_cassette_member ***
  28775. --- *** relation type: VIEW ***
  28776. --- *** ***
  28777. --- ************************************************
  28778. ---
  28779. CREATE VIEW gene_cassette_member AS
  28780. SELECT
  28781. feature_id AS gene_cassette_member_id,
  28782. feature.*
  28783. FROM
  28784. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28785. WHERE cvterm.name = 'cassette_array_member' OR cvterm.name = 'gene_cassette_member';
  28786. --- ************************************************
  28787. --- *** relation: gene_subarray_member ***
  28788. --- *** relation type: VIEW ***
  28789. --- *** ***
  28790. --- ************************************************
  28791. ---
  28792. CREATE VIEW gene_subarray_member AS
  28793. SELECT
  28794. feature_id AS gene_subarray_member_id,
  28795. feature.*
  28796. FROM
  28797. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28798. WHERE cvterm.name = 'gene_subarray_member';
  28799. --- ************************************************
  28800. --- *** relation: primer_binding_site ***
  28801. --- *** relation type: VIEW ***
  28802. --- *** ***
  28803. --- *** Non-covalent primer binding site for ini ***
  28804. --- *** tiation of replication, transcription, o ***
  28805. --- *** r reverse transcription. ***
  28806. --- ************************************************
  28807. ---
  28808. CREATE VIEW primer_binding_site AS
  28809. SELECT
  28810. feature_id AS primer_binding_site_id,
  28811. feature.*
  28812. FROM
  28813. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28814. WHERE cvterm.name = 'primer_binding_site';
  28815. --- ************************************************
  28816. --- *** relation: gene_array ***
  28817. --- *** relation type: VIEW ***
  28818. --- *** ***
  28819. --- *** An array includes two or more genes, or ***
  28820. --- *** two or more gene subarrays, contiguously ***
  28821. --- *** arranged where the individual genes, or ***
  28822. --- *** subarrays, are either identical in sequ ***
  28823. --- *** ence, or essentially so. ***
  28824. --- ************************************************
  28825. ---
  28826. CREATE VIEW gene_array AS
  28827. SELECT
  28828. feature_id AS gene_array_id,
  28829. feature.*
  28830. FROM
  28831. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28832. WHERE cvterm.name = 'gene_array';
  28833. --- ************************************************
  28834. --- *** relation: gene_subarray ***
  28835. --- *** relation type: VIEW ***
  28836. --- *** ***
  28837. --- *** A subarray is, by defintition, a member ***
  28838. --- *** of a gene array (SO:0005851); the member ***
  28839. --- *** s of a subarray may differ substantially ***
  28840. --- *** in sequence, but are closely related in ***
  28841. --- *** function. ***
  28842. --- ************************************************
  28843. ---
  28844. CREATE VIEW gene_subarray AS
  28845. SELECT
  28846. feature_id AS gene_subarray_id,
  28847. feature.*
  28848. FROM
  28849. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28850. WHERE cvterm.name = 'gene_subarray';
  28851. --- ************************************************
  28852. --- *** relation: gene_cassette ***
  28853. --- *** relation type: VIEW ***
  28854. --- *** ***
  28855. --- *** A gene that can be substituted for a rel ***
  28856. --- *** ated gene at a different site in the gen ***
  28857. --- *** ome. ***
  28858. --- ************************************************
  28859. ---
  28860. CREATE VIEW gene_cassette AS
  28861. SELECT
  28862. feature_id AS gene_cassette_id,
  28863. feature.*
  28864. FROM
  28865. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28866. WHERE cvterm.name = 'gene_cassette';
  28867. --- ************************************************
  28868. --- *** relation: gene_cassette_array ***
  28869. --- *** relation type: VIEW ***
  28870. --- *** ***
  28871. --- *** An array of non-functional genes whose m ***
  28872. --- *** embers, when captured by recombination f ***
  28873. --- *** orm functional genes. ***
  28874. --- ************************************************
  28875. ---
  28876. CREATE VIEW gene_cassette_array AS
  28877. SELECT
  28878. feature_id AS gene_cassette_array_id,
  28879. feature.*
  28880. FROM
  28881. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28882. WHERE cvterm.name = 'gene_cassette_array';
  28883. --- ************************************************
  28884. --- *** relation: gene_group ***
  28885. --- *** relation type: VIEW ***
  28886. --- *** ***
  28887. --- *** A collection of related genes. ***
  28888. --- ************************************************
  28889. ---
  28890. CREATE VIEW gene_group AS
  28891. SELECT
  28892. feature_id AS gene_group_id,
  28893. feature.*
  28894. FROM
  28895. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28896. 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';
  28897. --- ************************************************
  28898. --- *** relation: selenocysteine_trna_primary_transcript ***
  28899. --- *** relation type: VIEW ***
  28900. --- *** ***
  28901. --- *** A primary transcript encoding seryl tRNA ***
  28902. --- *** (SO:000269). ***
  28903. --- ************************************************
  28904. ---
  28905. CREATE VIEW selenocysteine_trna_primary_transcript AS
  28906. SELECT
  28907. feature_id AS selenocysteine_trna_primary_transcript_id,
  28908. feature.*
  28909. FROM
  28910. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28911. WHERE cvterm.name = 'selenocysteine_tRNA_primary_transcript';
  28912. --- ************************************************
  28913. --- *** relation: selenocysteinyl_trna ***
  28914. --- *** relation type: VIEW ***
  28915. --- *** ***
  28916. --- *** A tRNA sequence that has a selenocystein ***
  28917. --- *** e anticodon, and a 3' selenocysteine bin ***
  28918. --- *** ding region. ***
  28919. --- ************************************************
  28920. ---
  28921. CREATE VIEW selenocysteinyl_trna AS
  28922. SELECT
  28923. feature_id AS selenocysteinyl_trna_id,
  28924. feature.*
  28925. FROM
  28926. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28927. WHERE cvterm.name = 'selenocysteinyl_tRNA';
  28928. --- ************************************************
  28929. --- *** relation: syntenic_region ***
  28930. --- *** relation type: VIEW ***
  28931. --- *** ***
  28932. --- *** A region in which two or more pairs of h ***
  28933. --- *** omologous markers occur on the same chro ***
  28934. --- *** mosome in two or more species. ***
  28935. --- ************************************************
  28936. ---
  28937. CREATE VIEW syntenic_region AS
  28938. SELECT
  28939. feature_id AS syntenic_region_id,
  28940. feature.*
  28941. FROM
  28942. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28943. WHERE cvterm.name = 'syntenic_region';
  28944. --- ************************************************
  28945. --- *** relation: biochemical_region_of_peptide ***
  28946. --- *** relation type: VIEW ***
  28947. --- *** ***
  28948. --- *** A region of a peptide that is involved i ***
  28949. --- *** n a biochemical function. ***
  28950. --- ************************************************
  28951. ---
  28952. CREATE VIEW biochemical_region_of_peptide AS
  28953. SELECT
  28954. feature_id AS biochemical_region_of_peptide_id,
  28955. feature.*
  28956. FROM
  28957. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28958. 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';
  28959. --- ************************************************
  28960. --- *** relation: molecular_contact_region ***
  28961. --- *** relation type: VIEW ***
  28962. --- *** ***
  28963. --- *** A region that is involved a contact with ***
  28964. --- *** another molecule. ***
  28965. --- ************************************************
  28966. ---
  28967. CREATE VIEW molecular_contact_region AS
  28968. SELECT
  28969. feature_id AS molecular_contact_region_id,
  28970. feature.*
  28971. FROM
  28972. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28973. 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';
  28974. --- ************************************************
  28975. --- *** relation: intrinsically_unstructured_polypeptide_region ***
  28976. --- *** relation type: VIEW ***
  28977. --- *** ***
  28978. --- *** A region of polypeptide chain with high ***
  28979. --- *** conformational flexibility. ***
  28980. --- ************************************************
  28981. ---
  28982. CREATE VIEW intrinsically_unstructured_polypeptide_region AS
  28983. SELECT
  28984. feature_id AS intrinsically_unstructured_polypeptide_region_id,
  28985. feature.*
  28986. FROM
  28987. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  28988. WHERE cvterm.name = 'intrinsically_unstructured_polypeptide_region';
  28989. --- ************************************************
  28990. --- *** relation: catmat_left_handed_three ***
  28991. --- *** relation type: VIEW ***
  28992. --- *** ***
  28993. --- *** A motif of 3 consecutive residues with d ***
  28994. --- *** ihedral angles as follows: res i: phi -9 ***
  28995. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  28996. --- *** nds -50 to 30, res i+1: phi -75 bounds - ***
  28997. --- *** 100 to -50, res i+1: psi 140 bounds 110 ***
  28998. --- *** to 170. An extra restriction of the leng ***
  28999. --- *** th of the O to O distance would be usefu ***
  29000. --- *** l, that it be less than 5 Angstrom. More ***
  29001. --- *** precisely these two oxygens are the mai ***
  29002. --- *** n chain carbonyl oxygen atoms of residue ***
  29003. --- *** s i-1 and i+1. ***
  29004. --- ************************************************
  29005. ---
  29006. CREATE VIEW catmat_left_handed_three AS
  29007. SELECT
  29008. feature_id AS catmat_left_handed_three_id,
  29009. feature.*
  29010. FROM
  29011. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29012. WHERE cvterm.name = 'catmat_left_handed_three';
  29013. --- ************************************************
  29014. --- *** relation: catmat_left_handed_four ***
  29015. --- *** relation type: VIEW ***
  29016. --- *** ***
  29017. --- *** A motif of 4 consecutive residues with d ***
  29018. --- *** ihedral angles as follows: res i: phi -9 ***
  29019. --- *** 0 bounds -120 to -60, res i psi -10 boun ***
  29020. --- *** ds -50 to 30, res i+1: phi -90 bounds -1 ***
  29021. --- *** 20 to -60, res i+1: psi -10 bounds -50 t ***
  29022. --- *** o 30, res i+2: phi -75 bounds -100 to -5 ***
  29023. --- *** 0, res i+2: psi 140 bounds 110 to 170. ***
  29024. --- *** The extra restriction of the length of t ***
  29025. --- *** he O to O distance is similar, that it b ***
  29026. --- *** e less than 5 Angstrom. In this case the ***
  29027. --- *** se two Oxygen atoms are the main chain c ***
  29028. --- *** arbonyl oxygen atoms of residues i-1 and ***
  29029. --- *** i+2. ***
  29030. --- ************************************************
  29031. ---
  29032. CREATE VIEW catmat_left_handed_four AS
  29033. SELECT
  29034. feature_id AS catmat_left_handed_four_id,
  29035. feature.*
  29036. FROM
  29037. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29038. WHERE cvterm.name = 'catmat_left_handed_four';
  29039. --- ************************************************
  29040. --- *** relation: catmat_right_handed_three ***
  29041. --- *** relation type: VIEW ***
  29042. --- *** ***
  29043. --- *** A motif of 3 consecutive residues with d ***
  29044. --- *** ihedral angles as follows: res i: phi -9 ***
  29045. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  29046. --- *** nds -50 to 30, res i+1: phi -75 bounds - ***
  29047. --- *** 100 to -50, res i+1: psi 140 bounds 110 ***
  29048. --- *** to 170. An extra restriction of the leng ***
  29049. --- *** th of the O to O distance would be usefu ***
  29050. --- *** l, that it be less than 5 Angstrom. More ***
  29051. --- *** precisely these two oxygens are the mai ***
  29052. --- *** n chain carbonyl oxygen atoms of residue ***
  29053. --- *** s i-1 and i+1. ***
  29054. --- ************************************************
  29055. ---
  29056. CREATE VIEW catmat_right_handed_three AS
  29057. SELECT
  29058. feature_id AS catmat_right_handed_three_id,
  29059. feature.*
  29060. FROM
  29061. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29062. WHERE cvterm.name = 'catmat_right_handed_three';
  29063. --- ************************************************
  29064. --- *** relation: catmat_right_handed_four ***
  29065. --- *** relation type: VIEW ***
  29066. --- *** ***
  29067. --- *** A motif of 4 consecutive residues with d ***
  29068. --- *** ihedral angles as follows: res i: phi -9 ***
  29069. --- *** 0 bounds -120 to -60, res i: psi -10 bou ***
  29070. --- *** nds -50 to 30, res i+1: phi -90 bounds - ***
  29071. --- *** 120 to -60, res i+1: psi -10 bounds -50 ***
  29072. --- *** to 30, res i+2: phi -75 bounds -100 to - ***
  29073. --- *** 50, res i+2: psi 140 bounds 110 to 170. ***
  29074. --- *** The extra restriction of the length of t ***
  29075. --- *** he O to O distance is similar, that it b ***
  29076. --- *** e less than 5 Angstrom. In this case the ***
  29077. --- *** se two Oxygen atoms are the main chain c ***
  29078. --- *** arbonyl oxygen atoms of residues i-1 and ***
  29079. --- *** i+2. ***
  29080. --- ************************************************
  29081. ---
  29082. CREATE VIEW catmat_right_handed_four AS
  29083. SELECT
  29084. feature_id AS catmat_right_handed_four_id,
  29085. feature.*
  29086. FROM
  29087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29088. WHERE cvterm.name = 'catmat_right_handed_four';
  29089. --- ************************************************
  29090. --- *** relation: alpha_beta_motif ***
  29091. --- *** relation type: VIEW ***
  29092. --- *** ***
  29093. --- *** A motif of five consecutive residues and ***
  29094. --- *** two H-bonds in which: H-bond between CO ***
  29095. --- *** of residue(i) and NH of residue(i+4), H ***
  29096. --- *** -bond between CO of residue(i) and NH of ***
  29097. --- *** residue(i+3),Phi angles of residues(i+1 ***
  29098. --- *** ), (i+2) and (i+3) are negative. ***
  29099. --- ************************************************
  29100. ---
  29101. CREATE VIEW alpha_beta_motif AS
  29102. SELECT
  29103. feature_id AS alpha_beta_motif_id,
  29104. feature.*
  29105. FROM
  29106. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29107. WHERE cvterm.name = 'alpha_beta_motif';
  29108. --- ************************************************
  29109. --- *** relation: lipoprotein_signal_peptide ***
  29110. --- *** relation type: VIEW ***
  29111. --- *** ***
  29112. --- *** A peptide that acts as a signal for both ***
  29113. --- *** membrane translocation and lipid attach ***
  29114. --- *** ment in prokaryotes. ***
  29115. --- ************************************************
  29116. ---
  29117. CREATE VIEW lipoprotein_signal_peptide AS
  29118. SELECT
  29119. feature_id AS lipoprotein_signal_peptide_id,
  29120. feature.*
  29121. FROM
  29122. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29123. WHERE cvterm.name = 'lipoprotein_signal_peptide';
  29124. --- ************************************************
  29125. --- *** relation: no_output ***
  29126. --- *** relation type: VIEW ***
  29127. --- *** ***
  29128. --- *** An experimental region wherean analysis ***
  29129. --- *** has been run and not produced any annota ***
  29130. --- *** tion. ***
  29131. --- ************************************************
  29132. ---
  29133. CREATE VIEW no_output AS
  29134. SELECT
  29135. feature_id AS no_output_id,
  29136. feature.*
  29137. FROM
  29138. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29139. WHERE cvterm.name = 'no_output';
  29140. --- ************************************************
  29141. --- *** relation: cleaved_peptide_region ***
  29142. --- *** relation type: VIEW ***
  29143. --- *** ***
  29144. --- *** The cleaved_peptide_regon is the a regio ***
  29145. --- *** n of peptide sequence that is cleaved du ***
  29146. --- *** ring maturation. ***
  29147. --- ************************************************
  29148. ---
  29149. CREATE VIEW cleaved_peptide_region AS
  29150. SELECT
  29151. feature_id AS cleaved_peptide_region_id,
  29152. feature.*
  29153. FROM
  29154. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29155. 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';
  29156. --- ************************************************
  29157. --- *** relation: peptide_coil ***
  29158. --- *** relation type: VIEW ***
  29159. --- *** ***
  29160. --- *** Irregular, unstructured regions of a pro ***
  29161. --- *** tein's backbone, as distinct from the re ***
  29162. --- *** gular region (namely alpha helix and bet ***
  29163. --- *** a strand - characterised by specific pat ***
  29164. --- *** terns of main-chain hydrogen bonds). ***
  29165. --- ************************************************
  29166. ---
  29167. CREATE VIEW peptide_coil AS
  29168. SELECT
  29169. feature_id AS peptide_coil_id,
  29170. feature.*
  29171. FROM
  29172. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29173. WHERE cvterm.name = 'peptide_coil';
  29174. --- ************************************************
  29175. --- *** relation: hydrophobic_region_of_peptide ***
  29176. --- *** relation type: VIEW ***
  29177. --- *** ***
  29178. --- *** Hydrophobic regions are regions with a l ***
  29179. --- *** ow affinity for water. ***
  29180. --- ************************************************
  29181. ---
  29182. CREATE VIEW hydrophobic_region_of_peptide AS
  29183. SELECT
  29184. feature_id AS hydrophobic_region_of_peptide_id,
  29185. feature.*
  29186. FROM
  29187. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29188. WHERE cvterm.name = 'hydrophobic_region_of_peptide';
  29189. --- ************************************************
  29190. --- *** relation: n_terminal_region ***
  29191. --- *** relation type: VIEW ***
  29192. --- *** ***
  29193. --- *** The amino-terminal positively-charged re ***
  29194. --- *** gion of a signal peptide (approx 1-5 aa) ***
  29195. --- *** . ***
  29196. --- ************************************************
  29197. ---
  29198. CREATE VIEW n_terminal_region AS
  29199. SELECT
  29200. feature_id AS n_terminal_region_id,
  29201. feature.*
  29202. FROM
  29203. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29204. WHERE cvterm.name = 'n_terminal_region';
  29205. --- ************************************************
  29206. --- *** relation: c_terminal_region ***
  29207. --- *** relation type: VIEW ***
  29208. --- *** ***
  29209. --- *** The more polar, carboxy-terminal region ***
  29210. --- *** of the signal peptide (approx 3-7 aa). ***
  29211. --- ************************************************
  29212. ---
  29213. CREATE VIEW c_terminal_region AS
  29214. SELECT
  29215. feature_id AS c_terminal_region_id,
  29216. feature.*
  29217. FROM
  29218. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29219. WHERE cvterm.name = 'c_terminal_region';
  29220. --- ************************************************
  29221. --- *** relation: central_hydrophobic_region_of_signal_peptide ***
  29222. --- *** relation type: VIEW ***
  29223. --- *** ***
  29224. --- *** The central, hydrophobic region of the s ***
  29225. --- *** ignal peptide (approx 7-15 aa). ***
  29226. --- ************************************************
  29227. ---
  29228. CREATE VIEW central_hydrophobic_region_of_signal_peptide AS
  29229. SELECT
  29230. feature_id AS central_hydrophobic_region_of_signal_peptide_id,
  29231. feature.*
  29232. FROM
  29233. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29234. WHERE cvterm.name = 'central_hydrophobic_region_of_signal_peptide';
  29235. --- ************************************************
  29236. --- *** relation: polypeptide_conserved_motif ***
  29237. --- *** relation type: VIEW ***
  29238. --- *** ***
  29239. --- *** A conserved motif is a short (up to 20 a ***
  29240. --- *** mino acids) region of biological interes ***
  29241. --- *** t that is conserved in different protein ***
  29242. --- *** s. They may or may not have functional o ***
  29243. --- *** r structural significance within the pro ***
  29244. --- *** teins in which they are found. ***
  29245. --- ************************************************
  29246. ---
  29247. CREATE VIEW polypeptide_conserved_motif AS
  29248. SELECT
  29249. feature_id AS polypeptide_conserved_motif_id,
  29250. feature.*
  29251. FROM
  29252. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29253. WHERE cvterm.name = 'polypeptide_conserved_motif';
  29254. --- ************************************************
  29255. --- *** relation: polypeptide_binding_motif ***
  29256. --- *** relation type: VIEW ***
  29257. --- *** ***
  29258. --- *** A polypeptide binding motif is a short ( ***
  29259. --- *** up to 20 amino acids) polypeptide region ***
  29260. --- *** of biological interest that contains on ***
  29261. --- *** e or more amino acids experimentally sho ***
  29262. --- *** wn to bind to a ligand. ***
  29263. --- ************************************************
  29264. ---
  29265. CREATE VIEW polypeptide_binding_motif AS
  29266. SELECT
  29267. feature_id AS polypeptide_binding_motif_id,
  29268. feature.*
  29269. FROM
  29270. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29271. WHERE cvterm.name = 'polypeptide_binding_motif';
  29272. --- ************************************************
  29273. --- *** relation: polypeptide_catalytic_motif ***
  29274. --- *** relation type: VIEW ***
  29275. --- *** ***
  29276. --- *** A polypeptide catalytic motif is a short ***
  29277. --- *** (up to 20 amino acids) polypeptide regi ***
  29278. --- *** on that contains one or more active site ***
  29279. --- *** residues. ***
  29280. --- ************************************************
  29281. ---
  29282. CREATE VIEW polypeptide_catalytic_motif AS
  29283. SELECT
  29284. feature_id AS polypeptide_catalytic_motif_id,
  29285. feature.*
  29286. FROM
  29287. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29288. WHERE cvterm.name = 'polypeptide_catalytic_motif';
  29289. --- ************************************************
  29290. --- *** relation: polypeptide_dna_contact ***
  29291. --- *** relation type: VIEW ***
  29292. --- *** ***
  29293. --- *** A binding site that, in the polypeptide ***
  29294. --- *** molecule, interacts selectively and non- ***
  29295. --- *** covalently with DNA. ***
  29296. --- ************************************************
  29297. ---
  29298. CREATE VIEW polypeptide_dna_contact AS
  29299. SELECT
  29300. feature_id AS polypeptide_dna_contact_id,
  29301. feature.*
  29302. FROM
  29303. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29304. WHERE cvterm.name = 'polypeptide_DNA_contact';
  29305. --- ************************************************
  29306. --- *** relation: polypeptide_conserved_region ***
  29307. --- *** relation type: VIEW ***
  29308. --- *** ***
  29309. --- *** A subsection of sequence with biological ***
  29310. --- *** interest that is conserved in different ***
  29311. --- *** proteins. They may or may not have func ***
  29312. --- *** tional or structural significance within ***
  29313. --- *** the proteins in which they are found. ***
  29314. --- ************************************************
  29315. ---
  29316. CREATE VIEW polypeptide_conserved_region AS
  29317. SELECT
  29318. feature_id AS polypeptide_conserved_region_id,
  29319. feature.*
  29320. FROM
  29321. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29322. 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';
  29323. --- ************************************************
  29324. --- *** relation: substitution ***
  29325. --- *** relation type: VIEW ***
  29326. --- *** ***
  29327. --- *** A sequence alteration where the length o ***
  29328. --- *** f the change in the variant is the same ***
  29329. --- *** as that of the reference. ***
  29330. --- ************************************************
  29331. ---
  29332. CREATE VIEW substitution AS
  29333. SELECT
  29334. feature_id AS substitution_id,
  29335. feature.*
  29336. FROM
  29337. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29338. 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';
  29339. --- ************************************************
  29340. --- *** relation: complex_substitution ***
  29341. --- *** relation type: VIEW ***
  29342. --- *** ***
  29343. --- *** When no simple or well defined DNA mutat ***
  29344. --- *** ion event describes the observed DNA cha ***
  29345. --- *** nge, the keyword "complex" should be use ***
  29346. --- *** d. Usually there are multiple equally pl ***
  29347. --- *** ausible explanations for the change. ***
  29348. --- ************************************************
  29349. ---
  29350. CREATE VIEW complex_substitution AS
  29351. SELECT
  29352. feature_id AS complex_substitution_id,
  29353. feature.*
  29354. FROM
  29355. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29356. WHERE cvterm.name = 'complex_substitution';
  29357. --- ************************************************
  29358. --- *** relation: point_mutation ***
  29359. --- *** relation type: VIEW ***
  29360. --- *** ***
  29361. --- *** A single nucleotide change which has occ ***
  29362. --- *** urred at the same position of a correspo ***
  29363. --- *** nding nucleotide in a reference sequence ***
  29364. --- *** . ***
  29365. --- ************************************************
  29366. ---
  29367. CREATE VIEW point_mutation AS
  29368. SELECT
  29369. feature_id AS point_mutation_id,
  29370. feature.*
  29371. FROM
  29372. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29373. WHERE cvterm.name = 'point_mutation';
  29374. --- ************************************************
  29375. --- *** relation: transition ***
  29376. --- *** relation type: VIEW ***
  29377. --- *** ***
  29378. --- *** Change of a pyrimidine nucleotide, C or ***
  29379. --- *** T, into an other pyrimidine nucleotide, ***
  29380. --- *** or change of a purine nucleotide, A or G ***
  29381. --- *** , into an other purine nucleotide. ***
  29382. --- ************************************************
  29383. ---
  29384. CREATE VIEW transition AS
  29385. SELECT
  29386. feature_id AS transition_id,
  29387. feature.*
  29388. FROM
  29389. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29390. 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';
  29391. --- ************************************************
  29392. --- *** relation: pyrimidine_transition ***
  29393. --- *** relation type: VIEW ***
  29394. --- *** ***
  29395. --- *** A substitution of a pyrimidine, C or T, ***
  29396. --- *** for another pyrimidine. ***
  29397. --- ************************************************
  29398. ---
  29399. CREATE VIEW pyrimidine_transition AS
  29400. SELECT
  29401. feature_id AS pyrimidine_transition_id,
  29402. feature.*
  29403. FROM
  29404. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29405. 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';
  29406. --- ************************************************
  29407. --- *** relation: c_to_t_transition ***
  29408. --- *** relation type: VIEW ***
  29409. --- *** ***
  29410. --- *** A transition of a cytidine to a thymine. ***
  29411. --- ************************************************
  29412. ---
  29413. CREATE VIEW c_to_t_transition AS
  29414. SELECT
  29415. feature_id AS c_to_t_transition_id,
  29416. feature.*
  29417. FROM
  29418. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29419. WHERE cvterm.name = 'C_to_T_transition_at_pCpG_site' OR cvterm.name = 'C_to_T_transition';
  29420. --- ************************************************
  29421. --- *** relation: c_to_t_transition_at_pcpg_site ***
  29422. --- *** relation type: VIEW ***
  29423. --- *** ***
  29424. --- *** The transition of cytidine to thymine oc ***
  29425. --- *** curring at a pCpG site as a consequence ***
  29426. --- *** of the spontaneous deamination of 5'-met ***
  29427. --- *** hylcytidine. ***
  29428. --- ************************************************
  29429. ---
  29430. CREATE VIEW c_to_t_transition_at_pcpg_site AS
  29431. SELECT
  29432. feature_id AS c_to_t_transition_at_pcpg_site_id,
  29433. feature.*
  29434. FROM
  29435. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29436. WHERE cvterm.name = 'C_to_T_transition_at_pCpG_site';
  29437. --- ************************************************
  29438. --- *** relation: t_to_c_transition ***
  29439. --- *** relation type: VIEW ***
  29440. --- *** ***
  29441. --- ************************************************
  29442. ---
  29443. CREATE VIEW t_to_c_transition AS
  29444. SELECT
  29445. feature_id AS t_to_c_transition_id,
  29446. feature.*
  29447. FROM
  29448. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29449. WHERE cvterm.name = 'T_to_C_transition';
  29450. --- ************************************************
  29451. --- *** relation: purine_transition ***
  29452. --- *** relation type: VIEW ***
  29453. --- *** ***
  29454. --- *** A substitution of a purine, A or G, for ***
  29455. --- *** another purine. ***
  29456. --- ************************************************
  29457. ---
  29458. CREATE VIEW purine_transition AS
  29459. SELECT
  29460. feature_id AS purine_transition_id,
  29461. feature.*
  29462. FROM
  29463. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29464. WHERE cvterm.name = 'A_to_G_transition' OR cvterm.name = 'G_to_A_transition' OR cvterm.name = 'purine_transition';
  29465. --- ************************************************
  29466. --- *** relation: a_to_g_transition ***
  29467. --- *** relation type: VIEW ***
  29468. --- *** ***
  29469. --- *** A transition of an adenine to a guanine. ***
  29470. --- ************************************************
  29471. ---
  29472. CREATE VIEW a_to_g_transition AS
  29473. SELECT
  29474. feature_id AS a_to_g_transition_id,
  29475. feature.*
  29476. FROM
  29477. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29478. WHERE cvterm.name = 'A_to_G_transition';
  29479. --- ************************************************
  29480. --- *** relation: g_to_a_transition ***
  29481. --- *** relation type: VIEW ***
  29482. --- *** ***
  29483. --- *** A transition of a guanine to an adenine. ***
  29484. --- ************************************************
  29485. ---
  29486. CREATE VIEW g_to_a_transition AS
  29487. SELECT
  29488. feature_id AS g_to_a_transition_id,
  29489. feature.*
  29490. FROM
  29491. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29492. WHERE cvterm.name = 'G_to_A_transition';
  29493. --- ************************************************
  29494. --- *** relation: transversion ***
  29495. --- *** relation type: VIEW ***
  29496. --- *** ***
  29497. --- *** Change of a pyrimidine nucleotide, C or ***
  29498. --- *** T, into a purine nucleotide, A or G, or ***
  29499. --- *** vice versa. ***
  29500. --- ************************************************
  29501. ---
  29502. CREATE VIEW transversion AS
  29503. SELECT
  29504. feature_id AS transversion_id,
  29505. feature.*
  29506. FROM
  29507. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29508. 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';
  29509. --- ************************************************
  29510. --- *** relation: pyrimidine_to_purine_transversion ***
  29511. --- *** relation type: VIEW ***
  29512. --- *** ***
  29513. --- *** Change of a pyrimidine nucleotide, C or ***
  29514. --- *** T, into a purine nucleotide, A or G. ***
  29515. --- ************************************************
  29516. ---
  29517. CREATE VIEW pyrimidine_to_purine_transversion AS
  29518. SELECT
  29519. feature_id AS pyrimidine_to_purine_transversion_id,
  29520. feature.*
  29521. FROM
  29522. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29523. 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';
  29524. --- ************************************************
  29525. --- *** relation: c_to_a_transversion ***
  29526. --- *** relation type: VIEW ***
  29527. --- *** ***
  29528. --- *** A transversion from cytidine to adenine. ***
  29529. --- ************************************************
  29530. ---
  29531. CREATE VIEW c_to_a_transversion AS
  29532. SELECT
  29533. feature_id AS c_to_a_transversion_id,
  29534. feature.*
  29535. FROM
  29536. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29537. WHERE cvterm.name = 'C_to_A_transversion';
  29538. --- ************************************************
  29539. --- *** relation: c_to_g_transversion ***
  29540. --- *** relation type: VIEW ***
  29541. --- *** ***
  29542. --- ************************************************
  29543. ---
  29544. CREATE VIEW c_to_g_transversion AS
  29545. SELECT
  29546. feature_id AS c_to_g_transversion_id,
  29547. feature.*
  29548. FROM
  29549. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29550. WHERE cvterm.name = 'C_to_G_transversion';
  29551. --- ************************************************
  29552. --- *** relation: t_to_a_transversion ***
  29553. --- *** relation type: VIEW ***
  29554. --- *** ***
  29555. --- *** A transversion from T to A. ***
  29556. --- ************************************************
  29557. ---
  29558. CREATE VIEW t_to_a_transversion AS
  29559. SELECT
  29560. feature_id AS t_to_a_transversion_id,
  29561. feature.*
  29562. FROM
  29563. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29564. WHERE cvterm.name = 'T_to_A_transversion';
  29565. --- ************************************************
  29566. --- *** relation: t_to_g_transversion ***
  29567. --- *** relation type: VIEW ***
  29568. --- *** ***
  29569. --- *** A transversion from T to G. ***
  29570. --- ************************************************
  29571. ---
  29572. CREATE VIEW t_to_g_transversion AS
  29573. SELECT
  29574. feature_id AS t_to_g_transversion_id,
  29575. feature.*
  29576. FROM
  29577. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29578. WHERE cvterm.name = 'T_to_G_transversion';
  29579. --- ************************************************
  29580. --- *** relation: purine_to_pyrimidine_transversion ***
  29581. --- *** relation type: VIEW ***
  29582. --- *** ***
  29583. --- *** Change of a purine nucleotide, A or G , ***
  29584. --- *** into a pyrimidine nucleotide C or T. ***
  29585. --- ************************************************
  29586. ---
  29587. CREATE VIEW purine_to_pyrimidine_transversion AS
  29588. SELECT
  29589. feature_id AS purine_to_pyrimidine_transversion_id,
  29590. feature.*
  29591. FROM
  29592. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29593. 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';
  29594. --- ************************************************
  29595. --- *** relation: a_to_c_transversion ***
  29596. --- *** relation type: VIEW ***
  29597. --- *** ***
  29598. --- *** A transversion from adenine to cytidine. ***
  29599. --- ************************************************
  29600. ---
  29601. CREATE VIEW a_to_c_transversion AS
  29602. SELECT
  29603. feature_id AS a_to_c_transversion_id,
  29604. feature.*
  29605. FROM
  29606. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29607. WHERE cvterm.name = 'A_to_C_transversion';
  29608. --- ************************************************
  29609. --- *** relation: a_to_t_transversion ***
  29610. --- *** relation type: VIEW ***
  29611. --- *** ***
  29612. --- *** A transversion from adenine to thymine. ***
  29613. --- ************************************************
  29614. ---
  29615. CREATE VIEW a_to_t_transversion AS
  29616. SELECT
  29617. feature_id AS a_to_t_transversion_id,
  29618. feature.*
  29619. FROM
  29620. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29621. WHERE cvterm.name = 'A_to_T_transversion';
  29622. --- ************************************************
  29623. --- *** relation: g_to_c_transversion ***
  29624. --- *** relation type: VIEW ***
  29625. --- *** ***
  29626. --- *** A transversion from guanine to cytidine. ***
  29627. --- ************************************************
  29628. ---
  29629. CREATE VIEW g_to_c_transversion AS
  29630. SELECT
  29631. feature_id AS g_to_c_transversion_id,
  29632. feature.*
  29633. FROM
  29634. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29635. WHERE cvterm.name = 'G_to_C_transversion';
  29636. --- ************************************************
  29637. --- *** relation: g_to_t_transversion ***
  29638. --- *** relation type: VIEW ***
  29639. --- *** ***
  29640. --- *** A transversion from guanine to thymine. ***
  29641. --- ************************************************
  29642. ---
  29643. CREATE VIEW g_to_t_transversion AS
  29644. SELECT
  29645. feature_id AS g_to_t_transversion_id,
  29646. feature.*
  29647. FROM
  29648. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29649. WHERE cvterm.name = 'G_to_T_transversion';
  29650. --- ************************************************
  29651. --- *** relation: intrachromosomal_mutation ***
  29652. --- *** relation type: VIEW ***
  29653. --- *** ***
  29654. --- *** A chromosomal structure variation within ***
  29655. --- *** a single chromosome. ***
  29656. --- ************************************************
  29657. ---
  29658. CREATE VIEW intrachromosomal_mutation AS
  29659. SELECT
  29660. feature_id AS intrachromosomal_mutation_id,
  29661. feature.*
  29662. FROM
  29663. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29664. 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';
  29665. --- ************************************************
  29666. --- *** relation: chromosomal_deletion ***
  29667. --- *** relation type: VIEW ***
  29668. --- *** ***
  29669. --- *** An incomplete chromosome. ***
  29670. --- ************************************************
  29671. ---
  29672. CREATE VIEW chromosomal_deletion AS
  29673. SELECT
  29674. feature_id AS chromosomal_deletion_id,
  29675. feature.*
  29676. FROM
  29677. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29678. 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';
  29679. --- ************************************************
  29680. --- *** relation: chromosomal_inversion ***
  29681. --- *** relation type: VIEW ***
  29682. --- *** ***
  29683. --- *** An interchromosomal mutation where a reg ***
  29684. --- *** ion of the chromosome is inverted with r ***
  29685. --- *** espect to wild type. ***
  29686. --- ************************************************
  29687. ---
  29688. CREATE VIEW chromosomal_inversion AS
  29689. SELECT
  29690. feature_id AS chromosomal_inversion_id,
  29691. feature.*
  29692. FROM
  29693. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29694. 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';
  29695. --- ************************************************
  29696. --- *** relation: interchromosomal_mutation ***
  29697. --- *** relation type: VIEW ***
  29698. --- *** ***
  29699. --- *** A chromosomal structure variation whereb ***
  29700. --- *** y more than one chromosome is involved. ***
  29701. --- ************************************************
  29702. ---
  29703. CREATE VIEW interchromosomal_mutation AS
  29704. SELECT
  29705. feature_id AS interchromosomal_mutation_id,
  29706. feature.*
  29707. FROM
  29708. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29709. 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';
  29710. --- ************************************************
  29711. --- *** relation: indel ***
  29712. --- *** relation type: VIEW ***
  29713. --- *** ***
  29714. --- *** A sequence alteration which included an ***
  29715. --- *** insertion and a deletion, affecting 2 or ***
  29716. --- *** more bases. ***
  29717. --- ************************************************
  29718. ---
  29719. CREATE VIEW indel AS
  29720. SELECT
  29721. feature_id AS indel_id,
  29722. feature.*
  29723. FROM
  29724. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29725. WHERE cvterm.name = 'indel';
  29726. --- ************************************************
  29727. --- *** relation: duplication ***
  29728. --- *** relation type: VIEW ***
  29729. --- *** ***
  29730. --- *** One or more nucleotides are added betwee ***
  29731. --- *** n two adjacent nucleotides in the sequen ***
  29732. --- *** ce; the inserted sequence derives from, ***
  29733. --- *** or is identical in sequence to, nucleoti ***
  29734. --- *** des adjacent to insertion point. ***
  29735. --- ************************************************
  29736. ---
  29737. CREATE VIEW duplication AS
  29738. SELECT
  29739. feature_id AS duplication_id,
  29740. feature.*
  29741. FROM
  29742. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29743. WHERE cvterm.name = 'tandem_duplication' OR cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'duplication';
  29744. --- ************************************************
  29745. --- *** relation: inversion ***
  29746. --- *** relation type: VIEW ***
  29747. --- *** ***
  29748. --- *** A continuous nucleotide sequence is inve ***
  29749. --- *** rted in the same position. ***
  29750. --- ************************************************
  29751. ---
  29752. CREATE VIEW inversion AS
  29753. SELECT
  29754. feature_id AS inversion_id,
  29755. feature.*
  29756. FROM
  29757. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29758. WHERE cvterm.name = 'inversion';
  29759. --- ************************************************
  29760. --- *** relation: chromosomal_duplication ***
  29761. --- *** relation type: VIEW ***
  29762. --- *** ***
  29763. --- *** An extra chromosome. ***
  29764. --- ************************************************
  29765. ---
  29766. CREATE VIEW chromosomal_duplication AS
  29767. SELECT
  29768. feature_id AS chromosomal_duplication_id,
  29769. feature.*
  29770. FROM
  29771. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29772. 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';
  29773. --- ************************************************
  29774. --- *** relation: intrachromosomal_duplication ***
  29775. --- *** relation type: VIEW ***
  29776. --- *** ***
  29777. --- *** A duplication that occurred within a chr ***
  29778. --- *** omosome. ***
  29779. --- ************************************************
  29780. ---
  29781. CREATE VIEW intrachromosomal_duplication AS
  29782. SELECT
  29783. feature_id AS intrachromosomal_duplication_id,
  29784. feature.*
  29785. FROM
  29786. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29787. 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';
  29788. --- ************************************************
  29789. --- *** relation: direct_tandem_duplication ***
  29790. --- *** relation type: VIEW ***
  29791. --- *** ***
  29792. --- *** A tandem duplication where the individua ***
  29793. --- *** l regions are in the same orientation. ***
  29794. --- ************************************************
  29795. ---
  29796. CREATE VIEW direct_tandem_duplication AS
  29797. SELECT
  29798. feature_id AS direct_tandem_duplication_id,
  29799. feature.*
  29800. FROM
  29801. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29802. WHERE cvterm.name = 'direct_tandem_duplication';
  29803. --- ************************************************
  29804. --- *** relation: inverted_tandem_duplication ***
  29805. --- *** relation type: VIEW ***
  29806. --- *** ***
  29807. --- *** A tandem duplication where the individua ***
  29808. --- *** l regions are not in the same orientatio ***
  29809. --- *** n. ***
  29810. --- ************************************************
  29811. ---
  29812. CREATE VIEW inverted_tandem_duplication AS
  29813. SELECT
  29814. feature_id AS inverted_tandem_duplication_id,
  29815. feature.*
  29816. FROM
  29817. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29818. WHERE cvterm.name = 'inverted_tandem_duplication';
  29819. --- ************************************************
  29820. --- *** relation: intrachromosomal_transposition ***
  29821. --- *** relation type: VIEW ***
  29822. --- *** ***
  29823. --- *** A chromosome structure variation whereby ***
  29824. --- *** a transposition occurred within a chrom ***
  29825. --- *** osome. ***
  29826. --- ************************************************
  29827. ---
  29828. CREATE VIEW intrachromosomal_transposition AS
  29829. SELECT
  29830. feature_id AS intrachromosomal_transposition_id,
  29831. feature.*
  29832. FROM
  29833. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29834. 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';
  29835. --- ************************************************
  29836. --- *** relation: compound_chromosome ***
  29837. --- *** relation type: VIEW ***
  29838. --- *** ***
  29839. --- *** A chromosome structure variant where a m ***
  29840. --- *** onocentric element is caused by the fusi ***
  29841. --- *** on of two chromosome arms. ***
  29842. --- ************************************************
  29843. ---
  29844. CREATE VIEW compound_chromosome AS
  29845. SELECT
  29846. feature_id AS compound_chromosome_id,
  29847. feature.*
  29848. FROM
  29849. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29850. WHERE cvterm.name = 'compound_chromosome_arm' OR cvterm.name = 'homo_compound_chromosome' OR cvterm.name = 'hetero_compound_chromosome' OR cvterm.name = 'compound_chromosome';
  29851. --- ************************************************
  29852. --- *** relation: robertsonian_fusion ***
  29853. --- *** relation type: VIEW ***
  29854. --- *** ***
  29855. --- *** A non reciprocal translocation whereby t ***
  29856. --- *** he participating chromosomes break at th ***
  29857. --- *** eir centromeres and the long arms fuse t ***
  29858. --- *** o form a single chromosome with a single ***
  29859. --- *** centromere. ***
  29860. --- ************************************************
  29861. ---
  29862. CREATE VIEW robertsonian_fusion AS
  29863. SELECT
  29864. feature_id AS robertsonian_fusion_id,
  29865. feature.*
  29866. FROM
  29867. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29868. WHERE cvterm.name = 'Robertsonian_fusion';
  29869. --- ************************************************
  29870. --- *** relation: chromosomal_translocation ***
  29871. --- *** relation type: VIEW ***
  29872. --- *** ***
  29873. --- *** An interchromosomal mutation. Rearrangem ***
  29874. --- *** ents that alter the pairing of telomeres ***
  29875. --- *** are classified as translocations. ***
  29876. --- ************************************************
  29877. ---
  29878. CREATE VIEW chromosomal_translocation AS
  29879. SELECT
  29880. feature_id AS chromosomal_translocation_id,
  29881. feature.*
  29882. FROM
  29883. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29884. 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';
  29885. --- ************************************************
  29886. --- *** relation: ring_chromosome ***
  29887. --- *** relation type: VIEW ***
  29888. --- *** ***
  29889. --- *** A ring chromosome is a chromosome whose ***
  29890. --- *** arms have fused together to form a ring, ***
  29891. --- *** often with the loss of the ends of the ***
  29892. --- *** chromosome. ***
  29893. --- ************************************************
  29894. ---
  29895. CREATE VIEW ring_chromosome AS
  29896. SELECT
  29897. feature_id AS ring_chromosome_id,
  29898. feature.*
  29899. FROM
  29900. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29901. WHERE cvterm.name = 'inverted_ring_chromosome' OR cvterm.name = 'free_ring_duplication' OR cvterm.name = 'ring_chromosome';
  29902. --- ************************************************
  29903. --- *** relation: pericentric_inversion ***
  29904. --- *** relation type: VIEW ***
  29905. --- *** ***
  29906. --- *** A chromosomal inversion that includes th ***
  29907. --- *** e centromere. ***
  29908. --- ************************************************
  29909. ---
  29910. CREATE VIEW pericentric_inversion AS
  29911. SELECT
  29912. feature_id AS pericentric_inversion_id,
  29913. feature.*
  29914. FROM
  29915. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29916. WHERE cvterm.name = 'pericentric_inversion';
  29917. --- ************************************************
  29918. --- *** relation: paracentric_inversion ***
  29919. --- *** relation type: VIEW ***
  29920. --- *** ***
  29921. --- *** A chromosomal inversion that does not in ***
  29922. --- *** clude the centromere. ***
  29923. --- ************************************************
  29924. ---
  29925. CREATE VIEW paracentric_inversion AS
  29926. SELECT
  29927. feature_id AS paracentric_inversion_id,
  29928. feature.*
  29929. FROM
  29930. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29931. WHERE cvterm.name = 'paracentric_inversion';
  29932. --- ************************************************
  29933. --- *** relation: reciprocal_chromosomal_translocation ***
  29934. --- *** relation type: VIEW ***
  29935. --- *** ***
  29936. --- *** A chromosomal translocation with two bre ***
  29937. --- *** aks; two chromosome segments have simply ***
  29938. --- *** been exchanged. ***
  29939. --- ************************************************
  29940. ---
  29941. CREATE VIEW reciprocal_chromosomal_translocation AS
  29942. SELECT
  29943. feature_id AS reciprocal_chromosomal_translocation_id,
  29944. feature.*
  29945. FROM
  29946. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29947. WHERE cvterm.name = 'reciprocal_chromosomal_translocation';
  29948. --- ************************************************
  29949. --- *** relation: autosynaptic_chromosome ***
  29950. --- *** relation type: VIEW ***
  29951. --- *** ***
  29952. --- *** An autosynaptic chromosome is the aneupl ***
  29953. --- *** oid product of recombination between a p ***
  29954. --- *** ericentric inversion and a cytologically ***
  29955. --- *** wild-type chromosome. ***
  29956. --- ************************************************
  29957. ---
  29958. CREATE VIEW autosynaptic_chromosome AS
  29959. SELECT
  29960. feature_id AS autosynaptic_chromosome_id,
  29961. feature.*
  29962. FROM
  29963. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29964. WHERE cvterm.name = 'dexstrosynaptic_chromosome' OR cvterm.name = 'laevosynaptic_chromosome' OR cvterm.name = 'autosynaptic_chromosome';
  29965. --- ************************************************
  29966. --- *** relation: homo_compound_chromosome ***
  29967. --- *** relation type: VIEW ***
  29968. --- *** ***
  29969. --- *** A compound chromosome whereby two copies ***
  29970. --- *** of the same chromosomal arm attached to ***
  29971. --- *** a common centromere. The chromosome is ***
  29972. --- *** diploid for the arm involved. ***
  29973. --- ************************************************
  29974. ---
  29975. CREATE VIEW homo_compound_chromosome AS
  29976. SELECT
  29977. feature_id AS homo_compound_chromosome_id,
  29978. feature.*
  29979. FROM
  29980. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29981. WHERE cvterm.name = 'homo_compound_chromosome';
  29982. --- ************************************************
  29983. --- *** relation: hetero_compound_chromosome ***
  29984. --- *** relation type: VIEW ***
  29985. --- *** ***
  29986. --- *** A compound chromosome whereby two arms f ***
  29987. --- *** rom different chromosomes are connected ***
  29988. --- *** through the centromere of one of them. ***
  29989. --- ************************************************
  29990. ---
  29991. CREATE VIEW hetero_compound_chromosome AS
  29992. SELECT
  29993. feature_id AS hetero_compound_chromosome_id,
  29994. feature.*
  29995. FROM
  29996. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  29997. WHERE cvterm.name = 'hetero_compound_chromosome';
  29998. --- ************************************************
  29999. --- *** relation: chromosome_fission ***
  30000. --- *** relation type: VIEW ***
  30001. --- *** ***
  30002. --- *** A chromosome that occurred by the divisi ***
  30003. --- *** on of a larger chromosome. ***
  30004. --- ************************************************
  30005. ---
  30006. CREATE VIEW chromosome_fission AS
  30007. SELECT
  30008. feature_id AS chromosome_fission_id,
  30009. feature.*
  30010. FROM
  30011. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30012. WHERE cvterm.name = 'chromosome_fission';
  30013. --- ************************************************
  30014. --- *** relation: dexstrosynaptic_chromosome ***
  30015. --- *** relation type: VIEW ***
  30016. --- *** ***
  30017. --- *** An autosynaptic chromosome carrying the ***
  30018. --- *** two right (D = dextro) telomeres. ***
  30019. --- ************************************************
  30020. ---
  30021. CREATE VIEW dexstrosynaptic_chromosome AS
  30022. SELECT
  30023. feature_id AS dexstrosynaptic_chromosome_id,
  30024. feature.*
  30025. FROM
  30026. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30027. WHERE cvterm.name = 'dexstrosynaptic_chromosome';
  30028. --- ************************************************
  30029. --- *** relation: laevosynaptic_chromosome ***
  30030. --- *** relation type: VIEW ***
  30031. --- *** ***
  30032. --- *** LS is an autosynaptic chromosome carryin ***
  30033. --- *** g the two left (L = levo) telomeres. ***
  30034. --- ************************************************
  30035. ---
  30036. CREATE VIEW laevosynaptic_chromosome AS
  30037. SELECT
  30038. feature_id AS laevosynaptic_chromosome_id,
  30039. feature.*
  30040. FROM
  30041. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30042. WHERE cvterm.name = 'laevosynaptic_chromosome';
  30043. --- ************************************************
  30044. --- *** relation: free_duplication ***
  30045. --- *** relation type: VIEW ***
  30046. --- *** ***
  30047. --- *** A chromosome structure variation whereby ***
  30048. --- *** the duplicated sequences are carried as ***
  30049. --- *** a free centric element. ***
  30050. --- ************************************************
  30051. ---
  30052. CREATE VIEW free_duplication AS
  30053. SELECT
  30054. feature_id AS free_duplication_id,
  30055. feature.*
  30056. FROM
  30057. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30058. WHERE cvterm.name = 'free_ring_duplication' OR cvterm.name = 'free_duplication';
  30059. --- ************************************************
  30060. --- *** relation: free_ring_duplication ***
  30061. --- *** relation type: VIEW ***
  30062. --- *** ***
  30063. --- *** A ring chromosome which is a copy of ano ***
  30064. --- *** ther chromosome. ***
  30065. --- ************************************************
  30066. ---
  30067. CREATE VIEW free_ring_duplication AS
  30068. SELECT
  30069. feature_id AS free_ring_duplication_id,
  30070. feature.*
  30071. FROM
  30072. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30073. WHERE cvterm.name = 'free_ring_duplication';
  30074. --- ************************************************
  30075. --- *** relation: complex_chromosomal_mutation ***
  30076. --- *** relation type: VIEW ***
  30077. --- *** ***
  30078. --- *** A chromosome structure variant with 4 or ***
  30079. --- *** more breakpoints. ***
  30080. --- ************************************************
  30081. ---
  30082. CREATE VIEW complex_chromosomal_mutation AS
  30083. SELECT
  30084. feature_id AS complex_chromosomal_mutation_id,
  30085. feature.*
  30086. FROM
  30087. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30088. WHERE cvterm.name = 'complex_chromosomal_mutation';
  30089. --- ************************************************
  30090. --- *** relation: deficient_translocation ***
  30091. --- *** relation type: VIEW ***
  30092. --- *** ***
  30093. --- *** A chromosomal deletion whereby a translo ***
  30094. --- *** cation occurs in which one of the four b ***
  30095. --- *** roken ends loses a segment before re-joi ***
  30096. --- *** ning. ***
  30097. --- ************************************************
  30098. ---
  30099. CREATE VIEW deficient_translocation AS
  30100. SELECT
  30101. feature_id AS deficient_translocation_id,
  30102. feature.*
  30103. FROM
  30104. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30105. WHERE cvterm.name = 'deficient_translocation';
  30106. --- ************************************************
  30107. --- *** relation: inversion_cum_translocation ***
  30108. --- *** relation type: VIEW ***
  30109. --- *** ***
  30110. --- *** A chromosomal translocation whereby the ***
  30111. --- *** first two breaks are in the same chromos ***
  30112. --- *** ome, and the region between them is rejo ***
  30113. --- *** ined in inverted order to the other side ***
  30114. --- *** of the first break, such that both side ***
  30115. --- *** s of break one are present on the same c ***
  30116. --- *** hromosome. The remaining free ends are j ***
  30117. --- *** oined as a translocation with those resu ***
  30118. --- *** lting from the third break. ***
  30119. --- ************************************************
  30120. ---
  30121. CREATE VIEW inversion_cum_translocation AS
  30122. SELECT
  30123. feature_id AS inversion_cum_translocation_id,
  30124. feature.*
  30125. FROM
  30126. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30127. WHERE cvterm.name = 'inverted_intrachromosomal_transposition' OR cvterm.name = 'inversion_cum_translocation';
  30128. --- ************************************************
  30129. --- *** relation: bipartite_duplication ***
  30130. --- *** relation type: VIEW ***
  30131. --- *** ***
  30132. --- *** An interchromosomal mutation whereby the ***
  30133. --- *** (large) region between the first two br ***
  30134. --- *** eaks listed is lost, and the two flankin ***
  30135. --- *** g segments (one of them centric) are joi ***
  30136. --- *** ned as a translocation to the free ends ***
  30137. --- *** resulting from the third break. ***
  30138. --- ************************************************
  30139. ---
  30140. CREATE VIEW bipartite_duplication AS
  30141. SELECT
  30142. feature_id AS bipartite_duplication_id,
  30143. feature.*
  30144. FROM
  30145. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30146. WHERE cvterm.name = 'bipartite_duplication';
  30147. --- ************************************************
  30148. --- *** relation: cyclic_translocation ***
  30149. --- *** relation type: VIEW ***
  30150. --- *** ***
  30151. --- *** A chromosomal translocation whereby thre ***
  30152. --- *** e breaks occurred in three different chr ***
  30153. --- *** omosomes. The centric segment resulting ***
  30154. --- *** from the first break listed is joined to ***
  30155. --- *** the acentric segment resulting from the ***
  30156. --- *** second, rather than the third. ***
  30157. --- ************************************************
  30158. ---
  30159. CREATE VIEW cyclic_translocation AS
  30160. SELECT
  30161. feature_id AS cyclic_translocation_id,
  30162. feature.*
  30163. FROM
  30164. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30165. WHERE cvterm.name = 'cyclic_translocation';
  30166. --- ************************************************
  30167. --- *** relation: bipartite_inversion ***
  30168. --- *** relation type: VIEW ***
  30169. --- *** ***
  30170. --- *** A chromosomal inversion caused by three ***
  30171. --- *** breaks in the same chromosome; both cent ***
  30172. --- *** ral segments are inverted in place (i.e. ***
  30173. --- *** , they are not transposed). ***
  30174. --- ************************************************
  30175. ---
  30176. CREATE VIEW bipartite_inversion AS
  30177. SELECT
  30178. feature_id AS bipartite_inversion_id,
  30179. feature.*
  30180. FROM
  30181. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30182. WHERE cvterm.name = 'bipartite_inversion';
  30183. --- ************************************************
  30184. --- *** relation: uninvert_insert_dup ***
  30185. --- *** relation type: VIEW ***
  30186. --- *** ***
  30187. --- *** An insertional duplication where a copy ***
  30188. --- *** of the segment between the first two bre ***
  30189. --- *** aks listed is inserted at the third brea ***
  30190. --- *** k; the insertion is in cytologically the ***
  30191. --- *** same orientation as its flanking segmen ***
  30192. --- *** ts. ***
  30193. --- ************************************************
  30194. ---
  30195. CREATE VIEW uninvert_insert_dup AS
  30196. SELECT
  30197. feature_id AS uninvert_insert_dup_id,
  30198. feature.*
  30199. FROM
  30200. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30201. WHERE cvterm.name = 'uninverted_insertional_duplication';
  30202. --- ************************************************
  30203. --- *** relation: inverted_insertional_duplication ***
  30204. --- *** relation type: VIEW ***
  30205. --- *** ***
  30206. --- *** An insertional duplication where a copy ***
  30207. --- *** of the segment between the first two bre ***
  30208. --- *** aks listed is inserted at the third brea ***
  30209. --- *** k; the insertion is in cytologically inv ***
  30210. --- *** erted orientation with respect to its fl ***
  30211. --- *** anking segments. ***
  30212. --- ************************************************
  30213. ---
  30214. CREATE VIEW inverted_insertional_duplication AS
  30215. SELECT
  30216. feature_id AS inverted_insertional_duplication_id,
  30217. feature.*
  30218. FROM
  30219. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30220. WHERE cvterm.name = 'inverted_insertional_duplication';
  30221. --- ************************************************
  30222. --- *** relation: insertional_duplication ***
  30223. --- *** relation type: VIEW ***
  30224. --- *** ***
  30225. --- *** A chromosome duplication involving the i ***
  30226. --- *** nsertion of a duplicated region (as oppo ***
  30227. --- *** sed to a free duplication). ***
  30228. --- ************************************************
  30229. ---
  30230. CREATE VIEW insertional_duplication AS
  30231. SELECT
  30232. feature_id AS insertional_duplication_id,
  30233. feature.*
  30234. FROM
  30235. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30236. WHERE cvterm.name = 'uninverted_insertional_duplication' OR cvterm.name = 'inverted_insertional_duplication' OR cvterm.name = 'unoriented_insertional_duplication' OR cvterm.name = 'insertional_duplication';
  30237. --- ************************************************
  30238. --- *** relation: interchromosomal_transposition ***
  30239. --- *** relation type: VIEW ***
  30240. --- *** ***
  30241. --- *** A chromosome structure variation whereby ***
  30242. --- *** a transposition occurred between chromo ***
  30243. --- *** somes. ***
  30244. --- ************************************************
  30245. ---
  30246. CREATE VIEW interchromosomal_transposition AS
  30247. SELECT
  30248. feature_id AS interchromosomal_transposition_id,
  30249. feature.*
  30250. FROM
  30251. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30252. 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';
  30253. --- ************************************************
  30254. --- *** relation: invert_inter_transposition ***
  30255. --- *** relation type: VIEW ***
  30256. --- *** ***
  30257. --- *** An interchromosomal transposition whereb ***
  30258. --- *** y a copy of the segment between the firs ***
  30259. --- *** t two breaks listed is inserted at the t ***
  30260. --- *** hird break; the insertion is in cytologi ***
  30261. --- *** cally inverted orientation with respect ***
  30262. --- *** to its flanking segment. ***
  30263. --- ************************************************
  30264. ---
  30265. CREATE VIEW invert_inter_transposition AS
  30266. SELECT
  30267. feature_id AS invert_inter_transposition_id,
  30268. feature.*
  30269. FROM
  30270. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30271. WHERE cvterm.name = 'inverted_interchromosomal_transposition';
  30272. --- ************************************************
  30273. --- *** relation: uninvert_inter_transposition ***
  30274. --- *** relation type: VIEW ***
  30275. --- *** ***
  30276. --- *** An interchromosomal transition where the ***
  30277. --- *** segment between the first two breaks li ***
  30278. --- *** sted is removed and inserted at the thir ***
  30279. --- *** d break; the insertion is in cytological ***
  30280. --- *** ly the same orientation as its flanking ***
  30281. --- *** segments. ***
  30282. --- ************************************************
  30283. ---
  30284. CREATE VIEW uninvert_inter_transposition AS
  30285. SELECT
  30286. feature_id AS uninvert_inter_transposition_id,
  30287. feature.*
  30288. FROM
  30289. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30290. WHERE cvterm.name = 'uninverted_interchromosomal_transposition';
  30291. --- ************************************************
  30292. --- *** relation: invert_intra_transposition ***
  30293. --- *** relation type: VIEW ***
  30294. --- *** ***
  30295. --- *** An intrachromosomal transposition whereb ***
  30296. --- *** y the segment between the first two brea ***
  30297. --- *** ks listed is removed and inserted at the ***
  30298. --- *** third break; the insertion is in cytolo ***
  30299. --- *** gically inverted orientation with respec ***
  30300. --- *** t to its flanking segments. ***
  30301. --- ************************************************
  30302. ---
  30303. CREATE VIEW invert_intra_transposition AS
  30304. SELECT
  30305. feature_id AS invert_intra_transposition_id,
  30306. feature.*
  30307. FROM
  30308. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30309. WHERE cvterm.name = 'inverted_intrachromosomal_transposition';
  30310. --- ************************************************
  30311. --- *** relation: uninvert_intra_transposition ***
  30312. --- *** relation type: VIEW ***
  30313. --- *** ***
  30314. --- *** An intrachromosomal transposition whereb ***
  30315. --- *** y the segment between the first two brea ***
  30316. --- *** ks listed is removed and inserted at the ***
  30317. --- *** third break; the insertion is in cytolo ***
  30318. --- *** gically the same orientation as its flan ***
  30319. --- *** king segments. ***
  30320. --- ************************************************
  30321. ---
  30322. CREATE VIEW uninvert_intra_transposition AS
  30323. SELECT
  30324. feature_id AS uninvert_intra_transposition_id,
  30325. feature.*
  30326. FROM
  30327. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30328. WHERE cvterm.name = 'uninverted_intrachromosomal_transposition';
  30329. --- ************************************************
  30330. --- *** relation: unorient_insert_dup ***
  30331. --- *** relation type: VIEW ***
  30332. --- *** ***
  30333. --- *** An insertional duplication where a copy ***
  30334. --- *** of the segment between the first two bre ***
  30335. --- *** aks listed is inserted at the third brea ***
  30336. --- *** k; the orientation of the insertion with ***
  30337. --- *** respect to its flanking segments is not ***
  30338. --- *** recorded. ***
  30339. --- ************************************************
  30340. ---
  30341. CREATE VIEW unorient_insert_dup AS
  30342. SELECT
  30343. feature_id AS unorient_insert_dup_id,
  30344. feature.*
  30345. FROM
  30346. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30347. WHERE cvterm.name = 'unoriented_insertional_duplication';
  30348. --- ************************************************
  30349. --- *** relation: unoriented_interchromosomal_transposition ***
  30350. --- *** relation type: VIEW ***
  30351. --- *** ***
  30352. --- *** An interchromosomal transposition whereb ***
  30353. --- *** y a copy of the segment between the firs ***
  30354. --- *** t two breaks listed is inserted at the t ***
  30355. --- *** hird break; the orientation of the inser ***
  30356. --- *** tion with respect to its flanking segmen ***
  30357. --- *** ts is not recorded. ***
  30358. --- ************************************************
  30359. ---
  30360. CREATE VIEW unoriented_interchromosomal_transposition AS
  30361. SELECT
  30362. feature_id AS unoriented_interchromosomal_transposition_id,
  30363. feature.*
  30364. FROM
  30365. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30366. WHERE cvterm.name = 'unoriented_interchromosomal_transposition';
  30367. --- ************************************************
  30368. --- *** relation: unoriented_intrachromosomal_transposition ***
  30369. --- *** relation type: VIEW ***
  30370. --- *** ***
  30371. --- *** An intrachromosomal transposition whereb ***
  30372. --- *** y the segment between the first two brea ***
  30373. --- *** ks listed is removed and inserted at the ***
  30374. --- *** third break; the orientation of the ins ***
  30375. --- *** ertion with respect to its flanking segm ***
  30376. --- *** ents is not recorded. ***
  30377. --- ************************************************
  30378. ---
  30379. CREATE VIEW unoriented_intrachromosomal_transposition AS
  30380. SELECT
  30381. feature_id AS unoriented_intrachromosomal_transposition_id,
  30382. feature.*
  30383. FROM
  30384. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30385. WHERE cvterm.name = 'unoriented_intrachromosomal_transposition';
  30386. --- ************************************************
  30387. --- *** relation: uncharacterised_chromosomal_mutation ***
  30388. --- *** relation type: VIEW ***
  30389. --- *** ***
  30390. --- ************************************************
  30391. ---
  30392. CREATE VIEW uncharacterised_chromosomal_mutation AS
  30393. SELECT
  30394. feature_id AS uncharacterised_chromosomal_mutation_id,
  30395. feature.*
  30396. FROM
  30397. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30398. WHERE cvterm.name = 'partially_characterised_chromosomal_mutation' OR cvterm.name = 'uncharacterised_chromosomal_mutation';
  30399. --- ************************************************
  30400. --- *** relation: deficient_inversion ***
  30401. --- *** relation type: VIEW ***
  30402. --- *** ***
  30403. --- *** A chromosomal deletion whereby three bre ***
  30404. --- *** aks occur in the same chromosome; one ce ***
  30405. --- *** ntral region is lost, and the other is i ***
  30406. --- *** nverted. ***
  30407. --- ************************************************
  30408. ---
  30409. CREATE VIEW deficient_inversion AS
  30410. SELECT
  30411. feature_id AS deficient_inversion_id,
  30412. feature.*
  30413. FROM
  30414. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30415. WHERE cvterm.name = 'deficient_inversion';
  30416. --- ************************************************
  30417. --- *** relation: tandem_duplication ***
  30418. --- *** relation type: VIEW ***
  30419. --- *** ***
  30420. --- *** A duplication consisting of 2 identical ***
  30421. --- *** adjacent regions. ***
  30422. --- ************************************************
  30423. ---
  30424. CREATE VIEW tandem_duplication AS
  30425. SELECT
  30426. feature_id AS tandem_duplication_id,
  30427. feature.*
  30428. FROM
  30429. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30430. WHERE cvterm.name = 'direct_tandem_duplication' OR cvterm.name = 'inverted_tandem_duplication' OR cvterm.name = 'tandem_duplication';
  30431. --- ************************************************
  30432. --- *** relation: partially_characterised_chromosomal_mutation ***
  30433. --- *** relation type: VIEW ***
  30434. --- *** ***
  30435. --- ************************************************
  30436. ---
  30437. CREATE VIEW partially_characterised_chromosomal_mutation AS
  30438. SELECT
  30439. feature_id AS partially_characterised_chromosomal_mutation_id,
  30440. feature.*
  30441. FROM
  30442. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30443. WHERE cvterm.name = 'partially_characterised_chromosomal_mutation';
  30444. --- ************************************************
  30445. --- *** relation: chromosome_number_variation ***
  30446. --- *** relation type: VIEW ***
  30447. --- *** ***
  30448. --- *** A kind of chromosome variation where the ***
  30449. --- *** chromosome complement is not an exact m ***
  30450. --- *** ultiple of the haploid number. ***
  30451. --- ************************************************
  30452. ---
  30453. CREATE VIEW chromosome_number_variation AS
  30454. SELECT
  30455. feature_id AS chromosome_number_variation_id,
  30456. feature.*
  30457. FROM
  30458. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30459. 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';
  30460. --- ************************************************
  30461. --- *** relation: chromosome_structure_variation ***
  30462. --- *** relation type: VIEW ***
  30463. --- *** ***
  30464. --- ************************************************
  30465. ---
  30466. CREATE VIEW chromosome_structure_variation AS
  30467. SELECT
  30468. feature_id AS chromosome_structure_variation_id,
  30469. feature.*
  30470. FROM
  30471. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30472. 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';
  30473. --- ************************************************
  30474. --- *** relation: alternatively_spliced_transcript ***
  30475. --- *** relation type: VIEW ***
  30476. --- *** ***
  30477. --- *** A transcript that is alternatively splic ***
  30478. --- *** ed. ***
  30479. --- ************************************************
  30480. ---
  30481. CREATE VIEW alternatively_spliced_transcript AS
  30482. SELECT
  30483. feature_id AS alternatively_spliced_transcript_id,
  30484. feature.*
  30485. FROM
  30486. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30487. WHERE cvterm.name = 'alternatively_spliced_transcript';
  30488. --- ************************************************
  30489. --- *** relation: encodes_1_polypeptide ***
  30490. --- *** relation type: VIEW ***
  30491. --- *** ***
  30492. --- *** A gene that is alternately spliced, but ***
  30493. --- *** encodes only one polypeptide. ***
  30494. --- ************************************************
  30495. ---
  30496. CREATE VIEW encodes_1_polypeptide AS
  30497. SELECT
  30498. feature_id AS encodes_1_polypeptide_id,
  30499. feature.*
  30500. FROM
  30501. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30502. WHERE cvterm.name = 'encodes_1_polypeptide';
  30503. --- ************************************************
  30504. --- *** relation: encodes_greater_than_1_polypeptide ***
  30505. --- *** relation type: VIEW ***
  30506. --- *** ***
  30507. --- *** A gene that is alternately spliced, and ***
  30508. --- *** encodes more than one polypeptide. ***
  30509. --- ************************************************
  30510. ---
  30511. CREATE VIEW encodes_greater_than_1_polypeptide AS
  30512. SELECT
  30513. feature_id AS encodes_greater_than_1_polypeptide_id,
  30514. feature.*
  30515. FROM
  30516. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30517. 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';
  30518. --- ************************************************
  30519. --- *** relation: encodes_different_polypeptides_different_stop ***
  30520. --- *** relation type: VIEW ***
  30521. --- *** ***
  30522. --- *** A gene that is alternately spliced, and ***
  30523. --- *** encodes more than one polypeptide, that ***
  30524. --- *** have overlapping peptide sequences, but ***
  30525. --- *** use different stop codons. ***
  30526. --- ************************************************
  30527. ---
  30528. CREATE VIEW encodes_different_polypeptides_different_stop AS
  30529. SELECT
  30530. feature_id AS encodes_different_polypeptides_different_stop_id,
  30531. feature.*
  30532. FROM
  30533. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30534. WHERE cvterm.name = 'encodes_different_polypeptides_different_stop';
  30535. --- ************************************************
  30536. --- *** relation: encodes_overlapping_peptides_different_start ***
  30537. --- *** relation type: VIEW ***
  30538. --- *** ***
  30539. --- *** A gene that is alternately spliced, and ***
  30540. --- *** encodes more than one polypeptide, that ***
  30541. --- *** have overlapping peptide sequences, but ***
  30542. --- *** use different start codons. ***
  30543. --- ************************************************
  30544. ---
  30545. CREATE VIEW encodes_overlapping_peptides_different_start AS
  30546. SELECT
  30547. feature_id AS encodes_overlapping_peptides_different_start_id,
  30548. feature.*
  30549. FROM
  30550. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30551. WHERE cvterm.name = 'encodes_overlapping_peptides_different_start';
  30552. --- ************************************************
  30553. --- *** relation: encodes_disjoint_polypeptides ***
  30554. --- *** relation type: VIEW ***
  30555. --- *** ***
  30556. --- *** A gene that is alternately spliced, and ***
  30557. --- *** encodes more than one polypeptide, that ***
  30558. --- *** do not have overlapping peptide sequence ***
  30559. --- *** s. ***
  30560. --- ************************************************
  30561. ---
  30562. CREATE VIEW encodes_disjoint_polypeptides AS
  30563. SELECT
  30564. feature_id AS encodes_disjoint_polypeptides_id,
  30565. feature.*
  30566. FROM
  30567. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30568. WHERE cvterm.name = 'encodes_disjoint_polypeptides';
  30569. --- ************************************************
  30570. --- *** relation: encodes_overlapping_polypeptides_different_start_and_stop ***
  30571. --- *** relation type: VIEW ***
  30572. --- *** ***
  30573. --- *** A gene that is alternately spliced, and ***
  30574. --- *** encodes more than one polypeptide, that ***
  30575. --- *** have overlapping peptide sequences, but ***
  30576. --- *** use different start and stop codons. ***
  30577. --- ************************************************
  30578. ---
  30579. CREATE VIEW encodes_overlapping_polypeptides_different_start_and_stop AS
  30580. SELECT
  30581. feature_id AS encodes_overlapping_polypeptides_different_start_and_stop_id,
  30582. feature.*
  30583. FROM
  30584. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30585. WHERE cvterm.name = 'encodes_overlapping_polypeptides_different_start_and_stop';
  30586. --- ************************************************
  30587. --- *** relation: encodes_overlapping_peptides ***
  30588. --- *** relation type: VIEW ***
  30589. --- *** ***
  30590. --- *** A gene that is alternately spliced, and ***
  30591. --- *** encodes more than one polypeptide, that ***
  30592. --- *** have overlapping peptide sequences. ***
  30593. --- ************************************************
  30594. ---
  30595. CREATE VIEW encodes_overlapping_peptides AS
  30596. SELECT
  30597. feature_id AS encodes_overlapping_peptides_id,
  30598. feature.*
  30599. FROM
  30600. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30601. 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';
  30602. --- ************************************************
  30603. --- *** relation: cryptogene ***
  30604. --- *** relation type: VIEW ***
  30605. --- *** ***
  30606. --- *** A maxicircle gene so extensively edited ***
  30607. --- *** that it cannot be matched to its edited ***
  30608. --- *** mRNA sequence. ***
  30609. --- ************************************************
  30610. ---
  30611. CREATE VIEW cryptogene AS
  30612. SELECT
  30613. feature_id AS cryptogene_id,
  30614. feature.*
  30615. FROM
  30616. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30617. WHERE cvterm.name = 'cryptogene';
  30618. --- ************************************************
  30619. --- *** relation: dicistronic_primary_transcript ***
  30620. --- *** relation type: VIEW ***
  30621. --- *** ***
  30622. --- *** A primary transcript that has the qualit ***
  30623. --- *** y dicistronic. ***
  30624. --- ************************************************
  30625. ---
  30626. CREATE VIEW dicistronic_primary_transcript AS
  30627. SELECT
  30628. feature_id AS dicistronic_primary_transcript_id,
  30629. feature.*
  30630. FROM
  30631. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30632. WHERE cvterm.name = 'dicistronic_primary_transcript';
  30633. --- ************************************************
  30634. --- *** relation: member_of_regulon ***
  30635. --- *** relation type: VIEW ***
  30636. --- *** ***
  30637. --- ************************************************
  30638. ---
  30639. CREATE VIEW member_of_regulon AS
  30640. SELECT
  30641. feature_id AS member_of_regulon_id,
  30642. feature.*
  30643. FROM
  30644. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30645. WHERE cvterm.name = 'member_of_regulon';
  30646. --- ************************************************
  30647. --- *** relation: cds_independently_known ***
  30648. --- *** relation type: VIEW ***
  30649. --- *** ***
  30650. --- *** A CDS with the evidence status of being ***
  30651. --- *** independently known. ***
  30652. --- ************************************************
  30653. ---
  30654. CREATE VIEW cds_independently_known AS
  30655. SELECT
  30656. feature_id AS cds_independently_known_id,
  30657. feature.*
  30658. FROM
  30659. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30660. WHERE cvterm.name = 'CDS_independently_known';
  30661. --- ************************************************
  30662. --- *** relation: orphan_cds ***
  30663. --- *** relation type: VIEW ***
  30664. --- *** ***
  30665. --- *** A CDS whose predicted amino acid sequenc ***
  30666. --- *** e is unsupported by any experimental evi ***
  30667. --- *** dence or by any match with any other kno ***
  30668. --- *** wn sequence. ***
  30669. --- ************************************************
  30670. ---
  30671. CREATE VIEW orphan_cds AS
  30672. SELECT
  30673. feature_id AS orphan_cds_id,
  30674. feature.*
  30675. FROM
  30676. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30677. WHERE cvterm.name = 'orphan_CDS';
  30678. --- ************************************************
  30679. --- *** relation: cds_supported_by_domain_match_data ***
  30680. --- *** relation type: VIEW ***
  30681. --- *** ***
  30682. --- *** A CDS that is supported by domain simila ***
  30683. --- *** rity. ***
  30684. --- ************************************************
  30685. ---
  30686. CREATE VIEW cds_supported_by_domain_match_data AS
  30687. SELECT
  30688. feature_id AS cds_supported_by_domain_match_data_id,
  30689. feature.*
  30690. FROM
  30691. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30692. WHERE cvterm.name = 'CDS_supported_by_domain_match_data';
  30693. --- ************************************************
  30694. --- *** relation: cds_supported_by_sequence_similarity_data ***
  30695. --- *** relation type: VIEW ***
  30696. --- *** ***
  30697. --- *** A CDS that is supported by sequence simi ***
  30698. --- *** larity data. ***
  30699. --- ************************************************
  30700. ---
  30701. CREATE VIEW cds_supported_by_sequence_similarity_data AS
  30702. SELECT
  30703. feature_id AS cds_supported_by_sequence_similarity_data_id,
  30704. feature.*
  30705. FROM
  30706. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30707. 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';
  30708. --- ************************************************
  30709. --- *** relation: cds_predicted ***
  30710. --- *** relation type: VIEW ***
  30711. --- *** ***
  30712. --- *** A CDS that is predicted. ***
  30713. --- ************************************************
  30714. ---
  30715. CREATE VIEW cds_predicted AS
  30716. SELECT
  30717. feature_id AS cds_predicted_id,
  30718. feature.*
  30719. FROM
  30720. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30721. 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';
  30722. --- ************************************************
  30723. --- *** relation: cds_supported_by_est_or_cdna_data ***
  30724. --- *** relation type: VIEW ***
  30725. --- *** ***
  30726. --- *** A CDS that is supported by similarity to ***
  30727. --- *** EST or cDNA data. ***
  30728. --- ************************************************
  30729. ---
  30730. CREATE VIEW cds_supported_by_est_or_cdna_data AS
  30731. SELECT
  30732. feature_id AS cds_supported_by_est_or_cdna_data_id,
  30733. feature.*
  30734. FROM
  30735. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30736. WHERE cvterm.name = 'CDS_supported_by_EST_or_cDNA_data';
  30737. --- ************************************************
  30738. --- *** relation: internal_shine_dalgarno_sequence ***
  30739. --- *** relation type: VIEW ***
  30740. --- *** ***
  30741. --- *** A Shine-Dalgarno sequence that stimulate ***
  30742. --- *** s recoding through interactions with the ***
  30743. --- *** anti-Shine-Dalgarno in the RNA of small ***
  30744. --- *** ribosomal subunits of translating ribos ***
  30745. --- *** omes. The signal is only operative in Ba ***
  30746. --- *** cteria. ***
  30747. --- ************************************************
  30748. ---
  30749. CREATE VIEW internal_shine_dalgarno_sequence AS
  30750. SELECT
  30751. feature_id AS internal_shine_dalgarno_sequence_id,
  30752. feature.*
  30753. FROM
  30754. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30755. WHERE cvterm.name = 'internal_Shine_Dalgarno_sequence';
  30756. --- ************************************************
  30757. --- *** relation: recoded_mrna ***
  30758. --- *** relation type: VIEW ***
  30759. --- *** ***
  30760. --- *** The sequence of a mature mRNA transcript ***
  30761. --- *** , modified before translation or during ***
  30762. --- *** translation, usually by special cis-acti ***
  30763. --- *** ng signals. ***
  30764. --- ************************************************
  30765. ---
  30766. CREATE VIEW recoded_mrna AS
  30767. SELECT
  30768. feature_id AS recoded_mrna_id,
  30769. feature.*
  30770. FROM
  30771. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30772. WHERE cvterm.name = 'mRNA_recoded_by_translational_bypass' OR cvterm.name = 'mRNA_recoded_by_codon_redefinition' OR cvterm.name = 'recoded_mRNA';
  30773. --- ************************************************
  30774. --- *** relation: minus_1_translationally_frameshifted ***
  30775. --- *** relation type: VIEW ***
  30776. --- *** ***
  30777. --- *** An attribute describing a translational ***
  30778. --- *** frameshift of -1. ***
  30779. --- ************************************************
  30780. ---
  30781. CREATE VIEW minus_1_translationally_frameshifted AS
  30782. SELECT
  30783. feature_id AS minus_1_translationally_frameshifted_id,
  30784. feature.*
  30785. FROM
  30786. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30787. WHERE cvterm.name = 'minus_1_translationally_frameshifted';
  30788. --- ************************************************
  30789. --- *** relation: plus_1_translationally_frameshifted ***
  30790. --- *** relation type: VIEW ***
  30791. --- *** ***
  30792. --- *** An attribute describing a translational ***
  30793. --- *** frameshift of +1. ***
  30794. --- ************************************************
  30795. ---
  30796. CREATE VIEW plus_1_translationally_frameshifted AS
  30797. SELECT
  30798. feature_id AS plus_1_translationally_frameshifted_id,
  30799. feature.*
  30800. FROM
  30801. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30802. WHERE cvterm.name = 'plus_1_translationally_frameshifted';
  30803. --- ************************************************
  30804. --- *** relation: mrna_recoded_by_translational_bypass ***
  30805. --- *** relation type: VIEW ***
  30806. --- *** ***
  30807. --- *** A recoded_mRNA where translation was sus ***
  30808. --- *** pended at a particular codon and resumed ***
  30809. --- *** at a particular non-overlapping downstr ***
  30810. --- *** eam codon. ***
  30811. --- ************************************************
  30812. ---
  30813. CREATE VIEW mrna_recoded_by_translational_bypass AS
  30814. SELECT
  30815. feature_id AS mrna_recoded_by_translational_bypass_id,
  30816. feature.*
  30817. FROM
  30818. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30819. WHERE cvterm.name = 'mRNA_recoded_by_translational_bypass';
  30820. --- ************************************************
  30821. --- *** relation: mrna_recoded_by_codon_redefinition ***
  30822. --- *** relation type: VIEW ***
  30823. --- *** ***
  30824. --- *** A recoded_mRNA that was modified by an a ***
  30825. --- *** lteration of codon meaning. ***
  30826. --- ************************************************
  30827. ---
  30828. CREATE VIEW mrna_recoded_by_codon_redefinition AS
  30829. SELECT
  30830. feature_id AS mrna_recoded_by_codon_redefinition_id,
  30831. feature.*
  30832. FROM
  30833. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30834. WHERE cvterm.name = 'mRNA_recoded_by_codon_redefinition';
  30835. --- ************************************************
  30836. --- *** relation: recoding_stimulatory_region ***
  30837. --- *** relation type: VIEW ***
  30838. --- *** ***
  30839. --- *** A site in an mRNA sequence that stimulat ***
  30840. --- *** es the recoding of a region in the same ***
  30841. --- *** mRNA. ***
  30842. --- ************************************************
  30843. ---
  30844. CREATE VIEW recoding_stimulatory_region AS
  30845. SELECT
  30846. feature_id AS recoding_stimulatory_region_id,
  30847. feature.*
  30848. FROM
  30849. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30850. 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';
  30851. --- ************************************************
  30852. --- *** relation: four_bp_start_codon ***
  30853. --- *** relation type: VIEW ***
  30854. --- *** ***
  30855. --- *** A non-canonical start codon with 4 base ***
  30856. --- *** pairs. ***
  30857. --- ************************************************
  30858. ---
  30859. CREATE VIEW four_bp_start_codon AS
  30860. SELECT
  30861. feature_id AS four_bp_start_codon_id,
  30862. feature.*
  30863. FROM
  30864. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30865. WHERE cvterm.name = 'four_bp_start_codon';
  30866. --- ************************************************
  30867. --- *** relation: archaeal_intron ***
  30868. --- *** relation type: VIEW ***
  30869. --- *** ***
  30870. --- *** An intron characteristic of Archaeal tRN ***
  30871. --- *** A and rRNA genes, where intron transcrip ***
  30872. --- *** t generates a bulge-helix-bulge motif th ***
  30873. --- *** at is recognised by a splicing endoribon ***
  30874. --- *** uclease. ***
  30875. --- ************************************************
  30876. ---
  30877. CREATE VIEW archaeal_intron AS
  30878. SELECT
  30879. feature_id AS archaeal_intron_id,
  30880. feature.*
  30881. FROM
  30882. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30883. WHERE cvterm.name = 'archaeal_intron';
  30884. --- ************************************************
  30885. --- *** relation: trna_intron ***
  30886. --- *** relation type: VIEW ***
  30887. --- *** ***
  30888. --- *** An intron found in tRNA that is spliced ***
  30889. --- *** via endonucleolytic cleavage and ligatio ***
  30890. --- *** n rather than transesterification. ***
  30891. --- ************************************************
  30892. ---
  30893. CREATE VIEW trna_intron AS
  30894. SELECT
  30895. feature_id AS trna_intron_id,
  30896. feature.*
  30897. FROM
  30898. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30899. WHERE cvterm.name = 'tRNA_intron';
  30900. --- ************************************************
  30901. --- *** relation: ctg_start_codon ***
  30902. --- *** relation type: VIEW ***
  30903. --- *** ***
  30904. --- *** A non-canonical start codon of sequence ***
  30905. --- *** CTG. ***
  30906. --- ************************************************
  30907. ---
  30908. CREATE VIEW ctg_start_codon AS
  30909. SELECT
  30910. feature_id AS ctg_start_codon_id,
  30911. feature.*
  30912. FROM
  30913. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30914. WHERE cvterm.name = 'CTG_start_codon';
  30915. --- ************************************************
  30916. --- *** relation: secis_element ***
  30917. --- *** relation type: VIEW ***
  30918. --- *** ***
  30919. --- *** The incorporation of selenocysteine into ***
  30920. --- *** a protein sequence is directed by an in ***
  30921. --- *** -frame UGA codon (usually a stop codon) ***
  30922. --- *** within the coding region of the mRNA. Se ***
  30923. --- *** lenoprotein mRNAs contain a conserved se ***
  30924. --- *** condary structure in the 3' UTR that is ***
  30925. --- *** required for the distinction of UGA stop ***
  30926. --- *** from UGA selenocysteine. The selenocyst ***
  30927. --- *** eine insertion sequence (SECIS) is aroun ***
  30928. --- *** d 60 nt in length and adopts a hairpin s ***
  30929. --- *** tructure which is sufficiently well-defi ***
  30930. --- *** ned and conserved to act as a computatio ***
  30931. --- *** nal screen for selenoprotein genes. ***
  30932. --- ************************************************
  30933. ---
  30934. CREATE VIEW secis_element AS
  30935. SELECT
  30936. feature_id AS secis_element_id,
  30937. feature.*
  30938. FROM
  30939. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30940. WHERE cvterm.name = 'SECIS_element';
  30941. --- ************************************************
  30942. --- *** relation: retron ***
  30943. --- *** relation type: VIEW ***
  30944. --- *** ***
  30945. --- *** Sequence coding for a short, single-stra ***
  30946. --- *** nded, DNA sequence via a retrotransposed ***
  30947. --- *** RNA intermediate; characteristic of som ***
  30948. --- *** e microbial genomes. ***
  30949. --- ************************************************
  30950. ---
  30951. CREATE VIEW retron AS
  30952. SELECT
  30953. feature_id AS retron_id,
  30954. feature.*
  30955. FROM
  30956. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30957. WHERE cvterm.name = 'retron';
  30958. --- ************************************************
  30959. --- *** relation: three_prime_recoding_site ***
  30960. --- *** relation type: VIEW ***
  30961. --- *** ***
  30962. --- *** The recoding stimulatory signal located ***
  30963. --- *** downstream of the recoding site. ***
  30964. --- ************************************************
  30965. ---
  30966. CREATE VIEW three_prime_recoding_site AS
  30967. SELECT
  30968. feature_id AS three_prime_recoding_site_id,
  30969. feature.*
  30970. FROM
  30971. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30972. 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';
  30973. --- ************************************************
  30974. --- *** relation: three_prime_stem_loop_structure ***
  30975. --- *** relation type: VIEW ***
  30976. --- *** ***
  30977. --- *** A recoding stimulatory region, the stem- ***
  30978. --- *** loop secondary structural element is dow ***
  30979. --- *** nstream of the redefined region. ***
  30980. --- ************************************************
  30981. ---
  30982. CREATE VIEW three_prime_stem_loop_structure AS
  30983. SELECT
  30984. feature_id AS three_prime_stem_loop_structure_id,
  30985. feature.*
  30986. FROM
  30987. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  30988. WHERE cvterm.name = 'three_prime_stem_loop_structure';
  30989. --- ************************************************
  30990. --- *** relation: five_prime_recoding_site ***
  30991. --- *** relation type: VIEW ***
  30992. --- *** ***
  30993. --- *** The recoding stimulatory signal located ***
  30994. --- *** upstream of the recoding site. ***
  30995. --- ************************************************
  30996. ---
  30997. CREATE VIEW five_prime_recoding_site AS
  30998. SELECT
  30999. feature_id AS five_prime_recoding_site_id,
  31000. feature.*
  31001. FROM
  31002. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31003. WHERE cvterm.name = 'five_prime_recoding_site';
  31004. --- ************************************************
  31005. --- *** relation: flanking_three_prime_quadruplet_recoding_signal ***
  31006. --- *** relation type: VIEW ***
  31007. --- *** ***
  31008. --- *** Four base pair sequence immediately down ***
  31009. --- *** stream of the redefined region. The rede ***
  31010. --- *** fined region is a frameshift site. The q ***
  31011. --- *** uadruplet is 2 overlapping codons. ***
  31012. --- ************************************************
  31013. ---
  31014. CREATE VIEW flanking_three_prime_quadruplet_recoding_signal AS
  31015. SELECT
  31016. feature_id AS flanking_three_prime_quadruplet_recoding_signal_id,
  31017. feature.*
  31018. FROM
  31019. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31020. WHERE cvterm.name = 'flanking_three_prime_quadruplet_recoding_signal';
  31021. --- ************************************************
  31022. --- *** relation: uag_stop_codon_signal ***
  31023. --- *** relation type: VIEW ***
  31024. --- *** ***
  31025. --- *** A stop codon signal for a UAG stop codon ***
  31026. --- *** redefinition. ***
  31027. --- ************************************************
  31028. ---
  31029. CREATE VIEW uag_stop_codon_signal AS
  31030. SELECT
  31031. feature_id AS uag_stop_codon_signal_id,
  31032. feature.*
  31033. FROM
  31034. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31035. WHERE cvterm.name = 'UAG_stop_codon_signal';
  31036. --- ************************************************
  31037. --- *** relation: uaa_stop_codon_signal ***
  31038. --- *** relation type: VIEW ***
  31039. --- *** ***
  31040. --- *** A stop codon signal for a UAA stop codon ***
  31041. --- *** redefinition. ***
  31042. --- ************************************************
  31043. ---
  31044. CREATE VIEW uaa_stop_codon_signal AS
  31045. SELECT
  31046. feature_id AS uaa_stop_codon_signal_id,
  31047. feature.*
  31048. FROM
  31049. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31050. WHERE cvterm.name = 'UAA_stop_codon_signal';
  31051. --- ************************************************
  31052. --- *** relation: regulon ***
  31053. --- *** relation type: VIEW ***
  31054. --- *** ***
  31055. --- *** A group of genes, whether linked as a cl ***
  31056. --- *** uster or not, that respond to a common r ***
  31057. --- *** egulatory signal. ***
  31058. --- ************************************************
  31059. ---
  31060. CREATE VIEW regulon AS
  31061. SELECT
  31062. feature_id AS regulon_id,
  31063. feature.*
  31064. FROM
  31065. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31066. WHERE cvterm.name = 'regulon';
  31067. --- ************************************************
  31068. --- *** relation: uga_stop_codon_signal ***
  31069. --- *** relation type: VIEW ***
  31070. --- *** ***
  31071. --- *** A stop codon signal for a UGA stop codon ***
  31072. --- *** redefinition. ***
  31073. --- ************************************************
  31074. ---
  31075. CREATE VIEW uga_stop_codon_signal AS
  31076. SELECT
  31077. feature_id AS uga_stop_codon_signal_id,
  31078. feature.*
  31079. FROM
  31080. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31081. WHERE cvterm.name = 'UGA_stop_codon_signal';
  31082. --- ************************************************
  31083. --- *** relation: three_prime_repeat_recoding_signal ***
  31084. --- *** relation type: VIEW ***
  31085. --- *** ***
  31086. --- *** A recoding stimulatory signal, downstrea ***
  31087. --- *** m sequence important for recoding that c ***
  31088. --- *** ontains repetitive elements. ***
  31089. --- ************************************************
  31090. ---
  31091. CREATE VIEW three_prime_repeat_recoding_signal AS
  31092. SELECT
  31093. feature_id AS three_prime_repeat_recoding_signal_id,
  31094. feature.*
  31095. FROM
  31096. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31097. WHERE cvterm.name = 'three_prime_repeat_recoding_signal';
  31098. --- ************************************************
  31099. --- *** relation: distant_three_prime_recoding_signal ***
  31100. --- *** relation type: VIEW ***
  31101. --- *** ***
  31102. --- *** A recoding signal that is found many hun ***
  31103. --- *** dreds of nucleotides 3' of a redefined s ***
  31104. --- *** top codon. ***
  31105. --- ************************************************
  31106. ---
  31107. CREATE VIEW distant_three_prime_recoding_signal AS
  31108. SELECT
  31109. feature_id AS distant_three_prime_recoding_signal_id,
  31110. feature.*
  31111. FROM
  31112. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31113. WHERE cvterm.name = 'distant_three_prime_recoding_signal';
  31114. --- ************************************************
  31115. --- *** relation: stop_codon_signal ***
  31116. --- *** relation type: VIEW ***
  31117. --- *** ***
  31118. --- *** A recoding stimulatory signal that is a ***
  31119. --- *** stop codon and has effect on efficiency ***
  31120. --- *** of recoding. ***
  31121. --- ************************************************
  31122. ---
  31123. CREATE VIEW stop_codon_signal AS
  31124. SELECT
  31125. feature_id AS stop_codon_signal_id,
  31126. feature.*
  31127. FROM
  31128. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31129. 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';
  31130. --- ************************************************
  31131. --- *** relation: databank_entry ***
  31132. --- *** relation type: VIEW ***
  31133. --- *** ***
  31134. --- *** The sequence referred to by an entry in ***
  31135. --- *** a databank such as Genbank or SwissProt. ***
  31136. --- ************************************************
  31137. ---
  31138. CREATE VIEW databank_entry AS
  31139. SELECT
  31140. feature_id AS databank_entry_id,
  31141. feature.*
  31142. FROM
  31143. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31144. WHERE cvterm.name = 'databank_entry';
  31145. --- ************************************************
  31146. --- *** relation: gene_segment ***
  31147. --- *** relation type: VIEW ***
  31148. --- *** ***
  31149. --- *** A gene component region which acts as a ***
  31150. --- *** recombinational unit of a gene whose fun ***
  31151. --- *** ctional form is generated through somati ***
  31152. --- *** c recombination. ***
  31153. --- ************************************************
  31154. ---
  31155. CREATE VIEW gene_segment AS
  31156. SELECT
  31157. feature_id AS gene_segment_id,
  31158. feature.*
  31159. FROM
  31160. feature INNER JOIN cvterm ON (feature.type_id = cvterm.cvterm_id)
  31161. WHERE cvterm.name = 'pseudogenic_gene_segment' OR cvterm.name = 'gene_segment';
  31162. 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));
  31163. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcription_variant','transcription_variant');
  31164. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('helitron','helitron');
  31165. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_initiator_methionine','cleaved_initiator_methionine');
  31166. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epoxyqueuosine','epoxyqueuosine');
  31167. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u4atac_snrna','u4atac_snrna');
  31168. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kinetoplast','kinetoplast');
  31169. 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');
  31170. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('shadow_enhancer','shadow_enhancer');
  31171. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered','engineered');
  31172. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_polymerase_ii_tata_box','rna_polymerase_ii_tata_box');
  31173. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_aminomethyl_seven_deazaguanosine','seven_aminomethyl_seven_deazaguanosine');
  31174. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_motif','sequence_motif');
  31175. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('low_complexity','low_complexity');
  31176. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('est_match','est_match');
  31177. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_nonamer','v_nonamer');
  31178. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_j_c_cluster','d_dj_j_c_cluster');
  31179. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_21s','rrna_21s');
  31180. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_factor','bound_by_factor');
  31181. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethyluridine','five_carboxymethyluridine');
  31182. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dinucleotide_repeat_microsatellite_feature','dinucleotide_repeat_microsatellite_feature');
  31183. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_methyladenosine','two_methylthio_n6_methyladenosine');
  31184. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced_mrna','trans_spliced_mrna');
  31185. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_c_transversion','g_to_c_transversion');
  31186. 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');
  31187. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genotype','so_genotype');
  31188. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_region','cloned_region');
  31189. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_coding_piece','tmrna_coding_piece');
  31190. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_6s','rna_6s');
  31191. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('x_element','x_element');
  31192. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minicircle','minicircle');
  31193. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('grna_encoding','grna_encoding');
  31194. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endonuclease_spliced_intron','endonuclease_spliced_intron');
  31195. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertional_duplication','insertional_duplication');
  31196. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('databank_entry','databank_entry');
  31197. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycine','glycine');
  31198. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_phenotype','variant_phenotype');
  31199. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_cluster','v_cluster');
  31200. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl12_acceptor_site','sl12_acceptor_site');
  31201. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nickel_ion_contact_site','polypeptide_nickel_ion_contact_site');
  31202. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_single_stranded_rna_chromosome','circular_single_stranded_rna_chromosome');
  31203. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wc_base_pair','wc_base_pair');
  31204. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pcr_product','pcr_product');
  31205. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('3_prime_utr_variant','three_prime_utr_variant');
  31206. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_three_amino_three_carboxypropyl_uridine','three_three_amino_three_carboxypropyl_uridine');
  31207. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('site_specific_recombination_target_region','site_specific_recombination_target_region');
  31208. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_polycistronic_transcript','gene_with_polycistronic_transcript');
  31209. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue','rescue');
  31210. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_hypersensitive_site','nuclease_hypersensitive_site');
  31211. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('upstream_gene_variant','upstream_gene_variant');
  31212. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_loop','mirna_loop');
  31213. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_cdna','double_stranded_cdna');
  31214. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_post_translational_processing_variant','polypeptide_post_translational_processing_variant');
  31215. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('2kb_upstream_variant','twokb_upstream_variant');
  31216. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_domain_match','supported_by_domain_match');
  31217. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylpseudouridine','one_methylpseudouridine');
  31218. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n_terminal_region','n_terminal_region');
  31219. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('blunt_end_restriction_enzyme_cleavage_site','blunt_end_restriction_enzyme_cleavage_site');
  31220. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_result_region','experimental_result_region');
  31221. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionine_trna_primary_transcript','methionine_trna_primary_transcript');
  31222. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr','utr');
  31223. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_terminal_residue','non_terminal_residue');
  31224. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('member_of_regulon','member_of_regulon');
  31225. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonine_trna_primary_transcript','thr_trna_primary_transcript');
  31226. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_supported_by_sequence_similarity_data','cds_supported_by_sequence_similarity_data');
  31227. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_structural_region','polypeptide_structural_region');
  31228. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_gene','trna_gene');
  31229. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_tungsten_ion_contact_site','polypeptide_tungsten_ion_contact_site');
  31230. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop_six','beta_bulge_loop_six');
  31231. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_c_cluster','d_dj_c_cluster');
  31232. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_location','sequence_location');
  31233. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_right_left_motif','polypeptide_nest_right_left_motif');
  31234. 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');
  31235. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_gene','leucoplast_gene');
  31236. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('y_rna','y_rna');
  31237. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced_transcript','trans_spliced_transcript');
  31238. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted','inverted');
  31239. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splicing_regulatory_region','splicing_regulatory_region');
  31240. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('branch_site','branch_site');
  31241. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop_five','beta_bulge_loop_five');
  31242. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_breakpoint','chromosome_breakpoint');
  31243. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_uncertainty','sequence_uncertainty');
  31244. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_methyl_n6_threonylcarbamoyladenosine','n6_methyl_n6_threonylcarbamoyladenosine');
  31245. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_mrna_with_frameshift','gene_with_mrna_with_frameshift');
  31246. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compositionally_biased_region_of_peptide','compositionally_biased_region_of_peptide');
  31247. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_j_c_cluster','vj_j_c_cluster');
  31248. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pirna','pirna');
  31249. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse_hoogsteen_base_pair','reverse_hoogsteen_base_pair');
  31250. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophanyl_trna','tryptophanyl_trna');
  31251. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_primed_cdna_clone','polya_primed_cdna_clone');
  31252. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_chromosome','leucoplast_chromosome');
  31253. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('status','status');
  31254. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ltr_retrotransposon','ltr_retrotransposon');
  31255. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_p_rna','rnase_p_rna');
  31256. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conjugative_transposon','conjugative_transposon');
  31257. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('improved_high_quality_draft','improved_high_quality_draft');
  31258. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_gain','copy_number_gain');
  31259. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linkage_group','linkage_group');
  31260. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_trans_spliced_transcript','gene_with_trans_spliced_transcript');
  31261. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl8_acceptor_site','sl8_acceptor_site');
  31262. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_coil','peptide_coil');
  31263. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysine_trna_primary_transcript','pyrrolysine_trna_primary_transcript');
  31264. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_c_cluster','v_vj_c_cluster');
  31265. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phage_sequence','phage_sequence');
  31266. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k79_methylation_site','h3k79_methylation_site');
  31267. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded','recoded');
  31268. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposon_fragment','transposon_fragment');
  31269. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_c_cluster','vj_c_cluster');
  31270. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_domain','editing_domain');
  31271. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyluridine','five_methylaminomethyluridine');
  31272. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere_dna_element_ii','centromere_dna_element_ii');
  31273. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alteration_attribute','alteration_attribute');
  31274. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_ltr_retrotransposon_polymeric_tract','non_ltr_retrotransposon_polymeric_tract');
  31275. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transversion','transversion');
  31276. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophan','tryptophan');
  31277. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recursive_splice_site','recursive_splice_site');
  31278. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_fusion','polypeptide_fusion');
  31279. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insulator_binding_site','insulator_binding_site');
  31280. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_polyadenylation_variant','increased_polyadenylation_variant');
  31281. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proline_trna_primary_transcript','proline_trna_primary_transcript');
  31282. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_fragment','repeat_fragment');
  31283. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('blocked_reading_frame','blocked_reading_frame');
  31284. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_cleavage_snorna_primary_transcript','rrna_cleavage_snorna_primary_transcript');
  31285. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_isopentenyladenosine','n6_isopentenyladenosine');
  31286. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_arginine','modified_l_arginine');
  31287. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_conserved_motif','polypeptide_conserved_motif');
  31288. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paracentric','paracentric');
  31289. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t3_rna_polymerase_promoter','t3_rna_polymerase_promoter');
  31290. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_bipartite_duplication','inversion_derived_bipartite_duplication');
  31291. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_acceptor_site','trans_splice_acceptor_site');
  31292. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_box_type_2','a_box_type_2');
  31293. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rre_rna','rre_rna');
  31294. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_ribosyladenosine_phosphate','two_prime_o_riboA_phosphate');
  31295. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pac_end','pac_end');
  31296. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('extramembrane_polypeptide_region','extramembrane_polypeptide_region');
  31297. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_change','copy_number_change');
  31298. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intein','intein');
  31299. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endosomal_localization_signal','endosomal_localization_signal');
  31300. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('twintron','twintron');
  31301. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_primary_transcript','scrna_primary_transcript');
  31302. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyl_two_prime_o_methyluridine','five_carboxymethylaminomethyl_two_prime_o_methyluridine');
  31303. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('somatic_variant','somatic_variant');
  31304. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('duplication','duplication');
  31305. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_encoding','tmrna_encoding');
  31306. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_cobalt_ion_contact_site','polypeptide_cobalt_ion_contact_site');
  31307. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanked','flanked');
  31308. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion','inversion');
  31309. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ctg_start_codon','ctg_start_codon');
  31310. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosine_trna_primary_transcript','tyrosine_trna_primary_transcript');
  31311. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('eukaryotic_terminator','eukaryotic_terminator');
  31312. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frt_flanked','frt_flanked');
  31313. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliceosomal_intron_region','spliceosomal_intron_region');
  31314. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_region_of_exon','coding_region_of_exon');
  31315. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_cdna_insert','cloned_cdna_insert');
  31316. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_transcription_rate_variant','decreased_transcription_rate_variant');
  31317. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_c_cluster','v_vdj_c_cluster');
  31318. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_p_rna_gene','rnase_p_rna_gene');
  31319. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_regulated','translationally_regulated');
  31320. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidyl_trna','histidyl_trna');
  31321. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sonicate_fragment','sonicate_fragment');
  31322. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_recoded_mrna','gene_with_recoded_mrna');
  31323. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methyluridine','two_prime_o_methyluridine');
  31324. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cosmid','cosmid');
  31325. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_rna_interference','silenced_by_rna_interference');
  31326. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_conservative_missense_codon','non_conservative_missense_codon');
  31327. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna','snorna');
  31328. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_transcript','mature_transcript');
  31329. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudouridylation_guide_snorna','pseudouridylation_guide_snorna');
  31330. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_gene','c_gene');
  31331. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('processed_transcript','processed_transcript');
  31332. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('floxed_gene','floxed_gene');
  31333. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spot_42_rna','spot_42_rna');
  31334. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna_clone','cdna_clone');
  31335. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_splice_site','cryptic_splice_site');
  31336. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_gene_segment','pseudogenic_gene_segment');
  31337. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ltr','three_prime_ltr');
  31338. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_ii_intron','group_ii_intron');
  31339. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_mrp_rna_gene','rnase_mrp_rna_gene');
  31340. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('structural_alteration','structural_alteration');
  31341. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pna_oligo','pna_oligo');
  31342. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_sequence','insertion_sequence');
  31343. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('junction','junction');
  31344. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paralogous','paralogous');
  31345. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tna','tna');
  31346. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_two_thiouridine','five_isopentenylaminomethyl_two_thiouridine');
  31347. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nested_tandem_repeat','nested_tandem_repeat');
  31348. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_frameshift','minus_1_frameshift');
  31349. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_three_prime_splice_site','non_canonical_three_prime_splice_site');
  31350. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_non_canonical_start_codon','gene_with_non_canonical_start_codon');
  31351. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_rrna','pseudogenic_rrna');
  31352. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_turn','serine_threonine_turn');
  31353. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_gene','j_gene');
  31354. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_trimethylation_site','h3k27_trimethylation_site');
  31355. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_primary_transcript','strna_primary_transcript');
  31356. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_eliminated_sequence','internal_eliminated_sequence');
  31357. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allelically_excluded_gene','allelically_excluded_gene');
  31358. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('qtl','qtl');
  31359. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_est','three_prime_est');
  31360. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bred_motif','bred_motif');
  31361. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse','reverse');
  31362. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_encoding','mirna_encoding');
  31363. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_2_prime_o_trimethylguanosine','n2_n2_2_prime_o_trimethylguanosine');
  31364. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_product_function_variant','translational_product_function_variant');
  31365. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_alternate_transcription_start_sites','encodes_alternate_transcription_start_sites');
  31366. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_array','gene_array');
  31367. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tetranucleotide_repeat_microsatellite_feature','tetranuc_repeat_microsat');
  31368. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_aminomethyl_two_thiouridine','five_aminomethyl_two_thiouridine');
  31369. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_primary_transcript','monocistronic_primary_transcript');
  31370. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snv','snv');
  31371. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct','direct');
  31372. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile_genetic_element','mobile_genetic_element');
  31373. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_ligand_contact','polypeptide_ligand_contact');
  31374. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biomaterial_region','biomaterial_region');
  31375. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_flanking_region','transposable_element_flanking_region');
  31376. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('symmetric_rna_internal_loop','symmetric_rna_internal_loop');
  31377. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_plus_1_frameshift','mrna_with_plus_1_frameshift');
  31378. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_regulated','transcriptionally_regulated');
  31379. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_intron','five_prime_intron');
  31380. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immune_system_gene_recombination_feature','vertebrate_immune_system_gene_recombination_feature');
  31381. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxyhydroxymethyl_uridine_methyl_ester','five_carboxyhydroxymethyl_uridine_methyl_ester');
  31382. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_transposition','chromosomal_transposition');
  31383. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proplastid_gene','proplastid_gene');
  31384. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_trna_primary_transcript','serine_trna_primary_transcript');
  31385. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attp_site','attp_site');
  31386. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense','antisense');
  31387. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_inverted_repeat_element','terminal_inverted_repeat_element');
  31388. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coiled_coil','coiled_coil');
  31389. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_cluster','v_vdj_cluster');
  31390. 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');
  31391. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding_primary_transcript','protein_coding_primary_transcript');
  31392. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mite','mite');
  31393. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_splice_site_variant','cryptic_splice_site_variant');
  31394. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion','insertion');
  31395. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('secis_element','secis_element');
  31396. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maxicircle','maxicircle');
  31397. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tss','tss');
  31398. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pedigree_specific_variant','pedigree_specific_variant');
  31399. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteine','cysteine');
  31400. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribothymidine','ribothymidine');
  31401. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_adjacent_residues','non_adjacent_residues');
  31402. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_modification','histone_modification');
  31403. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_ribosome_entry_site','internal_ribosome_entry_site');
  31404. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('outron','outron');
  31405. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_repeat','polypeptide_repeat');
  31406. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert_start','clone_insert_start');
  31407. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attr_site','attr_site');
  31408. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv3_motif','dmv3_motif');
  31409. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped_mrna','capped_mrna');
  31410. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_rearrangement_feature','sequence_rearrangement_feature');
  31411. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_chromosome','apicoplast_chromosome');
  31412. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a_two','beta_turn_type_six_a_two');
  31413. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated','invalidated');
  31414. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valine','valine');
  31415. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_regulated_gene','translationally_regulated_gene');
  31416. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid_insertion','amino_acid_insertion');
  31417. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_targeting_sequence','promoter_targeting_sequence');
  31418. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polinton','polinton');
  31419. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_tag','engineered_tag');
  31420. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_coding_exon_variant','non_coding_exon_variant');
  31421. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylcytidine','five_methylcytidine');
  31422. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl5_acceptor_site','sl5_acceptor_site');
  31423. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positively_autoregulated','positively_autoregulated');
  31424. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudouridine','pseudouridine');
  31425. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amplification_origin','amplification_origin');
  31426. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unoriented_insertional_duplication','unorient_insert_dup');
  31427. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_constitutive','transcriptionally_constitutive');
  31428. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('extrachromosomal_mobile_genetic_element','extrachromosomal_mobile_genetic_element');
  31429. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_origin','variant_origin');
  31430. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_region','utr_region');
  31431. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna','mirna');
  31432. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosine','tyrosine');
  31433. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inr1_motif','inr1_motif');
  31434. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h2b_ubiquitination_site','h2b_ubiquitination_site');
  31435. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_acetyladenosine','n6_acetyladenosine');
  31436. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cis_splice_site','cis_splice_site');
  31437. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('floxed','floxed');
  31438. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_right_handed_type_two','beta_turn_right_handed_type_two');
  31439. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_variant','utr_variant');
  31440. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_terminal_region','c_terminal_region');
  31441. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcription_regulatory_region','transcription_regulatory_region');
  31442. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_leucine','modified_l_leucine');
  31443. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ltr_component','five_prime_ltr_component');
  31444. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_acylation_region','histone_acylation_region');
  31445. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_c_cluster','vdj_c_cluster');
  31446. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_part','chromosome_part');
  31447. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptional_cis_regulatory_region','transcriptional_cis_regulatory_region');
  31448. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanyl_trna','phenylalanyl_trna');
  31449. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_site','insertion_site');
  31450. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gc_rich_promoter_region','gc_rich_promoter_region');
  31451. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping_est_set','overlapping_est_set');
  31452. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_right_handed_type_two','asx_turn_right_handed_type_two');
  31453. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anticodon_loop','anticodon_loop');
  31454. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv5_motif','dmv5_motif');
  31455. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl1_acceptor_site','sl1_acceptor_site');
  31456. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_region','cds_region');
  31457. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulatory_region_variant','regulatory_region_variant');
  31458. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_dimethylation_site','h3k9_dimethylation_site');
  31459. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_gained','stop_gained');
  31460. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomerase_rna_gene','telomerase_rna_gene');
  31461. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_j_c_cluster','v_dj_j_c_cluster');
  31462. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_insert','engineered_insert');
  31463. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_inverted_gene','recombinationally_inverted_gene');
  31464. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('microarray_oligo','microarray_oligo');
  31465. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cassette_array_member','cassette_array_member');
  31466. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_frameshift_variant','plus_1_frameshift_variant');
  31467. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u12_snrna','u12_snrna');
  31468. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_est_or_cdna','supported_by_est_or_cdna');
  31469. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_10_signal','minus_10_signal');
  31470. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert_end','clone_insert_end');
  31471. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inr_motif','inr_motif');
  31472. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_stem_loop_structure','three_prime_stem_loop_structure');
  31473. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rflp_fragment','rflp_fragment');
  31474. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phage_rna_polymerase_promoter','phage_rna_polymerase_promoter');
  31475. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrimidine_transition','pyrimidine_transition');
  31476. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrinsically_unstructured_polypeptide_region','intrinsically_unstructured_polypeptide_region');
  31477. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_2_prime_o_dimethylguanosine','n2_2_prime_o_dimethylguanosine');
  31478. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_loss','exon_loss');
  31479. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('archaeal_intron','archaeal_intron');
  31480. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lna','lna');
  31481. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_junction','exon_junction');
  31482. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t7_rna_polymerase_promoter','t7_rna_polymerase_promoter');
  31483. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_interchromosomal_transposition','invert_inter_transposition');
  31484. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('episome','episome');
  31485. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_insertional_duplication','uninvert_insert_dup');
  31486. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free','free');
  31487. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_difference','sequence_difference');
  31488. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k5_acylation_site','h4k5_acylation_site');
  31489. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_c_cluster','v_d_dj_c_cluster');
  31490. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_conflict','sequence_conflict');
  31491. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nmd_transcript_variant','nmd_transcript_variant');
  31492. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path_clone','tiling_path_clone');
  31493. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iii_intron','group_iii_intron');
  31494. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_glycine','modified_glycine');
  31495. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_alteration','sequence_alteration');
  31496. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyploid','polyploid');
  31497. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mathematically_defined_repeat','mathematically_defined_repeat');
  31498. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_dna_modification','gene_silenced_by_dna_modification');
  31499. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_j_cluster','v_vj_j_cluster');
  31500. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucine_trna_primary_transcript','isoleucine_trna_primary_transcript');
  31501. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_small_subunit_primary_transcript','rrna_small_subunit_primary_transcript');
  31502. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ltr_component','ltr_component');
  31503. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_framshift','plus_2_framshift');
  31504. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_product_structure_variant','translational_product_structure_variant');
  31505. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamic_acid_trna_primary_transcript','glutamic_acid_trna_primary_transcript');
  31506. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_rearranged_at_dna_level','gene_rearranged_at_dna_level');
  31507. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_transcript','edited_transcript');
  31508. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_partial_processing','invalidated_by_partial_processing');
  31509. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_transcript_stability_variant','increased_transcript_stability_variant');
  31510. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequencing_primer','sequencing_primer');
  31511. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_for_gpi_anchor_region','cleaved_for_gpi_anchor_region');
  31512. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_cysteine','modified_l_cysteine');
  31513. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_utr','five_prime_utr');
  31514. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_recognition_site','restriction_enzyme_recognition_site');
  31515. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frt_site','frt_site');
  31516. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_inverted_repeat','terminal_inverted_repeat');
  31517. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere_dna_element_i','centromere_dna_element_i');
  31518. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transition','transition');
  31519. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion_junction','deletion_junction');
  31520. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_right_handed_type_one','beta_turn_right_handed_type_one');
  31521. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_ribosylguanosine_phosphate','two_prime_o_ribosylguanosine_phosphate');
  31522. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carbamoylmethyl_two_prime_o_methyluridine','five_cm_2_prime_o_methU');
  31523. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_transcribed_spacer_region','internal_transcribed_spacer_region');
  31524. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic','dicistronic');
  31525. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supported_by_sequence_similarity','supported_by_sequence_similarity');
  31526. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reverse_primer','reverse_primer');
  31527. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_three_prime_ltr_region','u3_three_prime_ltr_region');
  31528. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamine_trna_primary_transcript','glutamine_trna_primary_transcript');
  31529. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_ii_promoter','rnapol_ii_promoter');
  31530. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping','overlapping');
  31531. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alpha_beta_motif','alpha_beta_motif');
  31532. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_transposable_element','engineered_transposable_element');
  31533. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('forward_primer','forward_primer');
  31534. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attctn_site','attctn_site');
  31535. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_recombination_signal_sequence','five_prime_d_recombination_signal_sequence');
  31536. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u6_snrna','u6_snrna');
  31537. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged_gene','recombinationally_rearranged_gene');
  31538. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_threonylcarbamoyladenosine','n6_threonylcarbamoyladenosine');
  31539. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carbamoylmethyluridine','five_carbamoylmethyluridine');
  31540. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_fragment','cds_fragment');
  31541. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genome','genome');
  31542. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_translational_product_level','increased_translational_product_level');
  31543. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_product_level_variant','translational_product_level_variant');
  31544. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter','promoter');
  31545. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding_gene','protein_coding_gene');
  31546. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_snrna','u5_snrna');
  31547. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wybutosine','wybutosine');
  31548. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylwyosine','methylwyosine');
  31549. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('large_subunit_rrna','large_subunit_rrna');
  31550. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomally_aberrant_genome','chromosomally_aberrant_genome');
  31551. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_2_prime_o_dimethylcytidine','n4_2_prime_o_dimethylcytidine');
  31552. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_t_transition','c_to_t_transition');
  31553. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bidirectional_promoter','bidirectional_promoter');
  31554. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('validated_cdna_clone','validated_cdna_clone');
  31555. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('k_turn_rna_motif','k_turn_rna_motif');
  31556. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_fragment','transcribed_fragment');
  31557. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ust','five_prime_ust');
  31558. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_utr_intron','three_prime_utr_intron');
  31559. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrogene','retrogene');
  31560. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrimidine_to_purine_transversion','pyrimidine_to_purine_transversion');
  31561. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sine_element','sine_element');
  31562. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_rst','five_prime_rst');
  31563. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('utr_intron','utr_intron');
  31564. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_transposition','interchromosomal_transposition');
  31565. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_sequence_secondary_structure','rna_sequence_secondary_structure');
  31566. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_change_in_transcript','complex_change_in_transcript');
  31567. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_transposable_element','engineered_foreign_transposable_element');
  31568. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_rna_viral_sequence','ds_rna_viral_sequence');
  31569. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fosmid','fosmid');
  31570. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_substitution','complex_substitution');
  31571. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('validated','validated');
  31572. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u2_snrna','u2_snrna');
  31573. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('duplication_attribute','duplication_attribute');
  31574. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('caat_signal','caat_signal');
  31575. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_cluster','c_cluster');
  31576. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus_region','consensus_region');
  31577. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immune_system_gene_recombination_spacer','vertebrate_immune_system_gene_recombination_spacer');
  31578. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_restriction_enzyme_junction','three_prime_restriction_enzyme_junction');
  31579. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_trap_construct','gene_trap_construct');
  31580. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_aptamer','rna_aptamer');
  31581. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_induced','transcriptionally_induced');
  31582. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal','intrachromosomal');
  31583. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_localization_signal','nuclear_localization_signal');
  31584. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_region','rescue_region');
  31585. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_site_part','inversion_site_part');
  31586. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_frameshift variant','plus_2_frameshift_variant');
  31587. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('origin_of_replication','origin_of_replication');
  31588. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('standard_draft','standard_draft');
  31589. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k79_dimethylation_site','h3k79_dimethylation_site');
  31590. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_internal_loop','rna_internal_loop');
  31591. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ultracontig','ultracontig');
  31592. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptidyl','peptidyl');
  31593. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_region','polypeptide_region');
  31594. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified_region','epigenetically_modified_region');
  31595. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic_insertion','transgenic_insertion');
  31596. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_antiguide','mirna_antiguide');
  31597. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rearranged_at_dna_level','rearranged_at_dna_level');
  31598. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intergenic_variant','intergenic_variant');
  31599. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_spacer','v_spacer');
  31600. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strand_attribute','strand_attribute');
  31601. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_lost','stop_lost');
  31602. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternatively_spliced','alternatively_spliced');
  31603. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_formyl_two_prime_o_methylcytidine','five_formyl_two_prime_o_methylcytidine');
  31604. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_location','plasmid_location');
  31605. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_bp_start_codon','four_bp_start_codon');
  31606. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_transcription_rate_variant','increased_transcription_rate_variant');
  31607. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged','recombinationally_rearranged');
  31608. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_3d_structural_variant','complex_3d_structural_variant');
  31609. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chimeric_cdna_clone','chimeric_cdna_clone');
  31610. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tasirna_primary_transcript','tasirna_primary_transcript');
  31611. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_transcript','gene_with_dicistronic_transcript');
  31612. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ltr_component','three_prime_ltr_component');
  31613. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retron','retron');
  31614. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autopolyploid','autopolyploid');
  31615. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanine','phenylalanine');
  31616. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translation_regulatory_region','translation_regulatory_region');
  31617. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transit_peptide','transit_peptide');
  31618. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid_deletion','amino_acid_deletion');
  31619. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_28s','rrna_28s');
  31620. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethylinosine','one_two_prime_o_dimethylinosine');
  31621. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonine','threonine');
  31622. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_minor_rna_motif','a_minor_rna_motif');
  31623. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_cluster','j_cluster');
  31624. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dce','dce');
  31625. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('quantitative_variant','quantitative_variant');
  31626. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysosomal_localization_signal','lysosomal_localization_signal');
  31627. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_cluster','d_dj_cluster');
  31628. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_arm','chromosome_arm');
  31629. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kinetoplast_gene','kinetoplast_gene');
  31630. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('line_element','line_element');
  31631. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('solo_ltr','solo_ltr');
  31632. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('external_transcribed_spacer_region','external_transcribed_spacer_region');
  31633. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_transcribed_region','non_transcribed_region');
  31634. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_stem','mirna_stem');
  31635. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_j_c_cluster','dj_j_c_cluster');
  31636. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hyperploid','hyperploid');
  31637. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic','cryptic');
  31638. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_acetylation_site','h3k9_acetylation_site');
  31639. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alpha_helix','alpha_helix');
  31640. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fusion','fusion');
  31641. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_j_cluster','vdj_j_cluster');
  31642. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isowyosine','isowyosine');
  31643. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paracentric_inversion','paracentric_inversion');
  31644. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homing_endonuclease_binding_site','homing_endonuclease_binding_site');
  31645. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tna_oligo','tna_oligo');
  31646. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mini_gene','mini_gene');
  31647. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_fragment','restriction_fragment');
  31648. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base_pair','base_pair');
  31649. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron_antiparallel','inside_intron_antiparallel');
  31650. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_binding_site','dna_binding_site');
  31651. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_cytidine','modified_cytidine');
  31652. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hydrophobic_region_of_peptide','hydrophobic_region_of_peptide');
  31653. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_primary_transcript','polycistronic_primary_transcript');
  31654. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_proline','modified_l_proline');
  31655. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('overlapping_feature_set','overlapping_feature_set');
  31656. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_left_handed_type_two','asx_turn_left_handed_type_two');
  31657. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_duplication','interchromosomal_duplication');
  31658. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inframe_codon_loss','inframe_codon_loss');
  31659. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('substitution','substitution');
  31660. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucine','isoleucine');
  31661. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('functional_variant','functional_variant');
  31662. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_recoding_site','three_prime_recoding_site');
  31663. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_stability_variant','transcript_stability_variant');
  31664. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('5kb_upstream_variant','fivekb_upstream_variant');
  31665. 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');
  31666. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycine_trna_primary_transcript','glycine_trna_primary_transcript');
  31667. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron_variant','intron_variant');
  31668. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regional_centromere_outer_repeat_region','regional_centromere_outer_repeat_region');
  31669. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('replication_regulatory_region','replication_regulatory_region');
  31670. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mating_type_region','mating_type_region');
  31671. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_heptamer','v_heptamer');
  31672. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dispersed_repeat','dispersed_repeat');
  31673. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer','primer');
  31674. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_domain','polypeptide_domain');
  31675. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wild_type','wild_type');
  31676. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fusion_gene','fusion_gene');
  31677. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_function_variant','transcript_function_variant');
  31678. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_member_region','gene_member_region');
  31679. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginyl_trna','arginyl_trna');
  31680. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compensatory_transcript_secondary_structure_variant','compensatory_transcript_secondary_structure_variant');
  31681. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_base_feature','methylated_base_feature');
  31682. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_intrachromosomal_transposition','uninvert_intra_transposition');
  31683. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_gene','scrna_gene');
  31684. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_18s','rrna_18s');
  31685. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_1','rnapol_iii_promoter_type_1');
  31686. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('point_mutation','point_mutation');
  31687. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudoknot','pseudoknot');
  31688. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_quartet','g_quartet');
  31689. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop','schellmann_loop');
  31690. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_selenocysteine','modified_l_selenocysteine');
  31691. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pna','pna');
  31692. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon','three_prime_coding_exon');
  31693. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endogenous_retroviral_gene','endogenous_retroviral_gene');
  31694. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vertebrate_immunoglobulin_t_cell_receptor_segment','vertebrate_immunoglobulin_t_cell_receptor_segment');
  31695. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_recoded_by_translational_bypass','mrna_recoded_by_translational_bypass');
  31696. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_region','engineered_foreign_region');
  31697. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_encoding','snorna_encoding');
  31698. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_est','five_prime_est');
  31699. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foldback_element','foldback_element');
  31700. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_encoding','srp_rna_encoding');
  31701. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_j_c_cluster','d_j_c_cluster');
  31702. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_c_cluster','dj_c_cluster');
  31703. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_ubiqitination_site','histone_ubiqitination_site');
  31704. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_structural_alteration','complex_structural_alteration');
  31705. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_encoding','rrna_encoding');
  31706. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_recoded_by_codon_redefinition','mrna_recoded_by_codon_redefinition');
  31707. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyluridine','five_methyluridine');
  31708. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_sequence','polya_sequence');
  31709. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('metabolic_island','metabolic_island');
  31710. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homologous','homologous');
  31711. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('immature_peptide_region','immature_peptide_region');
  31712. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h2bk5_monomethylation_site','h2bk5_monomethylation_site');
  31713. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_attribute','sequence_attribute');
  31714. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sirna','sirna');
  31715. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dart_marker','dart_marker');
  31716. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_motif','nucleotide_motif');
  31717. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_translationally_frameshifted','plus_1_translationally_frameshifted');
  31718. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_intron','trna_intron');
  31719. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_noncoding_exon','five_prime_noncoding_exon');
  31720. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_motif','dna_motif');
  31721. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_strand','beta_strand');
  31722. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_oligo','ds_oligo');
  31723. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methyladenosine','one_methyladenosine');
  31724. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oxys_rna','oxys_rna');
  31725. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_motif','asx_motif');
  31726. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_hydroxyuridine','five_hydroxyuridine');
  31727. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_exon','coding_exon');
  31728. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_translational_frameshift','plus_1_translational_frameshift');
  31729. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_formylcytidine','five_formylcytidine');
  31730. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_dimethylation_site','h3k27_dimethylation_site');
  31731. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliced_leader_rna','spliced_leader_rna');
  31732. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_chromosome','mitochondrial_chromosome');
  31733. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_fragment','gene_fragment');
  31734. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_7_2prirme_o_trimethylguanosine','n2_7_2prirme_o_trimethylguanosine');
  31735. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frameshift','frameshift');
  31736. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('propeptide_cleavage_site','propeptide_cleavage_site');
  31737. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyldihydrouridine','five_methyldihydrouridine');
  31738. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid','amino_acid');
  31739. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation_breakpoint','translocation_breakpoint');
  31740. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_5_8s','rrna_5_8s');
  31741. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('helix_turn_helix','helix_turn_helix');
  31742. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('simple_sequence_length_variation','simple_sequence_length_variation');
  31743. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionine','methionine');
  31744. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_loss_of_function_variant','polypeptide_loss_of_function_variant');
  31745. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_gene','transposable_element_gene');
  31746. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('whole_genome_sequence_status','whole_genome_sequence_status');
  31747. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_island','genomic_island');
  31748. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_segment','gene_segment');
  31749. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_gene','snrna_gene');
  31750. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_region','engineered_region');
  31751. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('common_variant','common_variant');
  31752. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptogene','cryptogene');
  31753. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon_noncoding_region','three_prime_coding_exon_noncoding_region');
  31754. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_rna_interference','gene_silenced_by_rna_interference');
  31755. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_interchromosomal_transposition','d_interchr_transposition');
  31756. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_variant_site','natural_variant_site');
  31757. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly','assembly');
  31758. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('major_tss','major_tss');
  31759. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna','trna');
  31760. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_overlapping_peptides','encodes_overlapping_peptides');
  31761. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_conserved_region','nc_conserved_region');
  31762. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('locus_control_region','locus_control_region');
  31763. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('s_gna_oligo','s_gna_oligo');
  31764. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_chromosome','dna_chromosome');
  31765. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_b','beta_turn_type_six_b');
  31766. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('loss_of_heterozygosity','loss_of_heterozygosity');
  31767. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_gene','engineered_gene');
  31768. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wobble_base_pair','wobble_base_pair');
  31769. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_amino_acid_feature','modified_amino_acid_feature');
  31770. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_c_transition','t_to_c_transition');
  31771. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocaton_attribute','translocaton_attribute');
  31772. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_sequence','apicoplast_sequence');
  31773. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminal_codon_variant','terminal_codon_variant');
  31774. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('irlinv_site','irlinv_site');
  31775. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synthetic_sequence','synthetic_sequence');
  31776. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_1_polypeptide','encodes_1_polypeptide');
  31777. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iia_intron','group_iia_intron');
  31778. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomere','telomere');
  31779. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_intron','interior_intron');
  31780. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_mrna','edited_mrna');
  31781. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_right_handed_three','catmat_right_handed_three');
  31782. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem_duplication','tandem_duplication');
  31783. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_gene','tmrna_gene');
  31784. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_edited_region','pre_edited_region');
  31785. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_hydroxynorvalylcarbamoyladenosine','n6_hydroxynorvalylcarbamoyladenosine');
  31786. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorphic_chromosome','nucleomorphic_chromosome');
  31787. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fragmentary','fragmentary');
  31788. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single','single');
  31789. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('binding_site','binding_site');
  31790. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_methylguanine','seven_methylguanine');
  31791. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('target_site_duplication','target_site_duplication');
  31792. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_gene','vdj_gene');
  31793. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_nucleic_acid','bound_by_nucleic_acid');
  31794. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_localization_signal','peptide_localization_signal');
  31795. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_right_handed_four','catmat_right_handed_four');
  31796. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_acylation_site','h3k27_acylation_site');
  31797. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compound_chromosome','compound_chromosome');
  31798. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_end','coding_end');
  31799. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gap','gap');
  31800. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ligand_binding_site','ligand_binding_site');
  31801. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('upstream_aug_codon','upstream_aug_codon');
  31802. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_transcript','pseudogenic_transcript');
  31803. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('satellite_dna','satellite_dna');
  31804. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_deficiency_plus_duplication','assortment_derived_deficiency_plus_duplication');
  31805. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element','transposable_element');
  31806. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('endogenous_retroviral_sequence','endogenous_retroviral_sequence');
  31807. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('microsatellite','microsatellite');
  31808. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_different_polypeptides_different_stop','encodes_different_polypeptides_different_stop');
  31809. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primary_transcript','primary_transcript');
  31810. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus_mrna','consensus_mrna');
  31811. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('membrane_peptide_loop','membrane_peptide_loop');
  31812. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign','so_foreign');
  31813. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rho_independent_bacterial_terminator','rho_independent_bacterial_terminator');
  31814. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u_box','u_box');
  31815. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_deacetylation','gene_silenced_by_histone_deacetylation');
  31816. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vdj_j_c_cluster','vdj_j_c_cluster');
  31817. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cpg_island','cpg_island');
  31818. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('haplotype','haplotype');
  31819. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylinosine','two_prime_o_methylinosine');
  31820. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna','dna');
  31821. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_double_stranded_rna_chromosome','circular_double_stranded_rna_chromosome');
  31822. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_protein_region','mature_protein_region');
  31823. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('b_box','b_box');
  31824. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_zinc_ion_contact_site','polypeptide_zinc_ion_contact_site');
  31825. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_subarray_member','gene_subarray_member');
  31826. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette','gene_cassette');
  31827. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oric','oric');
  31828. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion_breakpoint','deletion_breakpoint');
  31829. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_attribute','insertion_attribute');
  31830. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_plus_2_frameshift','mrna_with_plus_2_frameshift');
  31831. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chip_seq_region','chip_seq_region');
  31832. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_right_handed_type_one','asx_turn_right_handed_type_one');
  31833. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_cluster','transcribed_cluster');
  31834. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tyrosyl_trna','tyrosyl_trna');
  31835. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orthologous','orthologous');
  31836. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('s_gna','s_gna');
  31837. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('canonical_three_prime_splice_site','canonical_three_prime_splice_site');
  31838. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncoding_exon','noncoding_exon');
  31839. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lethal_variant','lethal_variant');
  31840. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minor_tss','minor_tss');
  31841. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_two_prime_o_dimethylcytidine','five_two_prime_o_dimethylcytidine');
  31842. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k36_trimethylation_site','h3k36_trimethylation_site');
  31843. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronuclear_chromosome','macronuclear_chromosome');
  31844. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_translocation','deficient_translocation');
  31845. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('read_pair','read_pair');
  31846. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_with_translational_frameshift','transcript_with_translational_frameshift');
  31847. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('finished_genome','finished_genome');
  31848. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_3','rnapol_iii_promoter_type_3');
  31849. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_transposon','dna_transposon');
  31850. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orf','orf');
  31851. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('right_handed_peptide_helix','right_handed_peptide_helix');
  31852. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_left_right_motif','polypeptide_nest_left_right_motif');
  31853. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('topology_attribute','topology_attribute');
  31854. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirtron','mirtron');
  31855. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_motif','polypeptide_motif');
  31856. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl9_acceptor_site','sl9_acceptor_site');
  31857. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proplastid_sequence','proplastid_sequence');
  31858. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negatively_autoregulated_gene','negatively_autoregulated_gene');
  31859. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retinoic_acid_responsive_element','retinoic_acid_responsive_element');
  31860. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna_encoding','c_d_box_snorna_encoding');
  31861. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_assembly','sequence_assembly');
  31862. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_gene','chromoplast_gene');
  31863. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dcaps_primer','dcaps_primer');
  31864. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_clip','five_prime_clip');
  31865. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('golden_path','golden_path');
  31866. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_acceptor_variant','splice_acceptor_variant');
  31867. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanine','alanine');
  31868. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cleaved_peptide_region','cleaved_peptide_region');
  31869. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_j_cluster','v_dj_j_cluster');
  31870. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_region','pseudogenic_region');
  31871. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminator_codon_variant','terminator_codon_variant');
  31872. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylation_guide_snorna','methylation_guide_snorna');
  31873. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_j_c_cluster','v_vj_j_c_cluster');
  31874. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_start_codon','non_canonical_start_codon');
  31875. 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');
  31876. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_turn_motif','polypeptide_turn_motif');
  31877. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autocatalytically_spliced_intron','autocatalytically_spliced_intron');
  31878. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile','mobile');
  31879. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem','tandem');
  31880. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron','intron');
  31881. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clip','clip');
  31882. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dye_terminator_read','dye_terminator_read');
  31883. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv4_motif','dmv4_motif');
  31884. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('au_rich_element','au_rich_element');
  31885. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_breakpoint','inversion_breakpoint');
  31886. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dce_siii','dce_siii');
  31887. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_recoding_site','five_prime_recoding_site');
  31888. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_protein_coding','non_protein_coding');
  31889. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mobile_intron','mobile_intron');
  31890. 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');
  31891. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_right_handed_type_one','st_turn_right_handed_type_one');
  31892. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna','rrna');
  31893. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron_parallel','inside_intron_parallel');
  31894. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('spliceosomal_intron','spliceosomal_intron');
  31895. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phagemid','phagemid');
  31896. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_block','editing_block');
  31897. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fragment_assembly','fragment_assembly');
  31898. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_acceptor_piece','tmrna_acceptor_piece');
  31899. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six','beta_turn_type_six');
  31900. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_rst','three_prime_rst');
  31901. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteine_trna_primary_transcript','cysteine_trna_primary_transcript');
  31902. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_gene','post_translationally_regulated_gene');
  31903. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcriptionally_repressed','transcriptionally_repressed');
  31904. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('crm','crm');
  31905. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cointegrated_plasmid','cointegrated_plasmid');
  31906. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_sequencing_information','polypeptide_sequencing_information');
  31907. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_spacer','three_prime_d_spacer');
  31908. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path_fragment','tiling_path_fragment');
  31909. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural','so_natural');
  31910. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pi_helix','pi_helix');
  31911. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('possible_base_call_error','possible_base_call_error');
  31912. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_truncation','polypeptide_truncation');
  31913. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k14_acetylation_site','h3k14_acetylation_site');
  31914. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('adaptive_island','adaptive_island');
  31915. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uridine_five_oxyacetic_acid','uridine_five_oxyacetic_acid');
  31916. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl7_acceptor_site','sl7_acceptor_site');
  31917. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_2_translational_frameshift','plus_2_translational_frameshift');
  31918. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_retained_variant','stop_retained_variant');
  31919. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homologous_region','homologous_region');
  31920. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('500b_downstream_variant','fivehundred_b_downstream_variant');
  31921. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_utr','internal_utr');
  31922. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_cytoplasmic_polypeptide_region','non_cytoplasmic_polypeptide_region');
  31923. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_feature','experimental_feature');
  31924. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_chromosome','nuclear_chromosome');
  31925. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exemplar','exemplar');
  31926. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_ii_core_promoter','rnapol_ii_core_promoter');
  31927. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_methylation_site','h3k9_methylation_site');
  31928. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanine_trna_primary_transcript','alanine_trna_primary_transcript');
  31929. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_variation','assortment_derived_variation');
  31930. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_dimethylguanosine','n2_n2_dimethylguanosine');
  31931. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_hook_turn','rna_hook_turn');
  31932. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcribed_spacer_region','transcribed_spacer_region');
  31933. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_gene','plasmid_gene');
  31934. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u14_snorna','u14_snorna');
  31935. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('galactosyl_queuosine','galactosyl_queuosine');
  31936. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_gene','cyanelle_gene');
  31937. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wild_type_rescue_gene','wild_type_rescue_gene');
  31938. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u12_intron','u12_intron');
  31939. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aptamer','aptamer');
  31940. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_mrna','recoded_mrna');
  31941. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nested_transposon','nested_transposon');
  31942. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tf_binding_site_variant','tf_binding_site_variant');
  31943. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronuclear_sequence','macronuclear_sequence');
  31944. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ust','ust');
  31945. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteine','selenocysteine');
  31946. 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');
  31947. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_mrna','gene_with_dicistronic_mrna');
  31948. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('match_part','match_part');
  31949. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorphic_sequence','nucleomorphic_sequence');
  31950. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('apicoplast_gene','apicoplast_gene');
  31951. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulon','regulon');
  31952. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid_vector','plasmid_vector');
  31953. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_tryptophan','modified_l_tryptophan');
  31954. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_chromosome_arm','free_chromosome_arm');
  31955. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_primary_transcript','srp_rna_primary_transcript');
  31956. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn','asx_turn');
  31957. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anchor_binding_site','anchor_binding_site');
  31958. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_primary_transcript','rrna_primary_transcript');
  31959. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reading_frame','reading_frame');
  31960. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k23_acylation site','h3k23_acylation_site');
  31961. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternal_variant','maternal_variant');
  31962. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dhu_loop','dhu_loop');
  31963. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_acetylcytidine','n4_acetylcytidine');
  31964. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimental_feature_attribute','experimental_feature_attribute');
  31965. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_gene','silenced_gene');
  31966. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cloned_genomic_insert','cloned_genomic_insert');
  31967. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron_gain','intron_gain');
  31968. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_sequence_secondary_structure','dna_sequence_secondary_structure');
  31969. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna_match','cdna_match');
  31970. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_flanking_region','five_prime_flanking_region');
  31971. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysyl_trna','pyrrolysyl_trna');
  31972. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_cis_hydroxyisopentenyl_adenosine','two_methylthio_n6_cis_hydroxyisopentenyl_adenosine');
  31973. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_component','repeat_component');
  31974. 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');
  31975. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rpra_rna','rpra_rna');
  31976. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_sensitive_site','nuclease_sensitive_site');
  31977. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conservative_amino_acid_substitution','conservative_amino_acid_substitution');
  31978. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon_noncoding_region','five_prime_coding_exon_noncoding_region');
  31979. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter','rnapol_iii_promoter');
  31980. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tryptophan_trna_primary_transcript','try_trna_primary_transcript');
  31981. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncontiguous_finished','noncontiguous_finished');
  31982. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('region','region');
  31983. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tf_binding_site','tf_binding_site');
  31984. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attl_site','attl_site');
  31985. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_plasmid','natural_plasmid');
  31986. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('upd','upd');
  31987. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conservative_missense_codon','conservative_missense_codon');
  31988. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_n6_dimethyladenosine','n6_n6_dimethyladenosine');
  31989. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('laevosynaptic_chromosome','laevosynaptic_chromosome');
  31990. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_structural_element','chromosomal_structural_element');
  31991. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette_array','gene_cassette_array');
  31992. 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');
  31993. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('canonical_five_prime_splice_site','canonical_five_prime_splice_site');
  31994. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bound_by_protein','bound_by_protein');
  31995. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sts_map','sts_map');
  31996. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dnazyme','dnazyme');
  31997. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silent_mutation','silent_mutation');
  31998. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_j_cluster','v_d_j_cluster');
  31999. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('distal_promoter_element','distal_promoter_element');
  32000. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bipartite_duplication','bipartite_duplication');
  32001. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hydroxywybutosine','hydroxywybutosine');
  32002. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dihydrouridine','dihydrouridine');
  32003. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon_coding_region','five_prime_coding_exon_coding_region');
  32004. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_left_handed_type_one','beta_turn_left_handed_type_one');
  32005. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k4_trimethylation','h3k4_trimethylation');
  32006. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_codon','recoded_codon');
  32007. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted','predicted');
  32008. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('resolution_site','resolution_site');
  32009. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_cyano_seven_deazaguanosine','seven_cyano_seven_deazaguanosine');
  32010. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('disease_associated_variant','disease_associated_variant');
  32011. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conformational_switch','conformational_switch');
  32012. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulated','regulated');
  32013. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_repeat','inverted_repeat');
  32014. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_a_transversion','t_to_a_transversion');
  32015. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attc_site','attc_site');
  32016. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methyladenosine','two_methyladenosine');
  32017. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cross_genome_match','cross_genome_match');
  32018. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tandem_repeat','tandem_repeat');
  32019. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_loss','copy_number_loss');
  32020. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense_primary_transcript','antisense_primary_transcript');
  32021. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_collection','sequence_collection');
  32022. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_polyadenylated_mrna','gene_with_polyadenylated_mrna');
  32023. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_i_promoter','rnapol_i_promoter');
  32024. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methyluridine','three_methyluridine');
  32025. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('start_codon','start_codon');
  32026. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrotransposon','retrotransposon');
  32027. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_in_frame_polypeptide_c_terminal','elongated_in_frame_polypeptide_c_terminal');
  32028. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_gene','v_gene');
  32029. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_dna','chloroplast_dna');
  32030. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negative_sense_ssrna_viral_sequence','negative_sense_ssrna_viral_sequence');
  32031. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer_binding_site','primer_binding_site');
  32032. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_box','c_box');
  32033. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plasmid','plasmid');
  32034. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biological_region','biological_region');
  32035. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_a_transition','g_to_a_transition');
  32036. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_canonical_five_prime_splice_site','non_canonical_five_prime_splice_site');
  32037. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna_primary_transcript','c_d_box_snorna_primary_transcript');
  32038. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_region','trna_region');
  32039. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_cis_hydroxyisopentenyl_adenosine','n6_cis_hydroxyisopentenyl_adenosine');
  32040. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_sequence','chloroplast_sequence');
  32041. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_frequency','variant_frequency');
  32042. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_region','exon_region');
  32043. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_five_prime_ltr_region','r_five_prime_ltr_region');
  32044. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_j_c_cluster','v_j_c_cluster');
  32045. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_three_prime_ltr_region','r_three_prime_ltr_region');
  32046. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna','snrna');
  32047. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylinosine','one_methylinosine');
  32048. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inframe_codon_gain','inframe_codon_gain');
  32049. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_gene_recombination_feature','j_gene_recombination_feature');
  32050. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_structural_motif','polypeptide_structural_motif');
  32051. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conserved_region','conserved_region');
  32052. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl3_acceptor_site','sl3_acceptor_site');
  32053. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('remark','remark');
  32054. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fixed_variant','fixed_variant');
  32055. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_dna_contact','polypeptide_dna_contact');
  32056. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon','codon');
  32057. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_23s','rrna_23s');
  32058. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_gain_of_function_variant','polypeptide_gain_of_function_variant');
  32059. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna','mrna');
  32060. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glycyl_trna','glycyl_trna');
  32061. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_sequence','cyanelle_sequence');
  32062. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_independently_known','cds_independently_known');
  32063. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insulator','insulator');
  32064. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positive_sense_ssrna_viral_sequence','positive_sense_ssrna_viral_sequence');
  32065. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sticky_end_restriction_enzyme_cleavage_site','sticky_end_restriction_enzyme_cleavage_site');
  32066. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('expressed_sequence_match','expressed_sequence_match');
  32067. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('possible_assembly_error','possible_assembly_error');
  32068. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_snorna','u3_snorna');
  32069. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_manganese_ion_contact_site','polypeptide_manganese_ion_contact_site');
  32070. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k16_acylation_site','h4k16_acylation_site');
  32071. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('g_to_t_transversion','g_to_t_transversion');
  32072. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_feature_of_rearranged_gene','recombination_feature_of_rearranged_gene');
  32073. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_coding_exon_coding_region','three_prime_coding_exon_coding_region');
  32074. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_primary_transcript','tmrna_primary_transcript');
  32075. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_cdna','single_stranded_cdna');
  32076. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimentally_determined','experimentally_determined');
  32077. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_exon','pseudogenic_exon');
  32078. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u2_intron','u2_intron');
  32079. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome','chromosome');
  32080. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_alternately_spliced_transcripts','encodes_alternately_spliced_transcripts');
  32081. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aberrant_processed_transcript','aberrant_processed_transcript');
  32082. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_change_of_translational_product_variant','complex_change_of_translational_product_variant');
  32083. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gna','gna');
  32084. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dsra_rna','dsra_rna');
  32085. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intron_domain','intron_domain');
  32086. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_predicted','cds_predicted');
  32087. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_asparagine','modified_l_asparagine');
  32088. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inframe_variant','inframe_variant');
  32089. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_nonamer','five_prime_d_nonamer');
  32090. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl2_acceptor_site','sl2_acceptor_site');
  32091. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_localization_variant','polypeptide_localization_variant');
  32092. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dce_si','dce_si');
  32093. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_primary_transcript','snrna_primary_transcript');
  32094. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation','translocation');
  32095. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_methylation_site','h3k27_methylation_site');
  32096. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_phenylalanine','modified_l_phenylalanine');
  32097. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lincrna','lincrna');
  32098. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_valine','modified_l_valine');
  32099. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('yac','yac');
  32100. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('signal_peptide','signal_peptide');
  32101. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_ltr_region','r_ltr_region');
  32102. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna_gene','srp_rna_gene');
  32103. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_polypeptide_n_terminal','elongated_polypeptide_n_terminal');
  32104. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_hotspot','recombination_hotspot');
  32105. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_c_cluster','v_dj_c_cluster');
  32106. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('viral_sequence','viral_sequence');
  32107. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_terminal_inverted_repeat','five_prime_terminal_inverted_repeat');
  32108. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyl_two_thiouridine','five_mcm_2_thiouridine');
  32109. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited','edited');
  32110. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('breu_motif','breu_motif');
  32111. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_start','coding_start');
  32112. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_monomethylation_site','h3k9_monomethylation_site');
  32113. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_utr','three_prime_utr');
  32114. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dpe1_motif','dpe1_motif');
  32115. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_tyrosine','modified_l_tyrosine');
  32116. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_j_c_cluster','v_d_j_c_cluster');
  32117. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_methylation','silenced_by_histone_methylation');
  32118. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_inversion','deficient_inversion');
  32119. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_transcript_level_variant','decreased_transcript_level_variant');
  32120. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thiouridine','two_thiouridine');
  32121. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylation_variant','polyadenylation_variant');
  32122. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_polymerase_iii_tata_box','rna_polymerase_iii_tata_box');
  32123. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thio_two_prime_o_methyluridine','two_thio_two_prime_o_methyluridine');
  32124. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k18_acetylation_site','h3k18_acetylation_site');
  32125. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucoplast_sequence','leucoplast_sequence');
  32126. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds','cds');
  32127. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_signal_sequence','polya_signal_sequence');
  32128. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micronuclear_sequence','micronuclear_sequence');
  32129. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamyl_trna','glutamyl_trna');
  32130. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k27_monomethylation_site','h3k27_monomethylation_site');
  32131. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_2_frameshift_variant','minus_2_frameshift_variant');
  32132. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_gene','strna_gene');
  32133. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternally_imprinted_gene','paternally_imprinted_gene');
  32134. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_chromosome','rna_chromosome');
  32135. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ndm3_motif','ndm3_motif');
  32136. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u1_snrna','u1_snrna');
  32137. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_hydroxymethylcytidine','five_hydroxymethylcytidine');
  32138. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_feature','recombination_feature');
  32139. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_disjoint_polypeptides','encodes_disjoint_polypeptides');
  32140. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated','post_translationally_regulated');
  32141. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_fusion_gene','engineered_fusion_gene');
  32142. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_recombination_signal_sequence','three_prime_d_recombination_signal_sequence');
  32143. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intermediate','intermediate');
  32144. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_calcium_ion_contact_site','polypeptide_calcium_ion_contact_site');
  32145. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('syntenic_region','syntenic_region');
  32146. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_collection','variant_collection');
  32147. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_splice_donor','cryptic_splice_donor');
  32148. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly_error_correction','assembly_error_correction');
  32149. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sugar_edge_base_pair','sugar_edge_base_pair');
  32150. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_gene','engineered_foreign_gene');
  32151. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k4_monomethylation_site','h3k4_monomethylation_site');
  32152. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_acetyl_2_prime_o_methylcytidine','n4_acetyl_2_prime_o_methylcytidine');
  32153. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted_by_ab_initio_computation','predicted_by_ab_initio_computation');
  32154. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_secondary_structure','polypeptide_secondary_structure');
  32155. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ncrna_gene','ncrna_gene');
  32156. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_junction_loop','rna_junction_loop');
  32157. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('haplotype_block','haplotype_block');
  32158. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oriv','oriv');
  32159. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_collection','peptide_collection');
  32160. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ambisense_ssrna_viral_sequence','ambisense_ssrna_viral_sequence');
  32161. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('morpholino_oligo','morpholino_oligo');
  32162. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere','centromere');
  32163. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified_gene','epigenetically_modified_gene');
  32164. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_inversion','chromosomal_inversion');
  32165. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_35_signal','minus_35_signal');
  32166. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_two_prime_o_dimethyluridine','three_two_prime_o_dimethyluridine');
  32167. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_thiouridine','four_thiouridine');
  32168. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcription_end_site','transcription_end_site');
  32169. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pirna_gene','pirna_gene');
  32170. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_mirna','pre_mirna');
  32171. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cysteinyl_trna','cysteinyl_trna');
  32172. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_left_handed_three','catmat_left_handed_three');
  32173. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_splice_acceptor','cryptic_splice_acceptor');
  32174. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop_seven','schellmann_loop_seven');
  32175. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_j_c_cluster','v_vdj_j_c_cluster');
  32176. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transposable_element_insertion_site','transposable_element_insertion_site');
  32177. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translocation_element','translocation_element');
  32178. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_primary_transcript_region','mirna_primary_transcript_region');
  32179. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orphan_cds','orphan_cds');
  32180. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_mrna','monocistronic_mrna');
  32181. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('natural_transposable_element','natural_transposable_element');
  32182. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('golden_path_fragment','golden_path_fragment');
  32183. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lipoprotein_signal_peptide','lipoprotein_signal_peptide');
  32184. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginine','arginine');
  32185. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_double_stranded_rna_chromosome','linear_double_stranded_rna_chromosome');
  32186. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k8_acylation site','h4k8_acylation_site');
  32187. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_large_subunit_primary_transcript','rrna_large_subunit_primary_transcript');
  32188. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('irrinv_site','irrinv_site');
  32189. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plastid_sequence','plastid_sequence');
  32190. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base_call_error_correction','base_call_error_correction');
  32191. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integrated_plasmid','integrated_plasmid');
  32192. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_methionine','modified_l_methionine');
  32193. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_single_stranded_rna_chromosome','linear_single_stranded_rna_chromosome');
  32194. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_sequence','chromoplast_sequence');
  32195. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proximal_promoter_element','proximal_promoter_element');
  32196. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig_read','contig_read');
  32197. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_trap_construct','promoter_trap_construct');
  32198. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_redefined_as_selenocysteine','stop_codon_redefined_as_selenocysteine');
  32199. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_methylguanosine','seven_methylguanosine');
  32200. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn','gamma_turn');
  32201. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna','tmrna');
  32202. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methionyl_trna','methionyl_trna');
  32203. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synonymous_codon','synonymous_codon');
  32204. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cdna','cdna');
  32205. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl4_acceptor_site','sl4_acceptor_site');
  32206. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclease_binding_site','nuclease_binding_site');
  32207. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uridine_five_oxyacetic_acid_methyl_ester','uridine_five_oxyacetic_acid_methyl_ester');
  32208. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_race_clone','three_prime_race_clone');
  32209. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_double_stranded_dna_chromosome','circular_double_stranded_dna_chromosome');
  32210. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('consensus','consensus');
  32211. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('positively_autoregulated_gene','positively_autoregulated_gene');
  32212. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tss_region','tss_region');
  32213. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_histidine','modified_l_histidine');
  32214. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unitary_pseudogene','unitary_pseudogene');
  32215. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_metal_contact','polypeptide_metal_contact');
  32216. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integron','integron');
  32217. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_loop','d_loop');
  32218. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decayed_exon','decayed_exon');
  32219. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_signal_sequence','recombination_signal_sequence');
  32220. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_inosine','modified_inosine');
  32221. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_three_prime_overlap','three_prime_three_prime_overlap');
  32222. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_j_cluster','v_j_cluster');
  32223. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_five_prime_overlap','three_prime_five_prime_overlap');
  32224. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombination_regulatory_region','recombination_regulatory_region');
  32225. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge_loop','beta_bulge_loop');
  32226. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_cleavage_junction','restriction_enzyme_cleavage_junction');
  32227. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('blunt_end_restriction_enzyme_cleavage_junction','blunt_end_restriction_enzyme_cleavage_junction');
  32228. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intergenic_region','intergenic_region');
  32229. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv2_motif','dmv2_motif');
  32230. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_mutation','intrachromosomal_mutation');
  32231. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antisense_rna','antisense_rna');
  32232. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_feature','sequence_feature');
  32233. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_glycinylcarbamoyladenosine','n6_glycinylcarbamoyladenosine');
  32234. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn_classic','gamma_turn_classic');
  32235. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_cis_splice_site','three_prime_cis_splice_site');
  32236. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rapd','rapd');
  32237. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_ring_chromosome','inverted_ring_chromosome');
  32238. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cca_tail','cca_tail');
  32239. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_double_stranded_dna_chromosome','linear_double_stranded_dna_chromosome');
  32240. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_five_prime_ltr_region','u5_five_prime_ltr_region');
  32241. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bruno_response_element','bruno_response_element');
  32242. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_to_g_transversion','t_to_g_transversion');
  32243. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_a_transversion','c_to_a_transversion');
  32244. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('macronucleus_destined_segment','macronucleus_destined_segment');
  32245. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('distant_three_prime_recoding_signal','distant_three_prime_recoding_signal');
  32246. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pre_edited_mrna','pre_edited_mrna');
  32247. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('p_element','p_element');
  32248. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pac','pac');
  32249. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_fusion','gene_fusion');
  32250. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('base','base');
  32251. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon_redefined','codon_redefined');
  32252. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_mrna','polycistronic_mrna');
  32253. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('codon_variant','codon_variant');
  32254. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyl_two_prime_o_methyluridine','five_methoxycarbonylmethyl_two_prime_o_methyluridine');
  32255. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('match','match');
  32256. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_stop_codon_read_through','gene_with_stop_codon_read_through');
  32257. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparaginyl_trna','asparaginyl_trna');
  32258. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('threonyl_trna','threonyl_trna');
  32259. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_five_prime_ltr_region','u3_five_prime_ltr_region');
  32260. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_ltr','five_prime_ltr');
  32261. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_gene','vj_gene');
  32262. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rho_dependent_bacterial_terminator','rho_dependent_bacterial_terminator');
  32263. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_methylguanosine','n2_methylguanosine');
  32264. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_flanking_region','three_prime_flanking_region');
  32265. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomically_contaminated_cdna_clone','genomically_contaminated_cdna_clone');
  32266. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_guide_sequence','internal_guide_sequence');
  32267. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_target_site','mirna_target_site');
  32268. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_three_prime_ltr_region','u5_three_prime_ltr_region');
  32269. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('undermodified_hydroxywybutosine','undermodified_hydroxywybutosine');
  32270. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('introgressed_chromosome_region','introgressed_chromosome_region');
  32271. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translationally_frameshifted','translationally_frameshifted');
  32272. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_spliced','trans_spliced');
  32273. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylation_guide_snorna_primary_transcript','methylation_guide_snorna_primary_transcript');
  32274. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucine','leucine');
  32275. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_deletion','chromosomal_deletion');
  32276. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_uridine','five_isopentenylaminomethyl_uridine');
  32277. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon','stop_codon');
  32278. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_threonyl_carbamoyladenosine','two_methylthio_n6_threonyl_carbamoyladenosine');
  32279. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_polyadenylation_variant','decreased_polyadenylation_variant');
  32280. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('biochemical_region_of_peptide','biochemical_region_of_peptide');
  32281. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interband','interband');
  32282. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_constraint_sequence','dna_constraint_sequence');
  32283. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_insert','clone_insert');
  32284. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snp','snp');
  32285. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromoplast_chromosome','chromoplast_chromosome');
  32286. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_25s','rrna_25s');
  32287. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tata_box','tata_box');
  32288. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plastid_gene','plastid_gene');
  32289. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asx_turn_left_handed_type_one','asx_turn_left_handed_type_one');
  32290. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_uridine','modified_uridine');
  32291. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dce_sii','dce_sii');
  32292. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intramembrane_polypeptide_region','intramembrane_polypeptide_region');
  32293. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysyl_trna','lysyl_trna');
  32294. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rr_tract','rr_tract');
  32295. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_primary_transcript_region','rrna_primary_transcript_region');
  32296. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k20_monomethylation_site','h4k20_monomethylation_site');
  32297. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ds_dna_viral_sequence','ds_dna_viral_sequence');
  32298. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternatively_spliced_transcript','alternatively_spliced_transcript');
  32299. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_copper_ion_contact_site','polypeptide_copper_ion_contact_site');
  32300. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna_encoding','scrna_encoding');
  32301. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_duplication','chromosomal_duplication');
  32302. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone','clone');
  32303. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_isoleucine','modified_l_isoleucine');
  32304. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_subarray','gene_subarray');
  32305. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hetero_compound_chromosome','hetero_compound_chromosome');
  32306. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_transcript','dicistronic_transcript');
  32307. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inactive_ligand_binding_site','inactive_ligand_binding_site');
  32308. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_dna_methylation','silenced_by_dna_methylation');
  32309. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl6_acceptor_site','sl6_acceptor_site');
  32310. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('t_loop','t_loop');
  32311. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('targeting_vector','targeting_vector');
  32312. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_thiocytidine','two_thiocytidine');
  32313. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_serine','modified_l_serine');
  32314. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('srp_rna','srp_rna');
  32315. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_repeat_recoding_signal','three_prime_repeat_recoding_signal');
  32316. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rate_of_transcription_variant','rate_of_transcription_variant');
  32317. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylguanosine','two_prime_o_methylguanosine');
  32318. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_binding_motif','polypeptide_binding_motif');
  32319. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recombinationally_rearranged_vertebrate_immune_system_gene','recombinationally_rearranged_vertebrate_immune_system_gene');
  32320. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_box','a_box');
  32321. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splicing_variant','splicing_variant');
  32322. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_methylguanosine','one_methylguanosine');
  32323. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_glutamine','modified_l_glutamine');
  32324. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_variant','sequence_variant');
  32325. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_length_variation','sequence_length_variation');
  32326. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna_encoding','strna_encoding');
  32327. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('plus_1_frameshift','plus_1_frameshift');
  32328. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('topologically_defined_region','topologically_defined_region');
  32329. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_cds','edited_cds');
  32330. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_modification','gene_silenced_by_histone_modification');
  32331. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('e_box_motif','e_box_motif');
  32332. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternal_uniparental_disomy','paternal_uniparental_disomy');
  32333. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('small_subunit_rrna','small_subunit_rrna');
  32334. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dnasei_hypersensitive_site','dnasei_hypersensitive_site');
  32335. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_j_c_cluster','v_d_dj_j_c_cluster');
  32336. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('compound_chromosome_arm','compound_chromosome_arm');
  32337. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('score','score');
  32338. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('feature_attribute','feature_attribute');
  32339. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_match','protein_match');
  32340. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('downstream_gene_variant','downstream_gene_variant');
  32341. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl10_accceptor_site','sl10_accceptor_site');
  32342. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_variation','chromosome_variation');
  32343. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_motif','serine_threonine_motif');
  32344. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_box_type_1','a_box_type_1');
  32345. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allelically_excluded','allelically_excluded');
  32346. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_aneuploid','assortment_derived_aneuploid');
  32347. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rare_variant','rare_variant');
  32348. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_isopentenylaminomethyl_two_prime_o_methyluridine','five_isopentenylaminomethyl_two_prime_o_methyluridine');
  32349. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regional_centromere_central_core','regional_centromere_central_core');
  32350. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gna_oligo','gna_oligo');
  32351. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_transcript_variant','nc_transcript_variant');
  32352. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('copy_number_variation','copy_number_variation');
  32353. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced','silenced');
  32354. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methylcytidine','three_methylcytidine');
  32355. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dexstrosynaptic_chromosome','dexstrosynaptic_chromosome');
  32356. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_insertional_duplication','inverted_insertional_duplication');
  32357. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_mini_gene','rescue_mini_gene');
  32358. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catmat_left_handed_four','catmat_left_handed_four');
  32359. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alternate_sequence_site','alternate_sequence_site');
  32360. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_iron_ion_contact_site','polypeptide_iron_ion_contact_site');
  32361. 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');
  32362. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_molybdenum_ion_contact_site','polypeptide_molybdenum_ion_contact_site');
  32363. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('phenylalanine_trna_primary_transcript','phe_trna_primary_transcript');
  32364. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_translational_product_level','decreased_translational_product_level');
  32365. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna_primary_transcript','h_aca_box_snorna_primary_transcript');
  32366. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_gna','r_gna');
  32367. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_sequence_variant','coding_sequence_variant');
  32368. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_partial_loss_of_function','polypeptide_partial_loss_of_function');
  32369. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_restriction_enzyme_junction','five_prime_restriction_enzyme_junction');
  32370. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_transposition','intrachromosomal_transposition');
  32371. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_a','methylated_a');
  32372. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_16s','rrna_16s');
  32373. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('disease_causing_variant','disease_causing_variant');
  32374. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_methylcytidine','n4_methylcytidine');
  32375. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('riboswitch','riboswitch');
  32376. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('duplicated_pseudogene','duplicated_pseudogene');
  32377. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_duplication','assortment_derived_duplication');
  32378. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_regulatory_element','chromosomal_regulatory_element');
  32379. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_five_prime_overlap','five_prime_five_prime_overlap');
  32380. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_function_variant','polypeptide_function_variant');
  32381. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribozymic','ribozymic');
  32382. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_bipartite_deficiency','inversion_derived_bipartite_deficiency');
  32383. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_genomic_contamination','invalidated_by_genomic_contamination');
  32384. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_genome','variant_genome');
  32385. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vj_j_cluster','vj_j_cluster');
  32386. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_number_variation','chromosome_number_variation');
  32387. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_attribute','gene_attribute');
  32388. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uag_stop_codon_signal','uag_stop_codon_signal');
  32389. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_match','nucleotide_match');
  32390. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_mirna_variant','mature_mirna_variant');
  32391. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_left_handed_type_two','st_turn_left_handed_type_two');
  32392. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epigenetically_modified','epigenetically_modified');
  32393. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_deficiency_plus_duplication','inversion_derived_deficiency_plus_duplication');
  32394. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyl_two_selenouridine','five_methylaminomethyl_two_selenouridine');
  32395. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartic_acid_trna_primary_transcript','aspartic_acid_trna_primary_transcript');
  32396. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_mt_pseudogene','nuclear_mt_pseudogene');
  32397. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exonic_splice_enhancer','exonic_splice_enhancer');
  32398. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u4_snrna','u4_snrna');
  32399. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('csrb_rsmb_rna','csrb_rsmb_rna');
  32400. 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');
  32401. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('crispr','crispr');
  32402. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_gene','snorna_gene');
  32403. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_junction','trans_splice_junction');
  32404. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanking_three_prime_quadruplet_recoding_signal','flanking_three_prime_quadruplet_recoding_signal');
  32405. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vdj_j_cluster','v_vdj_j_cluster');
  32406. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cassette_pseudogene','cassette_pseudogene');
  32407. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('incomplete_terminal_codon_variant','incomplete_terminal_codon_variant');
  32408. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_modification','silenced_by_histone_modification');
  32409. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_gene','proviral_gene');
  32410. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxyhydroxymethyl_uridine','five_carboxyhydroxymethyl_uridine');
  32411. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mt_gene','mt_gene');
  32412. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_rna_chromosome','single_stranded_rna_chromosome');
  32413. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoding_stimulatory_region','recoding_stimulatory_region');
  32414. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_taurinomethyluridine','five_taurinomethyluridine');
  32415. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_threonine','modified_l_threonine');
  32416. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_cluster','v_d_dj_cluster');
  32417. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('synthetic_oligo','synthetic_oligo');
  32418. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('purine_to_pyrimidine_transversion','purine_to_pyrimidine_transversion');
  32419. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('editing_variant','editing_variant');
  32420. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('antiparallel_beta_strand','antiparallel_beta_strand');
  32421. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('central_hydrophobic_region_of_signal_peptide','central_hydrophobic_region_of_signal_peptide');
  32422. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integrated_mobile_genetic_element','integrated_mobile_genetic_element');
  32423. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('parallel_beta_strand','parallel_beta_strand');
  32424. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_dj_cluster','v_dj_cluster');
  32425. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dre_motif','dre_motif');
  32426. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_ltr_retrotransposon','non_ltr_retrotransposon');
  32427. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('r_gna_oligo','r_gna_oligo');
  32428. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autoregulated','autoregulated');
  32429. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_lysine','modified_l_lysine');
  32430. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac_end','bac_end');
  32431. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrrolysine','pyrrolysine');
  32432. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('high_quality_draft','high_quality_draft');
  32433. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysine','lysine');
  32434. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_polypeptide','elongated_polypeptide');
  32435. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unique_variant','unique_variant');
  32436. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_protein_contact','protein_protein_contact');
  32437. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_attribute','inversion_attribute');
  32438. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_binding_site','nucleotide_binding_site');
  32439. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_site','splice_site');
  32440. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_synonymous_codon','non_synonymous_codon');
  32441. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('5kb_downstream_variant','fivekb_downstream_variant');
  32442. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_translocation','chromosomal_translocation');
  32443. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('epitope','epitope');
  32444. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allele','allele');
  32445. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n4_n4_2_prime_o_trimethylcytidine','n4_n4_2_prime_o_trimethylcytidine');
  32446. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u5_ltr_region','u5_ltr_region');
  32447. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paired_end_fragment','paired_end_fragment');
  32448. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rescue_gene','rescue_gene');
  32449. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic_transposable_element','transgenic_transposable_element');
  32450. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_conserved_region','polypeptide_conserved_region');
  32451. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sts','sts');
  32452. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_c_transversion','a_to_c_transversion');
  32453. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('class_ii_rna','class_ii_rna');
  32454. 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');
  32455. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unedited_region','unedited_region');
  32456. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lambda_vector','lambda_vector');
  32457. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene','gene');
  32458. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('alanyl_trna','alanyl_trna');
  32459. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('amino_acid_substitution','amino_acid_substitution');
  32460. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('virtual_sequence','virtual_sequence');
  32461. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_iib_intron','group_iib_intron');
  32462. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('retrotransposed','retrotransposed');
  32463. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_minus_2_frameshift','mrna_with_minus_2_frameshift');
  32464. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymer_attribute','polymer_attribute');
  32465. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('autosynaptic_chromosome','autosynaptic_chromosome');
  32466. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peptide_helix','peptide_helix');
  32467. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('partially_processed_cdna_clone','partially_processed_cdna_clone');
  32468. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rst_match','rst_match');
  32469. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternally_imprinted','paternally_imprinted');
  32470. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('predicted_gene','predicted_gene');
  32471. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('x_element_combinatorial_repeat','x_element_combinatorial_repeat');
  32472. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('robertsonian_fusion','robertsonian_fusion');
  32473. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylpseudouridine','two_prime_o_methylpseudouridine');
  32474. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pericentric_inversion','pericentric_inversion');
  32475. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartyl_trna','aspartyl_trna');
  32476. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('strna','strna');
  32477. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_intron','three_prime_intron');
  32478. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear','linear');
  32479. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_nonamer','j_nonamer');
  32480. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_t_transversion','a_to_t_transversion');
  32481. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('idna','idna');
  32482. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_n2_7_trimethylguanosine','n2_n2_7_trimethylguanosine');
  32483. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('complex_chromosomal_mutation','complex_chromosomal_mutation');
  32484. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_deficiency_plus_aneuploid','inversion_derived_deficiency_plus_aneuploid');
  32485. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k4_methylation_site','h3k4_methylation_site');
  32486. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asymmetric_rna_internal_loop','asymmetric_rna_internal_loop');
  32487. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deletion','deletion');
  32488. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k79_monomethylation_site','h3k79_monomethylation_site');
  32489. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyclic_translocation','cyclic_translocation');
  32490. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ars','ars');
  32491. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutaminyl_trna','glutaminyl_trna');
  32492. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('allopolyploid','allopolyploid');
  32493. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('replicon','replicon');
  32494. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methylcytidine','two_prime_o_methylcytidine');
  32495. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regional_centromere','regional_centromere');
  32496. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_left_handed_type_one','st_turn_left_handed_type_one');
  32497. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paralogous_region','paralogous_region');
  32498. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mature_transcript_region','mature_transcript_region');
  32499. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_frameshift','mrna_with_frameshift');
  32500. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reference_genome','reference_genome');
  32501. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unoriented_interchromosomal_transposition','unoriented_interchromosomal_transposition');
  32502. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_dj_j_cluster','d_dj_j_cluster');
  32503. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maxicircle_gene','maxicircle_gene');
  32504. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('st_turn_right_handed_type_two','st_turn_right_handed_type_two');
  32505. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snrna_encoding','snrna_encoding');
  32506. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('annotation_directed_improved_draft','annotation_directed_improved_draft');
  32507. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_spacer','five_prime_d_spacer');
  32508. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('read','read');
  32509. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('arginine_trna_primary_transcript','arg_trna_primary_transcript');
  32510. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oligo_u_tail','oligo_u_tail');
  32511. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoding_pseudoknot','recoding_pseudoknot');
  32512. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methylaminomethyl_two_thiouridine','five_mam_2_thiouridine');
  32513. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic','monocistronic');
  32514. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('3d_polypeptide_structure_variant','threed_polypeptide_structure_variant');
  32515. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transmembrane_polypeptide_region','transmembrane_polypeptide_region');
  32516. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_processing_variant','transcript_processing_variant');
  32517. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vector_replicon','vector_replicon');
  32518. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternal_uniparental_disomy','maternal_uniparental_disomy');
  32519. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pyrosequenced_read','pyrosequenced_read');
  32520. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_site_variant','splice_site_variant');
  32521. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_magnesium_ion_contact_site','polypeptide_magnesium_ion_contact_site');
  32522. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic_transcript','polycistronic_transcript');
  32523. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polya_site','polya_site');
  32524. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosomal_variation_attribute','chromosomal_variation_attribute');
  32525. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_duplication','free_duplication');
  32526. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_structure_variation','chromosome_structure_variation');
  32527. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_rna_base_feature','modified_rna_base_feature');
  32528. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mutated_variant_site','mutated_variant_site');
  32529. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gaga_motif','gaga_motif');
  32530. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromeric_repeat','centromeric_repeat');
  32531. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_gene','rrna_gene');
  32532. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal_mutation','interchromosomal_mutation');
  32533. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('prophage','prophage');
  32534. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('syntenic','syntenic');
  32535. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_repetitive_element','engineered_foreign_repetitive_element');
  32536. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translated_nucleotide_match','translated_nucleotide_match');
  32537. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_variant','exon_variant');
  32538. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna','h_aca_box_snorna');
  32539. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vault_rna','vault_rna');
  32540. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orphan','orphan');
  32541. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('linear_single_stranded_dna_chromosome','linear_single_stranded_dna_chromosome');
  32542. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomeric_repeat','telomeric_repeat');
  32543. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_greater_than_1_polypeptide','encodes_greater_than_1_polypeptide');
  32544. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('atti_site','atti_site');
  32545. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_start_codon_cug','gene_with_start_codon_cug');
  32546. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_histone_deacetylation','silenced_by_histone_deacetylation');
  32547. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reagent','reagent');
  32548. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_fission','chromosome_fission');
  32549. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ct_gene','ct_gene');
  32550. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped_primary_transcript','capped_primary_transcript');
  32551. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylinosine','methylinosine');
  32552. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_spacer','j_spacer');
  32553. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamine','glutamine');
  32554. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_guanosine','modified_guanosine');
  32555. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n2_7_dimethylguanosine','n2_7_dimethylguanosine');
  32556. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k79_trimethylation_site','h3k79_trimethylation_site');
  32557. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_heptamer','three_prime_d_heptamer');
  32558. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_cdna_clone','invalidated_cdna_clone');
  32559. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('terminator','terminator');
  32560. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stem_loop','stem_loop');
  32561. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_utr_intron','five_prime_utr_intron');
  32562. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unoriented_intrachromosomal_transposition','unoriented_intrachromosomal_transposition');
  32563. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_band','chromosome_band');
  32564. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mini_exon_donor_rna','mini_exon_donor_rna');
  32565. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aneuploid','aneuploid');
  32566. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methyl_2_thiouridine','five_methyl_2_thiouridine');
  32567. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_dna_methylation','gene_silenced_by_dna_methylation');
  32568. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_foreign_transposable_element_gene','engineered_foreign_transposable_element_gene');
  32569. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('processed_pseudogene','processed_pseudogene');
  32570. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('supercontig','supercontig');
  32571. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_encoding','trna_encoding');
  32572. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reciprocal_chromosomal_translocation','reciprocal_chromosomal_translocation');
  32573. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tasirna','tasirna');
  32574. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hoogsteen_base_pair','hoogsteen_base_pair');
  32575. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regional_centromere_inner_repeat_region','regional_centromere_inner_repeat_region');
  32576. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('yac_end','yac_end');
  32577. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('purine_transition','purine_transition');
  32578. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_d_box_snorna','c_d_box_snorna');
  32579. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('snorna_primary_transcript','snorna_primary_transcript');
  32580. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_vj_cluster','v_vj_cluster');
  32581. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intronic_regulatory_region','intronic_regulatory_region');
  32582. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u3_ltr_region','u3_ltr_region');
  32583. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attenuator','attenuator');
  32584. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_noncoding_exon','three_prime_noncoding_exon');
  32585. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u14_snorna_primary_transcript','u14_snorna_primary_transcript');
  32586. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_gene_recombination_feature','d_gene_recombination_feature');
  32587. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mte','mte');
  32588. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gcvb_rna','gcvb_rna');
  32589. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rst','rst');
  32590. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operator','operator');
  32591. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ring_chromosome','ring_chromosome');
  32592. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ndm2_motif','ndm2_motif');
  32593. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k4_dimethylation_site','h3k4_dimethylation_site');
  32594. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteine_trna_primary_transcript','selenocysteine_trna_primary_transcript');
  32595. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('edited_transcript_feature','edited_transcript_feature');
  32596. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_redefined_as_pyrrolysine','stop_codon_redefined_as_pyrrolysine');
  32597. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('homo_compound_chromosome','homo_compound_chromosome');
  32598. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign_gene','foreign_gene');
  32599. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('four_demethylwyosine','four_demethylwyosine');
  32600. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('guide_rna','guide_rna');
  32601. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_methylpseudouridine','three_methylpseudouridine');
  32602. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_aneuploid_chromosome','inversion_derived_aneuploid_chromosome');
  32603. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('decreased_transcript_stability_variant','decreased_transcript_stability_variant');
  32604. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lincrna_gene','lincrna_gene');
  32605. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('specific_recombination_site','specific_recombination_site');
  32606. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inosine','inosine');
  32607. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('foreign_transposable_element','foreign_transposable_element');
  32608. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_gene','d_gene');
  32609. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bipartite_inversion','bipartite_inversion');
  32610. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_plasmid','engineered_plasmid');
  32611. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_group_regulatory_region','gene_group_regulatory_region');
  32612. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('vd_gene','vd_gene');
  32613. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulatory_region','regulatory_region');
  32614. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sl11_acceptor_site','sl11_acceptor_site');
  32615. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('guide_rna_region','guide_rna_region');
  32616. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_base','modified_base');
  32617. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('elongated_polypeptide_c_terminal','elongated_polypeptide_c_terminal');
  32618. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_ten_helix','three_ten_helix');
  32619. 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');
  32620. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sarcin_like_rna_motif','sarcin_like_rna_motif');
  32621. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_translationally_frameshifted','minus_1_translationally_frameshifted');
  32622. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_alanine','modified_l_alanine');
  32623. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_cum_translocation','inversion_cum_translocation');
  32624. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tag','tag');
  32625. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uninverted_interchromosomal_transposition','uninvert_inter_transposition');
  32626. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_gene','cryptic_gene');
  32627. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pericentric','pericentric');
  32628. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgenic','transgenic');
  32629. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_clone','genomic_clone');
  32630. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chromosome_breakage_sequence','chromosome_breakage_sequence');
  32631. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_j_cluster','d_j_cluster');
  32632. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a_one','beta_turn_type_six_a_one');
  32633. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribosome_entry_site','ribosome_entry_site');
  32634. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('left_handed_peptide_helix','left_handed_peptide_helix');
  32635. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dna_aptamer','dna_aptamer');
  32636. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('i_motif','i_motif');
  32637. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('deficient_intrachromosomal_transposition','d_intrachr_transposition');
  32638. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_stranded_dna_chromosome','single_stranded_dna_chromosome');
  32639. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('methylated_c','methylated_c');
  32640. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('clone_end','clone_end');
  32641. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ligation_based_read','ligation_based_read');
  32642. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('expressed_sequence_assembly','expressed_sequence_assembly');
  32643. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_two_prime_o_dimethyluridine','five_two_prime_o_dimethyluridine');
  32644. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidine_trna_primary_transcript','histidine_trna_primary_transcript');
  32645. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orthologous_region','orthologous_region');
  32646. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valine_trna_primary_transcript','valine_trna_primary_transcript');
  32647. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operon_member','operon_member');
  32648. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('missense_codon','missense_codon');
  32649. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_rnapol_promoter_sigma54','bacterial_rnapol_promoter_sigma54');
  32650. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_group','gene_group');
  32651. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('small_regulatory_ncrna','small_regulatory_ncrna');
  32652. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intrachromosomal_duplication','intrachromosomal_duplication');
  32653. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_conservative_amino_acid_substitution','non_conservative_amino_acid_substitution');
  32654. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uaa_stop_codon_signal','uaa_stop_codon_signal');
  32655. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k36_methylation_site','h3k36_methylation_site');
  32656. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_variant','transcript_variant');
  32657. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_2_frameshift','minus_2_frameshift');
  32658. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('organelle_sequence','organelle_sequence');
  32659. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('initiator_codon_change','initiator_codon_change');
  32660. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cryptic_prophage','cryptic_prophage');
  32661. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micf_rna','micf_rna');
  32662. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct_tandem_duplication','direct_tandem_duplication');
  32663. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conserved','conserved');
  32664. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('telomerase_rna','telomerase_rna');
  32665. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u6atac_snrna','u6atac_snrna');
  32666. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('attb_site','attb_site');
  32667. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_array_member','gene_array_member');
  32668. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylated_mrna','polyadenylated_mrna');
  32669. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('symbiosis_island','symbiosis_island');
  32670. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymorphic_variant','polymorphic_variant');
  32671. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_junction','splice_junction');
  32672. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('fingerprint_map','fingerprint_map');
  32673. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('single_strand_restriction_enzyme_cleavage_site','single_strand_restriction_enzyme_cleavage_site');
  32674. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('wyosine','wyosine');
  32675. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uga_stop_codon_signal','uga_stop_codon_signal');
  32676. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_24_signal','minus_24_signal');
  32677. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cytoplasmic_polypeptide_region','cytoplasmic_polypeptide_region');
  32678. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h4k_acylation_region','h4k_acylation_region');
  32679. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethylguanosine','one_two_prime_o_dimethylguanosine');
  32680. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rh_map','rh_map');
  32681. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silenced_by_dna_modification','silenced_by_dna_modification');
  32682. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inactive_catalytic_site','inactive_catalytic_site');
  32683. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anticodon','anticodon');
  32684. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seven_deazaguanosine','seven_deazaguanosine');
  32685. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparagine','asparagine');
  32686. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('probe','probe');
  32687. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('defective_conjugative_transposon','defective_conjugative_transposon');
  32688. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('archaeosine','archaeosine');
  32689. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('molecular_contact_region','molecular_contact_region');
  32690. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nested_repeat','nested_repeat');
  32691. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('membrane_structure','membrane_structure');
  32692. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig_collection','contig_collection');
  32693. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tetraloop','tetraloop');
  32694. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('coding_conserved_region','coding_conserved_region');
  32695. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('long_terminal_repeat','long_terminal_repeat');
  32696. 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');
  32697. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('untranslated_region_polycistronic_mrna','untranslated_region_polycistronic_mrna');
  32698. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucine_trna_primary_transcript','leucine_trna_primary_transcript');
  32699. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('high_identity_region','high_identity_region');
  32700. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular_single_stranded_dna_chromosome','circular_single_stranded_dna_chromosome');
  32701. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_rim_localization_signal','nuclear_rim_localization_signal');
  32702. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isoleucyl_trna','isoleucyl_trna');
  32703. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertion_breakpoint','insertion_breakpoint');
  32704. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('5_prime_utr_variant','five_prime_utr_variant');
  32705. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transgene','transgene');
  32706. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_region','mrna_region');
  32707. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_attribute','transcript_attribute');
  32708. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine_threonine_staple_motif','serine_threonine_staple_motif');
  32709. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_coding','protein_coding');
  32710. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_bound_by_factor','enhancer_bound_by_factor');
  32711. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('recoded_by_translational_bypass','recoded_by_translational_bypass');
  32712. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('operon','operon');
  32713. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('monocistronic_transcript','monocistronic_transcript');
  32714. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('reciprocal','reciprocal');
  32715. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polyadenylated','polyadenylated');
  32716. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('unigene_cluster','unigene_cluster');
  32717. 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');
  32718. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_cassette_member','gene_cassette_member');
  32719. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_read_through','stop_codon_read_through');
  32720. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_transcript_with_translational_frameshift','gene_with_transcript_with_translational_frameshift');
  32721. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('variant_quality','variant_quality');
  32722. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mnp','mnp');
  32723. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('glutamic_acid','glutamic_acid');
  32724. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('y_prime_element','y_prime_element');
  32725. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn','beta_turn');
  32726. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pathogenic_island','pathogenic_island');
  32727. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ust_match','ust_match');
  32728. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_bound_by_protein','transcript_bound_by_protein');
  32729. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_methyladenosine','n6_methyladenosine');
  32730. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cyanelle_chromosome','cyanelle_chromosome');
  32731. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('orit','orit');
  32732. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternally_imprinted','maternally_imprinted');
  32733. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('chloroplast_chromosome','chloroplast_chromosome');
  32734. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minicircle_gene','minicircle_gene');
  32735. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_catalytic_motif','polypeptide_catalytic_motif');
  32736. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnapol_iii_promoter_type_2','rnapol_iii_promoter_type_2');
  32737. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('no_output','no_output');
  32738. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_coding_exon','interior_coding_exon');
  32739. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_taurinomethyl_two_thiouridine','five_taurinomethyl_two_thiouridine');
  32740. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k9_trimethylation_site','h3k9_trimethylation_site');
  32741. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_secondary_structure_variant','transcript_secondary_structure_variant');
  32742. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide','polypeptide');
  32743. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_donor_5th_base_variant','splice_donor_5th_base_variant');
  32744. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymerase_synthesis_read','polymerase_synthesis_read');
  32745. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_binding_site','enhancer_binding_site');
  32746. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleotide_to_protein_binding_site','nucleotide_to_protein_binding_site');
  32747. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_left_handed_type_two','beta_turn_left_handed_type_two');
  32748. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_genomic_polya_primed_cdna','invalidated_by_genomic_polya_primed_cdna');
  32749. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_edited_transcript','gene_with_edited_transcript');
  32750. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dmv1_motif','dmv1_motif');
  32751. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_12_signal','minus_12_signal');
  32752. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_modified_region','post_translationally_modified_region');
  32753. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proline','proline');
  32754. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('flanking_region','flanking_region');
  32755. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_isopentenyladenosine','two_methylthio_n6_isopentenyladenosine');
  32756. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypyrimidine_tract','polypyrimidine_tract');
  32757. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxyuridine','five_methoxyuridine');
  32758. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_to_gene_feature','gene_to_gene_feature');
  32759. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac_cloned_genomic_insert','bac_cloned_genomic_insert');
  32760. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_heptamer','j_heptamer');
  32761. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_ust','three_prime_ust');
  32762. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_2_prime_o_dimethyladenosine','n6_2_prime_o_dimethyladenosine');
  32763. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_site','trans_splice_site');
  32764. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('de_novo_variant','de_novo_variant');
  32765. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_rescue_region','engineered_rescue_region');
  32766. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleomorph_gene','nucleomorph_gene');
  32767. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_attribute','mrna_attribute');
  32768. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_three_prime_overlap','five_prime_three_prime_overlap');
  32769. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('group_i_intron','group_i_intron');
  32770. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('d_cluster','d_cluster');
  32771. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('open_chromatin_region','open_chromatin_region');
  32772. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genomic_dna','genomic_dna');
  32773. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inside_intron','inside_intron');
  32774. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hammerhead_ribozyme','hammerhead_ribozyme');
  32775. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_d_heptamer','five_prime_d_heptamer');
  32776. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intronic_splice_enhancer','intronic_splice_enhancer');
  32777. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_adenosine','modified_adenosine');
  32778. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyluridine','five_carboxymethylaminomethyluridine');
  32779. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_region','repeat_region');
  32780. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('repeat_unit','repeat_unit');
  32781. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_dna_chromosome','double_stranded_dna_chromosome');
  32782. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('heritable_phenotypic_marker','heritable_phenotypic_marker');
  32783. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('template_region','template_region');
  32784. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primary_transcript_region','primary_transcript_region');
  32785. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_dna','mitochondrial_dna');
  32786. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_region','transcript_region');
  32787. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_acetylation_site','histone_acetylation_site');
  32788. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ribozyme','ribozyme');
  32789. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('matrix_attachment_site','matrix_attachment_site');
  32790. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('imprinted','imprinted');
  32791. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_sequence_variant','polypeptide_sequence_variant');
  32792. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('est','est');
  32793. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_motif','rna_motif');
  32794. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_variation_site','polypeptide_variation_site');
  32795. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('class_i_rna','class_i_rna');
  32796. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('oligo','oligo');
  32797. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('stop_codon_signal','stop_codon_signal');
  32798. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('hypoploid','hypoploid');
  32799. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exemplar_mrna','exemplar_mrna');
  32800. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('experimentally_defined_binding_region','experimentally_defined_binding_region');
  32801. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('c_to_g_transversion','c_to_g_transversion');
  32802. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('active_peptide','active_peptide');
  32803. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mannosyl_queuosine','mannosyl_queuosine');
  32804. 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');
  32805. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('queuosine','queuosine');
  32806. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lna_oligo','lna_oligo');
  32807. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('independently_known','independently_known');
  32808. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_region','proviral_region');
  32809. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('capped','capped');
  32810. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minus_1_frameshift_variant','minus_1_frameshift_variant');
  32811. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direction_attribute','direction_attribute');
  32812. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('micronuclear_chromosome','micronuclear_chromosome');
  32813. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogene_by_unequal_crossing_over','pseudogene_by_unequal_crossing_over');
  32814. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('one_two_prime_o_dimethyladenosine','one_two_prime_o_dimethyladenosine');
  32815. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dpe_motif','dpe_motif');
  32816. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frame_restoring_variant','frame_restoring_variant');
  32817. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('seryl_trna','seryl_trna');
  32818. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('structural_variant','structural_variant');
  32819. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('regulatory_promoter_element','regulatory_promoter_element');
  32820. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('integration_excision_site','integration_excision_site');
  32821. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('noncoding_region_of_exon','noncoding_region_of_exon');
  32822. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnase_mrp_rna','rnase_mrp_rna');
  32823. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_export_signal','nuclear_export_signal');
  32824. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_methoxycarbonylmethyluridine','five_methoxycarbonylmethyluridine');
  32825. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon_of_single_exon_gene','exon_of_single_exon_gene');
  32826. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_with_dicistronic_primary_transcript','gene_with_dicistronic_primary_transcript');
  32827. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sequence_secondary_structure','sequence_secondary_structure');
  32828. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_rnapol_promoter_sigma_70','bacterial_rnapol_promoter_sigma_70');
  32829. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tiling_path','tiling_path');
  32830. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_sequence','nuclear_sequence');
  32831. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('contig','contig');
  32832. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('quality_value','quality_value');
  32833. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('kozak_sequence','kozak_sequence');
  32834. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('population_specific_variant','population_specific_variant');
  32835. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('catalytic_residue','catalytic_residue');
  32836. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_site','inversion_site');
  32837. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspartic_acid','aspartic_acid');
  32838. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dif_site','dif_site');
  32839. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_gene','mirna_gene');
  32840. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('valyl_trna','valyl_trna');
  32841. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_tandem_duplication','inverted_tandem_duplication');
  32842. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cis_regulatory_frameshift_element','cis_regulatory_frameshift_element');
  32843. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('minisatellite','minisatellite');
  32844. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assembly_component','assembly_component');
  32845. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('low_complexity_region','low_complexity_region');
  32846. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('morpholino_backbone','morpholino_backbone');
  32847. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('designed_sequence','designed_sequence');
  32848. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('n6_n6_2_prime_o_trimethyladenosine','n6_n6_2_prime_o_trimethyladenosine');
  32849. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna_polymerase_promoter','rna_polymerase_promoter');
  32850. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_gene_recombination_feature','v_gene_recombination_feature');
  32851. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_carboxymethylaminomethyl_two_thiouridine','five_carboxymethylaminomethyl_two_thiouridine');
  32852. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('free_ring_duplication','free_ring_duplication');
  32853. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('point_centromere','point_centromere');
  32854. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_mrna','dicistronic_mrna');
  32855. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interchromosomal','interchromosomal');
  32856. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('uncharacterised_chromosomal_mutation','uncharacterised_chromosomal_mutation');
  32857. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_cis_splice_site','five_prime_cis_splice_site');
  32858. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('octamer_motif','octamer_motif');
  32859. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('encodes_overlapping_peptides_different_start','encodes_overlapping_peptides_different_start');
  32860. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ss_rna_viral_sequence','ss_rna_viral_sequence');
  32861. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('indel','indel');
  32862. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dicistronic_primary_transcript','dicistronic_primary_transcript');
  32863. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('protein_binding_site','protein_binding_site');
  32864. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polycistronic','polycistronic');
  32865. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('asparagine_trna_primary_transcript','asparagine_trna_primary_transcript');
  32866. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_enhancer','splice_enhancer');
  32867. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aneuploid_chromosome','aneuploid_chromosome');
  32868. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('peroxywybutosine','peroxywybutosine');
  32869. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_aspartic_acid','modified_l_aspartic_acid');
  32870. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('engineered_episome','engineered_episome');
  32871. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rnai_reagent','rnai_reagent');
  32872. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rasirna','rasirna');
  32873. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('tmrna_region','tmrna_region');
  32874. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('increased_transcript_level_variant','increased_transcript_level_variant');
  32875. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_rnapol_promoter','bacterial_rnapol_promoter');
  32876. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mitochondrial_sequence','mitochondrial_sequence');
  32877. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trinucleotide_repeat_microsatellite_feature','trinuc_repeat_microsat');
  32878. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_by_protein_stability','post_translationally_regulated_by_protein_stability');
  32879. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nc_primary_transcript','nc_primary_transcript');
  32880. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('iron_responsive_element','iron_responsive_element');
  32881. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('v_d_dj_j_cluster','v_d_dj_j_cluster');
  32882. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('forward','forward');
  32883. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('proviral_location','proviral_location');
  32884. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_binding_site','histone_binding_site');
  32885. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('promoter_element','promoter_element');
  32886. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pse_motif','pse_motif');
  32887. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_eight','beta_turn_type_eight');
  32888. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double','double');
  32889. 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');
  32890. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('double_stranded_rna_chromosome','double_stranded_rna_chromosome');
  32891. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('modified_l_glutamic_acid','modified_l_glutamic_acid');
  32892. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polypeptide_nest_motif','polypeptide_nest_motif');
  32893. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('translational_frameshift','translational_frameshift');
  32894. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_terminal_inverted_repeat','three_prime_terminal_inverted_repeat');
  32895. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogenic_trna','pseudogenic_trna');
  32896. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cap','cap');
  32897. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_coding_exon','five_prime_coding_exon');
  32898. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enzymatic','enzymatic');
  32899. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('interior_exon','interior_exon');
  32900. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('genetic_marker','genetic_marker');
  32901. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('a_to_g_transition','a_to_g_transition');
  32902. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine','two_methylthio_n6_hydroxynorvalyl_carbamoyladenosine');
  32903. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('isre','isre');
  32904. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('maternally_imprinted_gene','maternally_imprinted_gene');
  32905. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('circular','circular');
  32906. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_pseudoknot','h_pseudoknot');
  32907. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intermediate_element','intermediate_element');
  32908. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript','transcript');
  32909. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('pseudogene','pseudogene');
  32910. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('direct_repeat','direct_repeat');
  32911. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bacterial_terminator','bacterial_terminator');
  32912. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('diplotype','diplotype');
  32913. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('metal_binding_site','metal_binding_site');
  32914. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_gene','dj_gene');
  32915. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('two_prime_o_methyladenosine','two_prime_o_methyladenosine');
  32916. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_region_variant','splice_region_variant');
  32917. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('aspe_primer','aspe_primer');
  32918. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_binding_site','restriction_enzyme_binding_site');
  32919. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('bac','bac');
  32920. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('dj_j_cluster','dj_j_cluster');
  32921. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k36_dimethylation_site','h3k36_dimethylation_site');
  32922. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trans_splice_donor_site','trans_splice_donor_site');
  32923. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_variant','gene_variant');
  32924. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('conformational_change_variant','conformational_change_variant');
  32925. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h3k36_monomethylation_site','h3k36_monomethylation_site');
  32926. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nucleic_acid','nucleic_acid');
  32927. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('invalidated_by_chimeric_cdna','invalidated_by_chimeric_cdna');
  32928. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histidine','histidine');
  32929. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_component_region','gene_component_region');
  32930. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('primer_match','primer_match');
  32931. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('trna_primary_transcript','trna_primary_transcript');
  32932. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('loxp_site','loxp_site');
  32933. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('serine','serine');
  32934. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('propeptide','propeptide');
  32935. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('five_prime_open_reading_frame','five_prime_open_reading_frame');
  32936. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('schellmann_loop_six','schellmann_loop_six');
  32937. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('shine_dalgarno_sequence','shine_dalgarno_sequence');
  32938. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sp6_rna_polymerase_promoter','sp6_rna_polymerase_promoter');
  32939. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('centromere_dna_element_iii','centromere_dna_element_iii');
  32940. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysine_trna_primary_transcript','lysine_trna_primary_transcript');
  32941. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('j_c_cluster','j_c_cluster');
  32942. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('assortment_derived_deficiency','assortment_derived_deficiency');
  32943. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mirna_primary_transcript','mirna_primary_transcript');
  32944. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_5s','rrna_5s');
  32945. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('leucyl_trna','leucyl_trna');
  32946. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inverted_intrachromosomal_transposition','invert_intra_transposition');
  32947. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enzymatic_rna','enzymatic_rna');
  32948. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('germline_variant','germline_variant');
  32949. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('negatively_autoregulated','negatively_autoregulated');
  32950. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('benign_variant','benign_variant');
  32951. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('anchor_region','anchor_region');
  32952. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('exon','exon');
  32953. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_turn_type_six_a','beta_turn_type_six_a');
  32954. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('random_sequence','random_sequence');
  32955. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('partially_characterised_chromosomal_mutation','partially_characterised_chromosomal_mutation');
  32956. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rna','rna');
  32957. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('core_promoter_element','core_promoter_element');
  32958. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('restriction_enzyme_single_strand_overhang','restriction_enzyme_single_strand_overhang');
  32959. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ss_oligo','ss_oligo');
  32960. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('histone_methylation_site','histone_methylation_site');
  32961. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('inversion_derived_duplication_plus_aneuploid','inversion_derived_duplication_plus_aneuploid');
  32962. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('transcript_bound_by_nucleic_acid','transcript_bound_by_nucleic_acid');
  32963. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('intein_containing','intein_containing');
  32964. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('h_aca_box_snorna_encoding','h_aca_box_snorna_encoding');
  32965. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('rrna_cleavage_rna','rrna_cleavage_rna');
  32966. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer_trap_construct','enhancer_trap_construct');
  32967. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gamma_turn_inverse','gamma_turn_inverse');
  32968. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_d_nonamer','three_prime_d_nonamer');
  32969. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('paternal_variant','paternal_variant');
  32970. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('level_of_transcript_variant','level_of_transcript_variant');
  32971. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('selenocysteinyl_trna','selenocysteinyl_trna');
  32972. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('gene_silenced_by_histone_methylation','gene_silenced_by_histone_methylation');
  32973. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('u11_snrna','u11_snrna');
  32974. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('scrna','scrna');
  32975. 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');
  32976. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('silencer','silencer');
  32977. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('sage_tag','sage_tag');
  32978. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('mrna_with_minus_1_frameshift','mrna_with_minus_1_frameshift');
  32979. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('nuclear_gene','nuclear_gene');
  32980. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('cds_supported_by_domain_match_data','cds_supported_by_domain_match_data');
  32981. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('internal_shine_dalgarno_sequence','internal_shine_dalgarno_sequence');
  32982. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('prolyl_trna','prolyl_trna');
  32983. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('lysidine','lysidine');
  32984. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('beta_bulge','beta_bulge');
  32985. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('post_translationally_regulated_by_protein_modification','post_translationally_regulated_by_protein_modification');
  32986. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('splice_donor_variant','splice_donor_variant');
  32987. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('ncrna','ncrna');
  32988. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('grna_gene','grna_gene');
  32989. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('enhancer','enhancer');
  32990. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('polymorphic_sequence_variant','polymorphic_sequence_variant');
  32991. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('three_prime_clip','three_prime_clip');
  32992. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('frameshift_variant','frameshift_variant');
  32993. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('insertional','insertional');
  32994. INSERT INTO sequence_cv_lookup_table (original_cvterm_name,relation_name) VALUES ('non_processed_pseudogene','non_processed_pseudogene');
  32995. CREATE INDEX sequence_cv_lookup_table_idx ON sequence_cv_lookup_table (original_cvterm_name);
  32996. SET search_path=public,pg_catalog;
  32997. -- DEPENDENCY:
  32998. -- chado/modules/bridges/sofa-bridge.sql
  32999. -- The standard Chado pattern for protein coding genes
  33000. -- is a feature of type 'gene' with 'mRNA' features as parts
  33001. -- REQUIRES: 'mrna' view from so-bridge.sql
  33002. CREATE OR REPLACE VIEW protein_coding_gene AS
  33003. SELECT
  33004. DISTINCT gene.*
  33005. FROM
  33006. feature AS gene
  33007. INNER JOIN feature_relationship AS fr ON (gene.feature_id=fr.object_id)
  33008. INNER JOIN so.mrna ON (mrna.feature_id=fr.subject_id);
  33009. -- introns are implicit from surrounding exons
  33010. -- combines intron features with location and parent transcript
  33011. -- the same intron appearing in multiple transcripts will appear
  33012. -- multiple times
  33013. CREATE VIEW intron_combined_view AS
  33014. SELECT
  33015. x1.feature_id AS exon1_id,
  33016. x2.feature_id AS exon2_id,
  33017. CASE WHEN l1.strand=-1 THEN l2.fmax ELSE l1.fmax END AS fmin,
  33018. CASE WHEN l1.strand=-1 THEN l1.fmin ELSE l2.fmin END AS fmax,
  33019. l1.strand AS strand,
  33020. l1.srcfeature_id AS srcfeature_id,
  33021. r1.rank AS intron_rank,
  33022. r1.object_id AS transcript_id
  33023. FROM
  33024. cvterm
  33025. INNER JOIN
  33026. feature AS x1 ON (x1.type_id=cvterm.cvterm_id)
  33027. INNER JOIN
  33028. feature_relationship AS r1 ON (x1.feature_id=r1.subject_id)
  33029. INNER JOIN
  33030. featureloc AS l1 ON (x1.feature_id=l1.feature_id)
  33031. INNER JOIN
  33032. feature AS x2 ON (x2.type_id=cvterm.cvterm_id)
  33033. INNER JOIN
  33034. feature_relationship AS r2 ON (x2.feature_id=r2.subject_id)
  33035. INNER JOIN
  33036. featureloc AS l2 ON (x2.feature_id=l2.feature_id)
  33037. WHERE
  33038. cvterm.name='exon' AND
  33039. (r2.rank - r1.rank) = 1 AND
  33040. r1.object_id=r2.object_id AND
  33041. l1.strand = l2.strand AND
  33042. l1.srcfeature_id = l2.srcfeature_id AND
  33043. l1.locgroup=0 AND
  33044. l2.locgroup=0;
  33045. -- intron locations. intron IDs are the (exon1,exon2) ID pair
  33046. -- this means that introns may be counted twice if the start of
  33047. -- the 5' exon or the end of the 3' exon vary
  33048. -- introns shared by transcripts will not appear twice
  33049. CREATE VIEW intronloc_view AS
  33050. SELECT DISTINCT
  33051. exon1_id,
  33052. exon2_id,
  33053. fmin,
  33054. fmax,
  33055. strand,
  33056. srcfeature_id
  33057. FROM intron_combined_view;
  33058. CREATE OR REPLACE FUNCTION store_feature
  33059. (INT,INT,INT,INT,
  33060. INT,INT,VARCHAR,VARCHAR,INT,BOOLEAN)
  33061. RETURNS INT AS
  33062. 'DECLARE
  33063. v_srcfeature_id ALIAS FOR $1;
  33064. v_fmin ALIAS FOR $2;
  33065. v_fmax ALIAS FOR $3;
  33066. v_strand ALIAS FOR $4;
  33067. v_dbxref_id ALIAS FOR $5;
  33068. v_organism_id ALIAS FOR $6;
  33069. v_name ALIAS FOR $7;
  33070. v_uniquename ALIAS FOR $8;
  33071. v_type_id ALIAS FOR $9;
  33072. v_is_analysis ALIAS FOR $10;
  33073. v_feature_id INT;
  33074. v_featureloc_id INT;
  33075. BEGIN
  33076. IF v_dbxref_id IS NULL THEN
  33077. SELECT INTO v_feature_id feature_id
  33078. FROM feature
  33079. WHERE uniquename=v_uniquename AND
  33080. organism_id=v_organism_id AND
  33081. type_id=v_type_id;
  33082. ELSE
  33083. SELECT INTO v_feature_id feature_id
  33084. FROM feature
  33085. WHERE dbxref_id=v_dbxref_id;
  33086. END IF;
  33087. IF NOT FOUND THEN
  33088. INSERT INTO feature
  33089. ( dbxref_id ,
  33090. organism_id ,
  33091. name ,
  33092. uniquename ,
  33093. type_id ,
  33094. is_analysis )
  33095. VALUES
  33096. ( v_dbxref_id ,
  33097. v_organism_id ,
  33098. v_name ,
  33099. v_uniquename ,
  33100. v_type_id ,
  33101. v_is_analysis );
  33102. v_feature_id = currval(''feature_feature_id_seq'');
  33103. ELSE
  33104. UPDATE feature SET
  33105. dbxref_id = v_dbxref_id ,
  33106. organism_id = v_organism_id ,
  33107. name = v_name ,
  33108. uniquename = v_uniquename ,
  33109. type_id = v_type_id ,
  33110. is_analysis = v_is_analysis
  33111. WHERE
  33112. feature_id=v_feature_id;
  33113. END IF;
  33114. PERFORM store_featureloc(v_feature_id,
  33115. v_srcfeature_id,
  33116. v_fmin,
  33117. v_fmax,
  33118. v_strand,
  33119. 0,
  33120. 0);
  33121. RETURN v_feature_id;
  33122. END;
  33123. ' LANGUAGE 'plpgsql';
  33124. CREATE OR REPLACE FUNCTION store_featureloc
  33125. (INT,INT,INT,INT,INT,INT,INT)
  33126. RETURNS INT AS
  33127. 'DECLARE
  33128. v_feature_id ALIAS FOR $1;
  33129. v_srcfeature_id ALIAS FOR $2;
  33130. v_fmin ALIAS FOR $3;
  33131. v_fmax ALIAS FOR $4;
  33132. v_strand ALIAS FOR $5;
  33133. v_rank ALIAS FOR $6;
  33134. v_locgroup ALIAS FOR $7;
  33135. v_featureloc_id INT;
  33136. BEGIN
  33137. IF v_feature_id IS NULL THEN RAISE EXCEPTION ''feature_id cannot be null'';
  33138. END IF;
  33139. SELECT INTO v_featureloc_id featureloc_id
  33140. FROM featureloc
  33141. WHERE feature_id=v_feature_id AND
  33142. rank=v_rank AND
  33143. locgroup=v_locgroup;
  33144. IF NOT FOUND THEN
  33145. INSERT INTO featureloc
  33146. ( feature_id,
  33147. srcfeature_id,
  33148. fmin,
  33149. fmax,
  33150. strand,
  33151. rank,
  33152. locgroup)
  33153. VALUES
  33154. ( v_feature_id,
  33155. v_srcfeature_id,
  33156. v_fmin,
  33157. v_fmax,
  33158. v_strand,
  33159. v_rank,
  33160. v_locgroup);
  33161. v_featureloc_id = currval(''featureloc_featureloc_id_seq'');
  33162. ELSE
  33163. UPDATE featureloc SET
  33164. feature_id = v_feature_id,
  33165. srcfeature_id = v_srcfeature_id,
  33166. fmin = v_fmin,
  33167. fmax = v_fmax,
  33168. strand = v_strand,
  33169. rank = v_rank,
  33170. locgroup = v_locgroup
  33171. WHERE
  33172. featureloc_id=v_featureloc_id;
  33173. END IF;
  33174. RETURN v_featureloc_id;
  33175. END;
  33176. ' LANGUAGE 'plpgsql';
  33177. CREATE OR REPLACE FUNCTION store_feature_synonym
  33178. (INT,VARCHAR,INT,BOOLEAN,BOOLEAN,INT)
  33179. RETURNS INT AS
  33180. 'DECLARE
  33181. v_feature_id ALIAS FOR $1;
  33182. v_syn ALIAS FOR $2;
  33183. v_type_id ALIAS FOR $3;
  33184. v_is_current ALIAS FOR $4;
  33185. v_is_internal ALIAS FOR $5;
  33186. v_pub_id ALIAS FOR $6;
  33187. v_synonym_id INT;
  33188. v_feature_synonym_id INT;
  33189. BEGIN
  33190. IF v_feature_id IS NULL THEN RAISE EXCEPTION ''feature_id cannot be null'';
  33191. END IF;
  33192. SELECT INTO v_synonym_id synonym_id
  33193. FROM synonym
  33194. WHERE name=v_syn AND
  33195. type_id=v_type_id;
  33196. IF NOT FOUND THEN
  33197. INSERT INTO synonym
  33198. ( name,
  33199. synonym_sgml,
  33200. type_id)
  33201. VALUES
  33202. ( v_syn,
  33203. v_syn,
  33204. v_type_id);
  33205. v_synonym_id = currval(''synonym_synonym_id_seq'');
  33206. END IF;
  33207. SELECT INTO v_feature_synonym_id feature_synonym_id
  33208. FROM feature_synonym
  33209. WHERE feature_id=v_feature_id AND
  33210. synonym_id=v_synonym_id AND
  33211. pub_id=v_pub_id;
  33212. IF NOT FOUND THEN
  33213. INSERT INTO feature_synonym
  33214. ( feature_id,
  33215. synonym_id,
  33216. pub_id,
  33217. is_current,
  33218. is_internal)
  33219. VALUES
  33220. ( v_feature_id,
  33221. v_synonym_id,
  33222. v_pub_id,
  33223. v_is_current,
  33224. v_is_internal);
  33225. v_feature_synonym_id = currval(''feature_synonym_feature_synonym_id_seq'');
  33226. ELSE
  33227. UPDATE feature_synonym
  33228. SET is_current=v_is_current, is_internal=v_is_internal
  33229. WHERE feature_synonym_id=v_feature_synonym_id;
  33230. END IF;
  33231. RETURN v_feature_synonym_id;
  33232. END;
  33233. ' LANGUAGE 'plpgsql';
  33234. -- dependency_on: [sequtil,sequence-cv-helper]
  33235. CREATE OR REPLACE FUNCTION subsequence(INT,INT,INT,INT)
  33236. RETURNS TEXT AS
  33237. 'SELECT
  33238. CASE WHEN $4<0
  33239. THEN reverse_complement(substring(srcf.residues,$2+1,($3-$2)))
  33240. ELSE substring(residues,$2+1,($3-$2))
  33241. END AS residues
  33242. FROM feature AS srcf
  33243. WHERE
  33244. srcf.feature_id=$1'
  33245. LANGUAGE 'sql';
  33246. CREATE OR REPLACE FUNCTION subsequence_by_featureloc(INT)
  33247. RETURNS TEXT AS
  33248. 'SELECT
  33249. CASE WHEN strand<0
  33250. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  33251. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  33252. END AS residues
  33253. FROM feature AS srcf
  33254. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  33255. WHERE
  33256. featureloc_id=$1'
  33257. LANGUAGE 'sql';
  33258. CREATE OR REPLACE FUNCTION subsequence_by_feature(INT,INT,INT)
  33259. RETURNS TEXT AS
  33260. 'SELECT
  33261. CASE WHEN strand<0
  33262. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  33263. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  33264. END AS residues
  33265. FROM feature AS srcf
  33266. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  33267. WHERE
  33268. featureloc.feature_id=$1 AND
  33269. featureloc.rank=$2 AND
  33270. featureloc.locgroup=$3'
  33271. LANGUAGE 'sql';
  33272. CREATE OR REPLACE FUNCTION subsequence_by_feature(INT)
  33273. RETURNS TEXT AS 'SELECT subsequence_by_feature($1,0,0)'
  33274. LANGUAGE 'sql';
  33275. -- based on subfeature sets:
  33276. -- constrained by feature_relationship.type_id
  33277. -- (allows user to construct queries that only get subsequences of
  33278. -- part_of subfeatures)
  33279. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(INT,INT,INT,INT)
  33280. RETURNS TEXT AS '
  33281. DECLARE v_feature_id ALIAS FOR $1;
  33282. DECLARE v_rtype_id ALIAS FOR $2;
  33283. DECLARE v_rank ALIAS FOR $3;
  33284. DECLARE v_locgroup ALIAS FOR $4;
  33285. DECLARE subseq TEXT;
  33286. DECLARE seqrow RECORD;
  33287. BEGIN
  33288. subseq = '''';
  33289. FOR seqrow IN
  33290. SELECT
  33291. CASE WHEN strand<0
  33292. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  33293. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  33294. END AS residues
  33295. FROM feature AS srcf
  33296. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  33297. INNER JOIN feature_relationship AS fr
  33298. ON (fr.subject_id=featureloc.feature_id)
  33299. WHERE
  33300. fr.object_id=v_feature_id AND
  33301. fr.type_id=v_rtype_id AND
  33302. featureloc.rank=v_rank AND
  33303. featureloc.locgroup=v_locgroup
  33304. ORDER BY fr.rank
  33305. LOOP
  33306. subseq = subseq || seqrow.residues;
  33307. END LOOP;
  33308. RETURN subseq;
  33309. END
  33310. '
  33311. LANGUAGE 'plpgsql';
  33312. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(INT,INT)
  33313. RETURNS TEXT AS
  33314. 'SELECT subsequence_by_subfeatures($1,$2,0,0)'
  33315. LANGUAGE 'sql';
  33316. CREATE OR REPLACE FUNCTION subsequence_by_subfeatures(INT)
  33317. RETURNS TEXT AS
  33318. '
  33319. SELECT subsequence_by_subfeatures($1,get_feature_relationship_type_id(''part_of''),0,0)
  33320. '
  33321. LANGUAGE 'sql';
  33322. -- constrained by subfeature.type_id (eg exons of a transcript)
  33323. CREATE OR REPLACE FUNCTION subsequence_by_typed_subfeatures(INT,INT,INT,INT)
  33324. RETURNS TEXT AS '
  33325. DECLARE v_feature_id ALIAS FOR $1;
  33326. DECLARE v_ftype_id ALIAS FOR $2;
  33327. DECLARE v_rank ALIAS FOR $3;
  33328. DECLARE v_locgroup ALIAS FOR $4;
  33329. DECLARE subseq TEXT;
  33330. DECLARE seqrow RECORD;
  33331. BEGIN
  33332. subseq = '''';
  33333. FOR seqrow IN
  33334. SELECT
  33335. CASE WHEN strand<0
  33336. THEN reverse_complement(substring(srcf.residues,fmin+1,(fmax-fmin)))
  33337. ELSE substring(srcf.residues,fmin+1,(fmax-fmin))
  33338. END AS residues
  33339. FROM feature AS srcf
  33340. INNER JOIN featureloc ON (srcf.feature_id=featureloc.srcfeature_id)
  33341. INNER JOIN feature AS subf ON (subf.feature_id=featureloc.feature_id)
  33342. INNER JOIN feature_relationship AS fr ON (fr.subject_id=subf.feature_id)
  33343. WHERE
  33344. fr.object_id=v_feature_id AND
  33345. subf.type_id=v_ftype_id AND
  33346. featureloc.rank=v_rank AND
  33347. featureloc.locgroup=v_locgroup
  33348. ORDER BY fr.rank
  33349. LOOP
  33350. subseq = subseq || seqrow.residues;
  33351. END LOOP;
  33352. RETURN subseq;
  33353. END
  33354. '
  33355. LANGUAGE 'plpgsql';
  33356. CREATE OR REPLACE FUNCTION subsequence_by_typed_subfeatures(INT,INT)
  33357. RETURNS TEXT AS
  33358. 'SELECT subsequence_by_typed_subfeatures($1,$2,0,0)'
  33359. LANGUAGE 'sql';
  33360. CREATE OR REPLACE FUNCTION feature_subalignments(integer) RETURNS SETOF featureloc AS '
  33361. DECLARE
  33362. return_data featureloc%ROWTYPE;
  33363. f_id ALIAS FOR $1;
  33364. feature_data feature%rowtype;
  33365. featureloc_data featureloc%rowtype;
  33366. s text;
  33367. fmin integer;
  33368. slen integer;
  33369. BEGIN
  33370. --RAISE NOTICE ''feature_id is %'', featureloc_data.feature_id;
  33371. SELECT INTO feature_data * FROM feature WHERE feature_id = f_id;
  33372. FOR featureloc_data IN SELECT * FROM featureloc WHERE feature_id = f_id LOOP
  33373. --RAISE NOTICE ''fmin is %'', featureloc_data.fmin;
  33374. return_data.feature_id = f_id;
  33375. return_data.srcfeature_id = featureloc_data.srcfeature_id;
  33376. return_data.is_fmin_partial = featureloc_data.is_fmin_partial;
  33377. return_data.is_fmax_partial = featureloc_data.is_fmax_partial;
  33378. return_data.strand = featureloc_data.strand;
  33379. return_data.phase = featureloc_data.phase;
  33380. return_data.residue_info = featureloc_data.residue_info;
  33381. return_data.locgroup = featureloc_data.locgroup;
  33382. return_data.rank = featureloc_data.rank;
  33383. s = feature_data.residues;
  33384. fmin = featureloc_data.fmin;
  33385. slen = char_length(s);
  33386. WHILE char_length(s) LOOP
  33387. --RAISE NOTICE ''residues is %'', s;
  33388. --trim off leading match
  33389. s = trim(leading ''|ATCGNatcgn'' from s);
  33390. --if leading match detected
  33391. IF slen > char_length(s) THEN
  33392. return_data.fmin = fmin;
  33393. return_data.fmax = featureloc_data.fmin + (slen - char_length(s));
  33394. --if the string started with a match, return it,
  33395. --otherwise, trim the gaps first (ie do not return this iteration)
  33396. RETURN NEXT return_data;
  33397. END IF;
  33398. --trim off leading gap
  33399. s = trim(leading ''-'' from s);
  33400. fmin = featureloc_data.fmin + (slen - char_length(s));
  33401. END LOOP;
  33402. END LOOP;
  33403. RETURN;
  33404. END;
  33405. ' LANGUAGE 'plpgsql';
  33406. CREATE SCHEMA frange;
  33407. SET search_path = frange,public,pg_catalog;
  33408. CREATE TABLE featuregroup (
  33409. featuregroup_id serial not null,
  33410. primary key (featuregroup_id),
  33411. subject_id int not null,
  33412. foreign key (subject_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  33413. object_id int not null,
  33414. foreign key (object_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  33415. group_id int not null,
  33416. foreign key (group_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  33417. srcfeature_id int null,
  33418. foreign key (srcfeature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  33419. fmin int null,
  33420. fmax int null,
  33421. strand int null,
  33422. is_root int not null default 0,
  33423. constraint featuregroup_c1 unique (subject_id,object_id,group_id,srcfeature_id,fmin,fmax,strand)
  33424. );
  33425. CREATE INDEX featuregroup_idx1 ON featuregroup (subject_id);
  33426. CREATE INDEX featuregroup_idx2 ON featuregroup (object_id);
  33427. CREATE INDEX featuregroup_idx3 ON featuregroup (group_id);
  33428. CREATE INDEX featuregroup_idx4 ON featuregroup (srcfeature_id);
  33429. CREATE INDEX featuregroup_idx5 ON featuregroup (strand);
  33430. CREATE INDEX featuregroup_idx6 ON featuregroup (is_root);
  33431. CREATE OR REPLACE FUNCTION groupoverlaps(int4, int4, varchar) RETURNS setof featuregroup AS '
  33432. SELECT g2.*
  33433. FROM featuregroup g1,
  33434. featuregroup g2
  33435. WHERE g1.is_root = 1
  33436. AND ( g1.srcfeature_id = g2.srcfeature_id OR g2.srcfeature_id IS NULL )
  33437. AND g1.group_id = g2.group_id
  33438. AND g1.srcfeature_id = (SELECT feature_id FROM feature WHERE uniquename = $3)
  33439. AND boxquery($1, $2) @ boxrange(g1.fmin,g2.fmax)
  33440. ' LANGUAGE 'sql';
  33441. CREATE OR REPLACE FUNCTION groupcontains(int4, int4, varchar) RETURNS setof featuregroup AS '
  33442. SELECT *
  33443. FROM groupoverlaps($1,$2,$3)
  33444. WHERE fmin <= $1 AND fmax >= $2
  33445. ' LANGUAGE 'sql';
  33446. CREATE OR REPLACE FUNCTION groupinside(int4, int4, varchar) RETURNS setof featuregroup AS '
  33447. SELECT *
  33448. FROM groupoverlaps($1,$2,$3)
  33449. WHERE fmin >= $1 AND fmax <= $2
  33450. ' LANGUAGE 'sql';
  33451. CREATE OR REPLACE FUNCTION groupidentical(int4, int4, varchar) RETURNS setof featuregroup AS '
  33452. SELECT *
  33453. FROM groupoverlaps($1,$2,$3)
  33454. WHERE fmin = $1 AND fmax = $2
  33455. ' LANGUAGE 'sql';
  33456. CREATE OR REPLACE FUNCTION groupoverlaps(int4, int4) RETURNS setof featuregroup AS '
  33457. SELECT *
  33458. FROM featuregroup
  33459. WHERE is_root = 1
  33460. AND boxquery($1, $2) @ boxrange(fmin,fmax)
  33461. ' LANGUAGE 'sql';
  33462. CREATE OR REPLACE FUNCTION groupoverlaps(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  33463. DECLARE
  33464. mins alias for $1;
  33465. maxs alias for $2;
  33466. srcs alias for $3;
  33467. f featuregroup%ROWTYPE;
  33468. i int;
  33469. s int;
  33470. BEGIN
  33471. i := 1;
  33472. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  33473. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  33474. FOR f IN
  33475. SELECT *
  33476. FROM featuregroup WHERE group_id IN (
  33477. SELECT group_id FROM featuregroup
  33478. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  33479. AND group_id IN (
  33480. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  33481. WHERE srcfeature_id = s
  33482. )
  33483. )
  33484. LOOP
  33485. RETURN NEXT f;
  33486. END LOOP;
  33487. END LOOP;
  33488. RETURN;
  33489. END;
  33490. ' LANGUAGE 'plpgsql';
  33491. CREATE OR REPLACE FUNCTION groupcontains(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  33492. DECLARE
  33493. mins alias for $1;
  33494. maxs alias for $2;
  33495. srcs alias for $3;
  33496. f featuregroup%ROWTYPE;
  33497. i int;
  33498. s int;
  33499. BEGIN
  33500. i := 1;
  33501. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  33502. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  33503. FOR f IN
  33504. SELECT *
  33505. FROM featuregroup WHERE group_id IN (
  33506. SELECT group_id FROM featuregroup
  33507. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  33508. AND fmin <= mins[i]
  33509. AND fmax >= maxs[i]
  33510. AND group_id IN (
  33511. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  33512. WHERE srcfeature_id = s
  33513. )
  33514. )
  33515. LOOP
  33516. RETURN NEXT f;
  33517. END LOOP;
  33518. END LOOP;
  33519. RETURN;
  33520. END;
  33521. ' LANGUAGE 'plpgsql';
  33522. CREATE OR REPLACE FUNCTION groupinside(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  33523. DECLARE
  33524. mins alias for $1;
  33525. maxs alias for $2;
  33526. srcs alias for $3;
  33527. f featuregroup%ROWTYPE;
  33528. i int;
  33529. s int;
  33530. BEGIN
  33531. i := 1;
  33532. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  33533. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  33534. FOR f IN
  33535. SELECT *
  33536. FROM featuregroup WHERE group_id IN (
  33537. SELECT group_id FROM featuregroup
  33538. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  33539. AND fmin >= mins[i]
  33540. AND fmax <= maxs[i]
  33541. AND group_id IN (
  33542. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  33543. WHERE srcfeature_id = s
  33544. )
  33545. )
  33546. LOOP
  33547. RETURN NEXT f;
  33548. END LOOP;
  33549. END LOOP;
  33550. RETURN;
  33551. END;
  33552. ' LANGUAGE 'plpgsql';
  33553. CREATE OR REPLACE FUNCTION groupidentical(_int4, _int4, _varchar) RETURNS setof featuregroup AS '
  33554. DECLARE
  33555. mins alias for $1;
  33556. maxs alias for $2;
  33557. srcs alias for $3;
  33558. f featuregroup%ROWTYPE;
  33559. i int;
  33560. s int;
  33561. BEGIN
  33562. i := 1;
  33563. FOR i in array_lower( mins, 1 ) .. array_upper( mins, 1 ) LOOP
  33564. SELECT INTO s feature_id FROM feature WHERE uniquename = srcs[i];
  33565. FOR f IN
  33566. SELECT *
  33567. FROM featuregroup WHERE group_id IN (
  33568. SELECT group_id FROM featuregroup
  33569. WHERE (srcfeature_id = s OR srcfeature_id IS NULL)
  33570. AND fmin = mins[i]
  33571. AND fmax = maxs[i]
  33572. AND group_id IN (
  33573. SELECT group_id FROM groupoverlaps( mins[i], maxs[i] )
  33574. WHERE srcfeature_id = s
  33575. )
  33576. )
  33577. LOOP
  33578. RETURN NEXT f;
  33579. END LOOP;
  33580. END LOOP;
  33581. RETURN;
  33582. END;
  33583. ' LANGUAGE 'plpgsql';
  33584. --functional index that depends on the above functions
  33585. CREATE INDEX bingroup_boxrange ON featuregroup USING RTREE (boxrange(fmin, fmax)) WHERE is_root = 1;
  33586. CREATE OR REPLACE FUNCTION _fill_featuregroup(INTEGER, INTEGER) RETURNS INTEGER AS '
  33587. DECLARE
  33588. groupid alias for $1;
  33589. parentid alias for $2;
  33590. g featuregroup%ROWTYPE;
  33591. BEGIN
  33592. FOR g IN
  33593. SELECT DISTINCT 0, fr.subject_id, fr.object_id, groupid, fl.srcfeature_id, fl.fmin, fl.fmax, fl.strand, 0
  33594. FROM feature_relationship AS fr,
  33595. featureloc AS fl
  33596. WHERE fr.object_id = parentid
  33597. AND fr.subject_id = fl.feature_id
  33598. LOOP
  33599. INSERT INTO featuregroup
  33600. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  33601. VALUES
  33602. (g.subject_id, g.object_id, g.group_id, g.srcfeature_id, g.fmin, g.fmax, g.strand, 0);
  33603. PERFORM _fill_featuregroup(groupid,g.subject_id);
  33604. END LOOP;
  33605. RETURN 1;
  33606. END;
  33607. ' LANGUAGE 'plpgsql';
  33608. CREATE OR REPLACE FUNCTION fill_featuregroup() RETURNS INTEGER AS '
  33609. DECLARE
  33610. p featuregroup%ROWTYPE;
  33611. l featureloc%ROWTYPE;
  33612. isa int;
  33613. c int;
  33614. BEGIN
  33615. TRUNCATE featuregroup;
  33616. SELECT INTO isa cvterm_id FROM cvterm WHERE (name = ''isa'' OR name = ''is_a'');
  33617. -- Recursion is the biggest performance killer for this function.
  33618. -- We can dodge the first round of recursion using the "fr1 / GROUP BY" approach.
  33619. -- Luckily, most feature graphs are only 2 levels deep, so most recursion is
  33620. -- avoidable.
  33621. RAISE NOTICE ''Loading root and singleton features.'';
  33622. FOR p IN
  33623. SELECT DISTINCT 0, f.feature_id, f.feature_id, f.feature_id, srcfeature_id, fmin, fmax, strand, 1
  33624. FROM feature AS f
  33625. LEFT JOIN feature_relationship ON (f.feature_id = object_id)
  33626. LEFT JOIN featureloc ON (f.feature_id = featureloc.feature_id)
  33627. WHERE f.feature_id NOT IN ( SELECT subject_id FROM feature_relationship )
  33628. AND srcfeature_id IS NOT NULL
  33629. LOOP
  33630. INSERT INTO featuregroup
  33631. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  33632. VALUES
  33633. (p.object_id, p.object_id, p.object_id, p.srcfeature_id, p.fmin, p.fmax, p.strand, 1);
  33634. END LOOP;
  33635. RAISE NOTICE ''Loading child features. If your database contains grandchild'';
  33636. RAISE NOTICE ''features, they will be loaded recursively and may take a long time.'';
  33637. FOR p IN
  33638. 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)
  33639. FROM feature_relationship AS fr0
  33640. LEFT JOIN feature_relationship AS fr1 ON ( fr0.subject_id = fr1.object_id),
  33641. featureloc AS fl
  33642. WHERE fr0.subject_id = fl.feature_id
  33643. AND fr0.object_id IN (
  33644. SELECT f.feature_id
  33645. FROM feature AS f
  33646. LEFT JOIN feature_relationship ON (f.feature_id = object_id)
  33647. LEFT JOIN featureloc ON (f.feature_id = featureloc.feature_id)
  33648. WHERE f.feature_id NOT IN ( SELECT subject_id FROM feature_relationship )
  33649. AND f.feature_id IN ( SELECT object_id FROM feature_relationship )
  33650. AND srcfeature_id IS NOT NULL
  33651. )
  33652. GROUP BY fr0.subject_id, fr0.object_id, fl.srcfeature_id, fl.fmin, fl.fmax, fl.strand
  33653. LOOP
  33654. INSERT INTO featuregroup
  33655. (subject_id, object_id, group_id, srcfeature_id, fmin, fmax, strand, is_root)
  33656. VALUES
  33657. (p.subject_id, p.object_id, p.object_id, p.srcfeature_id, p.fmin, p.fmax, p.strand, 0);
  33658. IF ( p.is_root > 0 ) THEN
  33659. PERFORM _fill_featuregroup(p.subject_id,p.subject_id);
  33660. END IF;
  33661. END LOOP;
  33662. RETURN 1;
  33663. END;
  33664. ' LANGUAGE 'plpgsql';
  33665. SET search_path = public,pg_catalog;
  33666. --- create ontology that has instantiated located_sequence_feature part of SO
  33667. --- way as it is written, the function can not be execute more than once in one connection
  33668. --- when you get error like ERROR: relation with OID NNNNN does not exist
  33669. --- as this is not meant to execute >1 times in one session so it should never happen
  33670. --- except at testing and test failed
  33671. --- disconnect and try again, in other words, it can NOT be executed >1 time in one connection
  33672. --- if using EXECUTE, we can avoid this problem but code is hard to write and read (lots of ', escape char)
  33673. --NOTE: private, don't call directly as relying on having temp table tmpcvtr
  33674. --DROP TYPE soi_type CASCADE;
  33675. CREATE TYPE soi_type AS (
  33676. type_id INT,
  33677. subject_id INT,
  33678. object_id INT
  33679. );
  33680. CREATE OR REPLACE FUNCTION _fill_cvtermpath4soinode(INTEGER, INTEGER, INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS
  33681. '
  33682. DECLARE
  33683. origin alias for $1;
  33684. child_id alias for $2;
  33685. cvid alias for $3;
  33686. typeid alias for $4;
  33687. depth alias for $5;
  33688. cterm soi_type%ROWTYPE;
  33689. exist_c int;
  33690. BEGIN
  33691. --RAISE NOTICE ''depth=% o=%, root=%, cv=%, t=%'', depth,origin,child_id,cvid,typeid;
  33692. SELECT INTO exist_c count(*) FROM cvtermpath WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id AND pathdistance = depth;
  33693. --- longest path
  33694. IF (exist_c > 0) THEN
  33695. UPDATE cvtermpath SET pathdistance = depth WHERE cv_id = cvid AND object_id = origin AND subject_id = child_id;
  33696. ELSE
  33697. INSERT INTO cvtermpath (object_id, subject_id, cv_id, type_id, pathdistance) VALUES(origin, child_id, cvid, typeid, depth);
  33698. END IF;
  33699. FOR cterm IN SELECT tmp_type AS type_id, subject_id FROM tmpcvtr WHERE object_id = child_id LOOP
  33700. PERFORM _fill_cvtermpath4soinode(origin, cterm.subject_id, cvid, cterm.type_id, depth+1);
  33701. END LOOP;
  33702. RETURN 1;
  33703. END;
  33704. '
  33705. LANGUAGE 'plpgsql';
  33706. CREATE OR REPLACE FUNCTION _fill_cvtermpath4soi(INTEGER, INTEGER) RETURNS INTEGER AS
  33707. '
  33708. DECLARE
  33709. rootid alias for $1;
  33710. cvid alias for $2;
  33711. ttype int;
  33712. cterm soi_type%ROWTYPE;
  33713. BEGIN
  33714. SELECT INTO ttype cvterm_id FROM cvterm WHERE name = ''isa'';
  33715. --RAISE NOTICE ''got ttype %'',ttype;
  33716. PERFORM _fill_cvtermpath4soinode(rootid, rootid, cvid, ttype, 0);
  33717. FOR cterm IN SELECT tmp_type AS type_id, subject_id FROM tmpcvtr WHERE object_id = rootid LOOP
  33718. PERFORM _fill_cvtermpath4soi(cterm.subject_id, cvid);
  33719. END LOOP;
  33720. RETURN 1;
  33721. END;
  33722. '
  33723. LANGUAGE 'plpgsql';
  33724. --- use tmpcvtr to temp store soi (virtural ontology)
  33725. --- using tmp tables is faster than using recursive function to create feature type relationship
  33726. --- since it gets feature type rel set by set instead of one by one
  33727. --- and getting feature type rel is very expensive
  33728. --- call _fillcvtermpath4soi to create path for the virtual ontology
  33729. CREATE OR REPLACE FUNCTION create_soi() RETURNS INTEGER AS
  33730. '
  33731. DECLARE
  33732. parent soi_type%ROWTYPE;
  33733. isa_id cvterm.cvterm_id%TYPE;
  33734. soi_term TEXT := ''soi'';
  33735. soi_def TEXT := ''ontology of SO feature instantiated in database'';
  33736. soi_cvid INTEGER;
  33737. soiterm_id INTEGER;
  33738. pcount INTEGER;
  33739. count INTEGER := 0;
  33740. cquery TEXT;
  33741. BEGIN
  33742. SELECT INTO isa_id cvterm_id FROM cvterm WHERE name = ''isa'';
  33743. SELECT INTO soi_cvid cv_id FROM cv WHERE name = soi_term;
  33744. IF (soi_cvid > 0) THEN
  33745. DELETE FROM cvtermpath WHERE cv_id = soi_cvid;
  33746. DELETE FROM cvterm WHERE cv_id = soi_cvid;
  33747. ELSE
  33748. INSERT INTO cv (name, definition) VALUES(soi_term, soi_def);
  33749. END IF;
  33750. SELECT INTO soi_cvid cv_id FROM cv WHERE name = soi_term;
  33751. INSERT INTO cvterm (name, cv_id) VALUES(soi_term, soi_cvid);
  33752. SELECT INTO soiterm_id cvterm_id FROM cvterm WHERE name = soi_term;
  33753. CREATE TEMP TABLE tmpcvtr (tmp_type INT, type_id INT, subject_id INT, object_id INT);
  33754. CREATE UNIQUE INDEX u_tmpcvtr ON tmpcvtr(subject_id, object_id);
  33755. INSERT INTO tmpcvtr (tmp_type, type_id, subject_id, object_id)
  33756. SELECT DISTINCT isa_id, soiterm_id, f.type_id, soiterm_id FROM feature f, cvterm t
  33757. WHERE f.type_id = t.cvterm_id AND f.type_id > 0;
  33758. EXECUTE ''select * from tmpcvtr where type_id = '' || soiterm_id || '';'';
  33759. get diagnostics pcount = row_count;
  33760. raise notice ''all types in feature %'',pcount;
  33761. --- do it hard way, delete any child feature type from above (NOT IN clause did not work)
  33762. FOR parent IN SELECT DISTINCT 0, t.cvterm_id, 0 FROM feature c, feature_relationship fr, cvterm t
  33763. WHERE t.cvterm_id = c.type_id AND c.feature_id = fr.subject_id LOOP
  33764. DELETE FROM tmpcvtr WHERE type_id = soiterm_id and object_id = soiterm_id
  33765. AND subject_id = parent.subject_id;
  33766. END LOOP;
  33767. EXECUTE ''select * from tmpcvtr where type_id = '' || soiterm_id || '';'';
  33768. get diagnostics pcount = row_count;
  33769. raise notice ''all types in feature after delete child %'',pcount;
  33770. --- create feature type relationship (store in tmpcvtr)
  33771. CREATE TEMP TABLE tmproot (cv_id INTEGER not null, cvterm_id INTEGER not null, status INTEGER DEFAULT 0);
  33772. cquery := ''SELECT * FROM tmproot tmp WHERE tmp.status = 0;'';
  33773. ---temp use tmpcvtr to hold instantiated SO relationship for speed
  33774. ---use soterm_id as type_id, will delete from tmpcvtr
  33775. ---us tmproot for this as well
  33776. INSERT INTO tmproot (cv_id, cvterm_id, status) SELECT DISTINCT soi_cvid, c.subject_id, 0 FROM tmpcvtr c
  33777. WHERE c.object_id = soiterm_id;
  33778. EXECUTE cquery;
  33779. GET DIAGNOSTICS pcount = ROW_COUNT;
  33780. WHILE (pcount > 0) LOOP
  33781. RAISE NOTICE ''num child temp (to be inserted) in tmpcvtr: %'',pcount;
  33782. INSERT INTO tmpcvtr (tmp_type, type_id, subject_id, object_id)
  33783. SELECT DISTINCT fr.type_id, soiterm_id, c.type_id, p.cvterm_id FROM feature c, feature_relationship fr,
  33784. tmproot p, feature pf, cvterm t WHERE c.feature_id = fr.subject_id AND fr.object_id = pf.feature_id
  33785. AND p.cvterm_id = pf.type_id AND t.cvterm_id = c.type_id AND p.status = 0;
  33786. UPDATE tmproot SET status = 1 WHERE status = 0;
  33787. INSERT INTO tmproot (cv_id, cvterm_id, status)
  33788. SELECT DISTINCT soi_cvid, c.type_id, 0 FROM feature c, feature_relationship fr,
  33789. tmproot tmp, feature p, cvterm t WHERE c.feature_id = fr.subject_id AND fr.object_id = p.feature_id
  33790. AND tmp.cvterm_id = p.type_id AND t.cvterm_id = c.type_id AND tmp.status = 1;
  33791. UPDATE tmproot SET status = 2 WHERE status = 1;
  33792. EXECUTE cquery;
  33793. GET DIAGNOSTICS pcount = ROW_COUNT;
  33794. END LOOP;
  33795. DELETE FROM tmproot;
  33796. ---get transitive closure for soi
  33797. PERFORM _fill_cvtermpath4soi(soiterm_id, soi_cvid);
  33798. DROP TABLE tmpcvtr;
  33799. DROP TABLE tmproot;
  33800. RETURN 1;
  33801. END;
  33802. '
  33803. LANGUAGE 'plpgsql';
  33804. ---bad precedence: change customed type name
  33805. ---drop here to remove old function
  33806. --DROP TYPE feature_by_cvt_type CASCADE;
  33807. --DROP TYPE fxgsfids_type CASCADE;
  33808. --DROP TYPE feature_by_fx_type CASCADE;
  33809. CREATE TYPE feature_by_fx_type AS (
  33810. feature_id INTEGER,
  33811. depth INT
  33812. );
  33813. CREATE OR REPLACE FUNCTION get_sub_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  33814. '
  33815. DECLARE
  33816. sql alias for $1;
  33817. myrc feature_by_fx_type%ROWTYPE;
  33818. myrc2 feature_by_fx_type%ROWTYPE;
  33819. BEGIN
  33820. FOR myrc IN EXECUTE sql LOOP
  33821. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  33822. RETURN NEXT myrc2;
  33823. END LOOP;
  33824. END LOOP;
  33825. RETURN;
  33826. END;
  33827. '
  33828. LANGUAGE 'plpgsql';
  33829. CREATE OR REPLACE FUNCTION get_up_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  33830. '
  33831. DECLARE
  33832. sql alias for $1;
  33833. myrc feature_by_fx_type%ROWTYPE;
  33834. myrc2 feature_by_fx_type%ROWTYPE;
  33835. BEGIN
  33836. FOR myrc IN EXECUTE sql LOOP
  33837. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  33838. RETURN NEXT myrc2;
  33839. END LOOP;
  33840. END LOOP;
  33841. RETURN;
  33842. END;
  33843. '
  33844. LANGUAGE 'plpgsql';
  33845. CREATE OR REPLACE FUNCTION get_feature_ids(text) RETURNS SETOF feature_by_fx_type AS
  33846. '
  33847. DECLARE
  33848. sql alias for $1;
  33849. myrc feature_by_fx_type%ROWTYPE;
  33850. myrc2 feature_by_fx_type%ROWTYPE;
  33851. myrc3 feature_by_fx_type%ROWTYPE;
  33852. BEGIN
  33853. FOR myrc IN EXECUTE sql LOOP
  33854. RETURN NEXT myrc;
  33855. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  33856. RETURN NEXT myrc2;
  33857. END LOOP;
  33858. FOR myrc3 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  33859. RETURN NEXT myrc3;
  33860. END LOOP;
  33861. END LOOP;
  33862. RETURN;
  33863. END;
  33864. '
  33865. LANGUAGE 'plpgsql';
  33866. CREATE OR REPLACE FUNCTION get_sub_feature_ids(integer) RETURNS SETOF feature_by_fx_type AS
  33867. '
  33868. DECLARE
  33869. root alias for $1;
  33870. myrc feature_by_fx_type%ROWTYPE;
  33871. myrc2 feature_by_fx_type%ROWTYPE;
  33872. BEGIN
  33873. FOR myrc IN SELECT DISTINCT subject_id AS feature_id FROM feature_relationship WHERE object_id = root LOOP
  33874. RETURN NEXT myrc;
  33875. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id) LOOP
  33876. RETURN NEXT myrc2;
  33877. END LOOP;
  33878. END LOOP;
  33879. RETURN;
  33880. END;
  33881. '
  33882. LANGUAGE 'plpgsql';
  33883. CREATE OR REPLACE FUNCTION get_up_feature_ids(integer) RETURNS SETOF feature_by_fx_type AS
  33884. '
  33885. DECLARE
  33886. leaf alias for $1;
  33887. myrc feature_by_fx_type%ROWTYPE;
  33888. myrc2 feature_by_fx_type%ROWTYPE;
  33889. BEGIN
  33890. FOR myrc IN SELECT DISTINCT object_id AS feature_id FROM feature_relationship WHERE subject_id = leaf LOOP
  33891. RETURN NEXT myrc;
  33892. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id) LOOP
  33893. RETURN NEXT myrc2;
  33894. END LOOP;
  33895. END LOOP;
  33896. RETURN;
  33897. END;
  33898. '
  33899. LANGUAGE 'plpgsql';
  33900. CREATE OR REPLACE FUNCTION get_sub_feature_ids(integer, integer) RETURNS SETOF feature_by_fx_type AS
  33901. '
  33902. DECLARE
  33903. root alias for $1;
  33904. depth alias for $2;
  33905. myrc feature_by_fx_type%ROWTYPE;
  33906. myrc2 feature_by_fx_type%ROWTYPE;
  33907. BEGIN
  33908. FOR myrc IN SELECT DISTINCT subject_id AS feature_id, depth FROM feature_relationship WHERE object_id = root LOOP
  33909. RETURN NEXT myrc;
  33910. FOR myrc2 IN SELECT * FROM get_sub_feature_ids(myrc.feature_id,depth+1) LOOP
  33911. RETURN NEXT myrc2;
  33912. END LOOP;
  33913. END LOOP;
  33914. RETURN;
  33915. END;
  33916. '
  33917. LANGUAGE 'plpgsql';
  33918. --- depth is reversed and meanless when union with results from get_sub_feature_ids
  33919. CREATE OR REPLACE FUNCTION get_up_feature_ids(integer, integer) RETURNS SETOF feature_by_fx_type AS
  33920. '
  33921. DECLARE
  33922. leaf alias for $1;
  33923. depth alias for $2;
  33924. myrc feature_by_fx_type%ROWTYPE;
  33925. myrc2 feature_by_fx_type%ROWTYPE;
  33926. BEGIN
  33927. FOR myrc IN SELECT DISTINCT object_id AS feature_id, depth FROM feature_relationship WHERE subject_id = leaf LOOP
  33928. RETURN NEXT myrc;
  33929. FOR myrc2 IN SELECT * FROM get_up_feature_ids(myrc.feature_id,depth+1) LOOP
  33930. RETURN NEXT myrc2;
  33931. END LOOP;
  33932. END LOOP;
  33933. RETURN;
  33934. END;
  33935. '
  33936. LANGUAGE 'plpgsql';
  33937. --- children feature ids only (not include itself--parent) for SO type and range (src)
  33938. 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
  33939. '
  33940. DECLARE
  33941. gtype alias for $1;
  33942. src alias for $2;
  33943. is_an alias for $3;
  33944. query text;
  33945. myrc feature_by_fx_type%ROWTYPE;
  33946. myrc2 feature_by_fx_type%ROWTYPE;
  33947. BEGIN
  33948. query := ''SELECT DISTINCT f.feature_id FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  33949. INNER join featureloc fl
  33950. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  33951. WHERE t.name = '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  33952. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  33953. IF (STRPOS(gtype, ''%'') > 0) THEN
  33954. query := ''SELECT DISTINCT f.feature_id FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  33955. INNER join featureloc fl
  33956. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  33957. WHERE t.name like '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  33958. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  33959. END IF;
  33960. FOR myrc IN SELECT * FROM get_sub_feature_ids(query) LOOP
  33961. RETURN NEXT myrc;
  33962. END LOOP;
  33963. RETURN;
  33964. END;
  33965. '
  33966. LANGUAGE 'plpgsql';
  33967. --- by SO type, usefull for tRNA, ncRNA, etc
  33968. CREATE OR REPLACE FUNCTION get_feature_ids_by_type(cvterm.name%TYPE, char(1)) RETURNS SETOF feature_by_fx_type AS
  33969. '
  33970. DECLARE
  33971. gtype alias for $1;
  33972. is_an alias for $2;
  33973. query TEXT;
  33974. myrc feature_by_fx_type%ROWTYPE;
  33975. myrc2 feature_by_fx_type%ROWTYPE;
  33976. BEGIN
  33977. query := ''SELECT DISTINCT f.feature_id
  33978. FROM feature f, cvterm t WHERE t.cvterm_id = f.type_id AND t.name = '' || quote_literal(gtype) ||
  33979. '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  33980. IF (STRPOS(gtype, ''%'') > 0) THEN
  33981. query := ''SELECT DISTINCT f.feature_id
  33982. FROM feature f, cvterm t WHERE t.cvterm_id = f.type_id AND t.name like ''
  33983. || quote_literal(gtype) || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  33984. END IF;
  33985. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  33986. RETURN NEXT myrc;
  33987. END LOOP;
  33988. RETURN;
  33989. END;
  33990. '
  33991. LANGUAGE 'plpgsql';
  33992. 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
  33993. '
  33994. DECLARE
  33995. gtype alias for $1;
  33996. src alias for $2;
  33997. is_an alias for $3;
  33998. query TEXT;
  33999. myrc feature_by_fx_type%ROWTYPE;
  34000. myrc2 feature_by_fx_type%ROWTYPE;
  34001. BEGIN
  34002. query := ''SELECT DISTINCT f.feature_id
  34003. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id) INNER join featureloc fl
  34004. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  34005. WHERE t.name = '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  34006. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34007. IF (STRPOS(gtype, ''%'') > 0) THEN
  34008. query := ''SELECT DISTINCT f.feature_id
  34009. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id) INNER join featureloc fl
  34010. ON (f.feature_id = fl.feature_id) INNER join feature src ON (src.feature_id = fl.srcfeature_id)
  34011. WHERE t.name like '' || quote_literal(gtype) || '' AND src.uniquename = '' || quote_literal(src)
  34012. || '' AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34013. END IF;
  34014. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34015. RETURN NEXT myrc;
  34016. END LOOP;
  34017. RETURN;
  34018. END;
  34019. '
  34020. LANGUAGE 'plpgsql';
  34021. 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
  34022. '
  34023. DECLARE
  34024. gtype alias for $1;
  34025. name alias for $2;
  34026. is_an alias for $3;
  34027. query TEXT;
  34028. myrc feature_by_fx_type%ROWTYPE;
  34029. myrc2 feature_by_fx_type%ROWTYPE;
  34030. BEGIN
  34031. query := ''SELECT DISTINCT f.feature_id
  34032. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  34033. WHERE t.name = '' || quote_literal(gtype) || '' AND (f.uniquename = '' || quote_literal(name)
  34034. || '' OR f.name = '' || quote_literal(name) || '') AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34035. IF (STRPOS(name, ''%'') > 0) THEN
  34036. query := ''SELECT DISTINCT f.feature_id
  34037. FROM feature f INNER join cvterm t ON (f.type_id = t.cvterm_id)
  34038. WHERE t.name = '' || quote_literal(gtype) || '' AND (f.uniquename like '' || quote_literal(name)
  34039. || '' OR f.name like '' || quote_literal(name) || '') AND f.is_analysis = '' || quote_literal(is_an) || '';'';
  34040. END IF;
  34041. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34042. RETURN NEXT myrc;
  34043. END LOOP;
  34044. RETURN;
  34045. END;
  34046. '
  34047. LANGUAGE 'plpgsql';
  34048. --- get all feature ids (including children) for feature that has an ontology term (say GO function)
  34049. CREATE OR REPLACE FUNCTION get_feature_ids_by_ont(cv.name%TYPE,cvterm.name%TYPE) RETURNS SETOF feature_by_fx_type AS
  34050. '
  34051. DECLARE
  34052. aspect alias for $1;
  34053. term alias for $2;
  34054. query TEXT;
  34055. myrc feature_by_fx_type%ROWTYPE;
  34056. myrc2 feature_by_fx_type%ROWTYPE;
  34057. BEGIN
  34058. query := ''SELECT DISTINCT fcvt.feature_id
  34059. FROM feature_cvterm fcvt, cv, cvterm t WHERE cv.cv_id = t.cv_id AND
  34060. t.cvterm_id = fcvt.cvterm_id AND cv.name = '' || quote_literal(aspect) ||
  34061. '' AND t.name = '' || quote_literal(term) || '';'';
  34062. IF (STRPOS(term, ''%'') > 0) THEN
  34063. query := ''SELECT DISTINCT fcvt.feature_id
  34064. FROM feature_cvterm fcvt, cv, cvterm t WHERE cv.cv_id = t.cv_id AND
  34065. t.cvterm_id = fcvt.cvterm_id AND cv.name = '' || quote_literal(aspect) ||
  34066. '' AND t.name like '' || quote_literal(term) || '';'';
  34067. END IF;
  34068. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34069. RETURN NEXT myrc;
  34070. END LOOP;
  34071. RETURN;
  34072. END;
  34073. '
  34074. LANGUAGE 'plpgsql';
  34075. CREATE OR REPLACE FUNCTION get_feature_ids_by_ont_root(cv.name%TYPE,cvterm.name%TYPE) RETURNS SETOF feature_by_fx_type AS
  34076. '
  34077. DECLARE
  34078. aspect alias for $1;
  34079. term alias for $2;
  34080. query TEXT;
  34081. subquery TEXT;
  34082. myrc feature_by_fx_type%ROWTYPE;
  34083. myrc2 feature_by_fx_type%ROWTYPE;
  34084. BEGIN
  34085. subquery := ''SELECT t.cvterm_id FROM cv, cvterm t WHERE cv.cv_id = t.cv_id
  34086. AND cv.name = '' || quote_literal(aspect) || '' AND t.name = '' || quote_literal(term) || '';'';
  34087. IF (STRPOS(term, ''%'') > 0) THEN
  34088. subquery := ''SELECT t.cvterm_id FROM cv, cvterm t WHERE cv.cv_id = t.cv_id
  34089. AND cv.name = '' || quote_literal(aspect) || '' AND t.name like '' || quote_literal(term) || '';'';
  34090. END IF;
  34091. query := ''SELECT DISTINCT fcvt.feature_id
  34092. 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);'';
  34093. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34094. RETURN NEXT myrc;
  34095. END LOOP;
  34096. RETURN;
  34097. END;
  34098. '
  34099. LANGUAGE 'plpgsql';
  34100. --- get all feature ids (including children) for feature with the property (type, val)
  34101. CREATE OR REPLACE FUNCTION get_feature_ids_by_property(cvterm.name%TYPE,varchar) RETURNS SETOF feature_by_fx_type AS
  34102. '
  34103. DECLARE
  34104. p_type alias for $1;
  34105. p_val alias for $2;
  34106. query TEXT;
  34107. myrc feature_by_fx_type%ROWTYPE;
  34108. myrc2 feature_by_fx_type%ROWTYPE;
  34109. BEGIN
  34110. query := ''SELECT DISTINCT fprop.feature_id
  34111. FROM featureprop fprop, cvterm t WHERE t.cvterm_id = fprop.type_id AND t.name = '' ||
  34112. quote_literal(p_type) || '' AND fprop.value = '' || quote_literal(p_val) || '';'';
  34113. IF (STRPOS(p_val, ''%'') > 0) THEN
  34114. query := ''SELECT DISTINCT fprop.feature_id
  34115. FROM featureprop fprop, cvterm t WHERE t.cvterm_id = fprop.type_id AND t.name = '' ||
  34116. quote_literal(p_type) || '' AND fprop.value like '' || quote_literal(p_val) || '';'';
  34117. END IF;
  34118. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34119. RETURN NEXT myrc;
  34120. END LOOP;
  34121. RETURN;
  34122. END;
  34123. '
  34124. LANGUAGE 'plpgsql';
  34125. --- get all feature ids (including children) for feature with the property val
  34126. CREATE OR REPLACE FUNCTION get_feature_ids_by_propval(varchar) RETURNS SETOF feature_by_fx_type AS
  34127. '
  34128. DECLARE
  34129. p_val alias for $1;
  34130. query TEXT;
  34131. myrc feature_by_fx_type%ROWTYPE;
  34132. myrc2 feature_by_fx_type%ROWTYPE;
  34133. BEGIN
  34134. query := ''SELECT DISTINCT fprop.feature_id
  34135. FROM featureprop fprop WHERE fprop.value = '' || quote_literal(p_val) || '';'';
  34136. IF (STRPOS(p_val, ''%'') > 0) THEN
  34137. query := ''SELECT DISTINCT fprop.feature_id
  34138. FROM featureprop fprop WHERE fprop.value like '' || quote_literal(p_val) || '';'';
  34139. END IF;
  34140. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34141. RETURN NEXT myrc;
  34142. END LOOP;
  34143. RETURN;
  34144. END;
  34145. '
  34146. LANGUAGE 'plpgsql';
  34147. ---4 args: ptype, ctype, count, operator (valid SQL number comparison operator), and is_analysis
  34148. ---get feature ids for any node with type = ptype whose child node type = ctype
  34149. ---and child node feature count comparing (using operator) to ccount
  34150. 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
  34151. '
  34152. DECLARE
  34153. ptype alias for $1;
  34154. ctype alias for $2;
  34155. ccount alias for $3;
  34156. operator alias for $4;
  34157. is_an alias for $5;
  34158. query TEXT;
  34159. myrc feature_by_fx_type%ROWTYPE;
  34160. myrc2 feature_by_fx_type %ROWTYPE;
  34161. BEGIN
  34162. query := ''SELECT DISTINCT f.feature_id
  34163. FROM feature f INNER join (select count(*) as c, p.feature_id FROM feature p
  34164. INNER join cvterm pt ON (p.type_id = pt.cvterm_id) INNER join feature_relationship fr
  34165. ON (p.feature_id = fr.object_id) INNER join feature c ON (c.feature_id = fr.subject_id)
  34166. INNER join cvterm ct ON (c.type_id = ct.cvterm_id)
  34167. WHERE pt.name = '' || quote_literal(ptype) || '' AND ct.name = '' || quote_literal(ctype)
  34168. || '' AND p.is_analysis = '' || quote_literal(is_an) || '' group by p.feature_id) as cq
  34169. ON (cq.feature_id = f.feature_id) WHERE cq.c '' || operator || ccount || '';'';
  34170. ---RAISE NOTICE ''%'', query;
  34171. FOR myrc IN SELECT * FROM get_feature_ids(query) LOOP
  34172. RETURN NEXT myrc;
  34173. END LOOP;
  34174. RETURN;
  34175. END;
  34176. '
  34177. LANGUAGE 'plpgsql';
  34178. -- $Id: companalysis.sql,v 1.37 2007-03-23 15:18:02 scottcain Exp $
  34179. -- ==========================================
  34180. -- Chado companalysis module
  34181. --
  34182. -- =================================================================
  34183. -- Dependencies:
  34184. --
  34185. -- :import feature from sequence
  34186. -- :import cvterm from cv
  34187. -- =================================================================
  34188. -- ================================================
  34189. -- TABLE: analysis
  34190. -- ================================================
  34191. create table analysis (
  34192. analysis_id serial not null,
  34193. primary key (analysis_id),
  34194. name varchar(255),
  34195. description text,
  34196. program varchar(255) not null,
  34197. programversion varchar(255) not null,
  34198. algorithm varchar(255),
  34199. sourcename varchar(255),
  34200. sourceversion varchar(255),
  34201. sourceuri text,
  34202. timeexecuted timestamp not null default current_timestamp,
  34203. constraint analysis_c1 unique (program,programversion,sourcename)
  34204. );
  34205. COMMENT ON TABLE analysis IS 'An analysis is a particular type of a
  34206. computational analysis; it may be a blast of one sequence against
  34207. another, or an all by all blast, or a different kind of analysis
  34208. altogether. It is a single unit of computation.';
  34209. COMMENT ON COLUMN analysis.name IS 'A way of grouping analyses. This
  34210. should be a handy short identifier that can help people find an
  34211. analysis they want. For instance "tRNAscan", "cDNA", "FlyPep",
  34212. "SwissProt", and it should not be assumed to be unique. For instance, there may be lots of separate analyses done against a cDNA database.';
  34213. COMMENT ON COLUMN analysis.program IS 'Program name, e.g. blastx, blastp, sim4, genscan.';
  34214. COMMENT ON COLUMN analysis.programversion IS 'Version description, e.g. TBLASTX 2.0MP-WashU [09-Nov-2000].';
  34215. COMMENT ON COLUMN analysis.algorithm IS 'Algorithm name, e.g. blast.';
  34216. COMMENT ON COLUMN analysis.sourcename IS 'Source name, e.g. cDNA, SwissProt.';
  34217. 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).';
  34218. -- ================================================
  34219. -- TABLE: analysisprop
  34220. -- ================================================
  34221. create table analysisprop (
  34222. analysisprop_id serial not null,
  34223. primary key (analysisprop_id),
  34224. analysis_id int not null,
  34225. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  34226. type_id int not null,
  34227. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34228. value text,
  34229. rank int not null default 0,
  34230. constraint analysisprop_c1 unique (analysis_id,type_id,rank)
  34231. );
  34232. create index analysisprop_idx1 on analysisprop (analysis_id);
  34233. create index analysisprop_idx2 on analysisprop (type_id);
  34234. -- ================================================
  34235. -- TABLE: analysisfeature
  34236. -- ================================================
  34237. create table analysisfeature (
  34238. analysisfeature_id serial not null,
  34239. primary key (analysisfeature_id),
  34240. feature_id int not null,
  34241. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34242. analysis_id int not null,
  34243. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  34244. rawscore double precision,
  34245. normscore double precision,
  34246. significance double precision,
  34247. identity double precision,
  34248. constraint analysisfeature_c1 unique (feature_id,analysis_id)
  34249. );
  34250. create index analysisfeature_idx1 on analysisfeature (feature_id);
  34251. create index analysisfeature_idx2 on analysisfeature (analysis_id);
  34252. 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,
  34253. with rank indicating query/subject';
  34254. 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.';
  34255. 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:
  34256. * 0 <= significance <= n, where n is a positive number, theoretically unbounded but unlikely to be more than 10
  34257. * low numbers are better than high numbers.';
  34258. COMMENT ON COLUMN analysisfeature.normscore IS 'This is the rawscore but
  34259. semi-normalized. Complete normalization to allow comparison of
  34260. features generated by different programs would be nice but too
  34261. difficult. Instead the normalization should strive to enforce the
  34262. following semantics: * normscores are floating point numbers >= 0,
  34263. * 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.';
  34264. 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.';
  34265. CREATE TABLE analysisfeatureprop (
  34266. analysisfeatureprop_id SERIAL PRIMARY KEY,
  34267. analysisfeature_id INTEGER NOT NULL REFERENCES analysisfeature(analysisfeature_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
  34268. type_id INTEGER NOT NULL REFERENCES cvterm(cvterm_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
  34269. value TEXT,
  34270. rank INTEGER NOT NULL,
  34271. CONSTRAINT analysisfeature_id_type_id_rank UNIQUE(analysisfeature_id, type_id, rank)
  34272. );
  34273. CREATE OR REPLACE FUNCTION store_analysis (VARCHAR,VARCHAR,VARCHAR)
  34274. RETURNS INT AS
  34275. 'DECLARE
  34276. v_program ALIAS FOR $1;
  34277. v_programversion ALIAS FOR $2;
  34278. v_sourcename ALIAS FOR $3;
  34279. pkval INTEGER;
  34280. BEGIN
  34281. SELECT INTO pkval analysis_id
  34282. FROM analysis
  34283. WHERE program=v_program AND
  34284. programversion=v_programversion AND
  34285. sourcename=v_sourcename;
  34286. IF NOT FOUND THEN
  34287. INSERT INTO analysis
  34288. (program,programversion,sourcename)
  34289. VALUES
  34290. (v_program,v_programversion,v_sourcename);
  34291. RETURN currval(''analysis_analysis_id_seq'');
  34292. END IF;
  34293. RETURN pkval;
  34294. END;
  34295. ' LANGUAGE 'plpgsql';
  34296. --CREATE OR REPLACE FUNCTION store_analysisfeature
  34297. --()
  34298. --RETURNS INT AS
  34299. --'DECLARE
  34300. -- v_srcfeature_id ALIAS FOR $1;
  34301. -- $Id: phenotype.sql,v 1.6 2007-04-27 16:09:46 emmert Exp $
  34302. -- ==========================================
  34303. -- Chado phenotype module
  34304. --
  34305. -- 05-31-2011
  34306. -- added 'name' column to phenotype. non-unique human readable field.
  34307. --
  34308. -- =================================================================
  34309. -- Dependencies:
  34310. --
  34311. -- :import cvterm from cv
  34312. -- :import feature from sequence
  34313. -- =================================================================
  34314. -- ================================================
  34315. -- TABLE: phenotype
  34316. -- ================================================
  34317. CREATE TABLE phenotype (
  34318. phenotype_id SERIAL NOT NULL,
  34319. primary key (phenotype_id),
  34320. uniquename TEXT NOT NULL,
  34321. name TEXT default null,
  34322. observable_id INT,
  34323. FOREIGN KEY (observable_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34324. attr_id INT,
  34325. FOREIGN KEY (attr_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  34326. value TEXT,
  34327. cvalue_id INT,
  34328. FOREIGN KEY (cvalue_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  34329. assay_id INT,
  34330. FOREIGN KEY (assay_id) REFERENCES cvterm (cvterm_id) ON DELETE SET NULL,
  34331. CONSTRAINT phenotype_c1 UNIQUE (uniquename)
  34332. );
  34333. CREATE INDEX phenotype_idx1 ON phenotype (cvalue_id);
  34334. CREATE INDEX phenotype_idx2 ON phenotype (observable_id);
  34335. CREATE INDEX phenotype_idx3 ON phenotype (attr_id);
  34336. COMMENT ON TABLE phenotype IS 'A phenotypic statement, or a single
  34337. atomic phenotypic observation, is a controlled sentence describing
  34338. observable effects of non-wild type function. E.g. Obs=eye, attribute=color, cvalue=red.';
  34339. COMMENT ON COLUMN phenotype.observable_id IS 'The entity: e.g. anatomy_part, biological_process.';
  34340. COMMENT ON COLUMN phenotype.attr_id IS 'Phenotypic attribute (quality, property, attribute, character) - drawn from PATO.';
  34341. COMMENT ON COLUMN phenotype.value IS 'Value of attribute - unconstrained free text. Used only if cvalue_id is not appropriate.';
  34342. COMMENT ON COLUMN phenotype.cvalue_id IS 'Phenotype attribute value (state).';
  34343. COMMENT ON COLUMN phenotype.assay_id IS 'Evidence type.';
  34344. -- ================================================
  34345. -- TABLE: phenotype_cvterm
  34346. -- ================================================
  34347. CREATE TABLE phenotype_cvterm (
  34348. phenotype_cvterm_id SERIAL NOT NULL,
  34349. primary key (phenotype_cvterm_id),
  34350. phenotype_id INT NOT NULL,
  34351. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34352. cvterm_id INT NOT NULL,
  34353. FOREIGN KEY (cvterm_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34354. rank int not null default 0,
  34355. CONSTRAINT phenotype_cvterm_c1 UNIQUE (phenotype_id, cvterm_id, rank)
  34356. );
  34357. CREATE INDEX phenotype_cvterm_idx1 ON phenotype_cvterm (phenotype_id);
  34358. CREATE INDEX phenotype_cvterm_idx2 ON phenotype_cvterm (cvterm_id);
  34359. COMMENT ON TABLE phenotype_cvterm IS NULL;
  34360. -- ================================================
  34361. -- TABLE: feature_phenotype
  34362. -- ================================================
  34363. CREATE TABLE feature_phenotype (
  34364. feature_phenotype_id SERIAL NOT NULL,
  34365. primary key (feature_phenotype_id),
  34366. feature_id INT NOT NULL,
  34367. FOREIGN KEY (feature_id) REFERENCES feature (feature_id) ON DELETE CASCADE,
  34368. phenotype_id INT NOT NULL,
  34369. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34370. CONSTRAINT feature_phenotype_c1 UNIQUE (feature_id,phenotype_id)
  34371. );
  34372. CREATE INDEX feature_phenotype_idx1 ON feature_phenotype (feature_id);
  34373. CREATE INDEX feature_phenotype_idx2 ON feature_phenotype (phenotype_id);
  34374. COMMENT ON TABLE feature_phenotype IS NULL;
  34375. -- $Id: genetic.sql,v 1.31 2008-08-25 19:53:14 scottcain Exp $
  34376. -- ==========================================
  34377. -- Chado genetics module
  34378. --
  34379. -- changes 2011-05-31
  34380. -- added type_id to genotype (can be null for backward compatibility)
  34381. -- added genotypeprop table
  34382. -- 2006-04-11
  34383. -- split out phenotype tables into phenotype module
  34384. --
  34385. -- redesigned 2003-10-28
  34386. --
  34387. -- changes 2003-11-10:
  34388. -- incorporating suggestions to make everything a gcontext; use
  34389. -- gcontext_relationship to make some gcontexts derivable from others. we
  34390. -- would incorporate environment this way - just add the environment
  34391. -- descriptors as properties of the child gcontext
  34392. --
  34393. -- changes 2004-06 (Documented by DE: 10-MAR-2005):
  34394. -- Many, including rename of gcontext to genotype, split
  34395. -- phenstatement into phenstatement & phenotype, created environment
  34396. --
  34397. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34398. -- ============
  34399. -- DEPENDENCIES
  34400. -- ============
  34401. -- :import feature from sequence
  34402. -- :import phenotype from phenotype
  34403. -- :import cvterm from cv
  34404. -- :import pub from pub
  34405. -- :import dbxref from general
  34406. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34407. -- ================================================
  34408. -- TABLE: genotype
  34409. -- ================================================
  34410. create table genotype (
  34411. genotype_id serial not null,
  34412. primary key (genotype_id),
  34413. name text,
  34414. uniquename text not null,
  34415. description varchar(255),
  34416. type_id INT NOT NULL,
  34417. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34418. constraint genotype_c1 unique (uniquename)
  34419. );
  34420. create index genotype_idx1 on genotype(uniquename);
  34421. create index genotype_idx2 on genotype(name);
  34422. COMMENT ON TABLE genotype IS 'Genetic context. A genotype is defined by a collection of features, mutations, balancers, deficiencies, haplotype blocks, or engineered constructs.';
  34423. COMMENT ON COLUMN genotype.uniquename IS 'The unique name for a genotype;
  34424. typically derived from the features making up the genotype.';
  34425. COMMENT ON COLUMN genotype.name IS 'Optional alternative name for a genotype,
  34426. for display purposes.';
  34427. -- ===============================================
  34428. -- TABLE: feature_genotype
  34429. -- ================================================
  34430. create table feature_genotype (
  34431. feature_genotype_id serial not null,
  34432. primary key (feature_genotype_id),
  34433. feature_id int not null,
  34434. foreign key (feature_id) references feature (feature_id) on delete cascade,
  34435. genotype_id int not null,
  34436. foreign key (genotype_id) references genotype (genotype_id) on delete cascade,
  34437. chromosome_id int,
  34438. foreign key (chromosome_id) references feature (feature_id) on delete set null,
  34439. rank int not null,
  34440. cgroup int not null,
  34441. cvterm_id int not null,
  34442. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  34443. constraint feature_genotype_c1 unique (feature_id, genotype_id, cvterm_id, chromosome_id, rank, cgroup)
  34444. );
  34445. create index feature_genotype_idx1 on feature_genotype (feature_id);
  34446. create index feature_genotype_idx2 on feature_genotype (genotype_id);
  34447. COMMENT ON TABLE feature_genotype IS NULL;
  34448. COMMENT ON COLUMN feature_genotype.rank IS 'rank can be used for
  34449. n-ploid organisms or to preserve order.';
  34450. COMMENT ON COLUMN feature_genotype.cgroup IS 'Spatially distinguishable
  34451. group. group can be used for distinguishing the chromosomal groups,
  34452. for example (RNAi products and so on can be treated as different
  34453. groups, as they do not fall on a particular chromosome).';
  34454. COMMENT ON COLUMN feature_genotype.chromosome_id IS 'A feature of SO type "chromosome".';
  34455. -- ================================================
  34456. -- TABLE: environment
  34457. -- ================================================
  34458. create table environment (
  34459. environment_id serial not NULL,
  34460. primary key (environment_id),
  34461. uniquename text not null,
  34462. description text,
  34463. constraint environment_c1 unique (uniquename)
  34464. );
  34465. create index environment_idx1 on environment(uniquename);
  34466. COMMENT ON TABLE environment IS 'The environmental component of a phenotype description.';
  34467. -- ================================================
  34468. -- TABLE: environment_cvterm
  34469. -- ================================================
  34470. create table environment_cvterm (
  34471. environment_cvterm_id serial not null,
  34472. primary key (environment_cvterm_id),
  34473. environment_id int not null,
  34474. foreign key (environment_id) references environment (environment_id) on delete cascade,
  34475. cvterm_id int not null,
  34476. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  34477. constraint environment_cvterm_c1 unique (environment_id, cvterm_id)
  34478. );
  34479. create index environment_cvterm_idx1 on environment_cvterm (environment_id);
  34480. create index environment_cvterm_idx2 on environment_cvterm (cvterm_id);
  34481. COMMENT ON TABLE environment_cvterm IS NULL;
  34482. -- ================================================
  34483. -- TABLE: phenstatement
  34484. -- ================================================
  34485. CREATE TABLE phenstatement (
  34486. phenstatement_id SERIAL NOT NULL,
  34487. primary key (phenstatement_id),
  34488. genotype_id INT NOT NULL,
  34489. FOREIGN KEY (genotype_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  34490. environment_id INT NOT NULL,
  34491. FOREIGN KEY (environment_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  34492. phenotype_id INT NOT NULL,
  34493. FOREIGN KEY (phenotype_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34494. type_id INT NOT NULL,
  34495. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34496. pub_id INT NOT NULL,
  34497. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  34498. CONSTRAINT phenstatement_c1 UNIQUE (genotype_id,phenotype_id,environment_id,type_id,pub_id)
  34499. );
  34500. CREATE INDEX phenstatement_idx1 ON phenstatement (genotype_id);
  34501. CREATE INDEX phenstatement_idx2 ON phenstatement (phenotype_id);
  34502. 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.';
  34503. -- ================================================
  34504. -- TABLE: phendesc
  34505. -- ================================================
  34506. CREATE TABLE phendesc (
  34507. phendesc_id SERIAL NOT NULL,
  34508. primary key (phendesc_id),
  34509. genotype_id INT NOT NULL,
  34510. FOREIGN KEY (genotype_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  34511. environment_id INT NOT NULL,
  34512. FOREIGN KEY (environment_id) REFERENCES environment ( environment_id) ON DELETE CASCADE,
  34513. description TEXT NOT NULL,
  34514. type_id INT NOT NULL,
  34515. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  34516. pub_id INT NOT NULL,
  34517. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  34518. CONSTRAINT phendesc_c1 UNIQUE (genotype_id,environment_id,type_id,pub_id)
  34519. );
  34520. CREATE INDEX phendesc_idx1 ON phendesc (genotype_id);
  34521. CREATE INDEX phendesc_idx2 ON phendesc (environment_id);
  34522. CREATE INDEX phendesc_idx3 ON phendesc (pub_id);
  34523. COMMENT ON TABLE phendesc IS 'A summary of a _set_ of phenotypic statements for any one gcontext made in any one publication.';
  34524. -- ================================================
  34525. -- TABLE: phenotype_comparison
  34526. -- ================================================
  34527. CREATE TABLE phenotype_comparison (
  34528. phenotype_comparison_id SERIAL NOT NULL,
  34529. primary key (phenotype_comparison_id),
  34530. genotype1_id INT NOT NULL,
  34531. FOREIGN KEY (genotype1_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  34532. environment1_id INT NOT NULL,
  34533. FOREIGN KEY (environment1_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  34534. genotype2_id INT NOT NULL,
  34535. FOREIGN KEY (genotype2_id) REFERENCES genotype (genotype_id) ON DELETE CASCADE,
  34536. environment2_id INT NOT NULL,
  34537. FOREIGN KEY (environment2_id) REFERENCES environment (environment_id) ON DELETE CASCADE,
  34538. phenotype1_id INT NOT NULL,
  34539. FOREIGN KEY (phenotype1_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34540. phenotype2_id INT,
  34541. FOREIGN KEY (phenotype2_id) REFERENCES phenotype (phenotype_id) ON DELETE CASCADE,
  34542. pub_id INT NOT NULL,
  34543. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE CASCADE,
  34544. organism_id INT NOT NULL,
  34545. FOREIGN KEY (organism_id) REFERENCES organism (organism_id) ON DELETE CASCADE,
  34546. CONSTRAINT phenotype_comparison_c1 UNIQUE (genotype1_id,environment1_id,genotype2_id,environment2_id,phenotype1_id,pub_id)
  34547. );
  34548. CREATE INDEX phenotype_comparison_idx1 on phenotype_comparison (genotype1_id);
  34549. CREATE INDEX phenotype_comparison_idx2 on phenotype_comparison (genotype2_id);
  34550. CREATE INDEX phenotype_comparison_idx4 on phenotype_comparison (pub_id);
  34551. COMMENT ON TABLE phenotype_comparison IS 'Comparison of phenotypes e.g., genotype1/environment1/phenotype1 "non-suppressible" with respect to genotype2/environment2/phenotype2.';
  34552. -- ================================================
  34553. -- TABLE: phenotype_comparison_cvterm
  34554. -- ================================================
  34555. CREATE TABLE phenotype_comparison_cvterm (
  34556. phenotype_comparison_cvterm_id serial not null,
  34557. primary key (phenotype_comparison_cvterm_id),
  34558. phenotype_comparison_id int not null,
  34559. FOREIGN KEY (phenotype_comparison_id) references phenotype_comparison (phenotype_comparison_id) on delete cascade,
  34560. cvterm_id int not null,
  34561. FOREIGN KEY (cvterm_id) references cvterm (cvterm_id) on delete cascade,
  34562. pub_id INT not null,
  34563. FOREIGN KEY (pub_id) references pub (pub_id) on delete cascade,
  34564. rank int not null default 0,
  34565. CONSTRAINT phenotype_comparison_cvterm_c1 unique (phenotype_comparison_id, cvterm_id)
  34566. );
  34567. CREATE INDEX phenotype_comparison_cvterm_idx1 on phenotype_comparison_cvterm (phenotype_comparison_id);
  34568. CREATE INDEX phenotype_comparison_cvterm_idx2 on phenotype_comparison_cvterm (cvterm_id);
  34569. -- ================================================
  34570. -- TABLE: genotypeprop
  34571. -- ================================================
  34572. create table genotypeprop (
  34573. genotypeprop_id serial not null,
  34574. primary key (genotypeprop_id),
  34575. genotype_id int not null,
  34576. foreign key (genotype_id) references genotype (genotype_id) on delete cascade INITIALLY DEFERRED,
  34577. type_id int not null,
  34578. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34579. value text null,
  34580. rank int not null default 0,
  34581. constraint genotypeprop_c1 unique (genotype_id,type_id,rank)
  34582. );
  34583. create index genotypeprop_idx1 on genotypeprop (genotype_id);
  34584. create index genotypeprop_idx2 on genotypeprop (type_id);
  34585. -- $Id: map.sql,v 1.14 2007-03-23 15:18:02 scottcain Exp $
  34586. -- ==========================================
  34587. -- Chado map module
  34588. --
  34589. -- =================================================================
  34590. -- Dependencies:
  34591. --
  34592. -- :import feature from sequence
  34593. -- :import cvterm from cv
  34594. -- :import pub from pub
  34595. -- =================================================================
  34596. -- ================================================
  34597. -- TABLE: featuremap
  34598. -- ================================================
  34599. create table featuremap (
  34600. featuremap_id serial not null,
  34601. primary key (featuremap_id),
  34602. name varchar(255),
  34603. description text,
  34604. unittype_id int null,
  34605. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  34606. constraint featuremap_c1 unique (name)
  34607. );
  34608. -- ================================================
  34609. -- TABLE: featurerange
  34610. -- ================================================
  34611. create table featurerange (
  34612. featurerange_id serial not null,
  34613. primary key (featurerange_id),
  34614. featuremap_id int not null,
  34615. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  34616. feature_id int not null,
  34617. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34618. leftstartf_id int not null,
  34619. foreign key (leftstartf_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34620. leftendf_id int,
  34621. foreign key (leftendf_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  34622. rightstartf_id int,
  34623. foreign key (rightstartf_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  34624. rightendf_id int not null,
  34625. foreign key (rightendf_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34626. rangestr varchar(255)
  34627. );
  34628. create index featurerange_idx1 on featurerange (featuremap_id);
  34629. create index featurerange_idx2 on featurerange (feature_id);
  34630. create index featurerange_idx3 on featurerange (leftstartf_id);
  34631. create index featurerange_idx4 on featurerange (leftendf_id);
  34632. create index featurerange_idx5 on featurerange (rightstartf_id);
  34633. create index featurerange_idx6 on featurerange (rightendf_id);
  34634. 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.';
  34635. COMMENT ON COLUMN featurerange.featuremap_id IS 'featuremap_id is the id of the feature being mapped.';
  34636. -- ================================================
  34637. -- TABLE: featurepos
  34638. -- ================================================
  34639. create table featurepos (
  34640. featurepos_id serial not null,
  34641. primary key (featurepos_id),
  34642. featuremap_id serial not null,
  34643. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  34644. feature_id int not null,
  34645. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34646. map_feature_id int not null,
  34647. foreign key (map_feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  34648. mappos float not null
  34649. );
  34650. create index featurepos_idx1 on featurepos (featuremap_id);
  34651. create index featurepos_idx2 on featurepos (feature_id);
  34652. create index featurepos_idx3 on featurepos (map_feature_id);
  34653. COMMENT ON COLUMN featurepos.map_feature_id IS 'map_feature_id
  34654. links to the feature (map) upon which the feature is being localized.';
  34655. -- ================================================
  34656. -- TABLE: featuremap_pub
  34657. -- ================================================
  34658. create table featuremap_pub (
  34659. featuremap_pub_id serial not null,
  34660. primary key (featuremap_pub_id),
  34661. featuremap_id int not null,
  34662. foreign key (featuremap_id) references featuremap (featuremap_id) on delete cascade INITIALLY DEFERRED,
  34663. pub_id int not null,
  34664. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED
  34665. );
  34666. create index featuremap_pub_idx1 on featuremap_pub (featuremap_id);
  34667. create index featuremap_pub_idx2 on featuremap_pub (pub_id);
  34668. -- $Id: phylogeny.sql,v 1.11 2007-04-12 17:00:30 briano Exp $
  34669. -- ==========================================
  34670. -- Chado phylogenetics module
  34671. --
  34672. -- Richard Bruskiewich
  34673. -- Chris Mungall
  34674. --
  34675. -- Initial design: 2004-05-27
  34676. --
  34677. -- ============
  34678. -- DEPENDENCIES
  34679. -- ============
  34680. -- :import feature from sequence
  34681. -- :import cvterm from cv
  34682. -- :import pub from pub
  34683. -- :import organism from organism
  34684. -- :import dbxref from general
  34685. -- :import analysis from companalysis
  34686. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34687. -- ================================================
  34688. -- TABLE: phylotree
  34689. -- ================================================
  34690. create table phylotree (
  34691. phylotree_id serial not null,
  34692. primary key (phylotree_id),
  34693. dbxref_id int not null,
  34694. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade,
  34695. name varchar(255) null,
  34696. type_id int,
  34697. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  34698. analysis_id int null,
  34699. foreign key (analysis_id) references analysis (analysis_id) on delete cascade,
  34700. comment text null,
  34701. unique(phylotree_id)
  34702. );
  34703. create index phylotree_idx1 on phylotree (phylotree_id);
  34704. COMMENT ON TABLE phylotree IS 'Global anchor for phylogenetic tree.';
  34705. COMMENT ON COLUMN phylotree.type_id IS 'Type: protein, nucleotide, taxonomy, for example. The type should be any SO type, or "taxonomy".';
  34706. -- ================================================
  34707. -- TABLE: phylotree_pub
  34708. -- ================================================
  34709. create table phylotree_pub (
  34710. phylotree_pub_id serial not null,
  34711. primary key (phylotree_pub_id),
  34712. phylotree_id int not null,
  34713. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  34714. pub_id int not null,
  34715. foreign key (pub_id) references pub (pub_id) on delete cascade,
  34716. unique(phylotree_id, pub_id)
  34717. );
  34718. create index phylotree_pub_idx1 on phylotree_pub (phylotree_id);
  34719. create index phylotree_pub_idx2 on phylotree_pub (pub_id);
  34720. COMMENT ON TABLE phylotree_pub IS 'Tracks citations global to the tree e.g. multiple sequence alignment supporting tree construction.';
  34721. -- ================================================
  34722. -- TABLE: phylonode
  34723. -- ================================================
  34724. create table phylonode (
  34725. phylonode_id serial not null,
  34726. primary key (phylonode_id),
  34727. phylotree_id int not null,
  34728. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  34729. parent_phylonode_id int null,
  34730. foreign key (parent_phylonode_id) references phylonode (phylonode_id) on delete cascade,
  34731. left_idx int not null,
  34732. right_idx int not null,
  34733. type_id int,
  34734. foreign key(type_id) references cvterm (cvterm_id) on delete cascade,
  34735. feature_id int,
  34736. foreign key (feature_id) references feature (feature_id) on delete cascade,
  34737. label varchar(255) null,
  34738. distance float null,
  34739. -- Bootstrap float null.
  34740. unique(phylotree_id, left_idx),
  34741. unique(phylotree_id, right_idx)
  34742. );
  34743. COMMENT ON TABLE phylonode IS 'This is the most pervasive
  34744. element in the phylogeny module, cataloging the "phylonodes" of
  34745. tree graphs. Edges are implied by the parent_phylonode_id
  34746. reflexive closure. For all nodes in a nested set implementation the left and right index will be *between* the parents left and right indexes.';
  34747. 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.';
  34748. COMMENT ON COLUMN phylonode.type_id IS 'Type: e.g. root, interior, leaf.';
  34749. COMMENT ON COLUMN phylonode.parent_phylonode_id IS 'Root phylonode can have null parent_phylonode_id value.';
  34750. -- ================================================
  34751. -- TABLE: phylonode_dbxref
  34752. -- ================================================
  34753. create table phylonode_dbxref (
  34754. phylonode_dbxref_id serial not null,
  34755. primary key (phylonode_dbxref_id),
  34756. phylonode_id int not null,
  34757. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  34758. dbxref_id int not null,
  34759. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade,
  34760. unique(phylonode_id,dbxref_id)
  34761. );
  34762. create index phylonode_dbxref_idx1 on phylonode_dbxref (phylonode_id);
  34763. create index phylonode_dbxref_idx2 on phylonode_dbxref (dbxref_id);
  34764. 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.';
  34765. -- ================================================
  34766. -- TABLE: phylonode_pub
  34767. -- ================================================
  34768. create table phylonode_pub (
  34769. phylonode_pub_id serial not null,
  34770. primary key (phylonode_pub_id),
  34771. phylonode_id int not null,
  34772. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  34773. pub_id int not null,
  34774. foreign key (pub_id) references pub (pub_id) on delete cascade,
  34775. unique(phylonode_id, pub_id)
  34776. );
  34777. create index phylonode_pub_idx1 on phylonode_pub (phylonode_id);
  34778. create index phylonode_pub_idx2 on phylonode_pub (pub_id);
  34779. -- ================================================
  34780. -- TABLE: phylonode_organism
  34781. -- ================================================
  34782. create table phylonode_organism (
  34783. phylonode_organism_id serial not null,
  34784. primary key (phylonode_organism_id),
  34785. phylonode_id int not null,
  34786. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  34787. organism_id int not null,
  34788. foreign key (organism_id) references organism (organism_id) on delete cascade,
  34789. unique(phylonode_id)
  34790. );
  34791. create index phylonode_organism_idx1 on phylonode_organism (phylonode_id);
  34792. create index phylonode_organism_idx2 on phylonode_organism (organism_id);
  34793. 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).';
  34794. COMMENT ON COLUMN phylonode_organism.phylonode_id IS 'One phylonode cannot refer to >1 organism.';
  34795. -- ================================================
  34796. -- TABLE: phylonodeprop
  34797. -- ================================================
  34798. create table phylonodeprop (
  34799. phylonodeprop_id serial not null,
  34800. primary key (phylonodeprop_id),
  34801. phylonode_id int not null,
  34802. foreign key (phylonode_id) references phylonode (phylonode_id) on delete cascade,
  34803. type_id int not null,
  34804. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  34805. value text not null default '',
  34806. -- It is not clear how useful the rank concept is here, leave it in for now.
  34807. rank int not null default 0,
  34808. unique(phylonode_id, type_id, value, rank)
  34809. );
  34810. create index phylonodeprop_idx1 on phylonodeprop (phylonode_id);
  34811. create index phylonodeprop_idx2 on phylonodeprop (type_id);
  34812. 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.';
  34813. -- ================================================
  34814. -- TABLE: phylonode_relationship
  34815. -- ================================================
  34816. create table phylonode_relationship (
  34817. phylonode_relationship_id serial not null,
  34818. primary key (phylonode_relationship_id),
  34819. subject_id int not null,
  34820. foreign key (subject_id) references phylonode (phylonode_id) on delete cascade,
  34821. object_id int not null,
  34822. foreign key (object_id) references phylonode (phylonode_id) on delete cascade,
  34823. type_id int not null,
  34824. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  34825. rank int,
  34826. phylotree_id int not null,
  34827. foreign key (phylotree_id) references phylotree (phylotree_id) on delete cascade,
  34828. unique(subject_id, object_id, type_id)
  34829. );
  34830. create index phylonode_relationship_idx1 on phylonode_relationship (subject_id);
  34831. create index phylonode_relationship_idx2 on phylonode_relationship (object_id);
  34832. create index phylonode_relationship_idx3 on phylonode_relationship (type_id);
  34833. COMMENT ON TABLE phylonode_relationship IS 'This is for
  34834. relationships that are not strictly hierarchical; for example,
  34835. horizontal gene transfer. Most phylogenetic trees are strictly
  34836. hierarchical, nevertheless it is here for completeness.';
  34837. CREATE OR REPLACE FUNCTION phylonode_depth(INT)
  34838. RETURNS FLOAT AS
  34839. 'DECLARE id ALIAS FOR $1;
  34840. DECLARE depth FLOAT := 0;
  34841. DECLARE curr_node phylonode%ROWTYPE;
  34842. BEGIN
  34843. SELECT INTO curr_node *
  34844. FROM phylonode
  34845. WHERE phylonode_id=id;
  34846. depth = depth + curr_node.distance;
  34847. IF curr_node.parent_phylonode_id IS NULL
  34848. THEN RETURN depth;
  34849. ELSE RETURN depth + phylonode_depth(curr_node.parent_phylonode_id);
  34850. END IF;
  34851. END
  34852. '
  34853. LANGUAGE 'plpgsql';
  34854. CREATE OR REPLACE FUNCTION phylonode_height(INT)
  34855. RETURNS FLOAT AS
  34856. '
  34857. SELECT coalesce(max(phylonode_height(phylonode_id) + distance), 0.0)
  34858. FROM phylonode
  34859. WHERE parent_phylonode_id = $1
  34860. '
  34861. LANGUAGE 'sql';
  34862. -- $Id: contact.sql,v 1.5 2007-02-25 17:00:17 briano Exp $
  34863. -- ==========================================
  34864. -- Chado contact module
  34865. --
  34866. -- =================================================================
  34867. -- Dependencies:
  34868. --
  34869. -- :import cvterm from cv
  34870. -- =================================================================
  34871. -- ================================================
  34872. -- TABLE: contact
  34873. -- ================================================
  34874. create table contact (
  34875. contact_id serial not null,
  34876. primary key (contact_id),
  34877. type_id int null,
  34878. foreign key (type_id) references cvterm (cvterm_id),
  34879. name varchar(255) not null,
  34880. description varchar(255) null,
  34881. constraint contact_c1 unique (name)
  34882. );
  34883. COMMENT ON TABLE contact IS 'Model persons, institutes, groups, organizations, etc.';
  34884. COMMENT ON COLUMN contact.type_id IS 'What type of contact is this? E.g. "person", "lab".';
  34885. -- ================================================
  34886. -- TABLE: contact_relationship
  34887. -- ================================================
  34888. create table contact_relationship (
  34889. contact_relationship_id serial not null,
  34890. primary key (contact_relationship_id),
  34891. type_id int not null,
  34892. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34893. subject_id int not null,
  34894. foreign key (subject_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  34895. object_id int not null,
  34896. foreign key (object_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  34897. constraint contact_relationship_c1 unique (subject_id,object_id,type_id)
  34898. );
  34899. create index contact_relationship_idx1 on contact_relationship (type_id);
  34900. create index contact_relationship_idx2 on contact_relationship (subject_id);
  34901. create index contact_relationship_idx3 on contact_relationship (object_id);
  34902. COMMENT ON TABLE contact_relationship IS 'Model relationships between contacts';
  34903. 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.';
  34904. 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.';
  34905. 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.';
  34906. -- $Id: expression.sql,v 1.14 2007-03-23 15:18:02 scottcain Exp $
  34907. -- ==========================================
  34908. -- Chado expression module
  34909. --
  34910. -- =================================================================
  34911. -- Dependencies:
  34912. --
  34913. -- :import feature from sequence
  34914. -- :import cvterm from cv
  34915. -- :import pub from pub
  34916. -- =================================================================
  34917. -- ================================================
  34918. -- TABLE: expression
  34919. -- ================================================
  34920. create table expression (
  34921. expression_id serial not null,
  34922. primary key (expression_id),
  34923. uniquename text not null,
  34924. md5checksum character(32),
  34925. description text,
  34926. constraint expression_c1 unique(uniquename)
  34927. );
  34928. COMMENT ON TABLE expression IS 'The expression table is essentially a bridge table.';
  34929. -- ================================================
  34930. -- TABLE: expression_cvterm
  34931. -- ================================================
  34932. create table expression_cvterm (
  34933. expression_cvterm_id serial not null,
  34934. primary key (expression_cvterm_id),
  34935. expression_id int not null,
  34936. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  34937. cvterm_id int not null,
  34938. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34939. rank int not null default 0,
  34940. cvterm_type_id int not null,
  34941. foreign key (cvterm_type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34942. constraint expression_cvterm_c1 unique(expression_id,cvterm_id,cvterm_type_id)
  34943. );
  34944. create index expression_cvterm_idx1 on expression_cvterm (expression_id);
  34945. create index expression_cvterm_idx2 on expression_cvterm (cvterm_id);
  34946. create index expression_cvterm_idx3 on expression_cvterm (cvterm_type_id);
  34947. --================================================
  34948. -- TABLE: expression_cvtermprop
  34949. -- ================================================
  34950. create table expression_cvtermprop (
  34951. expression_cvtermprop_id serial not null,
  34952. primary key (expression_cvtermprop_id),
  34953. expression_cvterm_id int not null,
  34954. foreign key (expression_cvterm_id) references expression_cvterm (expression_cvterm_id) on delete cascade INITIALLY DEFERRED,
  34955. type_id int not null,
  34956. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34957. value text null,
  34958. rank int not null default 0,
  34959. constraint expression_cvtermprop_c1 unique (expression_cvterm_id,type_id,rank)
  34960. );
  34961. create index expression_cvtermprop_idx1 on expression_cvtermprop (expression_cvterm_id);
  34962. create index expression_cvtermprop_idx2 on expression_cvtermprop (type_id);
  34963. COMMENT ON TABLE expression_cvtermprop IS 'Extensible properties for
  34964. expression to cvterm associations. Examples: qualifiers.';
  34965. COMMENT ON COLUMN expression_cvtermprop.type_id IS 'The name of the
  34966. property/slot is a cvterm. The meaning of the property is defined in
  34967. that cvterm. For example, cvterms may come from the FlyBase miscellaneous cv.';
  34968. COMMENT ON COLUMN expression_cvtermprop.value IS 'The value of the
  34969. property, represented as text. Numeric values are converted to their
  34970. text representation. This is less efficient than using native database
  34971. types, but is easier to query.';
  34972. COMMENT ON COLUMN expression_cvtermprop.rank IS 'Property-Value
  34973. ordering. Any expression_cvterm can have multiple values for any particular
  34974. property type - these are ordered in a list using rank, counting from
  34975. zero. For properties that are single-valued rather than multi-valued,
  34976. the default 0 value should be used.';
  34977. -- ================================================
  34978. -- TABLE: expressionprop
  34979. -- ================================================
  34980. create table expressionprop (
  34981. expressionprop_id serial not null,
  34982. primary key (expressionprop_id),
  34983. expression_id int not null,
  34984. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  34985. type_id int not null,
  34986. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  34987. value text null,
  34988. rank int not null default 0,
  34989. constraint expressionprop_c1 unique (expression_id,type_id,rank)
  34990. );
  34991. create index expressionprop_idx1 on expressionprop (expression_id);
  34992. create index expressionprop_idx2 on expressionprop (type_id);
  34993. -- ================================================
  34994. -- TABLE: expression_pub
  34995. -- ================================================
  34996. create table expression_pub (
  34997. expression_pub_id serial not null,
  34998. primary key (expression_pub_id),
  34999. expression_id int not null,
  35000. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  35001. pub_id int not null,
  35002. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35003. constraint expression_pub_c1 unique(expression_id,pub_id)
  35004. );
  35005. create index expression_pub_idx1 on expression_pub (expression_id);
  35006. create index expression_pub_idx2 on expression_pub (pub_id);
  35007. -- ================================================
  35008. -- TABLE: feature_expression
  35009. -- ================================================
  35010. create table feature_expression (
  35011. feature_expression_id serial not null,
  35012. primary key (feature_expression_id),
  35013. expression_id int not null,
  35014. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  35015. feature_id int not null,
  35016. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  35017. pub_id int not null,
  35018. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35019. constraint feature_expression_c1 unique(expression_id,feature_id,pub_id)
  35020. );
  35021. create index feature_expression_idx1 on feature_expression (expression_id);
  35022. create index feature_expression_idx2 on feature_expression (feature_id);
  35023. create index feature_expression_idx3 on feature_expression (pub_id);
  35024. -- ================================================
  35025. -- TABLE: feature_expressionprop
  35026. -- ================================================
  35027. create table feature_expressionprop (
  35028. feature_expressionprop_id serial not null,
  35029. primary key (feature_expressionprop_id),
  35030. feature_expression_id int not null,
  35031. foreign key (feature_expression_id) references feature_expression (feature_expression_id) on delete cascade INITIALLY DEFERRED,
  35032. type_id int not null,
  35033. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35034. value text null,
  35035. rank int not null default 0,
  35036. constraint feature_expressionprop_c1 unique (feature_expression_id,type_id,rank)
  35037. );
  35038. create index feature_expressionprop_idx1 on feature_expressionprop (feature_expression_id);
  35039. create index feature_expressionprop_idx2 on feature_expressionprop (type_id);
  35040. COMMENT ON TABLE feature_expressionprop IS 'Extensible properties for
  35041. feature_expression (comments, for example). Modeled on feature_cvtermprop.';
  35042. -- ================================================
  35043. -- TABLE: eimage
  35044. -- ================================================
  35045. create table eimage (
  35046. eimage_id serial not null,
  35047. primary key (eimage_id),
  35048. eimage_data text,
  35049. eimage_type varchar(255) not null,
  35050. image_uri varchar(255)
  35051. );
  35052. COMMENT ON COLUMN eimage.eimage_data IS 'We expect images in eimage_data (e.g. JPEGs) to be uuencoded.';
  35053. COMMENT ON COLUMN eimage.eimage_type IS 'Describes the type of data in eimage_data.';
  35054. -- ================================================
  35055. -- TABLE: expression_image
  35056. -- ================================================
  35057. create table expression_image (
  35058. expression_image_id serial not null,
  35059. primary key (expression_image_id),
  35060. expression_id int not null,
  35061. foreign key (expression_id) references expression (expression_id) on delete cascade INITIALLY DEFERRED,
  35062. eimage_id int not null,
  35063. foreign key (eimage_id) references eimage (eimage_id) on delete cascade INITIALLY DEFERRED,
  35064. constraint expression_image_c1 unique(expression_id,eimage_id)
  35065. );
  35066. create index expression_image_idx1 on expression_image (expression_id);
  35067. create index expression_image_idx2 on expression_image (eimage_id);
  35068. -- =================================================================
  35069. -- Dependencies:
  35070. --
  35071. -- :import cvterm from cv
  35072. -- :import pub from pub
  35073. -- :import contact from contact
  35074. -- =================================================================
  35075. -- ================================================
  35076. -- TABLE: project
  35077. -- ================================================
  35078. create table project (
  35079. project_id serial not null,
  35080. primary key (project_id),
  35081. name varchar(255) not null,
  35082. description varchar(255) not null,
  35083. constraint project_c1 unique (name)
  35084. );
  35085. COMMENT ON TABLE project IS NULL;
  35086. -- ================================================
  35087. -- TABLE: projectprop
  35088. -- ================================================
  35089. CREATE TABLE projectprop (
  35090. projectprop_id serial NOT NULL,
  35091. PRIMARY KEY (projectprop_id),
  35092. project_id integer NOT NULL,
  35093. FOREIGN KEY (project_id) REFERENCES project (project_id) ON DELETE CASCADE,
  35094. type_id integer NOT NULL,
  35095. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE CASCADE,
  35096. value text,
  35097. rank integer not null default 0,
  35098. CONSTRAINT projectprop_c1 UNIQUE (project_id, type_id, rank)
  35099. );
  35100. -- ================================================
  35101. -- TABLE: project_relationship
  35102. -- ================================================
  35103. CREATE TABLE project_relationship (
  35104. project_relationship_id serial NOT NULL,
  35105. PRIMARY KEY (project_relationship_id),
  35106. subject_project_id integer NOT NULL,
  35107. FOREIGN KEY (subject_project_id) REFERENCES project (project_id) ON DELETE CASCADE,
  35108. object_project_id integer NOT NULL,
  35109. FOREIGN KEY (object_project_id) REFERENCES project (project_id) ON DELETE CASCADE,
  35110. type_id integer NOT NULL,
  35111. FOREIGN KEY (type_id) REFERENCES cvterm (cvterm_id) ON DELETE RESTRICT,
  35112. CONSTRAINT project_relationship_c1 UNIQUE (subject_project_id, object_project_id, type_id)
  35113. );
  35114. COMMENT ON TABLE project_relationship IS 'A project can be composed of several smaller scale projects';
  35115. COMMENT ON COLUMN project_relationship.type_id IS 'The type of relationship being stated, such as "is part of".';
  35116. create table project_pub (
  35117. project_pub_id serial not null,
  35118. primary key (project_pub_id),
  35119. project_id int not null,
  35120. foreign key (project_id) references project (project_id) on delete cascade INITIALLY DEFERRED,
  35121. pub_id int not null,
  35122. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35123. constraint project_pub_c1 unique (project_id,pub_id)
  35124. );
  35125. create index project_pub_idx1 on project_pub (project_id);
  35126. create index project_pub_idx2 on project_pub (pub_id);
  35127. COMMENT ON TABLE project_pub IS 'Linking project(s) to publication(s)';
  35128. create table project_contact (
  35129. project_contact_id serial not null,
  35130. primary key (project_contact_id),
  35131. project_id int not null,
  35132. foreign key (project_id) references project (project_id) on delete cascade INITIALLY DEFERRED,
  35133. contact_id int not null,
  35134. foreign key (contact_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  35135. constraint project_contact_c1 unique (project_id,contact_id)
  35136. );
  35137. create index project_contact_idx1 on project_contact (project_id);
  35138. create index project_contact_idx2 on project_contact (contact_id);
  35139. COMMENT ON TABLE project_contact IS 'Linking project(s) to contact(s)';
  35140. -- $Id: mage.sql,v 1.3 2008-03-19 18:32:51 scottcain Exp $
  35141. -- ==========================================
  35142. -- Chado mage module
  35143. --
  35144. -- =================================================================
  35145. -- Dependencies:
  35146. --
  35147. -- :import feature from sequence
  35148. -- :import cvterm from cv
  35149. -- :import pub from pub
  35150. -- :import organism from organism
  35151. -- :import contact from contact
  35152. -- :import dbxref from general
  35153. -- :import tableinfo from general
  35154. -- :import project from project
  35155. -- :import analysis from companalysis
  35156. -- =================================================================
  35157. -- ================================================
  35158. -- TABLE: mageml
  35159. -- ================================================
  35160. create table mageml (
  35161. mageml_id serial not null,
  35162. primary key (mageml_id),
  35163. mage_package text not null,
  35164. mage_ml text not null
  35165. );
  35166. 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.';
  35167. -- ================================================
  35168. -- TABLE: magedocumentation
  35169. -- ================================================
  35170. create table magedocumentation (
  35171. magedocumentation_id serial not null,
  35172. primary key (magedocumentation_id),
  35173. mageml_id int not null,
  35174. foreign key (mageml_id) references mageml (mageml_id) on delete cascade INITIALLY DEFERRED,
  35175. tableinfo_id int not null,
  35176. foreign key (tableinfo_id) references tableinfo (tableinfo_id) on delete cascade INITIALLY DEFERRED,
  35177. row_id int not null,
  35178. mageidentifier text not null
  35179. );
  35180. create index magedocumentation_idx1 on magedocumentation (mageml_id);
  35181. create index magedocumentation_idx2 on magedocumentation (tableinfo_id);
  35182. create index magedocumentation_idx3 on magedocumentation (row_id);
  35183. COMMENT ON TABLE magedocumentation IS NULL;
  35184. -- ================================================
  35185. -- TABLE: protocol
  35186. -- ================================================
  35187. create table protocol (
  35188. protocol_id serial not null,
  35189. primary key (protocol_id),
  35190. type_id int not null,
  35191. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35192. pub_id int null,
  35193. foreign key (pub_id) references pub (pub_id) on delete set null INITIALLY DEFERRED,
  35194. dbxref_id int null,
  35195. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35196. name text not null,
  35197. uri text null,
  35198. protocoldescription text null,
  35199. hardwaredescription text null,
  35200. softwaredescription text null,
  35201. constraint protocol_c1 unique (name)
  35202. );
  35203. create index protocol_idx1 on protocol (type_id);
  35204. create index protocol_idx2 on protocol (pub_id);
  35205. create index protocol_idx3 on protocol (dbxref_id);
  35206. COMMENT ON TABLE protocol IS 'Procedural notes on how data was prepared and processed.';
  35207. -- ================================================
  35208. -- TABLE: protocolparam
  35209. -- ================================================
  35210. create table protocolparam (
  35211. protocolparam_id serial not null,
  35212. primary key (protocolparam_id),
  35213. protocol_id int not null,
  35214. foreign key (protocol_id) references protocol (protocol_id) on delete cascade INITIALLY DEFERRED,
  35215. name text not null,
  35216. datatype_id int null,
  35217. foreign key (datatype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  35218. unittype_id int null,
  35219. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  35220. value text null,
  35221. rank int not null default 0
  35222. );
  35223. create index protocolparam_idx1 on protocolparam (protocol_id);
  35224. create index protocolparam_idx2 on protocolparam (datatype_id);
  35225. create index protocolparam_idx3 on protocolparam (unittype_id);
  35226. COMMENT ON TABLE protocolparam IS 'Parameters related to a
  35227. protocol. For example, if the protocol is a soak, this might include attributes of bath temperature and duration.';
  35228. -- ================================================
  35229. -- TABLE: channel
  35230. -- ================================================
  35231. create table channel (
  35232. channel_id serial not null,
  35233. primary key (channel_id),
  35234. name text not null,
  35235. definition text not null,
  35236. constraint channel_c1 unique (name)
  35237. );
  35238. 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).';
  35239. -- ================================================
  35240. -- TABLE: arraydesign
  35241. -- ================================================
  35242. create table arraydesign (
  35243. arraydesign_id serial not null,
  35244. primary key (arraydesign_id),
  35245. manufacturer_id int not null,
  35246. foreign key (manufacturer_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  35247. platformtype_id int not null,
  35248. foreign key (platformtype_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35249. substratetype_id int null,
  35250. foreign key (substratetype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  35251. protocol_id int null,
  35252. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  35253. dbxref_id int null,
  35254. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35255. name text not null,
  35256. version text null,
  35257. description text null,
  35258. array_dimensions text null,
  35259. element_dimensions text null,
  35260. num_of_elements int null,
  35261. num_array_columns int null,
  35262. num_array_rows int null,
  35263. num_grid_columns int null,
  35264. num_grid_rows int null,
  35265. num_sub_columns int null,
  35266. num_sub_rows int null,
  35267. constraint arraydesign_c1 unique (name)
  35268. );
  35269. create index arraydesign_idx1 on arraydesign (manufacturer_id);
  35270. create index arraydesign_idx2 on arraydesign (platformtype_id);
  35271. create index arraydesign_idx3 on arraydesign (substratetype_id);
  35272. create index arraydesign_idx4 on arraydesign (protocol_id);
  35273. create index arraydesign_idx5 on arraydesign (dbxref_id);
  35274. COMMENT ON TABLE arraydesign IS 'General properties about an array.
  35275. An array is a template used to generate physical slides, etc. It
  35276. contains layout information, as well as global array properties, such
  35277. as material (glass, nylon) and spot dimensions (in rows/columns).';
  35278. -- ================================================
  35279. -- TABLE: arraydesignprop
  35280. -- ================================================
  35281. create table arraydesignprop (
  35282. arraydesignprop_id serial not null,
  35283. primary key (arraydesignprop_id),
  35284. arraydesign_id int not null,
  35285. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  35286. type_id int not null,
  35287. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35288. value text null,
  35289. rank int not null default 0,
  35290. constraint arraydesignprop_c1 unique (arraydesign_id,type_id,rank)
  35291. );
  35292. create index arraydesignprop_idx1 on arraydesignprop (arraydesign_id);
  35293. create index arraydesignprop_idx2 on arraydesignprop (type_id);
  35294. COMMENT ON TABLE arraydesignprop IS 'Extra array design properties that are not accounted for in arraydesign.';
  35295. -- ================================================
  35296. -- TABLE: assay
  35297. -- ================================================
  35298. create table assay (
  35299. assay_id serial not null,
  35300. primary key (assay_id),
  35301. arraydesign_id int not null,
  35302. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  35303. protocol_id int null,
  35304. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  35305. assaydate timestamp null default current_timestamp,
  35306. arrayidentifier text null,
  35307. arraybatchidentifier text null,
  35308. operator_id int not null,
  35309. foreign key (operator_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  35310. dbxref_id int null,
  35311. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35312. name text null,
  35313. description text null,
  35314. constraint assay_c1 unique (name)
  35315. );
  35316. create index assay_idx1 on assay (arraydesign_id);
  35317. create index assay_idx2 on assay (protocol_id);
  35318. create index assay_idx3 on assay (operator_id);
  35319. create index assay_idx4 on assay (dbxref_id);
  35320. COMMENT ON TABLE assay IS 'An assay consists of a physical instance of
  35321. an array, combined with the conditions used to create the array
  35322. (protocols, technician information). The assay can be thought of as a hybridization.';
  35323. -- ================================================
  35324. -- TABLE: assayprop
  35325. -- ================================================
  35326. create table assayprop (
  35327. assayprop_id serial not null,
  35328. primary key (assayprop_id),
  35329. assay_id int not null,
  35330. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  35331. type_id int not null,
  35332. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35333. value text null,
  35334. rank int not null default 0,
  35335. constraint assayprop_c1 unique (assay_id,type_id,rank)
  35336. );
  35337. create index assayprop_idx1 on assayprop (assay_id);
  35338. create index assayprop_idx2 on assayprop (type_id);
  35339. COMMENT ON TABLE assayprop IS 'Extra assay properties that are not accounted for in assay.';
  35340. -- ================================================
  35341. -- TABLE: assay_project
  35342. -- ================================================
  35343. create table assay_project (
  35344. assay_project_id serial not null,
  35345. primary key (assay_project_id),
  35346. assay_id int not null,
  35347. foreign key (assay_id) references assay (assay_id) INITIALLY DEFERRED,
  35348. project_id int not null,
  35349. foreign key (project_id) references project (project_id) INITIALLY DEFERRED,
  35350. constraint assay_project_c1 unique (assay_id,project_id)
  35351. );
  35352. create index assay_project_idx1 on assay_project (assay_id);
  35353. create index assay_project_idx2 on assay_project (project_id);
  35354. COMMENT ON TABLE assay_project IS 'Link assays to projects.';
  35355. -- ================================================
  35356. -- TABLE: biomaterial
  35357. -- ================================================
  35358. create table biomaterial (
  35359. biomaterial_id serial not null,
  35360. primary key (biomaterial_id),
  35361. taxon_id int null,
  35362. foreign key (taxon_id) references organism (organism_id) on delete set null INITIALLY DEFERRED,
  35363. biosourceprovider_id int null,
  35364. foreign key (biosourceprovider_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  35365. dbxref_id int null,
  35366. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35367. name text null,
  35368. description text null,
  35369. constraint biomaterial_c1 unique (name)
  35370. );
  35371. create index biomaterial_idx1 on biomaterial (taxon_id);
  35372. create index biomaterial_idx2 on biomaterial (biosourceprovider_id);
  35373. create index biomaterial_idx3 on biomaterial (dbxref_id);
  35374. 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.';
  35375. -- ================================================
  35376. -- TABLE: biomaterial_relationship
  35377. -- ================================================
  35378. create table biomaterial_relationship (
  35379. biomaterial_relationship_id serial not null,
  35380. primary key (biomaterial_relationship_id),
  35381. subject_id int not null,
  35382. foreign key (subject_id) references biomaterial (biomaterial_id) INITIALLY DEFERRED,
  35383. type_id int not null,
  35384. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  35385. object_id int not null,
  35386. foreign key (object_id) references biomaterial (biomaterial_id) INITIALLY DEFERRED,
  35387. constraint biomaterial_relationship_c1 unique (subject_id,object_id,type_id)
  35388. );
  35389. create index biomaterial_relationship_idx1 on biomaterial_relationship (subject_id);
  35390. create index biomaterial_relationship_idx2 on biomaterial_relationship (object_id);
  35391. create index biomaterial_relationship_idx3 on biomaterial_relationship (type_id);
  35392. 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.';
  35393. -- ================================================
  35394. -- TABLE: biomaterialprop
  35395. -- ================================================
  35396. create table biomaterialprop (
  35397. biomaterialprop_id serial not null,
  35398. primary key (biomaterialprop_id),
  35399. biomaterial_id int not null,
  35400. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  35401. type_id int not null,
  35402. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35403. value text null,
  35404. rank int not null default 0,
  35405. constraint biomaterialprop_c1 unique (biomaterial_id,type_id,rank)
  35406. );
  35407. create index biomaterialprop_idx1 on biomaterialprop (biomaterial_id);
  35408. create index biomaterialprop_idx2 on biomaterialprop (type_id);
  35409. COMMENT ON TABLE biomaterialprop IS 'Extra biomaterial properties that are not accounted for in biomaterial.';
  35410. -- ================================================
  35411. -- TABLE: biomaterial_dbxref
  35412. -- ================================================
  35413. create table biomaterial_dbxref (
  35414. biomaterial_dbxref_id serial not null,
  35415. primary key (biomaterial_dbxref_id),
  35416. biomaterial_id int not null,
  35417. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  35418. dbxref_id int not null,
  35419. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  35420. constraint biomaterial_dbxref_c1 unique (biomaterial_id,dbxref_id)
  35421. );
  35422. create index biomaterial_dbxref_idx1 on biomaterial_dbxref (biomaterial_id);
  35423. create index biomaterial_dbxref_idx2 on biomaterial_dbxref (dbxref_id);
  35424. -- ================================================
  35425. -- TABLE: treatment
  35426. -- ================================================
  35427. create table treatment (
  35428. treatment_id serial not null,
  35429. primary key (treatment_id),
  35430. rank int not null default 0,
  35431. biomaterial_id int not null,
  35432. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  35433. type_id int not null,
  35434. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35435. protocol_id int null,
  35436. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  35437. name text null
  35438. );
  35439. create index treatment_idx1 on treatment (biomaterial_id);
  35440. create index treatment_idx2 on treatment (type_id);
  35441. create index treatment_idx3 on treatment (protocol_id);
  35442. COMMENT ON TABLE treatment IS 'A biomaterial may undergo multiple
  35443. treatments. Examples of treatments: apoxia, fluorophore and biotin labeling.';
  35444. -- ================================================
  35445. -- TABLE: biomaterial_treatment
  35446. -- ================================================
  35447. create table biomaterial_treatment (
  35448. biomaterial_treatment_id serial not null,
  35449. primary key (biomaterial_treatment_id),
  35450. biomaterial_id int not null,
  35451. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  35452. treatment_id int not null,
  35453. foreign key (treatment_id) references treatment (treatment_id) on delete cascade INITIALLY DEFERRED,
  35454. unittype_id int null,
  35455. foreign key (unittype_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  35456. value float(15) null,
  35457. rank int not null default 0,
  35458. constraint biomaterial_treatment_c1 unique (biomaterial_id,treatment_id)
  35459. );
  35460. create index biomaterial_treatment_idx1 on biomaterial_treatment (biomaterial_id);
  35461. create index biomaterial_treatment_idx2 on biomaterial_treatment (treatment_id);
  35462. create index biomaterial_treatment_idx3 on biomaterial_treatment (unittype_id);
  35463. COMMENT ON TABLE biomaterial_treatment IS 'Link biomaterials to treatments. Treatments have an order of operations (rank), and associated measurements (unittype_id, value).';
  35464. -- ================================================
  35465. -- TABLE: assay_biomaterial
  35466. -- ================================================
  35467. create table assay_biomaterial (
  35468. assay_biomaterial_id serial not null,
  35469. primary key (assay_biomaterial_id),
  35470. assay_id int not null,
  35471. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  35472. biomaterial_id int not null,
  35473. foreign key (biomaterial_id) references biomaterial (biomaterial_id) on delete cascade INITIALLY DEFERRED,
  35474. channel_id int null,
  35475. foreign key (channel_id) references channel (channel_id) on delete set null INITIALLY DEFERRED,
  35476. rank int not null default 0,
  35477. constraint assay_biomaterial_c1 unique (assay_id,biomaterial_id,channel_id,rank)
  35478. );
  35479. create index assay_biomaterial_idx1 on assay_biomaterial (assay_id);
  35480. create index assay_biomaterial_idx2 on assay_biomaterial (biomaterial_id);
  35481. create index assay_biomaterial_idx3 on assay_biomaterial (channel_id);
  35482. 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).';
  35483. -- ================================================
  35484. -- TABLE: acquisition
  35485. -- ================================================
  35486. create table acquisition (
  35487. acquisition_id serial not null,
  35488. primary key (acquisition_id),
  35489. assay_id int not null,
  35490. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  35491. protocol_id int null,
  35492. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  35493. channel_id int null,
  35494. foreign key (channel_id) references channel (channel_id) on delete set null INITIALLY DEFERRED,
  35495. acquisitiondate timestamp null default current_timestamp,
  35496. name text null,
  35497. uri text null,
  35498. constraint acquisition_c1 unique (name)
  35499. );
  35500. create index acquisition_idx1 on acquisition (assay_id);
  35501. create index acquisition_idx2 on acquisition (protocol_id);
  35502. create index acquisition_idx3 on acquisition (channel_id);
  35503. 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.';
  35504. -- ================================================
  35505. -- TABLE: acquisitionprop
  35506. -- ================================================
  35507. create table acquisitionprop (
  35508. acquisitionprop_id serial not null,
  35509. primary key (acquisitionprop_id),
  35510. acquisition_id int not null,
  35511. foreign key (acquisition_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  35512. type_id int not null,
  35513. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35514. value text null,
  35515. rank int not null default 0,
  35516. constraint acquisitionprop_c1 unique (acquisition_id,type_id,rank)
  35517. );
  35518. create index acquisitionprop_idx1 on acquisitionprop (acquisition_id);
  35519. create index acquisitionprop_idx2 on acquisitionprop (type_id);
  35520. COMMENT ON TABLE acquisitionprop IS 'Parameters associated with image acquisition.';
  35521. -- ================================================
  35522. -- TABLE: acquisition_relationship
  35523. -- ================================================
  35524. create table acquisition_relationship (
  35525. acquisition_relationship_id serial not null,
  35526. primary key (acquisition_relationship_id),
  35527. subject_id int not null,
  35528. foreign key (subject_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  35529. type_id int not null,
  35530. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35531. object_id int not null,
  35532. foreign key (object_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  35533. value text null,
  35534. rank int not null default 0,
  35535. constraint acquisition_relationship_c1 unique (subject_id,object_id,type_id,rank)
  35536. );
  35537. create index acquisition_relationship_idx1 on acquisition_relationship (subject_id);
  35538. create index acquisition_relationship_idx2 on acquisition_relationship (type_id);
  35539. create index acquisition_relationship_idx3 on acquisition_relationship (object_id);
  35540. 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.';
  35541. -- ================================================
  35542. -- TABLE: quantification
  35543. -- ================================================
  35544. create table quantification (
  35545. quantification_id serial not null,
  35546. primary key (quantification_id),
  35547. acquisition_id int not null,
  35548. foreign key (acquisition_id) references acquisition (acquisition_id) on delete cascade INITIALLY DEFERRED,
  35549. operator_id int null,
  35550. foreign key (operator_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  35551. protocol_id int null,
  35552. foreign key (protocol_id) references protocol (protocol_id) on delete set null INITIALLY DEFERRED,
  35553. analysis_id int not null,
  35554. foreign key (analysis_id) references analysis (analysis_id) on delete cascade INITIALLY DEFERRED,
  35555. quantificationdate timestamp null default current_timestamp,
  35556. name text null,
  35557. uri text null,
  35558. constraint quantification_c1 unique (name,analysis_id)
  35559. );
  35560. create index quantification_idx1 on quantification (acquisition_id);
  35561. create index quantification_idx2 on quantification (operator_id);
  35562. create index quantification_idx3 on quantification (protocol_id);
  35563. create index quantification_idx4 on quantification (analysis_id);
  35564. COMMENT ON TABLE quantification IS 'Quantification is the transformation of an image acquisition to numeric data. This typically involves statistical procedures.';
  35565. -- ================================================
  35566. -- TABLE: quantificationprop
  35567. -- ================================================
  35568. create table quantificationprop (
  35569. quantificationprop_id serial not null,
  35570. primary key (quantificationprop_id),
  35571. quantification_id int not null,
  35572. foreign key (quantification_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  35573. type_id int not null,
  35574. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35575. value text null,
  35576. rank int not null default 0,
  35577. constraint quantificationprop_c1 unique (quantification_id,type_id,rank)
  35578. );
  35579. create index quantificationprop_idx1 on quantificationprop (quantification_id);
  35580. create index quantificationprop_idx2 on quantificationprop (type_id);
  35581. COMMENT ON TABLE quantificationprop IS 'Extra quantification properties that are not accounted for in quantification.';
  35582. -- ================================================
  35583. -- TABLE: quantification_relationship
  35584. -- ================================================
  35585. create table quantification_relationship (
  35586. quantification_relationship_id serial not null,
  35587. primary key (quantification_relationship_id),
  35588. subject_id int not null,
  35589. foreign key (subject_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  35590. type_id int not null,
  35591. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35592. object_id int not null,
  35593. foreign key (object_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  35594. constraint quantification_relationship_c1 unique (subject_id,object_id,type_id)
  35595. );
  35596. create index quantification_relationship_idx1 on quantification_relationship (subject_id);
  35597. create index quantification_relationship_idx2 on quantification_relationship (type_id);
  35598. create index quantification_relationship_idx3 on quantification_relationship (object_id);
  35599. 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.';
  35600. -- ================================================
  35601. -- TABLE: control
  35602. -- ================================================
  35603. create table control (
  35604. control_id serial not null,
  35605. primary key (control_id),
  35606. type_id int not null,
  35607. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35608. assay_id int not null,
  35609. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  35610. tableinfo_id int not null,
  35611. foreign key (tableinfo_id) references tableinfo (tableinfo_id) on delete cascade INITIALLY DEFERRED,
  35612. row_id int not null,
  35613. name text null,
  35614. value text null,
  35615. rank int not null default 0
  35616. );
  35617. create index control_idx1 on control (type_id);
  35618. create index control_idx2 on control (assay_id);
  35619. create index control_idx3 on control (tableinfo_id);
  35620. create index control_idx4 on control (row_id);
  35621. COMMENT ON TABLE control IS NULL;
  35622. -- ================================================
  35623. -- TABLE: element
  35624. -- ================================================
  35625. create table element (
  35626. element_id serial not null,
  35627. primary key (element_id),
  35628. feature_id int null,
  35629. foreign key (feature_id) references feature (feature_id) on delete set null INITIALLY DEFERRED,
  35630. arraydesign_id int not null,
  35631. foreign key (arraydesign_id) references arraydesign (arraydesign_id) on delete cascade INITIALLY DEFERRED,
  35632. type_id int null,
  35633. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  35634. dbxref_id int null,
  35635. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35636. constraint element_c1 unique (feature_id,arraydesign_id)
  35637. );
  35638. create index element_idx1 on element (feature_id);
  35639. create index element_idx2 on element (arraydesign_id);
  35640. create index element_idx3 on element (type_id);
  35641. create index element_idx4 on element (dbxref_id);
  35642. COMMENT ON TABLE element IS 'Represents a feature of the array. This is typically a region of the array coated or bound to DNA.';
  35643. -- ================================================
  35644. -- TABLE: element_result
  35645. -- ================================================
  35646. create table elementresult (
  35647. elementresult_id serial not null,
  35648. primary key (elementresult_id),
  35649. element_id int not null,
  35650. foreign key (element_id) references element (element_id) on delete cascade INITIALLY DEFERRED,
  35651. quantification_id int not null,
  35652. foreign key (quantification_id) references quantification (quantification_id) on delete cascade INITIALLY DEFERRED,
  35653. signal float not null,
  35654. constraint elementresult_c1 unique (element_id,quantification_id)
  35655. );
  35656. create index elementresult_idx1 on elementresult (element_id);
  35657. create index elementresult_idx2 on elementresult (quantification_id);
  35658. create index elementresult_idx3 on elementresult (signal);
  35659. 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.';
  35660. -- ================================================
  35661. -- TABLE: element_relationship
  35662. -- ================================================
  35663. create table element_relationship (
  35664. element_relationship_id serial not null,
  35665. primary key (element_relationship_id),
  35666. subject_id int not null,
  35667. foreign key (subject_id) references element (element_id) INITIALLY DEFERRED,
  35668. type_id int not null,
  35669. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  35670. object_id int not null,
  35671. foreign key (object_id) references element (element_id) INITIALLY DEFERRED,
  35672. value text null,
  35673. rank int not null default 0,
  35674. constraint element_relationship_c1 unique (subject_id,object_id,type_id,rank)
  35675. );
  35676. create index element_relationship_idx1 on element_relationship (subject_id);
  35677. create index element_relationship_idx2 on element_relationship (type_id);
  35678. create index element_relationship_idx3 on element_relationship (object_id);
  35679. create index element_relationship_idx4 on element_relationship (value);
  35680. 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.';
  35681. -- ================================================
  35682. -- TABLE: elementresult_relationship
  35683. -- ================================================
  35684. create table elementresult_relationship (
  35685. elementresult_relationship_id serial not null,
  35686. primary key (elementresult_relationship_id),
  35687. subject_id int not null,
  35688. foreign key (subject_id) references elementresult (elementresult_id) INITIALLY DEFERRED,
  35689. type_id int not null,
  35690. foreign key (type_id) references cvterm (cvterm_id) INITIALLY DEFERRED,
  35691. object_id int not null,
  35692. foreign key (object_id) references elementresult (elementresult_id) INITIALLY DEFERRED,
  35693. value text null,
  35694. rank int not null default 0,
  35695. constraint elementresult_relationship_c1 unique (subject_id,object_id,type_id,rank)
  35696. );
  35697. create index elementresult_relationship_idx1 on elementresult_relationship (subject_id);
  35698. create index elementresult_relationship_idx2 on elementresult_relationship (type_id);
  35699. create index elementresult_relationship_idx3 on elementresult_relationship (object_id);
  35700. create index elementresult_relationship_idx4 on elementresult_relationship (value);
  35701. 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.';
  35702. -- ================================================
  35703. -- TABLE: study
  35704. -- ================================================
  35705. create table study (
  35706. study_id serial not null,
  35707. primary key (study_id),
  35708. contact_id int not null,
  35709. foreign key (contact_id) references contact (contact_id) on delete cascade INITIALLY DEFERRED,
  35710. pub_id int null,
  35711. foreign key (pub_id) references pub (pub_id) on delete set null INITIALLY DEFERRED,
  35712. dbxref_id int null,
  35713. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35714. name text not null,
  35715. description text null,
  35716. constraint study_c1 unique (name)
  35717. );
  35718. create index study_idx1 on study (contact_id);
  35719. create index study_idx2 on study (pub_id);
  35720. create index study_idx3 on study (dbxref_id);
  35721. COMMENT ON TABLE study IS NULL;
  35722. -- ================================================
  35723. -- TABLE: study_assay
  35724. -- ================================================
  35725. create table study_assay (
  35726. study_assay_id serial not null,
  35727. primary key (study_assay_id),
  35728. study_id int not null,
  35729. foreign key (study_id) references study (study_id) on delete cascade INITIALLY DEFERRED,
  35730. assay_id int not null,
  35731. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  35732. constraint study_assay_c1 unique (study_id,assay_id)
  35733. );
  35734. create index study_assay_idx1 on study_assay (study_id);
  35735. create index study_assay_idx2 on study_assay (assay_id);
  35736. COMMENT ON TABLE study_assay IS NULL;
  35737. -- ================================================
  35738. -- TABLE: studydesign
  35739. -- ================================================
  35740. create table studydesign (
  35741. studydesign_id serial not null,
  35742. primary key (studydesign_id),
  35743. study_id int not null,
  35744. foreign key (study_id) references study (study_id) on delete cascade INITIALLY DEFERRED,
  35745. description text null
  35746. );
  35747. create index studydesign_idx1 on studydesign (study_id);
  35748. COMMENT ON TABLE studydesign IS NULL;
  35749. -- ================================================
  35750. -- TABLE: studydesignprop
  35751. -- ================================================
  35752. create table studydesignprop (
  35753. studydesignprop_id serial not null,
  35754. primary key (studydesignprop_id),
  35755. studydesign_id int not null,
  35756. foreign key (studydesign_id) references studydesign (studydesign_id) on delete cascade INITIALLY DEFERRED,
  35757. type_id int not null,
  35758. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35759. value text null,
  35760. rank int not null default 0,
  35761. constraint studydesignprop_c1 unique (studydesign_id,type_id,rank)
  35762. );
  35763. create index studydesignprop_idx1 on studydesignprop (studydesign_id);
  35764. create index studydesignprop_idx2 on studydesignprop (type_id);
  35765. COMMENT ON TABLE studydesignprop IS NULL;
  35766. -- ================================================
  35767. -- TABLE: studyfactor
  35768. -- ================================================
  35769. create table studyfactor (
  35770. studyfactor_id serial not null,
  35771. primary key (studyfactor_id),
  35772. studydesign_id int not null,
  35773. foreign key (studydesign_id) references studydesign (studydesign_id) on delete cascade INITIALLY DEFERRED,
  35774. type_id int null,
  35775. foreign key (type_id) references cvterm (cvterm_id) on delete set null INITIALLY DEFERRED,
  35776. name text not null,
  35777. description text null
  35778. );
  35779. create index studyfactor_idx1 on studyfactor (studydesign_id);
  35780. create index studyfactor_idx2 on studyfactor (type_id);
  35781. COMMENT ON TABLE studyfactor IS NULL;
  35782. -- ================================================
  35783. -- TABLE: studyfactorvalue
  35784. -- ================================================
  35785. create table studyfactorvalue (
  35786. studyfactorvalue_id serial not null,
  35787. primary key (studyfactorvalue_id),
  35788. studyfactor_id int not null,
  35789. foreign key (studyfactor_id) references studyfactor (studyfactor_id) on delete cascade INITIALLY DEFERRED,
  35790. assay_id int not null,
  35791. foreign key (assay_id) references assay (assay_id) on delete cascade INITIALLY DEFERRED,
  35792. factorvalue text null,
  35793. name text null,
  35794. rank int not null default 0
  35795. );
  35796. create index studyfactorvalue_idx1 on studyfactorvalue (studyfactor_id);
  35797. create index studyfactorvalue_idx2 on studyfactorvalue (assay_id);
  35798. COMMENT ON TABLE studyfactorvalue IS NULL;
  35799. --
  35800. -- studyprop and studyprop_feature added for Kara Dolinski's group
  35801. --
  35802. -- Here is her description of it:
  35803. --Both of the tables are used for our YFGdb project
  35804. --(http://yfgdb.princeton.edu/), which uses chado.
  35805. --
  35806. --Here is how we use those tables, using the following example:
  35807. --
  35808. --http://yfgdb.princeton.edu/cgi-bin/display.cgi?db=pmid&amp;id=15575969
  35809. --
  35810. --The above data set is represented as a row in the STUDY table. We have
  35811. --lots of attributes that we want to store about each STUDY (status, etc)
  35812. --and in the official schema, the only prop table we could use was the
  35813. --STUDYDESIGN_PROP table. This forced us to go through the STUDYDESIGN
  35814. --table when we often have no real data to store in that table (small
  35815. --percent of our collection use MAGE-ML unfortunately, and even fewer
  35816. --provide all the data in the MAGE model, of which STUDYDESIGN is a vestige).
  35817. --So, we created a STUDYPROP table. I'd think this table would be
  35818. --generally useful to people storing various types of data sets via the
  35819. --STUDY table.
  35820. --
  35821. --The other new table is STUDYPROP_FEATURE. This basically allows us to
  35822. --group features together per study. For example, we can store microarray
  35823. --clustering results by saying that the STUDYPROP type is 'cluster' (via
  35824. --type_id -> CVTERM of course), the value is 'cluster id 123', and then
  35825. --that cluster would be associated with all the features that are in that
  35826. --cluster via STUDYPROP_FEATURE. Adding type_id to STUDYPROP_FEATURE is
  35827. -- fine by us!
  35828. --
  35829. --studyprop
  35830. create table studyprop (
  35831. studyprop_id serial not null,
  35832. primary key (studyprop_id),
  35833. study_id int not null,
  35834. foreign key (study_id) references study (study_id) on delete cascade,
  35835. type_id int not null,
  35836. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  35837. value text null,
  35838. rank int not null default 0,
  35839. unique (study_id,type_id,rank)
  35840. );
  35841. create index studyprop_idx1 on studyprop (study_id);
  35842. create index studyprop_idx2 on studyprop (type_id);
  35843. --studyprop_feature
  35844. CREATE TABLE studyprop_feature (
  35845. studyprop_feature_id serial NOT NULL,
  35846. primary key (studyprop_feature_id),
  35847. studyprop_id integer NOT NULL,
  35848. foreign key (studyprop_id) references studyprop(studyprop_id) on delete cascade,
  35849. feature_id integer NOT NULL,
  35850. foreign key (feature_id) references feature (feature_id) on delete cascade,
  35851. type_id integer,
  35852. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  35853. unique (studyprop_id, feature_id)
  35854. );
  35855. create index studyprop_feature_idx1 on studyprop_feature (studyprop_id);
  35856. create index studyprop_feature_idx2 on studyprop_feature (feature_id);
  35857. -- $Id: stock.sql,v 1.7 2007-03-23 15:18:03 scottcain Exp $
  35858. -- ==========================================
  35859. -- Chado stock module
  35860. --
  35861. -- DEPENDENCIES
  35862. -- ============
  35863. -- :import cvterm from cv
  35864. -- :import pub from pub
  35865. -- :import dbxref from general
  35866. -- :import organism from organism
  35867. -- :import genotype from genetic
  35868. -- :import contact from contact
  35869. -- ================================================
  35870. -- TABLE: stock
  35871. -- ================================================
  35872. create table stock (
  35873. stock_id serial not null,
  35874. primary key (stock_id),
  35875. dbxref_id int,
  35876. foreign key (dbxref_id) references dbxref (dbxref_id) on delete set null INITIALLY DEFERRED,
  35877. organism_id int,
  35878. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  35879. name varchar(255),
  35880. uniquename text not null,
  35881. description text,
  35882. type_id int not null,
  35883. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35884. is_obsolete boolean not null default 'false',
  35885. constraint stock_c1 unique (organism_id,uniquename,type_id)
  35886. );
  35887. create index stock_name_ind1 on stock (name);
  35888. create index stock_idx1 on stock (dbxref_id);
  35889. create index stock_idx2 on stock (organism_id);
  35890. create index stock_idx3 on stock (type_id);
  35891. create index stock_idx4 on stock (uniquename);
  35892. COMMENT ON TABLE stock IS 'Any stock can be globally identified by the
  35893. 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.';
  35894. 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.';
  35895. 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.';
  35896. 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.';
  35897. COMMENT ON COLUMN stock.description IS 'The description is the genetic description provided in the stock list.';
  35898. COMMENT ON COLUMN stock.name IS 'The name is a human-readable local name for a stock.';
  35899. -- ================================================
  35900. -- TABLE: stock_pub
  35901. -- ================================================
  35902. create table stock_pub (
  35903. stock_pub_id serial not null,
  35904. primary key (stock_pub_id),
  35905. stock_id int not null,
  35906. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35907. pub_id int not null,
  35908. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35909. constraint stock_pub_c1 unique (stock_id,pub_id)
  35910. );
  35911. create index stock_pub_idx1 on stock_pub (stock_id);
  35912. create index stock_pub_idx2 on stock_pub (pub_id);
  35913. COMMENT ON TABLE stock_pub IS 'Provenance. Linking table between stocks and, for example, a stocklist computer file.';
  35914. -- ================================================
  35915. -- TABLE: stockprop
  35916. -- ================================================
  35917. create table stockprop (
  35918. stockprop_id serial not null,
  35919. primary key (stockprop_id),
  35920. stock_id int not null,
  35921. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35922. type_id int not null,
  35923. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35924. value text null,
  35925. rank int not null default 0,
  35926. constraint stockprop_c1 unique (stock_id,type_id,rank)
  35927. );
  35928. create index stockprop_idx1 on stockprop (stock_id);
  35929. create index stockprop_idx2 on stockprop (type_id);
  35930. COMMENT ON TABLE stockprop IS 'A stock can have any number of
  35931. slot-value property tags attached to it. This is an alternative to
  35932. hardcoding a list of columns in the relational schema, and is
  35933. completely extensible. There is a unique constraint, stockprop_c1, for
  35934. the combination of stock_id, rank, and type_id. Multivalued property-value pairs must be differentiated by rank.';
  35935. -- ================================================
  35936. -- TABLE: stockprop_pub
  35937. -- ================================================
  35938. create table stockprop_pub (
  35939. stockprop_pub_id serial not null,
  35940. primary key (stockprop_pub_id),
  35941. stockprop_id int not null,
  35942. foreign key (stockprop_id) references stockprop (stockprop_id) on delete cascade INITIALLY DEFERRED,
  35943. pub_id int not null,
  35944. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35945. constraint stockprop_pub_c1 unique (stockprop_id,pub_id)
  35946. );
  35947. create index stockprop_pub_idx1 on stockprop_pub (stockprop_id);
  35948. create index stockprop_pub_idx2 on stockprop_pub (pub_id);
  35949. COMMENT ON TABLE stockprop_pub IS 'Provenance. Any stockprop assignment can optionally be supported by a publication.';
  35950. -- ================================================
  35951. -- TABLE: stock_relationship
  35952. -- ================================================
  35953. create table stock_relationship (
  35954. stock_relationship_id serial not null,
  35955. primary key (stock_relationship_id),
  35956. subject_id int not null,
  35957. foreign key (subject_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35958. object_id int not null,
  35959. foreign key (object_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  35960. type_id int not null,
  35961. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  35962. value text null,
  35963. rank int not null default 0,
  35964. constraint stock_relationship_c1 unique (subject_id,object_id,type_id,rank)
  35965. );
  35966. create index stock_relationship_idx1 on stock_relationship (subject_id);
  35967. create index stock_relationship_idx2 on stock_relationship (object_id);
  35968. create index stock_relationship_idx3 on stock_relationship (type_id);
  35969. 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.';
  35970. 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.';
  35971. 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.';
  35972. 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.';
  35973. COMMENT ON COLUMN stock_relationship.value IS 'stock_relationship.value is for additional notes or comments.';
  35974. -- ================================================
  35975. -- TABLE: stock_relationship_cvterm
  35976. -- ================================================
  35977. CREATE TABLE stock_relationship_cvterm (
  35978. stock_relationship_cvterm_id SERIAL NOT NULL,
  35979. PRIMARY KEY (stock_relationship_cvterm_id),
  35980. stock_relationship_id integer NOT NULL,
  35981. FOREIGN KEY (stock_relationship_id) references stock_relationship (stock_relationship_id) ON DELETE CASCADE INITIALLY DEFERRED,
  35982. cvterm_id integer NOT NULL,
  35983. FOREIGN KEY (cvterm_id) REFERENCES cvterm (cvterm_id) ON DELETE RESTRICT,
  35984. pub_id integer,
  35985. FOREIGN KEY (pub_id) REFERENCES pub (pub_id) ON DELETE RESTRICT
  35986. );
  35987. 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';
  35988. -- ================================================
  35989. -- TABLE: stock_relationship_pub
  35990. -- ================================================
  35991. create table stock_relationship_pub (
  35992. stock_relationship_pub_id serial not null,
  35993. primary key (stock_relationship_pub_id),
  35994. stock_relationship_id integer not null,
  35995. foreign key (stock_relationship_id) references stock_relationship (stock_relationship_id) on delete cascade INITIALLY DEFERRED,
  35996. pub_id int not null,
  35997. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  35998. constraint stock_relationship_pub_c1 unique (stock_relationship_id,pub_id)
  35999. );
  36000. create index stock_relationship_pub_idx1 on stock_relationship_pub (stock_relationship_id);
  36001. create index stock_relationship_pub_idx2 on stock_relationship_pub (pub_id);
  36002. COMMENT ON TABLE stock_relationship_pub IS 'Provenance. Attach optional evidence to a stock_relationship in the form of a publication.';
  36003. -- ================================================
  36004. -- TABLE: stock_dbxref
  36005. -- ================================================
  36006. create table stock_dbxref (
  36007. stock_dbxref_id serial not null,
  36008. primary key (stock_dbxref_id),
  36009. stock_id int not null,
  36010. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  36011. dbxref_id int not null,
  36012. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  36013. is_current boolean not null default 'true',
  36014. constraint stock_dbxref_c1 unique (stock_id,dbxref_id)
  36015. );
  36016. create index stock_dbxref_idx1 on stock_dbxref (stock_id);
  36017. create index stock_dbxref_idx2 on stock_dbxref (dbxref_id);
  36018. 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.';
  36019. 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.';
  36020. -- ================================================
  36021. -- TABLE: stock_cvterm
  36022. -- ================================================
  36023. create table stock_cvterm (
  36024. stock_cvterm_id serial not null,
  36025. primary key (stock_cvterm_id),
  36026. stock_id int not null,
  36027. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  36028. cvterm_id int not null,
  36029. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36030. pub_id int not null,
  36031. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36032. is_not boolean not null default false,
  36033. rank integer not null default 0,
  36034. constraint stock_cvterm_c1 unique (stock_id,cvterm_id,pub_id,rank)
  36035. );
  36036. create index stock_cvterm_idx1 on stock_cvterm (stock_id);
  36037. create index stock_cvterm_idx2 on stock_cvterm (cvterm_id);
  36038. create index stock_cvterm_idx3 on stock_cvterm (pub_id);
  36039. 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.';
  36040. -- ================================================
  36041. -- TABLE: stock_cvtermprop
  36042. -- ================================================
  36043. create table stock_cvtermprop (
  36044. stock_cvtermprop_id serial not null,
  36045. primary key (stock_cvtermprop_id),
  36046. stock_cvterm_id int not null,
  36047. foreign key (stock_cvterm_id) references stock_cvterm (stock_cvterm_id) on delete cascade,
  36048. type_id int not null,
  36049. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36050. value text null,
  36051. rank int not null default 0,
  36052. constraint stock_cvtermprop_c1 unique (stock_cvterm_id,type_id,rank)
  36053. );
  36054. create index stock_cvtermprop_idx1 on stock_cvtermprop (stock_cvterm_id);
  36055. create index stock_cvtermprop_idx2 on stock_cvtermprop (type_id);
  36056. COMMENT ON TABLE stock_cvtermprop IS 'Extensible properties for
  36057. stock to cvterm associations. Examples: GO evidence codes;
  36058. qualifiers; metadata such as the date on which the entry was curated
  36059. and the source of the association. See the stockprop table for
  36060. meanings of type_id, value and rank.';
  36061. COMMENT ON COLUMN stock_cvtermprop.type_id IS 'The name of the
  36062. property/slot is a cvterm. The meaning of the property is defined in
  36063. that cvterm. cvterms may come from the OBO evidence code cv.';
  36064. COMMENT ON COLUMN stock_cvtermprop.value IS 'The value of the
  36065. property, represented as text. Numeric values are converted to their
  36066. text representation. This is less efficient than using native database
  36067. types, but is easier to query.';
  36068. COMMENT ON COLUMN stock_cvtermprop.rank IS 'Property-Value
  36069. ordering. Any stock_cvterm can have multiple values for any particular
  36070. property type - these are ordered in a list using rank, counting from
  36071. zero. For properties that are single-valued rather than multi-valued,
  36072. the default 0 value should be used.';
  36073. -- ================================================
  36074. -- TABLE: stock_genotype
  36075. -- ================================================
  36076. create table stock_genotype (
  36077. stock_genotype_id serial not null,
  36078. primary key (stock_genotype_id),
  36079. stock_id int not null,
  36080. foreign key (stock_id) references stock (stock_id) on delete cascade,
  36081. genotype_id int not null,
  36082. foreign key (genotype_id) references genotype (genotype_id) on delete cascade,
  36083. constraint stock_genotype_c1 unique (stock_id, genotype_id)
  36084. );
  36085. create index stock_genotype_idx1 on stock_genotype (stock_id);
  36086. create index stock_genotype_idx2 on stock_genotype (genotype_id);
  36087. COMMENT ON TABLE stock_genotype IS 'Simple table linking a stock to
  36088. a genotype. Features with genotypes can be linked to stocks thru feature_genotype -> genotype -> stock_genotype -> stock.';
  36089. -- ================================================
  36090. -- TABLE: stockcollection
  36091. -- ================================================
  36092. create table stockcollection (
  36093. stockcollection_id serial not null,
  36094. primary key (stockcollection_id),
  36095. type_id int not null,
  36096. foreign key (type_id) references cvterm (cvterm_id) on delete cascade,
  36097. contact_id int null,
  36098. foreign key (contact_id) references contact (contact_id) on delete set null INITIALLY DEFERRED,
  36099. name varchar(255),
  36100. uniquename text not null,
  36101. constraint stockcollection_c1 unique (uniquename,type_id)
  36102. );
  36103. create index stockcollection_name_ind1 on stockcollection (name);
  36104. create index stockcollection_idx1 on stockcollection (contact_id);
  36105. create index stockcollection_idx2 on stockcollection (type_id);
  36106. create index stockcollection_idx3 on stockcollection (uniquename);
  36107. COMMENT ON TABLE stockcollection IS 'The lab or stock center distributing the stocks in their collection.';
  36108. COMMENT ON COLUMN stockcollection.uniquename IS 'uniqename is the value of the collection cv.';
  36109. COMMENT ON COLUMN stockcollection.type_id IS 'type_id is the collection type cv.';
  36110. COMMENT ON COLUMN stockcollection.name IS 'name is the collection.';
  36111. COMMENT ON COLUMN stockcollection.contact_id IS 'contact_id links to the contact information for the collection.';
  36112. -- ================================================
  36113. -- TABLE: stockcollectionprop
  36114. -- ================================================
  36115. create table stockcollectionprop (
  36116. stockcollectionprop_id serial not null,
  36117. primary key (stockcollectionprop_id),
  36118. stockcollection_id int not null,
  36119. foreign key (stockcollection_id) references stockcollection (stockcollection_id) on delete cascade INITIALLY DEFERRED,
  36120. type_id int not null,
  36121. foreign key (type_id) references cvterm (cvterm_id),
  36122. value text null,
  36123. rank int not null default 0,
  36124. constraint stockcollectionprop_c1 unique (stockcollection_id,type_id,rank)
  36125. );
  36126. create index stockcollectionprop_idx1 on stockcollectionprop (stockcollection_id);
  36127. create index stockcollectionprop_idx2 on stockcollectionprop (type_id);
  36128. COMMENT ON TABLE stockcollectionprop IS 'The table stockcollectionprop
  36129. contains the value of the stock collection such as website/email URLs;
  36130. the value of the stock collection order URLs.';
  36131. COMMENT ON COLUMN stockcollectionprop.type_id IS 'The cv for the type_id is "stockcollection property type".';
  36132. -- ================================================
  36133. -- TABLE: stockcollection_stock
  36134. -- ================================================
  36135. create table stockcollection_stock (
  36136. stockcollection_stock_id serial not null,
  36137. primary key (stockcollection_stock_id),
  36138. stockcollection_id int not null,
  36139. foreign key (stockcollection_id) references stockcollection (stockcollection_id) on delete cascade INITIALLY DEFERRED,
  36140. stock_id int not null,
  36141. foreign key (stock_id) references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  36142. constraint stockcollection_stock_c1 unique (stockcollection_id,stock_id)
  36143. );
  36144. create index stockcollection_stock_idx1 on stockcollection_stock (stockcollection_id);
  36145. create index stockcollection_stock_idx2 on stockcollection_stock (stock_id);
  36146. COMMENT ON TABLE stockcollection_stock IS 'stockcollection_stock links
  36147. a stock collection to the stocks which are contained in the collection.';
  36148. -- ================================================
  36149. -- TABLE: stock_dbxrefprop
  36150. -- ================================================
  36151. create table stock_dbxrefprop (
  36152. stock_dbxrefprop_id serial not null,
  36153. primary key (stock_dbxrefprop_id),
  36154. stock_dbxref_id int not null,
  36155. foreign key (stock_dbxref_id) references stock_dbxref (stock_dbxref_id) on delete cascade INITIALLY DEFERRED,
  36156. type_id int not null,
  36157. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36158. value text null,
  36159. rank int not null default 0,
  36160. constraint stock_dbxrefprop_c1 unique (stock_dbxref_id,type_id,rank)
  36161. );
  36162. create index stock_dbxrefprop_idx1 on stock_dbxrefprop (stock_dbxref_id);
  36163. create index stock_dbxrefprop_idx2 on stock_dbxrefprop (type_id);
  36164. COMMENT ON TABLE stock_dbxrefprop IS 'A stock_dbxref can have any number of
  36165. 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
  36166. hardcoding a list of columns in the relational schema, and is
  36167. completely extensible. There is a unique constraint, stock_dbxrefprop_c1, for
  36168. the combination of stock_dbxref_id, rank, and type_id. Multivalued property-value pairs must be differentiated by rank.';
  36169. -- $Id: library.sql,v 1.10 2008-03-25 16:00:43 emmert Exp $
  36170. -- =================================================================
  36171. -- Dependencies:
  36172. --
  36173. -- :import feature from sequence
  36174. -- :import synonym from sequence
  36175. -- :import cvterm from cv
  36176. -- :import pub from pub
  36177. -- :import organism from organism
  36178. -- =================================================================
  36179. -- ================================================
  36180. -- TABLE: library
  36181. -- ================================================
  36182. create table library (
  36183. library_id serial not null,
  36184. primary key (library_id),
  36185. organism_id int not null,
  36186. foreign key (organism_id) references organism (organism_id),
  36187. name varchar(255),
  36188. uniquename text not null,
  36189. type_id int not null,
  36190. foreign key (type_id) references cvterm (cvterm_id),
  36191. is_obsolete int not null default 0,
  36192. timeaccessioned timestamp not null default current_timestamp,
  36193. timelastmodified timestamp not null default current_timestamp,
  36194. constraint library_c1 unique (organism_id,uniquename,type_id)
  36195. );
  36196. create index library_name_ind1 on library(name);
  36197. create index library_idx1 on library (organism_id);
  36198. create index library_idx2 on library (type_id);
  36199. create index library_idx3 on library (uniquename);
  36200. COMMENT ON COLUMN library.type_id IS 'The type_id foreign key links
  36201. to a controlled vocabulary of library types. Examples of this would be: "cDNA_library" or "genomic_library"';
  36202. -- ================================================
  36203. -- TABLE: library_synonym
  36204. -- ================================================
  36205. create table library_synonym (
  36206. library_synonym_id serial not null,
  36207. primary key (library_synonym_id),
  36208. synonym_id int not null,
  36209. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  36210. library_id int not null,
  36211. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36212. pub_id int not null,
  36213. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36214. is_current boolean not null default 'true',
  36215. is_internal boolean not null default 'false',
  36216. constraint library_synonym_c1 unique (synonym_id,library_id,pub_id)
  36217. );
  36218. create index library_synonym_idx1 on library_synonym (synonym_id);
  36219. create index library_synonym_idx2 on library_synonym (library_id);
  36220. create index library_synonym_idx3 on library_synonym (pub_id);
  36221. 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.';
  36222. COMMENT ON COLUMN library_synonym.pub_id IS 'The pub_id link is for
  36223. relating the usage of a given synonym to the publication in which it was used.';
  36224. COMMENT ON COLUMN library_synonym.is_internal IS 'Typically a synonym
  36225. exists so that somebody querying the database with an obsolete name
  36226. can find the object they are looking for under its current name. If
  36227. 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.';
  36228. -- ================================================
  36229. -- TABLE: library_pub
  36230. -- ================================================
  36231. create table library_pub (
  36232. library_pub_id serial not null,
  36233. primary key (library_pub_id),
  36234. library_id int not null,
  36235. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36236. pub_id int not null,
  36237. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36238. constraint library_pub_c1 unique (library_id,pub_id)
  36239. );
  36240. create index library_pub_idx1 on library_pub (library_id);
  36241. create index library_pub_idx2 on library_pub (pub_id);
  36242. -- ================================================
  36243. -- TABLE: libraryprop
  36244. -- ================================================
  36245. create table libraryprop (
  36246. libraryprop_id serial not null,
  36247. primary key (libraryprop_id),
  36248. library_id int not null,
  36249. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36250. type_id int not null,
  36251. foreign key (type_id) references cvterm (cvterm_id),
  36252. value text null,
  36253. rank int not null default 0,
  36254. constraint libraryprop_c1 unique (library_id,type_id,rank)
  36255. );
  36256. create index libraryprop_idx1 on libraryprop (library_id);
  36257. create index libraryprop_idx2 on libraryprop (type_id);
  36258. -- ================================================
  36259. -- TABLE: libraryprop_pub
  36260. -- ================================================
  36261. create table libraryprop_pub (
  36262. libraryprop_pub_id serial not null,
  36263. primary key (libraryprop_pub_id),
  36264. libraryprop_id int not null,
  36265. foreign key (libraryprop_id) references libraryprop (libraryprop_id) on delete cascade INITIALLY DEFERRED,
  36266. pub_id int not null,
  36267. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36268. constraint libraryprop_pub_c1 unique (libraryprop_id,pub_id)
  36269. );
  36270. create index libraryprop_pub_idx1 on libraryprop_pub (libraryprop_id);
  36271. create index libraryprop_pub_idx2 on libraryprop_pub (pub_id);
  36272. -- ================================================
  36273. -- TABLE: library_cvterm
  36274. -- ================================================
  36275. create table library_cvterm (
  36276. library_cvterm_id serial not null,
  36277. primary key (library_cvterm_id),
  36278. library_id int not null,
  36279. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36280. cvterm_id int not null,
  36281. foreign key (cvterm_id) references cvterm (cvterm_id),
  36282. pub_id int not null,
  36283. foreign key (pub_id) references pub (pub_id),
  36284. constraint library_cvterm_c1 unique (library_id,cvterm_id,pub_id)
  36285. );
  36286. create index library_cvterm_idx1 on library_cvterm (library_id);
  36287. create index library_cvterm_idx2 on library_cvterm (cvterm_id);
  36288. create index library_cvterm_idx3 on library_cvterm (pub_id);
  36289. 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.';
  36290. -- ================================================
  36291. -- TABLE: library_feature
  36292. -- ================================================
  36293. create table library_feature (
  36294. library_feature_id serial not null,
  36295. primary key (library_feature_id),
  36296. library_id int not null,
  36297. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36298. feature_id int not null,
  36299. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  36300. constraint library_feature_c1 unique (library_id,feature_id)
  36301. );
  36302. create index library_feature_idx1 on library_feature (library_id);
  36303. create index library_feature_idx2 on library_feature (feature_id);
  36304. 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".';
  36305. -- ================================================
  36306. -- TABLE: library_dbxref
  36307. -- ================================================
  36308. create table library_dbxref (
  36309. library_dbxref_id serial not null,
  36310. primary key (library_dbxref_id),
  36311. library_id int not null,
  36312. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36313. dbxref_id int not null,
  36314. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  36315. is_current boolean not null default 'true',
  36316. constraint library_dbxref_c1 unique (library_id,dbxref_id)
  36317. );
  36318. create index library_dbxref_idx1 on library_dbxref (library_id);
  36319. create index library_dbxref_idx2 on library_dbxref (dbxref_id);
  36320. -- ==========================================
  36321. -- Chado cell line module
  36322. --
  36323. -- ============
  36324. -- DEPENDENCIES
  36325. -- ============
  36326. -- :import feature from sequence
  36327. -- :import synonym from sequence
  36328. -- :import library from library
  36329. -- :import cvterm from cv
  36330. -- :import dbxref from general
  36331. -- :import pub from pub
  36332. -- :import organism from organism
  36333. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36334. -- ================================================
  36335. -- TABLE: cell_line
  36336. -- ================================================
  36337. create table cell_line (
  36338. cell_line_id serial not null,
  36339. primary key (cell_line_id),
  36340. name varchar(255) null,
  36341. uniquename varchar(255) not null,
  36342. organism_id int not null,
  36343. foreign key (organism_id) references organism (organism_id) on delete cascade INITIALLY DEFERRED,
  36344. timeaccessioned timestamp not null default current_timestamp,
  36345. timelastmodified timestamp not null default current_timestamp,
  36346. constraint cell_line_c1 unique (uniquename, organism_id)
  36347. );
  36348. grant all on cell_line to PUBLIC;
  36349. -- ================================================
  36350. -- TABLE: cell_line_relationship
  36351. -- ================================================
  36352. create table cell_line_relationship (
  36353. cell_line_relationship_id serial not null,
  36354. primary key (cell_line_relationship_id),
  36355. subject_id int not null,
  36356. foreign key (subject_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36357. object_id int not null,
  36358. foreign key (object_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36359. type_id int not null,
  36360. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36361. constraint cell_line_relationship_c1 unique (subject_id, object_id, type_id)
  36362. );
  36363. grant all on cell_line_relationship to PUBLIC;
  36364. -- ================================================
  36365. -- TABLE: cell_line_synonym
  36366. -- ================================================
  36367. create table cell_line_synonym (
  36368. cell_line_synonym_id serial not null,
  36369. primary key (cell_line_synonym_id),
  36370. cell_line_id int not null,
  36371. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36372. synonym_id int not null,
  36373. foreign key (synonym_id) references synonym (synonym_id) on delete cascade INITIALLY DEFERRED,
  36374. pub_id int not null,
  36375. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36376. is_current boolean not null default 'false',
  36377. is_internal boolean not null default 'false',
  36378. constraint cell_line_synonym_c1 unique (synonym_id,cell_line_id,pub_id)
  36379. );
  36380. grant all on cell_line_synonym to PUBLIC;
  36381. -- ================================================
  36382. -- TABLE: cell_line_cvterm
  36383. -- ================================================
  36384. create table cell_line_cvterm (
  36385. cell_line_cvterm_id serial not null,
  36386. primary key (cell_line_cvterm_id),
  36387. cell_line_id int not null,
  36388. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36389. cvterm_id int not null,
  36390. foreign key (cvterm_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36391. pub_id int not null,
  36392. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36393. rank int not null default 0,
  36394. constraint cell_line_cvterm_c1 unique (cell_line_id,cvterm_id,pub_id,rank)
  36395. );
  36396. grant all on cell_line_cvterm to PUBLIC;
  36397. -- ================================================
  36398. -- TABLE: cell_line_dbxref
  36399. -- ================================================
  36400. create table cell_line_dbxref (
  36401. cell_line_dbxref_id serial not null,
  36402. primary key (cell_line_dbxref_id),
  36403. cell_line_id int not null,
  36404. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36405. dbxref_id int not null,
  36406. foreign key (dbxref_id) references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED,
  36407. is_current boolean not null default 'true',
  36408. constraint cell_line_dbxref_c1 unique (cell_line_id,dbxref_id)
  36409. );
  36410. grant all on cell_line_dbxref to PUBLIC;
  36411. -- ================================================
  36412. -- TABLE: cell_lineprop
  36413. -- ================================================
  36414. create table cell_lineprop (
  36415. cell_lineprop_id serial not null,
  36416. primary key (cell_lineprop_id),
  36417. cell_line_id int not null,
  36418. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36419. type_id int not null,
  36420. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36421. value text null,
  36422. rank int not null default 0,
  36423. constraint cell_lineprop_c1 unique (cell_line_id,type_id,rank)
  36424. );
  36425. grant all on cell_lineprop to PUBLIC;
  36426. -- ================================================
  36427. -- TABLE: cell_lineprop_pub
  36428. -- ================================================
  36429. create table cell_lineprop_pub (
  36430. cell_lineprop_pub_id serial not null,
  36431. primary key (cell_lineprop_pub_id),
  36432. cell_lineprop_id int not null,
  36433. foreign key (cell_lineprop_id) references cell_lineprop (cell_lineprop_id) on delete cascade INITIALLY DEFERRED,
  36434. pub_id int not null,
  36435. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36436. constraint cell_lineprop_pub_c1 unique (cell_lineprop_id,pub_id)
  36437. );
  36438. grant all on cell_lineprop_pub to PUBLIC;
  36439. -- ================================================
  36440. -- TABLE: cell_line_feature
  36441. -- ================================================
  36442. create table cell_line_feature (
  36443. cell_line_feature_id serial not null,
  36444. primary key (cell_line_feature_id),
  36445. cell_line_id int not null,
  36446. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36447. feature_id int not null,
  36448. foreign key (feature_id) references feature (feature_id) on delete cascade INITIALLY DEFERRED,
  36449. pub_id int not null,
  36450. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36451. constraint cell_line_feature_c1 unique (cell_line_id, feature_id, pub_id)
  36452. );
  36453. grant all on cell_line_feature to PUBLIC;
  36454. -- ================================================
  36455. -- TABLE: cell_line_cvtermprop
  36456. -- ================================================
  36457. create table cell_line_cvtermprop (
  36458. cell_line_cvtermprop_id serial not null,
  36459. primary key (cell_line_cvtermprop_id),
  36460. cell_line_cvterm_id int not null,
  36461. foreign key (cell_line_cvterm_id) references cell_line_cvterm (cell_line_cvterm_id) on delete cascade INITIALLY DEFERRED,
  36462. type_id int not null,
  36463. foreign key (type_id) references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  36464. value text null,
  36465. rank int not null default 0,
  36466. constraint cell_line_cvtermprop_c1 unique (cell_line_cvterm_id, type_id, rank)
  36467. );
  36468. grant all on cell_line_cvtermprop to PUBLIC;
  36469. -- ================================================
  36470. -- TABLE: cell_line_pub
  36471. -- ================================================
  36472. create table cell_line_pub (
  36473. cell_line_pub_id serial not null,
  36474. primary key (cell_line_pub_id),
  36475. cell_line_id int not null,
  36476. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36477. pub_id int not null,
  36478. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36479. constraint cell_line_pub_c1 unique (cell_line_id, pub_id)
  36480. );
  36481. grant all on cell_line_pub to PUBLIC;
  36482. -- ================================================
  36483. -- TABLE: cell_line_library
  36484. -- ================================================
  36485. create table cell_line_library (
  36486. cell_line_library_id serial not null,
  36487. primary key (cell_line_library_id),
  36488. cell_line_id int not null,
  36489. foreign key (cell_line_id) references cell_line (cell_line_id) on delete cascade INITIALLY DEFERRED,
  36490. library_id int not null,
  36491. foreign key (library_id) references library (library_id) on delete cascade INITIALLY DEFERRED,
  36492. pub_id int not null,
  36493. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  36494. constraint cell_line_library_c1 unique (cell_line_id, library_id, pub_id)
  36495. );
  36496. grant all on cell_line_library to PUBLIC;
  36497. -- VIEW gffatts: a view to get feature attributes in a format that
  36498. -- will make it easy to convert them to GFF attributes
  36499. CREATE OR REPLACE VIEW gffatts (
  36500. feature_id,
  36501. type,
  36502. attribute
  36503. ) AS
  36504. SELECT feature_id, 'Ontology_term' AS type, s.name AS attribute
  36505. FROM cvterm s, feature_cvterm fs
  36506. WHERE fs.cvterm_id = s.cvterm_id
  36507. UNION ALL
  36508. SELECT feature_id, 'Dbxref' AS type, d.name || ':' || s.accession AS attribute
  36509. FROM dbxref s, feature_dbxref fs, db d
  36510. WHERE fs.dbxref_id = s.dbxref_id and s.db_id = d.db_id
  36511. UNION ALL
  36512. SELECT feature_id, 'Alias' AS type, s.name AS attribute
  36513. FROM synonym s, feature_synonym fs
  36514. WHERE fs.synonym_id = s.synonym_id
  36515. UNION ALL
  36516. SELECT fp.feature_id,cv.name,fp.value
  36517. FROM featureprop fp, cvterm cv
  36518. WHERE fp.type_id = cv.cvterm_id
  36519. UNION ALL
  36520. SELECT feature_id, 'pub' AS type, s.series_name || ':' || s.title AS attribute
  36521. FROM pub s, feature_pub fs
  36522. WHERE fs.pub_id = s.pub_id;
  36523. --creates a view that can be used to assemble a GFF3 compliant attribute string
  36524. CREATE OR REPLACE VIEW gff3atts (
  36525. feature_id,
  36526. type,
  36527. attribute
  36528. ) AS
  36529. SELECT feature_id,
  36530. 'Ontology_term' AS type,
  36531. CASE WHEN db.name like '%Gene Ontology%' THEN 'GO:'|| dbx.accession
  36532. WHEN db.name like 'Sequence Ontology%' THEN 'SO:'|| dbx.accession
  36533. ELSE CAST(db.name||':'|| dbx.accession AS varchar)
  36534. END
  36535. FROM cvterm s, dbxref dbx, feature_cvterm fs, db
  36536. WHERE fs.cvterm_id = s.cvterm_id and s.dbxref_id=dbx.dbxref_id and
  36537. db.db_id = dbx.db_id
  36538. UNION ALL
  36539. SELECT feature_id, 'Dbxref' AS type, d.name || ':' || s.accession AS
  36540. attribute
  36541. FROM dbxref s, feature_dbxref fs, db d
  36542. WHERE fs.dbxref_id = s.dbxref_id and s.db_id = d.db_id and
  36543. d.name != 'GFF_source'
  36544. UNION ALL
  36545. SELECT f.feature_id, 'Alias' AS type, s.name AS attribute
  36546. FROM synonym s, feature_synonym fs, feature f
  36547. WHERE fs.synonym_id = s.synonym_id and f.feature_id = fs.feature_id and
  36548. f.name != s.name and f.uniquename != s.name
  36549. UNION ALL
  36550. SELECT fp.feature_id,cv.name,fp.value
  36551. FROM featureprop fp, cvterm cv
  36552. WHERE fp.type_id = cv.cvterm_id
  36553. UNION ALL
  36554. SELECT feature_id, 'pub' AS type, s.series_name || ':' || s.title AS
  36555. attribute
  36556. FROM pub s, feature_pub fs
  36557. WHERE fs.pub_id = s.pub_id
  36558. UNION ALL
  36559. SELECT fr.subject_id as feature_id, 'Parent' as type, parent.uniquename
  36560. as attribute
  36561. FROM feature_relationship fr, feature parent
  36562. WHERE fr.object_id=parent.feature_id AND fr.type_id = (SELECT cvterm_id
  36563. FROM cvterm WHERE name='part_of' and cv_id in (select cv_id
  36564. FROM cv WHERE name='relationship'))
  36565. UNION ALL
  36566. SELECT fr.subject_id as feature_id, 'Derives_from' as type,
  36567. parent.uniquename as attribute
  36568. FROM feature_relationship fr, feature parent
  36569. WHERE fr.object_id=parent.feature_id AND fr.type_id = (SELECT cvterm_id
  36570. FROM cvterm WHERE name='derives_from' and cv_id in (select cv_id
  36571. FROM cv WHERE name='relationship'))
  36572. UNION ALL
  36573. SELECT fl.feature_id, 'Target' as type, target.name || ' ' || fl.fmin+1
  36574. || ' ' || fl.fmax || ' ' || fl.strand as attribute
  36575. FROM featureloc fl, feature target
  36576. WHERE fl.srcfeature_id=target.feature_id
  36577. AND fl.rank != 0
  36578. UNION ALL
  36579. SELECT feature_id, 'ID' as type, uniquename as attribute
  36580. FROM feature
  36581. WHERE type_id NOT IN (SELECT cvterm_id FROM cvterm WHERE name='CDS')
  36582. UNION ALL
  36583. SELECT feature_id, 'chado_feature_id' as type, CAST(feature_id AS
  36584. varchar) as attribute
  36585. FROM feature
  36586. UNION ALL
  36587. SELECT feature_id, 'Name' as type, name as attribute
  36588. FROM feature;
  36589. --replaced with Rob B's improved view
  36590. CREATE OR REPLACE VIEW gff3view (
  36591. feature_id, ref, source, type, fstart, fend,
  36592. score, strand, phase, seqlen, name, organism_id
  36593. ) AS
  36594. SELECT
  36595. f.feature_id, sf.name,
  36596. COALESCE(gffdbx.accession,'.'::varchar(255)), cv.name,
  36597. fl.fmin+1, fl.fmax,
  36598. COALESCE(CAST(af.significance AS text), '.'),
  36599. CASE WHEN fl.strand=-1 THEN '-'
  36600. WHEN fl.strand=1 THEN '+'
  36601. ELSE '.'
  36602. END,
  36603. COALESCE(CAST(fl.phase AS text), '.'), f.seqlen, f.name, f.organism_id
  36604. FROM feature f
  36605. LEFT JOIN featureloc fl ON (f.feature_id = fl.feature_id)
  36606. LEFT JOIN feature sf ON (fl.srcfeature_id = sf.feature_id)
  36607. LEFT JOIN ( SELECT fd.feature_id, d.accession
  36608. FROM feature_dbxref fd
  36609. JOIN dbxref d using(dbxref_id)
  36610. JOIN db using(db_id)
  36611. WHERE db.name = 'GFF_source'
  36612. ) as gffdbx
  36613. ON (f.feature_id=gffdbx.feature_id)
  36614. LEFT JOIN cvterm cv ON (f.type_id = cv.cvterm_id)
  36615. LEFT JOIN analysisfeature af ON (f.feature_id = af.feature_id);
  36616. -- FUNCTION gfffeatureatts (integer) is a function to get
  36617. -- data in the same format as the gffatts view so that
  36618. -- it can be easily converted to GFF attributes.
  36619. CREATE FUNCTION gfffeatureatts (integer)
  36620. RETURNS SETOF gffatts
  36621. AS
  36622. '
  36623. SELECT feature_id, ''Ontology_term'' AS type, s.name AS attribute
  36624. FROM cvterm s, feature_cvterm fs
  36625. WHERE fs.feature_id= $1 AND fs.cvterm_id = s.cvterm_id
  36626. UNION
  36627. SELECT feature_id, ''Dbxref'' AS type, d.name || '':'' || s.accession AS attribute
  36628. FROM dbxref s, feature_dbxref fs, db d
  36629. WHERE fs.feature_id= $1 AND fs.dbxref_id = s.dbxref_id AND s.db_id = d.db_id
  36630. UNION
  36631. SELECT feature_id, ''Alias'' AS type, s.name AS attribute
  36632. FROM synonym s, feature_synonym fs
  36633. WHERE fs.feature_id= $1 AND fs.synonym_id = s.synonym_id
  36634. UNION
  36635. SELECT fp.feature_id,cv.name,fp.value
  36636. FROM featureprop fp, cvterm cv
  36637. WHERE fp.feature_id= $1 AND fp.type_id = cv.cvterm_id
  36638. UNION
  36639. SELECT feature_id, ''pub'' AS type, s.series_name || '':'' || s.title AS attribute
  36640. FROM pub s, feature_pub fs
  36641. WHERE fs.feature_id= $1 AND fs.pub_id = s.pub_id
  36642. '
  36643. LANGUAGE SQL;
  36644. --
  36645. -- functions for creating coordinate based functions
  36646. --
  36647. -- create a point
  36648. CREATE OR REPLACE FUNCTION featureslice(int, int) RETURNS setof featureloc AS
  36649. 'SELECT * from featureloc where boxquery($1, $2) @ boxrange(fmin,fmax)'
  36650. LANGUAGE 'sql';
  36651. --uses the gff3atts to create a GFF3 compliant attribute string
  36652. CREATE OR REPLACE FUNCTION gffattstring (integer) RETURNS varchar AS
  36653. 'DECLARE
  36654. return_string varchar;
  36655. f_id ALIAS FOR $1;
  36656. atts_view gffatts%ROWTYPE;
  36657. feature_row feature%ROWTYPE;
  36658. name varchar;
  36659. uniquename varchar;
  36660. parent varchar;
  36661. escape_loc int;
  36662. BEGIN
  36663. --Get name from feature.name
  36664. --Get ID from feature.uniquename
  36665. SELECT INTO feature_row * FROM feature WHERE feature_id = f_id;
  36666. name = feature_row.name;
  36667. return_string = ''ID='' || feature_row.uniquename;
  36668. IF name IS NOT NULL AND name != ''''
  36669. THEN
  36670. return_string = return_string ||'';'' || ''Name='' || name;
  36671. END IF;
  36672. --Get Parent from feature_relationship
  36673. SELECT INTO feature_row * FROM feature f, feature_relationship fr
  36674. WHERE fr.subject_id = f_id AND fr.object_id = f.feature_id;
  36675. IF FOUND
  36676. THEN
  36677. return_string = return_string||'';''||''Parent=''||feature_row.uniquename;
  36678. END IF;
  36679. FOR atts_view IN SELECT * FROM gff3atts WHERE feature_id = f_id LOOP
  36680. escape_loc = position('';'' in atts_view.attribute);
  36681. IF escape_loc > 0 THEN
  36682. atts_view.attribute = replace(atts_view.attribute, '';'', ''%3B'');
  36683. END IF;
  36684. return_string = return_string || '';''
  36685. || atts_view.type || ''=''
  36686. || atts_view.attribute;
  36687. END LOOP;
  36688. RETURN return_string;
  36689. END;
  36690. '
  36691. LANGUAGE plpgsql;
  36692. --creates a view that is suitable for creating a GFF3 string
  36693. --CREATE OR REPLACE VIEW gff3view (
  36694. --REMOVED and RECREATED in sequence-gff-views.sql to avoid
  36695. --using the function above
  36696. --------------------------------
  36697. ---- all_feature_names ---------
  36698. --------------------------------
  36699. -- This is a view to replace the denormaliziation of the synonym
  36700. -- table. It contains names and uniquenames from feature and
  36701. -- synonym.names from the synonym table, so that GBrowse has one
  36702. -- place to search for names.
  36703. --
  36704. -- To materialize this view, run gmod_materialized_view_tool.pl -c and
  36705. -- answer the questions with these responses:
  36706. --
  36707. -- all_feature_names
  36708. --
  36709. -- public.all_feature_names
  36710. --
  36711. -- y (yes, replace the existing view)
  36712. --
  36713. -- (some update frequency, I chose daily)
  36714. --
  36715. -- feature_id integer,name varchar(255),organism_id integer
  36716. --
  36717. -- (the select part of the view below, all on one line)
  36718. --
  36719. -- feature_id,name
  36720. --
  36721. -- create index all_feature_names_lower_name on all_feature_names (lower(name))
  36722. --
  36723. -- y
  36724. --
  36725. -- OR, you could execute this command (the materialized view tool has been
  36726. -- updated to allow this all to be supplied on the command line):
  36727. --
  36728. -- (yes, it's all one really long line, to make copy and pasting easier)
  36729. -- 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 integer,name varchar(255),organism_id integer" --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
  36730. --
  36731. --
  36732. -- OR, even more complicated, you could use this command to create a materialized view
  36733. -- for use with full text searching on PostgreSQL 8.4 or better:
  36734. --
  36735. -- 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 integer,name varchar(255),organism_id integer,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
  36736. --
  36737. CREATE OR REPLACE VIEW all_feature_names (
  36738. feature_id,
  36739. name,
  36740. organism_id
  36741. ) AS
  36742. SELECT feature_id,CAST(substring(uniquename from 0 for 255) as varchar(255)) as name,organism_id FROM feature
  36743. UNION
  36744. SELECT feature_id, name, organism_id FROM feature where name is not null
  36745. UNION
  36746. SELECT fs.feature_id,s.name,f.organism_id FROM feature_synonym fs, synonym s, feature f
  36747. WHERE fs.synonym_id = s.synonym_id AND fs.feature_id = f.feature_id
  36748. UNION
  36749. 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
  36750. WHERE f.feature_id = fp.feature_id
  36751. UNION
  36752. SELECT fd.feature_id, d.accession, f.organism_id FROM feature_dbxref fd, dbxref d,feature f
  36753. WHERE fd.dbxref_id = d.dbxref_id AND fd.feature_id = f.feature_id;
  36754. --------------------------------
  36755. ---- dfeatureloc ---------------
  36756. --------------------------------
  36757. -- dfeatureloc is meant as an alternate representation of
  36758. -- the data in featureloc (see the descrption of featureloc
  36759. -- in sequence.sql). In dfeatureloc, fmin and fmax are
  36760. -- replaced with nbeg and nend. Whereas fmin and fmax
  36761. -- are absolute coordinates relative to the parent feature, nbeg
  36762. -- and nend are the beginning and ending coordinates
  36763. -- relative to the feature itself. For example, nbeg would
  36764. -- mark the 5' end of a gene and nend would mark the 3' end.
  36765. CREATE OR REPLACE VIEW dfeatureloc (
  36766. featureloc_id,
  36767. feature_id,
  36768. srcfeature_id,
  36769. nbeg,
  36770. is_nbeg_partial,
  36771. nend,
  36772. is_nend_partial,
  36773. strand,
  36774. phase,
  36775. residue_info,
  36776. locgroup,
  36777. rank
  36778. ) AS
  36779. SELECT featureloc_id, feature_id, srcfeature_id, fmin, is_fmin_partial,
  36780. fmax, is_fmax_partial, strand, phase, residue_info, locgroup, rank
  36781. FROM featureloc
  36782. WHERE (strand < 0 or phase < 0)
  36783. UNION
  36784. SELECT featureloc_id, feature_id, srcfeature_id, fmax, is_fmax_partial,
  36785. fmin, is_fmin_partial, strand, phase, residue_info, locgroup, rank
  36786. FROM featureloc
  36787. WHERE (strand is NULL or strand >= 0 or phase >= 0) ;
  36788. --------------------------------
  36789. ---- f_type --------------------
  36790. --------------------------------
  36791. CREATE OR REPLACE VIEW f_type
  36792. AS
  36793. SELECT f.feature_id,
  36794. f.name,
  36795. f.dbxref_id,
  36796. c.name AS type,
  36797. f.residues,
  36798. f.seqlen,
  36799. f.md5checksum,
  36800. f.type_id,
  36801. f.timeaccessioned,
  36802. f.timelastmodified
  36803. FROM feature f, cvterm c
  36804. WHERE f.type_id = c.cvterm_id;
  36805. --------------------------------
  36806. ---- fnr_type ------------------
  36807. --------------------------------
  36808. CREATE OR REPLACE VIEW fnr_type
  36809. AS
  36810. SELECT f.feature_id,
  36811. f.name,
  36812. f.dbxref_id,
  36813. c.name AS type,
  36814. f.residues,
  36815. f.seqlen,
  36816. f.md5checksum,
  36817. f.type_id,
  36818. f.timeaccessioned,
  36819. f.timelastmodified
  36820. FROM feature f left outer join analysisfeature af
  36821. on (f.feature_id = af.feature_id), cvterm c
  36822. WHERE f.type_id = c.cvterm_id
  36823. and af.feature_id is null;
  36824. --------------------------------
  36825. ---- f_loc ---------------------
  36826. --------------------------------
  36827. -- Note from Scott: I changed this view to depend on dfeatureloc,
  36828. -- since I don't know what it is used for. The change should
  36829. -- be transparent. I also changed dbxrefstr to dbxref_id since
  36830. -- dbxrefstr is no longer in feature
  36831. CREATE OR REPLACE VIEW f_loc
  36832. AS
  36833. SELECT f.feature_id,
  36834. f.name,
  36835. f.dbxref_id,
  36836. fl.nbeg,
  36837. fl.nend,
  36838. fl.strand
  36839. FROM dfeatureloc fl, f_type f
  36840. WHERE f.feature_id = fl.feature_id;
  36841. --------------------------------
  36842. ---- fp_key -------------------
  36843. --------------------------------
  36844. CREATE OR REPLACE VIEW fp_key
  36845. AS
  36846. SELECT fp.feature_id,
  36847. c.name AS pkey,
  36848. fp.value
  36849. FROM featureprop fp, cvterm c
  36850. WHERE fp.featureprop_id = c.cvterm_id;
  36851. -- [symmetric,reflexive]
  36852. -- intervals have at least one interbase point in common
  36853. -- (i.e. overlap OR abut)
  36854. -- EXAMPLE QUERY:
  36855. -- (features of same type that overlap)
  36856. -- SELECT r.*
  36857. -- FROM feature AS x
  36858. -- INNER JOIN feature_meets AS r ON (x.feature_id=r.subject_id)
  36859. -- INNER JOIN feature AS y ON (y.feature_id=r.object_id)
  36860. -- WHERE x.type_id=y.type_id
  36861. CREATE OR REPLACE VIEW feature_meets (
  36862. subject_id,
  36863. object_id
  36864. ) AS
  36865. SELECT
  36866. x.feature_id,
  36867. y.feature_id
  36868. FROM
  36869. featureloc AS x,
  36870. featureloc AS y
  36871. WHERE
  36872. x.srcfeature_id=y.srcfeature_id
  36873. AND
  36874. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  36875. COMMENT ON VIEW feature_meets IS 'intervals have at least one
  36876. interbase point in common (ie overlap OR abut). symmetric,reflexive';
  36877. -- [symmetric,reflexive]
  36878. -- as above, strands match
  36879. CREATE OR REPLACE VIEW feature_meets_on_same_strand (
  36880. subject_id,
  36881. object_id
  36882. ) AS
  36883. SELECT
  36884. x.feature_id,
  36885. y.feature_id
  36886. FROM
  36887. featureloc AS x,
  36888. featureloc AS y
  36889. WHERE
  36890. x.srcfeature_id=y.srcfeature_id
  36891. AND
  36892. x.strand = y.strand
  36893. AND
  36894. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  36895. COMMENT ON VIEW feature_meets_on_same_strand IS 'as feature_meets, but
  36896. featurelocs must be on the same strand. symmetric,reflexive';
  36897. -- [symmetric]
  36898. -- intervals have no interbase points in common and do not abut
  36899. CREATE OR REPLACE VIEW feature_disjoint (
  36900. subject_id,
  36901. object_id
  36902. ) AS
  36903. SELECT
  36904. x.feature_id,
  36905. y.feature_id
  36906. FROM
  36907. featureloc AS x,
  36908. featureloc AS y
  36909. WHERE
  36910. x.srcfeature_id=y.srcfeature_id
  36911. AND
  36912. ( x.fmax < y.fmin AND x.fmin > y.fmax );
  36913. COMMENT ON VIEW feature_disjoint IS 'featurelocs do not meet. symmetric';
  36914. -- 4-ary relation
  36915. CREATE OR REPLACE VIEW feature_union AS
  36916. SELECT
  36917. x.feature_id AS subject_id,
  36918. y.feature_id AS object_id,
  36919. x.srcfeature_id,
  36920. x.strand AS subject_strand,
  36921. y.strand AS object_strand,
  36922. CASE WHEN x.fmin<y.fmin THEN x.fmin ELSE y.fmin END AS fmin,
  36923. CASE WHEN x.fmax>y.fmax THEN x.fmax ELSE y.fmax END AS fmax
  36924. FROM
  36925. featureloc AS x,
  36926. featureloc AS y
  36927. WHERE
  36928. x.srcfeature_id=y.srcfeature_id
  36929. AND
  36930. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  36931. COMMENT ON VIEW feature_union IS 'set-union on interval defined by featureloc. featurelocs must meet';
  36932. -- 4-ary relation
  36933. CREATE OR REPLACE VIEW feature_intersection AS
  36934. SELECT
  36935. x.feature_id AS subject_id,
  36936. y.feature_id AS object_id,
  36937. x.srcfeature_id,
  36938. x.strand AS subject_strand,
  36939. y.strand AS object_strand,
  36940. CASE WHEN x.fmin<y.fmin THEN y.fmin ELSE x.fmin END AS fmin,
  36941. CASE WHEN x.fmax>y.fmax THEN y.fmax ELSE x.fmax END AS fmax
  36942. FROM
  36943. featureloc AS x,
  36944. featureloc AS y
  36945. WHERE
  36946. x.srcfeature_id=y.srcfeature_id
  36947. AND
  36948. ( x.fmax >= y.fmin AND x.fmin <= y.fmax );
  36949. COMMENT ON VIEW feature_intersection IS 'set-intersection on interval defined by featureloc. featurelocs must meet';
  36950. -- 4-ary relation
  36951. -- subtract object interval from subject interval
  36952. -- (may leave zero, one or two intervals)
  36953. CREATE OR REPLACE VIEW feature_difference (
  36954. subject_id,
  36955. object_id,
  36956. srcfeature_id,
  36957. fmin,
  36958. fmax,
  36959. strand
  36960. ) AS
  36961. -- left interval
  36962. SELECT
  36963. x.feature_id,
  36964. y.feature_id,
  36965. x.strand,
  36966. x.srcfeature_id,
  36967. x.fmin,
  36968. y.fmin
  36969. FROM
  36970. featureloc AS x,
  36971. featureloc AS y
  36972. WHERE
  36973. x.srcfeature_id=y.srcfeature_id
  36974. AND
  36975. (x.fmin < y.fmin AND x.fmax >= y.fmax )
  36976. UNION
  36977. -- right interval
  36978. SELECT
  36979. x.feature_id,
  36980. y.feature_id,
  36981. x.strand,
  36982. x.srcfeature_id,
  36983. y.fmax,
  36984. x.fmax
  36985. FROM
  36986. featureloc AS x,
  36987. featureloc AS y
  36988. WHERE
  36989. x.srcfeature_id=y.srcfeature_id
  36990. AND
  36991. (x.fmax > y.fmax AND x.fmin <= y.fmin );
  36992. COMMENT ON VIEW feature_difference IS 'set-distance on interval defined by featureloc. featurelocs must meet';
  36993. -- 4-ary relation
  36994. CREATE OR REPLACE VIEW feature_distance AS
  36995. SELECT
  36996. x.feature_id AS subject_id,
  36997. y.feature_id AS object_id,
  36998. x.srcfeature_id,
  36999. x.strand AS subject_strand,
  37000. y.strand AS object_strand,
  37001. CASE WHEN x.fmax <= y.fmin THEN (x.fmax-y.fmin) ELSE (y.fmax-x.fmin) END AS distance
  37002. FROM
  37003. featureloc AS x,
  37004. featureloc AS y
  37005. WHERE
  37006. x.srcfeature_id=y.srcfeature_id
  37007. AND
  37008. ( x.fmax <= y.fmin OR x.fmin >= y.fmax );
  37009. COMMENT ON VIEW feature_difference IS 'size of gap between two features. must be abutting or disjoint';
  37010. -- [transitive,reflexive]
  37011. -- (should this be made non-reflexive?)
  37012. -- subject intervals contains (or is same as) object interval
  37013. CREATE OR REPLACE VIEW feature_contains (
  37014. subject_id,
  37015. object_id
  37016. ) AS
  37017. SELECT
  37018. x.feature_id,
  37019. y.feature_id
  37020. FROM
  37021. featureloc AS x,
  37022. featureloc AS y
  37023. WHERE
  37024. x.srcfeature_id=y.srcfeature_id
  37025. AND
  37026. ( y.fmin >= x.fmin AND y.fmin <= x.fmax );
  37027. COMMENT ON VIEW feature_contains IS 'subject intervals contains (or is
  37028. same as) object interval. transitive,reflexive';
  37029. -- featureset relations:
  37030. -- a featureset relation is true between any two features x and y
  37031. -- if the relation is true for any x' and y' where x' and y' are
  37032. -- subfeatures of x and y
  37033. -- see feature_meets
  37034. -- example: two transcripts meet if any of their exons or CDSs overlap
  37035. -- or abut
  37036. CREATE OR REPLACE VIEW featureset_meets (
  37037. subject_id,
  37038. object_id
  37039. ) AS
  37040. SELECT
  37041. x.object_id,
  37042. y.object_id
  37043. FROM
  37044. feature_meets AS r
  37045. INNER JOIN feature_relationship AS x ON (r.subject_id = x.subject_id)
  37046. INNER JOIN feature_relationship AS y ON (r.object_id = y.subject_id);
  37047. -- =================================================================
  37048. -- Dependencies:
  37049. --
  37050. -- :import feature from sequence
  37051. -- :import cvterm from cv
  37052. -- :import pub from pub
  37053. -- :import phenotype from phenotype
  37054. -- :import organism from organism
  37055. -- :import genotype from genetic
  37056. -- :import contact from contact
  37057. -- :import project from project
  37058. -- :import stock from stock
  37059. -- :import synonym
  37060. -- =================================================================
  37061. -- this probably needs some work, depending on how cross-database we
  37062. -- want to be. In Postgres, at least, there are much better ways to
  37063. -- represent geo information.
  37064. CREATE TABLE nd_geolocation (
  37065. nd_geolocation_id serial PRIMARY KEY NOT NULL,
  37066. description character varying(255),
  37067. latitude real,
  37068. longitude real,
  37069. geodetic_datum character varying(32),
  37070. altitude real
  37071. );
  37072. 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.';
  37073. 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.';
  37074. 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.';
  37075. 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.';
  37076. 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.';
  37077. 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.';
  37078. CREATE TABLE nd_experiment (
  37079. nd_experiment_id serial PRIMARY KEY NOT NULL,
  37080. nd_geolocation_id integer NOT NULL references nd_geolocation (nd_geolocation_id) on delete cascade INITIALLY DEFERRED,
  37081. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37082. );
  37083. --
  37084. --used to be nd_diversityexperiment_project
  37085. --then was nd_assay_project
  37086. CREATE TABLE nd_experiment_project (
  37087. nd_experiment_project_id serial PRIMARY KEY NOT NULL,
  37088. project_id integer not null references project (project_id) on delete cascade INITIALLY DEFERRED,
  37089. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED
  37090. );
  37091. CREATE TABLE nd_experimentprop (
  37092. nd_experimentprop_id serial PRIMARY KEY NOT NULL,
  37093. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37094. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED ,
  37095. value text null,
  37096. rank integer NOT NULL default 0,
  37097. constraint nd_experimentprop_c1 unique (nd_experiment_id,type_id,rank)
  37098. );
  37099. CREATE TABLE nd_experiment_pub (
  37100. nd_experiment_pub_id serial PRIMARY KEY not null,
  37101. nd_experiment_id int not null,
  37102. foreign key (nd_experiment_id) references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37103. pub_id int not null,
  37104. foreign key (pub_id) references pub (pub_id) on delete cascade INITIALLY DEFERRED,
  37105. constraint nd_experiment_pub_c1 unique (nd_experiment_id,pub_id)
  37106. );
  37107. create index nd_experiment_pub_idx1 on nd_experiment_pub (nd_experiment_id);
  37108. create index nd_experiment_pub_idx2 on nd_experiment_pub (pub_id);
  37109. COMMENT ON TABLE nd_experiment_pub IS 'Linking nd_experiment(s) to publication(s)';
  37110. CREATE TABLE nd_geolocationprop (
  37111. nd_geolocationprop_id serial PRIMARY KEY NOT NULL,
  37112. nd_geolocation_id integer NOT NULL references nd_geolocation (nd_geolocation_id) on delete cascade INITIALLY DEFERRED,
  37113. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37114. value text null,
  37115. rank integer NOT NULL DEFAULT 0,
  37116. constraint nd_geolocationprop_c1 unique (nd_geolocation_id,type_id,rank)
  37117. );
  37118. COMMENT ON TABLE nd_geolocationprop IS 'Property/value associations for geolocations. This table can store the properties such as location and environment';
  37119. COMMENT ON COLUMN nd_geolocationprop.type_id IS 'The name of the property as a reference to a controlled vocabulary term.';
  37120. COMMENT ON COLUMN nd_geolocationprop.value IS 'The value of the property.';
  37121. COMMENT ON COLUMN nd_geolocationprop.rank IS 'The rank of the property value, if the property has an array of values.';
  37122. CREATE TABLE nd_protocol (
  37123. nd_protocol_id serial PRIMARY KEY NOT NULL,
  37124. name character varying(255) NOT NULL unique,
  37125. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37126. );
  37127. COMMENT ON TABLE nd_protocol IS 'A protocol can be anything that is done as part of the experiment.';
  37128. COMMENT ON COLUMN nd_protocol.name IS 'The protocol name.';
  37129. CREATE TABLE nd_reagent (
  37130. nd_reagent_id serial PRIMARY KEY NOT NULL,
  37131. name character varying(80) NOT NULL,
  37132. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37133. feature_id integer
  37134. );
  37135. 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.';
  37136. COMMENT ON COLUMN nd_reagent.name IS 'The name of the reagent. The name should be unique for a given type.';
  37137. COMMENT ON COLUMN nd_reagent.type_id IS 'The type of the reagent, for example linker oligomer, or forward primer.';
  37138. 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.';
  37139. CREATE TABLE nd_protocol_reagent (
  37140. nd_protocol_reagent_id serial PRIMARY KEY NOT NULL,
  37141. nd_protocol_id integer NOT NULL references nd_protocol (nd_protocol_id) on delete cascade INITIALLY DEFERRED,
  37142. reagent_id integer NOT NULL references nd_reagent (nd_reagent_id) on delete cascade INITIALLY DEFERRED,
  37143. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37144. );
  37145. CREATE TABLE nd_protocolprop (
  37146. nd_protocolprop_id serial PRIMARY KEY NOT NULL,
  37147. nd_protocol_id integer NOT NULL references nd_protocol (nd_protocol_id) on delete cascade INITIALLY DEFERRED,
  37148. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37149. value text null,
  37150. rank integer DEFAULT 0 NOT NULL,
  37151. constraint nd_protocolprop_c1 unique (nd_protocol_id,type_id,rank)
  37152. );
  37153. COMMENT ON TABLE nd_protocolprop IS 'Property/value associations for protocol.';
  37154. COMMENT ON COLUMN nd_protocolprop.nd_protocol_id IS 'The protocol to which the property applies.';
  37155. COMMENT ON COLUMN nd_protocolprop.type_id IS 'The name of the property as a reference to a controlled vocabulary term.';
  37156. COMMENT ON COLUMN nd_protocolprop.value IS 'The value of the property.';
  37157. COMMENT ON COLUMN nd_protocolprop.rank IS 'The rank of the property value, if the property has an array of values.';
  37158. CREATE TABLE nd_experiment_stock (
  37159. nd_experiment_stock_id serial PRIMARY KEY NOT NULL,
  37160. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37161. stock_id integer NOT NULL references stock (stock_id) on delete cascade INITIALLY DEFERRED,
  37162. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37163. );
  37164. COMMENT ON TABLE nd_experiment_stock IS 'Part of a stock or a clone of a stock that is used in an experiment';
  37165. COMMENT ON COLUMN nd_experiment_stock.stock_id IS 'stock used in the extraction or the corresponding stock for the clone';
  37166. CREATE TABLE nd_experiment_protocol (
  37167. nd_experiment_protocol_id serial PRIMARY KEY NOT NULL,
  37168. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37169. nd_protocol_id integer NOT NULL references nd_protocol (nd_protocol_id) on delete cascade INITIALLY DEFERRED
  37170. );
  37171. COMMENT ON TABLE nd_experiment_protocol IS 'Linking table: experiments to the protocols they involve.';
  37172. CREATE TABLE nd_experiment_phenotype (
  37173. nd_experiment_phenotype_id serial PRIMARY KEY NOT NULL,
  37174. nd_experiment_id integer NOT NULL REFERENCES nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37175. phenotype_id integer NOT NULL references phenotype (phenotype_id) on delete cascade INITIALLY DEFERRED,
  37176. constraint nd_experiment_phenotype_c1 unique (nd_experiment_id,phenotype_id)
  37177. );
  37178. 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.';
  37179. CREATE TABLE nd_experiment_genotype (
  37180. nd_experiment_genotype_id serial PRIMARY KEY NOT NULL,
  37181. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37182. genotype_id integer NOT NULL references genotype (genotype_id) on delete cascade INITIALLY DEFERRED ,
  37183. constraint nd_experiment_genotype_c1 unique (nd_experiment_id,genotype_id)
  37184. );
  37185. 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.';
  37186. CREATE TABLE nd_reagent_relationship (
  37187. nd_reagent_relationship_id serial PRIMARY KEY NOT NULL,
  37188. subject_reagent_id integer NOT NULL references nd_reagent (nd_reagent_id) on delete cascade INITIALLY DEFERRED,
  37189. object_reagent_id integer NOT NULL references nd_reagent (nd_reagent_id) on delete cascade INITIALLY DEFERRED,
  37190. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED
  37191. );
  37192. 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.';
  37193. 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.';
  37194. 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.';
  37195. 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.';
  37196. CREATE TABLE nd_reagentprop (
  37197. nd_reagentprop_id serial PRIMARY KEY NOT NULL,
  37198. nd_reagent_id integer NOT NULL references nd_reagent (nd_reagent_id) on delete cascade INITIALLY DEFERRED,
  37199. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37200. value text null,
  37201. rank integer DEFAULT 0 NOT NULL,
  37202. constraint nd_reagentprop_c1 unique (nd_reagent_id,type_id,rank)
  37203. );
  37204. CREATE TABLE nd_experiment_stockprop (
  37205. nd_experiment_stockprop_id serial PRIMARY KEY NOT NULL,
  37206. nd_experiment_stock_id integer NOT NULL references nd_experiment_stock (nd_experiment_stock_id) on delete cascade INITIALLY DEFERRED,
  37207. type_id integer NOT NULL references cvterm (cvterm_id) on delete cascade INITIALLY DEFERRED,
  37208. value text null,
  37209. rank integer DEFAULT 0 NOT NULL,
  37210. constraint nd_experiment_stockprop_c1 unique (nd_experiment_stock_id,type_id,rank)
  37211. );
  37212. COMMENT ON TABLE nd_experiment_stockprop IS 'Property/value associations for experiment_stocks. This table can store the properties such as treatment';
  37213. COMMENT ON COLUMN nd_experiment_stockprop.nd_experiment_stock_id IS 'The experiment_stock to which the property applies.';
  37214. COMMENT ON COLUMN nd_experiment_stockprop.type_id IS 'The name of the property as a reference to a controlled vocabulary term.';
  37215. COMMENT ON COLUMN nd_experiment_stockprop.value IS 'The value of the property.';
  37216. COMMENT ON COLUMN nd_experiment_stockprop.rank IS 'The rank of the property value, if the property has an array of values.';
  37217. CREATE TABLE nd_experiment_stock_dbxref (
  37218. nd_experiment_stock_dbxref_id serial PRIMARY KEY NOT NULL,
  37219. nd_experiment_stock_id integer NOT NULL references nd_experiment_stock (nd_experiment_stock_id) on delete cascade INITIALLY DEFERRED,
  37220. dbxref_id integer NOT NULL references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED
  37221. );
  37222. COMMENT ON TABLE nd_experiment_stock_dbxref IS 'Cross-reference experiment_stock to accessions, images, etc';
  37223. CREATE TABLE nd_experiment_dbxref (
  37224. nd_experiment_dbxref_id serial PRIMARY KEY NOT NULL,
  37225. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37226. dbxref_id integer NOT NULL references dbxref (dbxref_id) on delete cascade INITIALLY DEFERRED
  37227. );
  37228. COMMENT ON TABLE nd_experiment_dbxref IS 'Cross-reference experiment to accessions, images, etc';
  37229. CREATE TABLE nd_experiment_contact (
  37230. nd_experiment_contact_id serial PRIMARY KEY NOT NULL,
  37231. nd_experiment_id integer NOT NULL references nd_experiment (nd_experiment_id) on delete cascade INITIALLY DEFERRED,
  37232. contact_id integer NOT NULL references contact (contact_id) on delete cascade INITIALLY DEFERRED
  37233. );